2
# From configure.in Id: configure.in 423675 2006-07-20 00:15:01Z rjung .
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.60.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25
BIN_SH=xpg4; export BIN_SH # for Tru64
26
DUALCASE=1; export DUALCASE # for MKS sh
30
# Avoid depending upon Character Ranges.
31
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34
as_cr_digits='0123456789'
35
as_cr_alnum=$as_cr_Letters$as_cr_digits
37
# The user is always right.
38
if test "${PATH_SEPARATOR+set}" != set; then
39
echo "#! /bin/sh" >conf$$.sh
40
echo "exit 0" >>conf$$.sh
42
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50
# Support unset when possible.
51
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59
# We need space, tab and new line, in precisely that order. Quoting is
60
# there to prevent editors from complaining about space-tab.
61
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
62
# splitting by setting IFS to empty value.)
67
# Find who we are. Look in the path if we contain no directory separator.
69
*[\\/]* ) as_myself=$0 ;;
70
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74
test -z "$as_dir" && as_dir=.
75
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
# We did not find ourselves, most probably we were run as `sh COMMAND'
82
# in which case we are not to be found in the path.
83
if test "x$as_myself" = x; then
86
if test ! -f "$as_myself"; then
87
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
# Work around bugs in pre-3.0 UWIN ksh.
92
for as_var in ENV MAIL MAILPATH
93
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106
eval $as_var=C; export $as_var
108
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112
# Required to use basename.
113
if expr a : '\(a\)' >/dev/null 2>&1 &&
114
test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127
# Name of the executable.
128
as_me=`$as_basename -- "$0" ||
129
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130
X"$0" : 'X\(//\)$' \| \
131
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133
sed '/^.*\/\([^/][^/]*\)\/*$/{
151
if test "x$CONFIG_SHELL" = x; then
152
if (eval ":") 2>/dev/null; then
158
if test $as_have_required = yes && (eval ":
168
as_func_ret_success () {
171
as_func_ret_failure () {
176
if as_func_success; then
180
echo as_func_success failed.
183
if as_func_failure; then
185
echo as_func_failure succeeded.
188
if as_func_ret_success; then
192
echo as_func_ret_success failed.
195
if as_func_ret_failure; then
197
echo as_func_ret_failure succeeded.
200
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
echo positional parameters were not saved.
207
test \$exitcode = 0) || { (exit 1); exit 1; }
212
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214
") 2> /dev/null; then
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222
test -z "$as_dir" && as_dir=.
225
for as_base in sh bash ksh sh5; do
226
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233
for as_shell in $as_candidate_shells $SHELL; do
234
# Try only shells that exist, to save several forks.
235
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236
{ ("$as_shell") 2> /dev/null <<\_ASEOF
237
# Be Bourne compatible
238
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242
# is contrary to our usage. Disable this feature.
243
alias -g '${1+"$@"}'='"$@"'
246
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248
BIN_SH=xpg4; export BIN_SH # for Tru64
249
DUALCASE=1; export DUALCASE # for MKS sh
254
CONFIG_SHELL=$as_shell
256
if { "$as_shell" 2> /dev/null <<\_ASEOF
257
# Be Bourne compatible
258
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262
# is contrary to our usage. Disable this feature.
263
alias -g '${1+"$@"}'='"$@"'
266
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268
BIN_SH=xpg4; export BIN_SH # for Tru64
269
DUALCASE=1; export DUALCASE # for MKS sh
281
as_func_ret_success () {
284
as_func_ret_failure () {
289
if as_func_success; then
293
echo as_func_success failed.
296
if as_func_failure; then
298
echo as_func_failure succeeded.
301
if as_func_ret_success; then
305
echo as_func_ret_success failed.
308
if as_func_ret_failure; then
310
echo as_func_ret_failure succeeded.
313
if ( set x; as_func_ret_success y && test x = "$1" ); then
317
echo positional parameters were not saved.
320
test $exitcode = 0) || { (exit 1); exit 1; }
325
test "x$as_lineno_1" != "x$as_lineno_2" &&
326
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337
if test "x$CONFIG_SHELL" != x; then
338
for as_var in BASH_ENV ENV
339
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346
if test $as_have_required = no; then
347
echo This script requires a shell more modern than all the
348
echo shells that I found on your system. Please install a
349
echo modern shell, or manually run the script under such a
350
echo shell if you do have one.
351
{ (exit 1); exit 1; }
361
(eval "as_func_return () {
370
as_func_ret_success () {
373
as_func_ret_failure () {
378
if as_func_success; then
382
echo as_func_success failed.
385
if as_func_failure; then
387
echo as_func_failure succeeded.
390
if as_func_ret_success; then
394
echo as_func_ret_success failed.
397
if as_func_ret_failure; then
399
echo as_func_ret_failure succeeded.
402
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406
echo positional parameters were not saved.
409
test \$exitcode = 0") || {
410
echo No shell found that supports shell functions.
411
echo Please tell autoconf@gnu.org about your system,
412
echo including any error possibly output before this
420
test "x$as_lineno_1" != "x$as_lineno_2" &&
421
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424
# uniformly replaced by the line number. The first 'sed' inserts a
425
# line-number line after each line using $LINENO; the second 'sed'
426
# does the real work. The second script uses 'N' to pair each
427
# line-number line with the line containing $LINENO, and appends
428
# trailing '-' during substitution so that $LINENO is not a special
430
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431
# scripts with optimization help from Paolo Bonzini. Blame Lee
432
# E. McMahon (1931-1989) for sed's syntax. :-)
444
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448
chmod +x "$as_me.lineno" ||
449
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450
{ (exit 1); exit 1; }; }
452
# Don't try to exec as it changes $[0], causing all sort of problems
453
# (the dirname of $[0] is not the place where we might find the
454
# original and so on. Autoconf is especially sensitive to this).
456
# Exit status is that of the last command.
461
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467
ECHO_C= ECHO_N= ECHO_T=
471
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
478
if expr a : '\(a\)' >/dev/null 2>&1 &&
479
test "X`expr 00001 : '.*\(...\)'`" = X001; then
485
rm -f conf$$ conf$$.exe conf$$.file
486
if test -d conf$$.dir; then
487
rm -f conf$$.dir/conf$$.file
493
if ln -s conf$$.file conf$$ 2>/dev/null; then
495
# ... but there are two gotchas:
496
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498
# In both cases, we have to default to `cp -p'.
499
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501
elif ln conf$$.file conf$$ 2>/dev/null; then
506
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507
rmdir conf$$.dir 2>/dev/null
509
if mkdir -p . 2>/dev/null; then
512
test -d ./-p && rmdir ./-p
516
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
517
# systems may use methods other than mode bits to determine executability.
518
cat >conf$$.file <<_ASEOF
523
if test -x conf$$.file >/dev/null 2>&1; then
524
as_executable_p="test -x"
530
# Sed expression to map a string onto a valid CPP name.
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
# Sed expression to map a string onto a valid variable name.
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
# Check that we are running under the correct shell.
540
SHELL=${CONFIG_SHELL-/bin/sh}
544
# Remove one level of quotation (which was required for Make).
545
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550
if test "X$1" = X--no-reexec; then
551
# Discard the --no-reexec flag, and continue.
553
elif test "X$1" = X--fallback-echo; then
554
# Avoid inline document here, it may be left over
556
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557
# Yippee, $echo works!
560
# Restart under the correct shell.
561
exec $SHELL "$0" --no-reexec ${1+"$@"}
564
if test "X$1" = X--fallback-echo; then
565
# used as fallback echo
573
# The HP-UX ksh and POSIX shell print the target directory to stdout
575
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
if test -z "$ECHO"; then
578
if test "X${echo_test_string+set}" != Xset; then
579
# find a string as large as possible, as long as the shell can cope with it
580
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583
echo_test_string=`eval $cmd` &&
584
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
591
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593
test "X$echo_testing_string" = "X$echo_test_string"; then
596
# The Solaris, AIX, and Digital Unix default echo programs unquote
597
# backslashes. This makes it impossible to quote backslashes using
598
# echo "$something" | sed 's/\\/\\\\/g'
600
# So, first we look for a working echo in the user's PATH.
602
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603
for dir in $PATH /usr/ucb; do
605
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608
test "X$echo_testing_string" = "X$echo_test_string"; then
615
if test "X$echo" = Xecho; then
616
# We didn't find a better echo, so look for alternatives.
617
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619
test "X$echo_testing_string" = "X$echo_test_string"; then
620
# This shell has a builtin print -r that does the trick.
622
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623
test "X$CONFIG_SHELL" != X/bin/ksh; then
624
# If we have ksh, try running configure again with it.
625
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626
export ORIGINAL_CONFIG_SHELL
627
CONFIG_SHELL=/bin/ksh
629
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
638
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
test "X$echo_testing_string" = 'X\t' &&
640
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
test "X$echo_testing_string" = "X$echo_test_string"; then
642
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644
SHELL="$CONFIG_SHELL"
646
echo="$CONFIG_SHELL $0 --fallback-echo"
647
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648
test "X$echo_testing_string" = 'X\t' &&
649
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650
test "X$echo_testing_string" = "X$echo_test_string"; then
651
echo="$CONFIG_SHELL $0 --fallback-echo"
653
# maybe with a smaller string...
656
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
664
if test "$prev" != 'sed 50q "$0"'; then
665
echo_test_string=`eval $prev`
666
export echo_test_string
667
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669
# Oops. We lost completely, so just stick with echo.
678
# Copy echo and quote the copy suitably for passing to libtool from
679
# the Makefile, instead of quoting the original, which is used later.
681
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688
tagnames=${tagnames+${tagnames},}CXX
690
tagnames=${tagnames+${tagnames},}F77
692
exec 7<&0 </dev/null 6>&1
695
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696
# so uname gets run too.
697
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702
ac_default_prefix=/usr/local
704
ac_config_libobj_dir=.
710
SHELL=${CONFIG_SHELL-/bin/sh}
712
# Identity of this package.
719
ac_unique_file="common/jk_worker.h"
720
# Factoring default headers for most tests.
721
ac_includes_default="\
724
# include <sys/types.h>
727
# include <sys/stat.h>
738
# if !STDC_HEADERS && HAVE_MEMORY_H
744
# include <strings.h>
747
# include <inttypes.h>
765
program_transform_name
818
INSTALL_STRIP_PROGRAM
885
MAKE_DYNAMIC_APACHE_TRUE
886
MAKE_DYNAMIC_APACHE_FALSE
893
ac_precious_vars='build_alias
909
# Initialize some variables set by options.
911
ac_init_version=false
912
# The variables have the same names as the options, with
913
# dashes changed to underlines.
921
program_transform_name=s,x,x,
929
# Installation directory options.
930
# These are left unexpanded so users can "make install exec_prefix=/foo"
931
# and all the variables that are supposed to be based on exec_prefix
932
# by default will actually change.
933
# Use braces instead of parens because sh, perl, etc. also accept them.
934
# (The list follows the same order as the GNU Coding Standards.)
935
bindir='${exec_prefix}/bin'
936
sbindir='${exec_prefix}/sbin'
937
libexecdir='${exec_prefix}/libexec'
938
datarootdir='${prefix}/share'
939
datadir='${datarootdir}'
940
sysconfdir='${prefix}/etc'
941
sharedstatedir='${prefix}/com'
942
localstatedir='${prefix}/var'
943
includedir='${prefix}/include'
944
oldincludedir='/usr/include'
945
docdir='${datarootdir}/doc/${PACKAGE}'
946
infodir='${datarootdir}/info'
951
libdir='${exec_prefix}/lib'
952
localedir='${datarootdir}/locale'
953
mandir='${datarootdir}/man'
959
# If the previous option needs an argument, assign it.
960
if test -n "$ac_prev"; then
961
eval $ac_prev=\$ac_option
967
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971
# Accept the important Cygnus configure options, so we can diagnose typos.
973
case $ac_dashdash$ac_option in
977
-bindir | --bindir | --bindi | --bind | --bin | --bi)
979
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982
-build | --build | --buil | --bui | --bu)
983
ac_prev=build_alias ;;
984
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
985
build_alias=$ac_optarg ;;
987
-cache-file | --cache-file | --cache-fil | --cache-fi \
988
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989
ac_prev=cache_file ;;
990
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992
cache_file=$ac_optarg ;;
995
cache_file=config.cache ;;
997
-datadir | --datadir | --datadi | --datad)
999
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1000
datadir=$ac_optarg ;;
1002
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003
| --dataroo | --dataro | --datar)
1004
ac_prev=datarootdir ;;
1005
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007
datarootdir=$ac_optarg ;;
1009
-disable-* | --disable-*)
1010
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011
# Reject names that are not valid shell variable names.
1012
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1013
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014
{ (exit 1); exit 1; }; }
1015
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1016
eval enable_$ac_feature=no ;;
1018
-docdir | --docdir | --docdi | --doc | --do)
1020
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021
docdir=$ac_optarg ;;
1023
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026
dvidir=$ac_optarg ;;
1028
-enable-* | --enable-*)
1029
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030
# Reject names that are not valid shell variable names.
1031
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033
{ (exit 1); exit 1; }; }
1034
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1035
eval enable_$ac_feature=\$ac_optarg ;;
1037
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039
| --exec | --exe | --ex)
1040
ac_prev=exec_prefix ;;
1041
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043
| --exec=* | --exe=* | --ex=*)
1044
exec_prefix=$ac_optarg ;;
1046
-gas | --gas | --ga | --g)
1047
# Obsolete; use --with-gas.
1050
-help | --help | --hel | --he | -h)
1051
ac_init_help=long ;;
1052
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053
ac_init_help=recursive ;;
1054
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055
ac_init_help=short ;;
1057
-host | --host | --hos | --ho)
1058
ac_prev=host_alias ;;
1059
-host=* | --host=* | --hos=* | --ho=*)
1060
host_alias=$ac_optarg ;;
1062
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066
htmldir=$ac_optarg ;;
1068
-includedir | --includedir | --includedi | --included | --include \
1069
| --includ | --inclu | --incl | --inc)
1070
ac_prev=includedir ;;
1071
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072
| --includ=* | --inclu=* | --incl=* | --inc=*)
1073
includedir=$ac_optarg ;;
1075
-infodir | --infodir | --infodi | --infod | --info | --inf)
1077
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078
infodir=$ac_optarg ;;
1080
-libdir | --libdir | --libdi | --libd)
1082
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1083
libdir=$ac_optarg ;;
1085
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086
| --libexe | --libex | --libe)
1087
ac_prev=libexecdir ;;
1088
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089
| --libexe=* | --libex=* | --libe=*)
1090
libexecdir=$ac_optarg ;;
1092
-localedir | --localedir | --localedi | --localed | --locale)
1093
ac_prev=localedir ;;
1094
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095
localedir=$ac_optarg ;;
1097
-localstatedir | --localstatedir | --localstatedi | --localstated \
1098
| --localstate | --localstat | --localsta | --localst | --locals)
1099
ac_prev=localstatedir ;;
1100
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102
localstatedir=$ac_optarg ;;
1104
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107
mandir=$ac_optarg ;;
1109
-nfp | --nfp | --nf)
1110
# Obsolete; use --without-fp.
1113
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114
| --no-cr | --no-c | -n)
1117
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123
| --oldin | --oldi | --old | --ol | --o)
1124
ac_prev=oldincludedir ;;
1125
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128
oldincludedir=$ac_optarg ;;
1130
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133
prefix=$ac_optarg ;;
1135
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1136
| --program-pre | --program-pr | --program-p)
1137
ac_prev=program_prefix ;;
1138
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1139
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140
program_prefix=$ac_optarg ;;
1142
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1143
| --program-suf | --program-su | --program-s)
1144
ac_prev=program_suffix ;;
1145
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1146
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147
program_suffix=$ac_optarg ;;
1149
-program-transform-name | --program-transform-name \
1150
| --program-transform-nam | --program-transform-na \
1151
| --program-transform-n | --program-transform- \
1152
| --program-transform | --program-transfor \
1153
| --program-transfo | --program-transf \
1154
| --program-trans | --program-tran \
1155
| --progr-tra | --program-tr | --program-t)
1156
ac_prev=program_transform_name ;;
1157
-program-transform-name=* | --program-transform-name=* \
1158
| --program-transform-nam=* | --program-transform-na=* \
1159
| --program-transform-n=* | --program-transform-=* \
1160
| --program-transform=* | --program-transfor=* \
1161
| --program-transfo=* | --program-transf=* \
1162
| --program-trans=* | --program-tran=* \
1163
| --progr-tra=* | --program-tr=* | --program-t=*)
1164
program_transform_name=$ac_optarg ;;
1166
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169
pdfdir=$ac_optarg ;;
1171
-psdir | --psdir | --psdi | --psd | --ps)
1173
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177
| -silent | --silent | --silen | --sile | --sil)
1180
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184
sbindir=$ac_optarg ;;
1186
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1187
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188
| --sharedst | --shareds | --shared | --share | --shar \
1190
ac_prev=sharedstatedir ;;
1191
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195
sharedstatedir=$ac_optarg ;;
1197
-site | --site | --sit)
1199
-site=* | --site=* | --sit=*)
1202
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205
srcdir=$ac_optarg ;;
1207
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208
| --syscon | --sysco | --sysc | --sys | --sy)
1209
ac_prev=sysconfdir ;;
1210
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212
sysconfdir=$ac_optarg ;;
1214
-target | --target | --targe | --targ | --tar | --ta | --t)
1215
ac_prev=target_alias ;;
1216
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217
target_alias=$ac_optarg ;;
1219
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1222
-version | --version | --versio | --versi | --vers | -V)
1223
ac_init_version=: ;;
1226
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227
# Reject names that are not valid shell variable names.
1228
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1229
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1230
{ (exit 1); exit 1; }; }
1231
ac_package=`echo $ac_package| sed 's/-/_/g'`
1232
eval with_$ac_package=\$ac_optarg ;;
1234
-without-* | --without-*)
1235
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236
# Reject names that are not valid shell variable names.
1237
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1238
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1239
{ (exit 1); exit 1; }; }
1240
ac_package=`echo $ac_package | sed 's/-/_/g'`
1241
eval with_$ac_package=no ;;
1244
# Obsolete; use --with-x.
1247
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248
| --x-incl | --x-inc | --x-in | --x-i)
1249
ac_prev=x_includes ;;
1250
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252
x_includes=$ac_optarg ;;
1254
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1255
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256
ac_prev=x_libraries ;;
1257
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259
x_libraries=$ac_optarg ;;
1261
-*) { echo "$as_me: error: unrecognized option: $ac_option
1262
Try \`$0 --help' for more information." >&2
1263
{ (exit 1); exit 1; }; }
1267
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268
# Reject names that are not valid shell variable names.
1269
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271
{ (exit 1); exit 1; }; }
1272
eval $ac_envvar=\$ac_optarg
1273
export $ac_envvar ;;
1276
# FIXME: should be removed in autoconf 3.0.
1277
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286
if test -n "$ac_prev"; then
1287
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288
{ echo "$as_me: error: missing argument to $ac_option" >&2
1289
{ (exit 1); exit 1; }; }
1292
# Be sure to have absolute directory names.
1293
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294
datadir sysconfdir sharedstatedir localstatedir includedir \
1295
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296
libdir localedir mandir
1298
eval ac_val=\$$ac_var
1300
[\\/$]* | ?:[\\/]* ) continue;;
1301
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304
{ (exit 1); exit 1; }; }
1307
# There might be people who depend on the old broken behavior: `$host'
1308
# used to hold the argument of --host etc.
1309
# FIXME: To remove some day.
1312
target=$target_alias
1314
# FIXME: To remove some day.
1315
if test "x$host_alias" != x; then
1316
if test "x$build_alias" = x; then
1317
cross_compiling=maybe
1318
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319
If a cross compiler is detected then cross compile mode will be used." >&2
1320
elif test "x$build_alias" != "x$host_alias"; then
1326
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
test "$silent" = yes && exec 6>/dev/null
1331
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332
ac_ls_di=`ls -di .` &&
1333
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334
{ echo "$as_me: error: Working directory cannot be determined" >&2
1335
{ (exit 1); exit 1; }; }
1336
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1338
{ (exit 1); exit 1; }; }
1341
# Find the source files, if location was not specified.
1342
if test -z "$srcdir"; then
1343
ac_srcdir_defaulted=yes
1344
# Try the directory containing this script, then the parent directory.
1345
ac_confdir=`$as_dirname -- "$0" ||
1346
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347
X"$0" : 'X\(//\)[^/]' \| \
1348
X"$0" : 'X\(//\)$' \| \
1349
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369
if test ! -r "$srcdir/$ac_unique_file"; then
1373
ac_srcdir_defaulted=no
1375
if test ! -r "$srcdir/$ac_unique_file"; then
1376
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378
{ (exit 1); exit 1; }; }
1380
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383
{ (exit 1); exit 1; }; }
1385
# When building in place, set srcdir=.
1386
if test "$ac_abs_confdir" = "$ac_pwd"; then
1389
# Remove unnecessary trailing slashes from srcdir.
1390
# Double slashes in file names in object file debugging info
1391
# mess up M-x gdb in Emacs.
1393
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395
for ac_var in $ac_precious_vars; do
1396
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397
eval ac_env_${ac_var}_value=\$${ac_var}
1398
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403
# Report the --help message.
1405
if test "$ac_init_help" = "long"; then
1406
# Omit some internal or obsolete options to make the list less imposing.
1407
# This message is too long to be a string in the A/UX 3.1 sh.
1409
\`configure' configures this package to adapt to many kinds of systems.
1411
Usage: $0 [OPTION]... [VAR=VALUE]...
1413
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414
VAR=VALUE. See below for descriptions of some of the useful variables.
1416
Defaults for the options are specified in brackets.
1419
-h, --help display this help and exit
1420
--help=short display options specific to this package
1421
--help=recursive display the short help of all the included packages
1422
-V, --version display version information and exit
1423
-q, --quiet, --silent do not print \`checking...' messages
1424
--cache-file=FILE cache test results in FILE [disabled]
1425
-C, --config-cache alias for \`--cache-file=config.cache'
1426
-n, --no-create do not create output files
1427
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
Installation directories:
1430
--prefix=PREFIX install architecture-independent files in PREFIX
1431
[$ac_default_prefix]
1432
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435
By default, \`make install' will install all the files in
1436
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438
for instance \`--prefix=\$HOME'.
1440
For better control, use the options below.
1442
Fine tuning of the installation directories:
1443
--bindir=DIR user executables [EPREFIX/bin]
1444
--sbindir=DIR system admin executables [EPREFIX/sbin]
1445
--libexecdir=DIR program executables [EPREFIX/libexec]
1446
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449
--libdir=DIR object code libraries [EPREFIX/lib]
1450
--includedir=DIR C header files [PREFIX/include]
1451
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1452
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454
--infodir=DIR info documentation [DATAROOTDIR/info]
1455
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456
--mandir=DIR man documentation [DATAROOTDIR/man]
1457
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458
--htmldir=DIR html documentation [DOCDIR]
1459
--dvidir=DIR dvi documentation [DOCDIR]
1460
--pdfdir=DIR pdf documentation [DOCDIR]
1461
--psdir=DIR ps documentation [DOCDIR]
1467
--program-prefix=PREFIX prepend PREFIX to installed program names
1468
--program-suffix=SUFFIX append SUFFIX to installed program names
1469
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
--build=BUILD configure for building on BUILD [guessed]
1473
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1474
--target=TARGET configure for building compilers for TARGET [HOST]
1478
if test -n "$ac_init_help"; then
1483
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485
--disable-dependency-tracking speeds up one-time build
1486
--enable-dependency-tracking do not reject slow dependency extractors
1487
--enable-shared[=PKGS] build shared libraries [default=yes]
1488
--enable-static[=PKGS] build static libraries [default=yes]
1489
--enable-fast-install[=PKGS]
1490
optimize for fast installation [default=yes]
1491
--disable-libtool-lock avoid locking (might break parallel builds)
1492
--enable-jni Build jni_connect.so and enable jni_worker.
1493
--enable-EAPI Enable EAPI support (mod_ssl, Apache 1.3)
1494
--enable-maintainer-mode Turn on debugging and compile time warnings
1495
--enable-prefork Turn on prefork web server mode
1498
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501
--with-pic try to use only PIC/non-PIC objects [default=use
1503
--with-tags[=TAGS] include additional configurations [automatic]
1504
--with-apxs=FILE Build shared Apache module. FILE is the optional
1505
pathname to the apxs tool; defaults to finding
1507
--with-apache=DIR Build static Apache module. DIR is the pathname
1508
to the Apache source directory.
1509
--with-java-home=DIR Where is your JDK root directory.
1510
--with-java-platform=VAL Force the Java platorm
1511
(value is 1 for 1.1.x or 2 for 1.2.x or greater)
1512
--with-os-type=SUBDIR Where is your JDK os-type subdirectory.
1514
Some influential environment variables:
1515
CC C compiler command
1516
CFLAGS C compiler flags
1517
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518
nonstandard directory <lib dir>
1519
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520
you have headers in a nonstandard directory <include dir>
1522
CXX C++ compiler command
1523
CXXFLAGS C++ compiler flags
1524
CXXCPP C++ preprocessor
1525
F77 Fortran 77 compiler command
1526
FFLAGS Fortran 77 compiler flags
1528
Use these variables to override the choices made by `configure' or to help
1529
it to find libraries and programs with nonstandard names/locations.
1535
if test "$ac_init_help" = "recursive"; then
1536
# If there are subdirs, report their specific --help.
1537
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538
test -d "$ac_dir" || continue
1542
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545
# A ".." for each directory in $ac_dir_suffix.
1546
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547
case $ac_top_builddir_sub in
1548
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552
ac_abs_top_builddir=$ac_pwd
1553
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554
# for backward compatibility:
1555
ac_top_builddir=$ac_top_build_prefix
1558
.) # We are building in place.
1560
ac_top_srcdir=$ac_top_builddir_sub
1561
ac_abs_top_srcdir=$ac_pwd ;;
1562
[\\/]* | ?:[\\/]* ) # Absolute name.
1563
ac_srcdir=$srcdir$ac_dir_suffix;
1564
ac_top_srcdir=$srcdir
1565
ac_abs_top_srcdir=$srcdir ;;
1567
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568
ac_top_srcdir=$ac_top_build_prefix$srcdir
1569
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
cd "$ac_dir" || { ac_status=$?; continue; }
1574
# Check for guested configure.
1575
if test -f "$ac_srcdir/configure.gnu"; then
1577
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578
elif test -f "$ac_srcdir/configure"; then
1580
$SHELL "$ac_srcdir/configure" --help=recursive
1582
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584
cd "$ac_pwd" || { ac_status=$?; break; }
1588
test -n "$ac_init_help" && exit $ac_status
1589
if $ac_init_version; then
1592
generated by GNU Autoconf 2.60
1594
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596
This configure script is free software; the Free Software Foundation
1597
gives unlimited permission to copy, distribute and modify it.
1601
cat >config.log <<_ACEOF
1602
This file contains any messages produced by compilers while
1603
running configure, to aid debugging if configure makes a mistake.
1605
It was created by $as_me, which was
1606
generated by GNU Autoconf 2.60. Invocation command line was
1618
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641
test -z "$as_dir" && as_dir=.
1642
echo "PATH: $as_dir"
1658
# Keep a trace of the command line.
1659
# Strip out --no-create and --no-recursion so they do not pile up.
1660
# Strip out --silent because we don't want to record it for future runs.
1661
# Also quote any args containing shell meta-characters.
1662
# Make two passes to allow for proper duplicate-argument suppression.
1666
ac_must_keep_next=false
1672
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674
| -silent | --silent | --silen | --sile | --sil)
1677
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683
if test $ac_must_keep_next = true; then
1684
ac_must_keep_next=false # Got value, back to normal.
1687
*=* | --config-cache | -C | -disable-* | --disable-* \
1688
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690
| -with-* | --with-* | -without-* | --without-* | --x)
1691
case "$ac_configure_args0 " in
1692
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695
-* ) ac_must_keep_next=true ;;
1698
ac_configure_args="$ac_configure_args '$ac_arg'"
1703
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
# When interrupted or exit'd, cleanup temporary files, and complete
1707
# config.log. We remove comments because anyway the quotes in there
1708
# would cause problems or look ugly.
1709
# WARNING: Use '\'' to represent an apostrophe within the trap.
1710
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711
trap 'exit_status=$?
1712
# Save into config.log some information that might help in debugging.
1717
## ---------------- ##
1718
## Cache variables. ##
1719
## ---------------- ##
1722
# The following way of writing the cache mishandles newlines in values,
1724
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725
eval ac_val=\$$ac_var
1729
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733
_ | IFS | as_nl) ;; #(
1734
*) $as_unset $ac_var ;;
1739
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740
*${as_nl}ac_space=\ *)
1742
"s/'\''/'\''\\\\'\'''\''/g;
1743
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754
## ----------------- ##
1755
## Output variables. ##
1756
## ----------------- ##
1759
for ac_var in $ac_subst_vars
1761
eval ac_val=\$$ac_var
1763
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765
echo "$ac_var='\''$ac_val'\''"
1769
if test -n "$ac_subst_files"; then
1771
## ------------------- ##
1772
## File substitutions. ##
1773
## ------------------- ##
1776
for ac_var in $ac_subst_files
1778
eval ac_val=\$$ac_var
1780
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782
echo "$ac_var='\''$ac_val'\''"
1787
if test -s confdefs.h; then
1797
test "$ac_signal" != 0 &&
1798
echo "$as_me: caught signal $ac_signal"
1799
echo "$as_me: exit $exit_status"
1801
rm -f core *.core core.conftest.* &&
1802
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805
for ac_signal in 1 2 13 15; do
1806
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1811
rm -f -r conftest* confdefs.h
1813
# Predefined preprocessor variables.
1815
cat >>confdefs.h <<_ACEOF
1816
#define PACKAGE_NAME "$PACKAGE_NAME"
1820
cat >>confdefs.h <<_ACEOF
1821
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825
cat >>confdefs.h <<_ACEOF
1826
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1830
cat >>confdefs.h <<_ACEOF
1831
#define PACKAGE_STRING "$PACKAGE_STRING"
1835
cat >>confdefs.h <<_ACEOF
1836
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840
# Let the site file select an alternate cache file if it wants to.
1841
# Prefer explicitly selected file to automatically selected ones.
1842
if test -n "$CONFIG_SITE"; then
1843
set x "$CONFIG_SITE"
1844
elif test "x$prefix" != xNONE; then
1845
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847
set x "$ac_default_prefix/share/config.site" \
1848
"$ac_default_prefix/etc/config.site"
1853
if test -r "$ac_site_file"; then
1854
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855
echo "$as_me: loading site script $ac_site_file" >&6;}
1856
sed 's/^/| /' "$ac_site_file" >&5
1861
if test -r "$cache_file"; then
1862
# Some versions of bash will fail to source /dev/null (special
1863
# files actually), so we avoid doing that.
1864
if test -f "$cache_file"; then
1865
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866
echo "$as_me: loading cache $cache_file" >&6;}
1868
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1869
*) . "./$cache_file";;
1873
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874
echo "$as_me: creating cache $cache_file" >&6;}
1878
# Check that the precious variables saved in the cache have kept the same
1880
ac_cache_corrupted=false
1881
for ac_var in $ac_precious_vars; do
1882
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883
eval ac_new_set=\$ac_env_${ac_var}_set
1884
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885
eval ac_new_val=\$ac_env_${ac_var}_value
1886
case $ac_old_set,$ac_new_set in
1888
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890
ac_cache_corrupted=: ;;
1892
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894
ac_cache_corrupted=: ;;
1897
if test "x$ac_old_val" != "x$ac_new_val"; then
1898
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1901
echo "$as_me: former value: $ac_old_val" >&2;}
1902
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1903
echo "$as_me: current value: $ac_new_val" >&2;}
1904
ac_cache_corrupted=:
1907
# Pass precious variables to config.status.
1908
if test "$ac_new_set" = set; then
1910
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911
*) ac_arg=$ac_var=$ac_new_val ;;
1913
case " $ac_configure_args " in
1914
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919
if $ac_cache_corrupted; then
1920
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924
{ (exit 1); exit 1; }; }
1944
ac_cpp='$CPP $CPPFLAGS'
1945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
ac_config_headers="$ac_config_headers common/portable.h"
1953
for ac_dir in scripts/build/unix "$srcdir"/scripts/build/unix; do
1954
if test -f "$ac_dir/install-sh"; then
1956
ac_install_sh="$ac_aux_dir/install-sh -c"
1958
elif test -f "$ac_dir/install.sh"; then
1960
ac_install_sh="$ac_aux_dir/install.sh -c"
1962
elif test -f "$ac_dir/shtool"; then
1964
ac_install_sh="$ac_aux_dir/shtool install -c"
1968
if test -z "$ac_aux_dir"; then
1969
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/build/unix \"$srcdir\"/scripts/build/unix" >&5
1970
echo "$as_me: error: cannot find install-sh or install.sh in scripts/build/unix \"$srcdir\"/scripts/build/unix" >&2;}
1971
{ (exit 1); exit 1; }; }
1974
# These three variables are undocumented and unsupported,
1975
# and are intended to be withdrawn in a future Autoconf release.
1976
# They can cause serious problems if a builder's source tree is in a directory
1977
# whose full name contains unusual characters.
1978
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983
# Make sure we can run config.sub.
1984
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1985
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1986
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1987
{ (exit 1); exit 1; }; }
1989
{ echo "$as_me:$LINENO: checking build system type" >&5
1990
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1991
if test "${ac_cv_build+set}" = set; then
1992
echo $ECHO_N "(cached) $ECHO_C" >&6
1994
ac_build_alias=$build_alias
1995
test "x$ac_build_alias" = x &&
1996
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1997
test "x$ac_build_alias" = x &&
1998
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1999
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2000
{ (exit 1); exit 1; }; }
2001
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2002
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2003
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2004
{ (exit 1); exit 1; }; }
2007
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2008
echo "${ECHO_T}$ac_cv_build" >&6; }
2009
case $ac_cv_build in
2011
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2012
echo "$as_me: error: invalid value of canonical build" >&2;}
2013
{ (exit 1); exit 1; }; };;
2016
ac_save_IFS=$IFS; IFS='-'
2022
# Remember, the first character of IFS is used to create $*,
2023
# except with old shells:
2026
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2029
{ echo "$as_me:$LINENO: checking host system type" >&5
2030
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2031
if test "${ac_cv_host+set}" = set; then
2032
echo $ECHO_N "(cached) $ECHO_C" >&6
2034
if test "x$host_alias" = x; then
2035
ac_cv_host=$ac_cv_build
2037
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2038
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2039
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2040
{ (exit 1); exit 1; }; }
2044
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2045
echo "${ECHO_T}$ac_cv_host" >&6; }
2048
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2049
echo "$as_me: error: invalid value of canonical host" >&2;}
2050
{ (exit 1); exit 1; }; };;
2053
ac_save_IFS=$IFS; IFS='-'
2059
# Remember, the first character of IFS is used to create $*,
2060
# except with old shells:
2063
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2066
{ echo "$as_me:$LINENO: checking target system type" >&5
2067
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2068
if test "${ac_cv_target+set}" = set; then
2069
echo $ECHO_N "(cached) $ECHO_C" >&6
2071
if test "x$target_alias" = x; then
2072
ac_cv_target=$ac_cv_host
2074
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2075
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2076
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2077
{ (exit 1); exit 1; }; }
2081
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2082
echo "${ECHO_T}$ac_cv_target" >&6; }
2083
case $ac_cv_target in
2085
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2086
echo "$as_me: error: invalid value of canonical target" >&2;}
2087
{ (exit 1); exit 1; }; };;
2089
target=$ac_cv_target
2090
ac_save_IFS=$IFS; IFS='-'
2096
# Remember, the first character of IFS is used to create $*,
2097
# except with old shells:
2100
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2103
# The aliases save the names the user supplied, while $host etc.
2104
# will get canonicalized.
2105
test -n "$target_alias" &&
2106
test "$program_prefix$program_suffix$program_transform_name" = \
2108
program_prefix=${target_alias}-
2113
am__api_version="1.9"
2114
# Find a good install program. We prefer a C program (faster),
2115
# so one script is as good as another. But avoid the broken or
2116
# incompatible versions:
2117
# SysV /etc/install, /usr/sbin/install
2118
# SunOS /usr/etc/install
2119
# IRIX /sbin/install
2121
# AmigaOS /C/install, which installs bootblocks on floppy discs
2122
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125
# OS/2's system install, which has a completely different semantic
2126
# ./install, which can be erroneously created by make from ./install.sh.
2127
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129
if test -z "$INSTALL"; then
2130
if test "${ac_cv_path_install+set}" = set; then
2131
echo $ECHO_N "(cached) $ECHO_C" >&6
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137
test -z "$as_dir" && as_dir=.
2138
# Account for people who put trailing slashes in PATH elements.
2140
./ | .// | /cC/* | \
2141
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145
# OSF1 and SCO ODT 3.0 have their own names for install.
2146
# Don't use installbsd from OSF since it installs stuff as root
2148
for ac_prog in ginstall scoinst install; do
2149
for ac_exec_ext in '' $ac_executable_extensions; do
2150
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151
if test $ac_prog = install &&
2152
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153
# AIX install. It has an incompatible calling convention.
2155
elif test $ac_prog = install &&
2156
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157
# program-specific install script used by HP pwplus--don't use.
2160
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173
if test "${ac_cv_path_install+set}" = set; then
2174
INSTALL=$ac_cv_path_install
2176
# As a last resort, use the slow shell script. Don't cache a
2177
# value for INSTALL within a source directory, because that will
2178
# break other packages using the cache if that directory is
2179
# removed, or if the value is a relative name.
2180
INSTALL=$ac_install_sh
2183
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2184
echo "${ECHO_T}$INSTALL" >&6; }
2186
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187
# It thinks the first close brace ends the variable substitution.
2188
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2198
echo timestamp > conftest.file
2199
# Do `set' in a subshell so we don't clobber the current shell's
2200
# arguments. Must try -L first in case configure is actually a
2201
# symlink; some systems play weird games with the mod time of symlinks
2202
# (eg FreeBSD returns the mod time of the symlink's containing
2205
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206
if test "$*" = "X"; then
2208
set X `ls -t $srcdir/configure conftest.file`
2211
if test "$*" != "X $srcdir/configure conftest.file" \
2212
&& test "$*" != "X conftest.file $srcdir/configure"; then
2214
# If neither matched, then we have a broken ls. This can happen
2215
# if, for instance, CONFIG_SHELL is bash and it inherits a
2216
# broken ls alias from the environment. This has actually
2217
# happened. Such a system could not be considered "sane".
2218
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2219
alias in your environment" >&5
2220
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2221
alias in your environment" >&2;}
2222
{ (exit 1); exit 1; }; }
2225
test "$2" = conftest.file
2231
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232
Check your system clock" >&5
2233
echo "$as_me: error: newly created file is older than distributed files!
2234
Check your system clock" >&2;}
2235
{ (exit 1); exit 1; }; }
2237
{ echo "$as_me:$LINENO: result: yes" >&5
2238
echo "${ECHO_T}yes" >&6; }
2239
test "$program_prefix" != NONE &&
2240
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241
# Use a double $ so make ignores it.
2242
test "$program_suffix" != NONE &&
2243
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244
# Double any \ or $. echo might interpret backslashes.
2245
# By default was `s,x,x', remove it if useless.
2246
cat <<\_ACEOF >conftest.sed
2247
s/[\\$]/&&/g;s/;s,x,x,$//
2249
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2252
# expand $ac_aux_dir to an absolute path
2253
am_aux_dir=`cd $ac_aux_dir && pwd`
2255
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256
# Use eval to expand $SHELL
2257
if eval "$MISSING --run true"; then
2258
am_missing_run="$MISSING --run "
2261
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2266
# We used to keeping the `.' as first argument, in order to
2267
# allow $(mkdir_p) to be used without argument. As in
2268
# $(mkdir_p) $(somedir)
2269
# where $(somedir) is conditionally defined. However this is wrong
2271
# 1. if the package is installed by a user who cannot write `.'
2272
# make install will fail,
2273
# 2. the above comment should most certainly read
2274
# $(mkdir_p) $(DESTDIR)$(somedir)
2275
# so it does not work when $(somedir) is undefined and
2276
# $(DESTDIR) is not.
2277
# To support the latter case, we have to write
2278
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2279
# so the `.' trick is pointless.
2280
mkdir_p='mkdir -p --'
2282
# On NextStep and OpenStep, the `mkdir' command does not
2283
# recognize any option. It will interpret all options as
2284
# directories to create, and then abort because `.' already
2286
for d in ./-p ./--version;
2288
test -d $d && rmdir $d
2290
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291
if test -f "$ac_aux_dir/mkinstalldirs"; then
2292
mkdir_p='$(mkinstalldirs)'
2294
mkdir_p='$(install_sh) -d'
2298
for ac_prog in gawk mawk nawk awk
2300
# Extract the first word of "$ac_prog", so it can be a program name with args.
2301
set dummy $ac_prog; ac_word=$2
2302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304
if test "${ac_cv_prog_AWK+set}" = set; then
2305
echo $ECHO_N "(cached) $ECHO_C" >&6
2307
if test -n "$AWK"; then
2308
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314
test -z "$as_dir" && as_dir=.
2315
for ac_exec_ext in '' $ac_executable_extensions; do
2316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2317
ac_cv_prog_AWK="$ac_prog"
2318
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328
if test -n "$AWK"; then
2329
{ echo "$as_me:$LINENO: result: $AWK" >&5
2330
echo "${ECHO_T}$AWK" >&6; }
2332
{ echo "$as_me:$LINENO: result: no" >&5
2333
echo "${ECHO_T}no" >&6; }
2337
test -n "$AWK" && break
2340
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344
echo $ECHO_N "(cached) $ECHO_C" >&6
2346
cat >conftest.make <<\_ACEOF
2349
@echo '@@@%%%=$(MAKE)=@@@%%%'
2351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354
eval ac_cv_prog_make_${ac_make}_set=yes;;
2356
eval ac_cv_prog_make_${ac_make}_set=no;;
2360
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361
{ echo "$as_me:$LINENO: result: yes" >&5
2362
echo "${ECHO_T}yes" >&6; }
2365
{ echo "$as_me:$LINENO: result: no" >&5
2366
echo "${ECHO_T}no" >&6; }
2367
SET_MAKE="MAKE=${MAKE-make}"
2370
rm -rf .tst 2>/dev/null
2371
mkdir .tst 2>/dev/null
2372
if test -d .tst; then
2377
rmdir .tst 2>/dev/null
2379
# test to see if srcdir already configured
2380
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381
test -f $srcdir/config.status; then
2382
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384
{ (exit 1); exit 1; }; }
2387
# test whether we have cygpath
2388
if test -z "$CYGPATH_W"; then
2389
if (cygpath --version) >/dev/null 2>/dev/null; then
2390
CYGPATH_W='cygpath -w'
2397
# Define the identity of the package.
2402
cat >>confdefs.h <<_ACEOF
2403
#define PACKAGE "$PACKAGE"
2407
cat >>confdefs.h <<_ACEOF
2408
#define VERSION "$VERSION"
2411
# Some tools Automake needs.
2413
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2416
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2419
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2422
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2425
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2427
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2429
# Installed binaries are usually stripped using `strip' when the user
2430
# run `make install-strip'. However `strip' might not be the right
2431
# tool to use in cross-compilation environments, therefore Automake
2432
# will honor the `STRIP' environment variable to overrule this program.
2433
if test "$cross_compiling" != no; then
2434
if test -n "$ac_tool_prefix"; then
2435
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436
set dummy ${ac_tool_prefix}strip; ac_word=$2
2437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439
if test "${ac_cv_prog_STRIP+set}" = set; then
2440
echo $ECHO_N "(cached) $ECHO_C" >&6
2442
if test -n "$STRIP"; then
2443
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449
test -z "$as_dir" && as_dir=.
2450
for ac_exec_ext in '' $ac_executable_extensions; do
2451
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462
STRIP=$ac_cv_prog_STRIP
2463
if test -n "$STRIP"; then
2464
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2465
echo "${ECHO_T}$STRIP" >&6; }
2467
{ echo "$as_me:$LINENO: result: no" >&5
2468
echo "${ECHO_T}no" >&6; }
2473
if test -z "$ac_cv_prog_STRIP"; then
2475
# Extract the first word of "strip", so it can be a program name with args.
2476
set dummy strip; ac_word=$2
2477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2480
echo $ECHO_N "(cached) $ECHO_C" >&6
2482
if test -n "$ac_ct_STRIP"; then
2483
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489
test -z "$as_dir" && as_dir=.
2490
for ac_exec_ext in '' $ac_executable_extensions; do
2491
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492
ac_cv_prog_ac_ct_STRIP="strip"
2493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503
if test -n "$ac_ct_STRIP"; then
2504
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2505
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2507
{ echo "$as_me:$LINENO: result: no" >&5
2508
echo "${ECHO_T}no" >&6; }
2511
if test "x$ac_ct_STRIP" = x; then
2514
case $cross_compiling:$ac_tool_warned in
2516
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517
whose name does not start with the host triplet. If you think this
2518
configuration is useful to you, please write to autoconf@gnu.org." >&5
2519
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520
whose name does not start with the host triplet. If you think this
2521
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522
ac_tool_warned=yes ;;
2527
STRIP="$ac_cv_prog_STRIP"
2531
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2533
# We need awk for the "check" target. The system "awk" is bad on
2535
# Always define AMTAR for backward compatibility.
2537
AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2547
ac_cpp='$CPP $CPPFLAGS'
2548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
if test -n "$ac_tool_prefix"; then
2552
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2553
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2554
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556
if test "${ac_cv_prog_CC+set}" = set; then
2557
echo $ECHO_N "(cached) $ECHO_C" >&6
2559
if test -n "$CC"; then
2560
ac_cv_prog_CC="$CC" # Let the user override the test.
2562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566
test -z "$as_dir" && as_dir=.
2567
for ac_exec_ext in '' $ac_executable_extensions; do
2568
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2569
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2570
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580
if test -n "$CC"; then
2581
{ echo "$as_me:$LINENO: result: $CC" >&5
2582
echo "${ECHO_T}$CC" >&6; }
2584
{ echo "$as_me:$LINENO: result: no" >&5
2585
echo "${ECHO_T}no" >&6; }
2590
if test -z "$ac_cv_prog_CC"; then
2592
# Extract the first word of "gcc", so it can be a program name with args.
2593
set dummy gcc; ac_word=$2
2594
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2595
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2597
echo $ECHO_N "(cached) $ECHO_C" >&6
2599
if test -n "$ac_ct_CC"; then
2600
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606
test -z "$as_dir" && as_dir=.
2607
for ac_exec_ext in '' $ac_executable_extensions; do
2608
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2609
ac_cv_prog_ac_ct_CC="gcc"
2610
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620
if test -n "$ac_ct_CC"; then
2621
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622
echo "${ECHO_T}$ac_ct_CC" >&6; }
2624
{ echo "$as_me:$LINENO: result: no" >&5
2625
echo "${ECHO_T}no" >&6; }
2628
if test "x$ac_ct_CC" = x; then
2631
case $cross_compiling:$ac_tool_warned in
2633
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634
whose name does not start with the host triplet. If you think this
2635
configuration is useful to you, please write to autoconf@gnu.org." >&5
2636
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637
whose name does not start with the host triplet. If you think this
2638
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2639
ac_tool_warned=yes ;;
2647
if test -z "$CC"; then
2648
if test -n "$ac_tool_prefix"; then
2649
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2650
set dummy ${ac_tool_prefix}cc; ac_word=$2
2651
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653
if test "${ac_cv_prog_CC+set}" = set; then
2654
echo $ECHO_N "(cached) $ECHO_C" >&6
2656
if test -n "$CC"; then
2657
ac_cv_prog_CC="$CC" # Let the user override the test.
2659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663
test -z "$as_dir" && as_dir=.
2664
for ac_exec_ext in '' $ac_executable_extensions; do
2665
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666
ac_cv_prog_CC="${ac_tool_prefix}cc"
2667
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677
if test -n "$CC"; then
2678
{ echo "$as_me:$LINENO: result: $CC" >&5
2679
echo "${ECHO_T}$CC" >&6; }
2681
{ echo "$as_me:$LINENO: result: no" >&5
2682
echo "${ECHO_T}no" >&6; }
2688
if test -z "$CC"; then
2689
# Extract the first word of "cc", so it can be a program name with args.
2690
set dummy cc; ac_word=$2
2691
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693
if test "${ac_cv_prog_CC+set}" = set; then
2694
echo $ECHO_N "(cached) $ECHO_C" >&6
2696
if test -n "$CC"; then
2697
ac_cv_prog_CC="$CC" # Let the user override the test.
2700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704
test -z "$as_dir" && as_dir=.
2705
for ac_exec_ext in '' $ac_executable_extensions; do
2706
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2707
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2708
ac_prog_rejected=yes
2712
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719
if test $ac_prog_rejected = yes; then
2720
# We found a bogon in the path, so make sure we never use it.
2721
set dummy $ac_cv_prog_CC
2723
if test $# != 0; then
2724
# We chose a different compiler from the bogus one.
2725
# However, it has the same basename, so the bogon will be chosen
2726
# first if we set CC to just the basename; use the full file name.
2728
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734
if test -n "$CC"; then
2735
{ echo "$as_me:$LINENO: result: $CC" >&5
2736
echo "${ECHO_T}$CC" >&6; }
2738
{ echo "$as_me:$LINENO: result: no" >&5
2739
echo "${ECHO_T}no" >&6; }
2744
if test -z "$CC"; then
2745
if test -n "$ac_tool_prefix"; then
2746
for ac_prog in cl.exe
2748
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2750
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2752
if test "${ac_cv_prog_CC+set}" = set; then
2753
echo $ECHO_N "(cached) $ECHO_C" >&6
2755
if test -n "$CC"; then
2756
ac_cv_prog_CC="$CC" # Let the user override the test.
2758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762
test -z "$as_dir" && as_dir=.
2763
for ac_exec_ext in '' $ac_executable_extensions; do
2764
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2765
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2766
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776
if test -n "$CC"; then
2777
{ echo "$as_me:$LINENO: result: $CC" >&5
2778
echo "${ECHO_T}$CC" >&6; }
2780
{ echo "$as_me:$LINENO: result: no" >&5
2781
echo "${ECHO_T}no" >&6; }
2785
test -n "$CC" && break
2788
if test -z "$CC"; then
2790
for ac_prog in cl.exe
2792
# Extract the first word of "$ac_prog", so it can be a program name with args.
2793
set dummy $ac_prog; ac_word=$2
2794
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2797
echo $ECHO_N "(cached) $ECHO_C" >&6
2799
if test -n "$ac_ct_CC"; then
2800
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806
test -z "$as_dir" && as_dir=.
2807
for ac_exec_ext in '' $ac_executable_extensions; do
2808
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809
ac_cv_prog_ac_ct_CC="$ac_prog"
2810
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820
if test -n "$ac_ct_CC"; then
2821
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2822
echo "${ECHO_T}$ac_ct_CC" >&6; }
2824
{ echo "$as_me:$LINENO: result: no" >&5
2825
echo "${ECHO_T}no" >&6; }
2829
test -n "$ac_ct_CC" && break
2832
if test "x$ac_ct_CC" = x; then
2835
case $cross_compiling:$ac_tool_warned in
2837
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2838
whose name does not start with the host triplet. If you think this
2839
configuration is useful to you, please write to autoconf@gnu.org." >&5
2840
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2841
whose name does not start with the host triplet. If you think this
2842
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2843
ac_tool_warned=yes ;;
2852
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853
See \`config.log' for more details." >&5
2854
echo "$as_me: error: no acceptable C compiler found in \$PATH
2855
See \`config.log' for more details." >&2;}
2856
{ (exit 1); exit 1; }; }
2858
# Provide some information about the compiler.
2859
echo "$as_me:$LINENO: checking for C compiler version" >&5
2860
ac_compiler=`set X $ac_compile; echo $2`
2861
{ (ac_try="$ac_compiler --version >&5"
2863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864
*) ac_try_echo=$ac_try;;
2866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867
(eval "$ac_compiler --version >&5") 2>&5
2869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870
(exit $ac_status); }
2871
{ (ac_try="$ac_compiler -v >&5"
2873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874
*) ac_try_echo=$ac_try;;
2876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877
(eval "$ac_compiler -v >&5") 2>&5
2879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880
(exit $ac_status); }
2881
{ (ac_try="$ac_compiler -V >&5"
2883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884
*) ac_try_echo=$ac_try;;
2886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887
(eval "$ac_compiler -V >&5") 2>&5
2889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
(exit $ac_status); }
2892
cat >conftest.$ac_ext <<_ACEOF
2895
cat confdefs.h >>conftest.$ac_ext
2896
cat >>conftest.$ac_ext <<_ACEOF
2897
/* end confdefs.h. */
2907
ac_clean_files_save=$ac_clean_files
2908
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2909
# Try to create an executable without -o first, disregard a.out.
2910
# It will help us diagnose broken compilers, and finding out an intuition
2912
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2913
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2914
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2916
# List of possible output files, starting from the most likely.
2917
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2918
# only as a last resort. b.out is created by i960 compilers.
2919
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2921
# The IRIX 6 linker writes into existing files which may not be
2922
# executable, retaining their permissions. Remove them first so a
2923
# subsequent execution test works.
2925
for ac_file in $ac_files
2928
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2929
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2934
if { (ac_try="$ac_link_default"
2936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937
*) ac_try_echo=$ac_try;;
2939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940
(eval "$ac_link_default") 2>&5
2942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943
(exit $ac_status); }; then
2944
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2947
# so that the user can short-circuit this test for compilers unknown to
2949
for ac_file in $ac_files
2951
test -f "$ac_file" || continue
2953
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2956
# We found the default executable, but exeext='' is most
2960
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964
# We set ac_cv_exeext here because the later test for it is not
2965
# safe: cross compilers may not add the suffix if given an `-o'
2966
# argument, so we may need to know it at that point already.
2967
# Even if this section looks crufty: it has the advantage of
2974
test "$ac_cv_exeext" = no && ac_cv_exeext=
2977
echo "$as_me: failed program was:" >&5
2978
sed 's/^/| /' conftest.$ac_ext >&5
2980
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2981
See \`config.log' for more details." >&5
2982
echo "$as_me: error: C compiler cannot create executables
2983
See \`config.log' for more details." >&2;}
2984
{ (exit 77); exit 77; }; }
2987
ac_exeext=$ac_cv_exeext
2988
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2989
echo "${ECHO_T}$ac_file" >&6; }
2991
# Check that the compiler produces executables we can run. If not, either
2992
# the compiler is broken, or we cross compile.
2993
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2994
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2995
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2996
# If not cross compiling, check that we can run a simple program.
2997
if test "$cross_compiling" != yes; then
2998
if { ac_try='./$ac_file'
2999
{ (case "(($ac_try" in
3000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001
*) ac_try_echo=$ac_try;;
3003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004
(eval "$ac_try") 2>&5
3006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007
(exit $ac_status); }; }; then
3010
if test "$cross_compiling" = maybe; then
3013
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3014
If you meant to cross compile, use \`--host'.
3015
See \`config.log' for more details." >&5
3016
echo "$as_me: error: cannot run C compiled programs.
3017
If you meant to cross compile, use \`--host'.
3018
See \`config.log' for more details." >&2;}
3019
{ (exit 1); exit 1; }; }
3023
{ echo "$as_me:$LINENO: result: yes" >&5
3024
echo "${ECHO_T}yes" >&6; }
3026
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3027
ac_clean_files=$ac_clean_files_save
3028
# Check that the compiler produces executables we can run. If not, either
3029
# the compiler is broken, or we cross compile.
3030
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3031
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3032
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3033
echo "${ECHO_T}$cross_compiling" >&6; }
3035
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3036
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3037
if { (ac_try="$ac_link"
3039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040
*) ac_try_echo=$ac_try;;
3042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043
(eval "$ac_link") 2>&5
3045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046
(exit $ac_status); }; then
3047
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3048
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3049
# work properly (i.e., refer to `conftest.exe'), while it won't with
3051
for ac_file in conftest.exe conftest conftest.*; do
3052
test -f "$ac_file" || continue
3054
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3055
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3062
See \`config.log' for more details." >&5
3063
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3064
See \`config.log' for more details." >&2;}
3065
{ (exit 1); exit 1; }; }
3068
rm -f conftest$ac_cv_exeext
3069
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3070
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3072
rm -f conftest.$ac_ext
3073
EXEEXT=$ac_cv_exeext
3075
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3076
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3077
if test "${ac_cv_objext+set}" = set; then
3078
echo $ECHO_N "(cached) $ECHO_C" >&6
3080
cat >conftest.$ac_ext <<_ACEOF
3083
cat confdefs.h >>conftest.$ac_ext
3084
cat >>conftest.$ac_ext <<_ACEOF
3085
/* end confdefs.h. */
3095
rm -f conftest.o conftest.obj
3096
if { (ac_try="$ac_compile"
3098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099
*) ac_try_echo=$ac_try;;
3101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102
(eval "$ac_compile") 2>&5
3104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105
(exit $ac_status); }; then
3106
for ac_file in conftest.o conftest.obj conftest.*; do
3107
test -f "$ac_file" || continue;
3109
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3110
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115
echo "$as_me: failed program was:" >&5
3116
sed 's/^/| /' conftest.$ac_ext >&5
3118
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3119
See \`config.log' for more details." >&5
3120
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3121
See \`config.log' for more details." >&2;}
3122
{ (exit 1); exit 1; }; }
3125
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3127
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3128
echo "${ECHO_T}$ac_cv_objext" >&6; }
3129
OBJEXT=$ac_cv_objext
3131
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3132
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3133
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3134
echo $ECHO_N "(cached) $ECHO_C" >&6
3136
cat >conftest.$ac_ext <<_ACEOF
3139
cat confdefs.h >>conftest.$ac_ext
3140
cat >>conftest.$ac_ext <<_ACEOF
3141
/* end confdefs.h. */
3154
rm -f conftest.$ac_objext
3155
if { (ac_try="$ac_compile"
3157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158
*) ac_try_echo=$ac_try;;
3160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161
(eval "$ac_compile") 2>conftest.er1
3163
grep -v '^ *+' conftest.er1 >conftest.err
3165
cat conftest.err >&5
3166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167
(exit $ac_status); } &&
3168
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169
{ (case "(($ac_try" in
3170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171
*) ac_try_echo=$ac_try;;
3173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174
(eval "$ac_try") 2>&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); }; } &&
3178
{ ac_try='test -s conftest.$ac_objext'
3179
{ (case "(($ac_try" in
3180
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181
*) ac_try_echo=$ac_try;;
3183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184
(eval "$ac_try") 2>&5
3186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187
(exit $ac_status); }; }; then
3190
echo "$as_me: failed program was:" >&5
3191
sed 's/^/| /' conftest.$ac_ext >&5
3196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3201
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3202
GCC=`test $ac_compiler_gnu = yes && echo yes`
3203
ac_test_CFLAGS=${CFLAGS+set}
3204
ac_save_CFLAGS=$CFLAGS
3205
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3207
if test "${ac_cv_prog_cc_g+set}" = set; then
3208
echo $ECHO_N "(cached) $ECHO_C" >&6
3210
ac_save_c_werror_flag=$ac_c_werror_flag
3211
ac_c_werror_flag=yes
3214
cat >conftest.$ac_ext <<_ACEOF
3217
cat confdefs.h >>conftest.$ac_ext
3218
cat >>conftest.$ac_ext <<_ACEOF
3219
/* end confdefs.h. */
3229
rm -f conftest.$ac_objext
3230
if { (ac_try="$ac_compile"
3232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233
*) ac_try_echo=$ac_try;;
3235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236
(eval "$ac_compile") 2>conftest.er1
3238
grep -v '^ *+' conftest.er1 >conftest.err
3240
cat conftest.err >&5
3241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242
(exit $ac_status); } &&
3243
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244
{ (case "(($ac_try" in
3245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
*) ac_try_echo=$ac_try;;
3248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249
(eval "$ac_try") 2>&5
3251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252
(exit $ac_status); }; } &&
3253
{ ac_try='test -s conftest.$ac_objext'
3254
{ (case "(($ac_try" in
3255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256
*) ac_try_echo=$ac_try;;
3258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259
(eval "$ac_try") 2>&5
3261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
(exit $ac_status); }; }; then
3265
echo "$as_me: failed program was:" >&5
3266
sed 's/^/| /' conftest.$ac_ext >&5
3269
cat >conftest.$ac_ext <<_ACEOF
3272
cat confdefs.h >>conftest.$ac_ext
3273
cat >>conftest.$ac_ext <<_ACEOF
3274
/* end confdefs.h. */
3284
rm -f conftest.$ac_objext
3285
if { (ac_try="$ac_compile"
3287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288
*) ac_try_echo=$ac_try;;
3290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291
(eval "$ac_compile") 2>conftest.er1
3293
grep -v '^ *+' conftest.er1 >conftest.err
3295
cat conftest.err >&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); } &&
3298
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299
{ (case "(($ac_try" in
3300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301
*) ac_try_echo=$ac_try;;
3303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304
(eval "$ac_try") 2>&5
3306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307
(exit $ac_status); }; } &&
3308
{ ac_try='test -s conftest.$ac_objext'
3309
{ (case "(($ac_try" in
3310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311
*) ac_try_echo=$ac_try;;
3313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314
(eval "$ac_try") 2>&5
3316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317
(exit $ac_status); }; }; then
3320
echo "$as_me: failed program was:" >&5
3321
sed 's/^/| /' conftest.$ac_ext >&5
3323
ac_c_werror_flag=$ac_save_c_werror_flag
3325
cat >conftest.$ac_ext <<_ACEOF
3328
cat confdefs.h >>conftest.$ac_ext
3329
cat >>conftest.$ac_ext <<_ACEOF
3330
/* end confdefs.h. */
3340
rm -f conftest.$ac_objext
3341
if { (ac_try="$ac_compile"
3343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344
*) ac_try_echo=$ac_try;;
3346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347
(eval "$ac_compile") 2>conftest.er1
3349
grep -v '^ *+' conftest.er1 >conftest.err
3351
cat conftest.err >&5
3352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353
(exit $ac_status); } &&
3354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355
{ (case "(($ac_try" in
3356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357
*) ac_try_echo=$ac_try;;
3359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360
(eval "$ac_try") 2>&5
3362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363
(exit $ac_status); }; } &&
3364
{ ac_try='test -s conftest.$ac_objext'
3365
{ (case "(($ac_try" in
3366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367
*) ac_try_echo=$ac_try;;
3369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370
(eval "$ac_try") 2>&5
3372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373
(exit $ac_status); }; }; then
3376
echo "$as_me: failed program was:" >&5
3377
sed 's/^/| /' conftest.$ac_ext >&5
3382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389
ac_c_werror_flag=$ac_save_c_werror_flag
3391
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3392
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3393
if test "$ac_test_CFLAGS" = set; then
3394
CFLAGS=$ac_save_CFLAGS
3395
elif test $ac_cv_prog_cc_g = yes; then
3396
if test "$GCC" = yes; then
3402
if test "$GCC" = yes; then
3408
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3409
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3410
if test "${ac_cv_prog_cc_c89+set}" = set; then
3411
echo $ECHO_N "(cached) $ECHO_C" >&6
3413
ac_cv_prog_cc_c89=no
3415
cat >conftest.$ac_ext <<_ACEOF
3418
cat confdefs.h >>conftest.$ac_ext
3419
cat >>conftest.$ac_ext <<_ACEOF
3420
/* end confdefs.h. */
3423
#include <sys/types.h>
3424
#include <sys/stat.h>
3425
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426
struct buf { int x; };
3427
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428
static char *e (p, i)
3434
static char *f (char * (*g) (char **, int), char **p, ...)
3439
s = g (p, va_arg (v,int));
3444
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445
function prototypes and stuff, but not '\xHH' hex character constants.
3446
These don't provoke an error unfortunately, instead are silently treated
3447
as 'x'. The following induces an error, until -std is added to get
3448
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449
array size at least. It's necessary to write '\x00'==0 to get something
3450
that's true only with -std. */
3451
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3453
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454
inside strings and character constants. */
3456
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3458
int test (int i, double x);
3459
struct s1 {int (*f) (int a);};
3460
struct s2 {int (*f) (double a);};
3461
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475
CC="$ac_save_CC $ac_arg"
3476
rm -f conftest.$ac_objext
3477
if { (ac_try="$ac_compile"
3479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480
*) ac_try_echo=$ac_try;;
3482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483
(eval "$ac_compile") 2>conftest.er1
3485
grep -v '^ *+' conftest.er1 >conftest.err
3487
cat conftest.err >&5
3488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
(exit $ac_status); } &&
3490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3491
{ (case "(($ac_try" in
3492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493
*) ac_try_echo=$ac_try;;
3495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496
(eval "$ac_try") 2>&5
3498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499
(exit $ac_status); }; } &&
3500
{ ac_try='test -s conftest.$ac_objext'
3501
{ (case "(($ac_try" in
3502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503
*) ac_try_echo=$ac_try;;
3505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506
(eval "$ac_try") 2>&5
3508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); }; }; then
3510
ac_cv_prog_cc_c89=$ac_arg
3512
echo "$as_me: failed program was:" >&5
3513
sed 's/^/| /' conftest.$ac_ext >&5
3518
rm -f core conftest.err conftest.$ac_objext
3519
test "x$ac_cv_prog_cc_c89" != "xno" && break
3521
rm -f conftest.$ac_ext
3526
case "x$ac_cv_prog_cc_c89" in
3528
{ echo "$as_me:$LINENO: result: none needed" >&5
3529
echo "${ECHO_T}none needed" >&6; } ;;
3531
{ echo "$as_me:$LINENO: result: unsupported" >&5
3532
echo "${ECHO_T}unsupported" >&6; } ;;
3534
CC="$CC $ac_cv_prog_cc_c89"
3535
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3536
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3541
ac_cpp='$CPP $CPPFLAGS'
3542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
DEPDIR="${am__leading_dot}deps"
3547
ac_config_commands="$ac_config_commands depfiles"
3550
am_make=${MAKE-make}
3551
cat > confinc << 'END'
3556
# If we don't find an include directive, just comment out the code.
3557
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3558
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3562
# First try GNU make style include.
3563
echo "include confinc" > confmf
3564
# We grep out `Entering directory' and `Leaving directory'
3565
# messages which can occur if `w' ends up in MAKEFLAGS.
3566
# In particular we don't look at `^make:' because GNU make might
3567
# be invoked under some other name (usually "gmake"), in which
3568
# case it prints its new name instead of `make'.
3569
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3574
# Now try BSD make style include.
3575
if test "$am__include" = "#"; then
3576
echo '.include "confinc"' > confmf
3577
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3578
am__include=.include
3585
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3586
echo "${ECHO_T}$_am_result" >&6; }
3587
rm -f confinc confmf
3589
# Check whether --enable-dependency-tracking was given.
3590
if test "${enable_dependency_tracking+set}" = set; then
3591
enableval=$enable_dependency_tracking;
3594
if test "x$enable_dependency_tracking" != xno; then
3595
am_depcomp="$ac_aux_dir/depcomp"
3600
if test "x$enable_dependency_tracking" != xno; then
3611
depcc="$CC" am_compiler_list=
3613
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3614
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3615
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3616
echo $ECHO_N "(cached) $ECHO_C" >&6
3618
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3619
# We make a subdir and do the tests there. Otherwise we can end up
3620
# making bogus files that we don't know about and never remove. For
3621
# instance it was reported that on HP-UX the gcc test will end up
3622
# making a dummy file named `D' -- because `-MD' means `put the output
3625
# Copy depcomp to subdir because otherwise we won't find it if we're
3626
# using a relative directory.
3627
cp "$am_depcomp" conftest.dir
3629
# We will build objects and dependencies in a subdirectory because
3630
# it helps to detect inapplicable dependency modes. For instance
3631
# both Tru64's cc and ICC support -MD to output dependencies as a
3632
# side effect of compilation, but ICC will put the dependencies in
3633
# the current directory while Tru64 will put them in the object
3637
am_cv_CC_dependencies_compiler_type=none
3638
if test "$am_compiler_list" = ""; then
3639
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641
for depmode in $am_compiler_list; do
3642
# Setup a source with many dependencies, because some compilers
3643
# like to wrap large dependency lists on column 80 (with \), and
3644
# we should not choose a depcomp mode which is confused by this.
3646
# We need to recreate these files for each test, as the compiler may
3647
# overwrite some of them when testing with obscure command lines.
3648
# This happens at least with the AIX C compiler.
3650
for i in 1 2 3 4 5 6; do
3651
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3652
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3653
# Solaris 8's {/usr,}/bin/sh.
3654
touch sub/conftst$i.h
3656
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660
# after this tag, mechanisms are not by side-effect, so they'll
3661
# only be used when explicitly requested
3662
if test "x$enable_dependency_tracking" = xyes; then
3670
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3671
# mode. It turns out that the SunPro C++ compiler does not properly
3672
# handle `-M -o', and we need to detect this.
3673
if depmode=$depmode \
3674
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3675
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3677
>/dev/null 2>conftest.err &&
3678
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3680
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681
# icc doesn't choke on unknown options, it will just issue warnings
3682
# or remarks (even with -Werror). So we grep stderr for any message
3683
# that says an option was ignored or not supported.
3684
# When given -MP, icc 7.0 and 7.1 complain thusly:
3685
# icc: Command line warning: ignoring option '-M'; no argument required
3686
# The diagnosis changed in icc 8.0:
3687
# icc: Command line remark: option '-MP' not supported
3688
if (grep 'ignoring option' conftest.err ||
3689
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690
am_cv_CC_dependencies_compiler_type=$depmode
3699
am_cv_CC_dependencies_compiler_type=none
3703
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3704
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3705
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3710
test "x$enable_dependency_tracking" != xno \
3711
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3713
am__fastdepCC_FALSE='#'
3715
am__fastdepCC_TRUE='#'
3716
am__fastdepCC_FALSE=
3720
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3721
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3722
if test "${lt_cv_path_SED+set}" = set; then
3723
echo $ECHO_N "(cached) $ECHO_C" >&6
3725
# Loop through the user's path and test for sed and gsed.
3726
# Then use that list of sed's as ones to test for truncation.
3727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731
test -z "$as_dir" && as_dir=.
3732
for lt_ac_prog in sed gsed; do
3733
for ac_exec_ext in '' $ac_executable_extensions; do
3734
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3735
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3742
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3743
# along with /bin/sed that truncates output.
3744
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3745
test ! -f $lt_ac_sed && continue
3746
cat /dev/null > conftest.in
3748
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3749
# Check for GNU sed and select it if it is found.
3750
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3751
lt_cv_path_SED=$lt_ac_sed
3755
cat conftest.in conftest.in >conftest.tmp
3756
mv conftest.tmp conftest.in
3757
cp conftest.in conftest.nl
3759
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3760
cmp -s conftest.out conftest.nl || break
3761
# 10000 chars as input seems more than enough
3762
test $lt_ac_count -gt 10 && break
3763
lt_ac_count=`expr $lt_ac_count + 1`
3764
if test $lt_ac_count -gt $lt_ac_max; then
3765
lt_ac_max=$lt_ac_count
3766
lt_cv_path_SED=$lt_ac_sed
3774
{ echo "$as_me:$LINENO: result: $SED" >&5
3775
echo "${ECHO_T}$SED" >&6; }
3777
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3778
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3779
if test "${ac_cv_path_GREP+set}" = set; then
3780
echo $ECHO_N "(cached) $ECHO_C" >&6
3782
# Extract the first word of "grep ggrep" to use in msg output
3783
if test -z "$GREP"; then
3784
set dummy grep ggrep; ac_prog_name=$2
3785
if test "${ac_cv_path_GREP+set}" = set; then
3786
echo $ECHO_N "(cached) $ECHO_C" >&6
3788
ac_path_GREP_found=false
3789
# Loop through the user's path and test for each of PROGNAME-LIST
3790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3794
test -z "$as_dir" && as_dir=.
3795
for ac_prog in grep ggrep; do
3796
for ac_exec_ext in '' $ac_executable_extensions; do
3797
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3798
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3799
# Check for GNU ac_path_GREP and select it if it is found.
3800
# Check for GNU $ac_path_GREP
3801
case `"$ac_path_GREP" --version 2>&1` in
3803
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3806
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3809
cat "conftest.in" "conftest.in" >"conftest.tmp"
3810
mv "conftest.tmp" "conftest.in"
3811
cp "conftest.in" "conftest.nl"
3812
echo 'GREP' >> "conftest.nl"
3813
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815
ac_count=`expr $ac_count + 1`
3816
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3817
# Best one so far, save it but keep looking for a better one
3818
ac_cv_path_GREP="$ac_path_GREP"
3819
ac_path_GREP_max=$ac_count
3821
# 10*(2^10) chars as input seems more than enough
3822
test $ac_count -gt 10 && break
3824
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828
$ac_path_GREP_found && break 3
3838
GREP="$ac_cv_path_GREP"
3839
if test -z "$GREP"; then
3840
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842
{ (exit 1); exit 1; }; }
3846
ac_cv_path_GREP=$GREP
3851
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3852
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3853
GREP="$ac_cv_path_GREP"
3856
{ echo "$as_me:$LINENO: checking for egrep" >&5
3857
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3858
if test "${ac_cv_path_EGREP+set}" = set; then
3859
echo $ECHO_N "(cached) $ECHO_C" >&6
3861
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3862
then ac_cv_path_EGREP="$GREP -E"
3864
# Extract the first word of "egrep" to use in msg output
3865
if test -z "$EGREP"; then
3866
set dummy egrep; ac_prog_name=$2
3867
if test "${ac_cv_path_EGREP+set}" = set; then
3868
echo $ECHO_N "(cached) $ECHO_C" >&6
3870
ac_path_EGREP_found=false
3871
# Loop through the user's path and test for each of PROGNAME-LIST
3872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3876
test -z "$as_dir" && as_dir=.
3877
for ac_prog in egrep; do
3878
for ac_exec_ext in '' $ac_executable_extensions; do
3879
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3880
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3881
# Check for GNU ac_path_EGREP and select it if it is found.
3882
# Check for GNU $ac_path_EGREP
3883
case `"$ac_path_EGREP" --version 2>&1` in
3885
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3888
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3891
cat "conftest.in" "conftest.in" >"conftest.tmp"
3892
mv "conftest.tmp" "conftest.in"
3893
cp "conftest.in" "conftest.nl"
3894
echo 'EGREP' >> "conftest.nl"
3895
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897
ac_count=`expr $ac_count + 1`
3898
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899
# Best one so far, save it but keep looking for a better one
3900
ac_cv_path_EGREP="$ac_path_EGREP"
3901
ac_path_EGREP_max=$ac_count
3903
# 10*(2^10) chars as input seems more than enough
3904
test $ac_count -gt 10 && break
3906
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3910
$ac_path_EGREP_found && break 3
3920
EGREP="$ac_cv_path_EGREP"
3921
if test -z "$EGREP"; then
3922
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924
{ (exit 1); exit 1; }; }
3928
ac_cv_path_EGREP=$EGREP
3934
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3935
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3936
EGREP="$ac_cv_path_EGREP"
3940
# Check whether --with-gnu-ld was given.
3941
if test "${with_gnu_ld+set}" = set; then
3942
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3948
if test "$GCC" = yes; then
3949
# Check if gcc -print-prog-name=ld gives a path.
3950
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3951
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3954
# gcc leaves a trailing carriage return which upsets mingw
3955
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3957
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3960
# Accept absolute paths.
3962
re_direlt='/[^/][^/]*/\.\./'
3963
# Canonicalize the pathname of ld
3964
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3965
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3966
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3968
test -z "$LD" && LD="$ac_prog"
3971
# If it fails, then pretend we aren't using GCC.
3975
# If it is relative, then search for the first ld in PATH.
3979
elif test "$with_gnu_ld" = yes; then
3980
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
3981
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3983
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3984
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3986
if test "${lt_cv_path_LD+set}" = set; then
3987
echo $ECHO_N "(cached) $ECHO_C" >&6
3989
if test -z "$LD"; then
3990
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3991
for ac_dir in $PATH; do
3993
test -z "$ac_dir" && ac_dir=.
3994
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3995
lt_cv_path_LD="$ac_dir/$ac_prog"
3996
# Check to see if the program is GNU ld. I'd rather use --version,
3997
# but apparently some variants of GNU ld only accept -v.
3998
# Break only if it was the GNU/non-GNU ld that we prefer.
3999
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4000
*GNU* | *'with BFD'*)
4001
test "$with_gnu_ld" != no && break
4004
test "$with_gnu_ld" != yes && break
4011
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4016
if test -n "$LD"; then
4017
{ echo "$as_me:$LINENO: result: $LD" >&5
4018
echo "${ECHO_T}$LD" >&6; }
4020
{ echo "$as_me:$LINENO: result: no" >&5
4021
echo "${ECHO_T}no" >&6; }
4023
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4024
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4025
{ (exit 1); exit 1; }; }
4026
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4027
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4028
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4029
echo $ECHO_N "(cached) $ECHO_C" >&6
4031
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4032
case `$LD -v 2>&1 </dev/null` in
4033
*GNU* | *'with BFD'*)
4034
lt_cv_prog_gnu_ld=yes
4037
lt_cv_prog_gnu_ld=no
4041
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4042
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4043
with_gnu_ld=$lt_cv_prog_gnu_ld
4050
# Check whether --enable-shared was given.
4051
if test "${enable_shared+set}" = set; then
4052
enableval=$enable_shared; p=${PACKAGE-default}
4054
yes) enable_shared=yes ;;
4055
no) enable_shared=no ;;
4058
# Look at the argument we got. We use all the common list separators.
4059
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4060
for pkg in $enableval; do
4062
if test "X$pkg" = "X$p"; then
4074
# Check whether --enable-static was given.
4075
if test "${enable_static+set}" = set; then
4076
enableval=$enable_static; p=${PACKAGE-default}
4078
yes) enable_static=yes ;;
4079
no) enable_static=no ;;
4082
# Look at the argument we got. We use all the common list separators.
4083
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4084
for pkg in $enableval; do
4086
if test "X$pkg" = "X$p"; then
4098
# Check whether --enable-fast-install was given.
4099
if test "${enable_fast_install+set}" = set; then
4100
enableval=$enable_fast_install; p=${PACKAGE-default}
4102
yes) enable_fast_install=yes ;;
4103
no) enable_fast_install=no ;;
4105
enable_fast_install=no
4106
# Look at the argument we got. We use all the common list separators.
4107
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4108
for pkg in $enableval; do
4110
if test "X$pkg" = "X$p"; then
4111
enable_fast_install=yes
4118
enable_fast_install=yes
4122
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4123
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4124
if test "${lt_cv_ld_reload_flag+set}" = set; then
4125
echo $ECHO_N "(cached) $ECHO_C" >&6
4127
lt_cv_ld_reload_flag='-r'
4129
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4130
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4131
reload_flag=$lt_cv_ld_reload_flag
4132
case $reload_flag in
4134
*) reload_flag=" $reload_flag" ;;
4136
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4139
if test "$GCC" = yes; then
4140
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4142
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4147
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4148
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4149
if test "${lt_cv_path_NM+set}" = set; then
4150
echo $ECHO_N "(cached) $ECHO_C" >&6
4152
if test -n "$NM"; then
4153
# Let the user override the test.
4156
lt_nm_to_check="${ac_tool_prefix}nm"
4157
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4158
lt_nm_to_check="$lt_nm_to_check nm"
4160
for lt_tmp_nm in $lt_nm_to_check; do
4161
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4162
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4164
test -z "$ac_dir" && ac_dir=.
4165
tmp_nm="$ac_dir/$lt_tmp_nm"
4166
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4167
# Check to see if the nm accepts a BSD-compat flag.
4168
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4169
# nm: unknown option "B" ignored
4170
# Tru64's nm complains that /dev/null is an invalid object file
4171
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4172
*/dev/null* | *'Invalid file or object type'*)
4173
lt_cv_path_NM="$tmp_nm -B"
4177
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4179
lt_cv_path_NM="$tmp_nm -p"
4183
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4184
continue # so that we can try to find one that supports BSD flags
4193
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4196
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4197
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4200
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4201
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4203
if test "$LN_S" = "ln -s"; then
4204
{ echo "$as_me:$LINENO: result: yes" >&5
4205
echo "${ECHO_T}yes" >&6; }
4207
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4208
echo "${ECHO_T}no, using $LN_S" >&6; }
4211
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4212
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4213
if test "${lt_cv_deplibs_check_method+set}" = set; then
4214
echo $ECHO_N "(cached) $ECHO_C" >&6
4216
lt_cv_file_magic_cmd='$MAGIC_CMD'
4217
lt_cv_file_magic_test_file=
4218
lt_cv_deplibs_check_method='unknown'
4219
# Need to set the preceding variable on all platforms that support
4220
# interlibrary dependencies.
4221
# 'none' -- dependencies not supported.
4222
# `unknown' -- same as none, but documents that we really don't know.
4223
# 'pass_all' -- all dependencies passed with no checks.
4224
# 'test_compile' -- check by making test program.
4225
# 'file_magic [[regex]]' -- check by looking for files in library path
4226
# which responds to the $file_magic_cmd with a given extended regex.
4227
# If you have `file' or equivalent on your system and you're not sure
4228
# whether `pass_all' will *always* work, you probably want this one.
4232
lt_cv_deplibs_check_method=pass_all
4236
lt_cv_deplibs_check_method=pass_all
4240
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4241
lt_cv_file_magic_cmd='/usr/bin/file -L'
4242
lt_cv_file_magic_test_file=/shlib/libc.so
4246
# func_win32_libid is a shell function defined in ltmain.sh
4247
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4248
lt_cv_file_magic_cmd='func_win32_libid'
4252
# Base MSYS/MinGW do not provide the 'file' command needed by
4253
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4254
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4255
lt_cv_file_magic_cmd='$OBJDUMP -f'
4258
darwin* | rhapsody*)
4259
lt_cv_deplibs_check_method=pass_all
4262
freebsd* | kfreebsd*-gnu | dragonfly*)
4263
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4266
# Not sure whether the presence of OpenBSD here was a mistake.
4267
# Let's accept both of them until this is cleared up.
4268
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4269
lt_cv_file_magic_cmd=/usr/bin/file
4270
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4274
lt_cv_deplibs_check_method=pass_all
4279
lt_cv_deplibs_check_method=pass_all
4282
hpux10.20* | hpux11*)
4283
lt_cv_file_magic_cmd=/usr/bin/file
4286
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4287
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4290
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]'
4291
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4294
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4295
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4301
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4302
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4305
irix5* | irix6* | nonstopux*)
4307
*-32|*"-32 ") libmagic=32-bit;;
4308
*-n32|*"-n32 ") libmagic=N32;;
4309
*-64|*"-64 ") libmagic=64-bit;;
4310
*) libmagic=never-match;;
4312
lt_cv_deplibs_check_method=pass_all
4315
# This must be Linux ELF.
4317
lt_cv_deplibs_check_method=pass_all
4321
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4322
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4324
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4329
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4330
lt_cv_file_magic_cmd=/usr/bin/file
4331
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4335
lt_cv_deplibs_check_method=unknown
4339
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4340
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4342
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4346
osf3* | osf4* | osf5*)
4347
lt_cv_deplibs_check_method=pass_all
4351
lt_cv_deplibs_check_method=pass_all
4355
case $host_vendor in
4357
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]'
4358
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4361
lt_cv_deplibs_check_method=pass_all
4364
lt_cv_file_magic_cmd='/bin/file'
4365
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4368
lt_cv_file_magic_cmd='/bin/file'
4369
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4370
lt_cv_file_magic_test_file=/lib/libc.so
4373
lt_cv_deplibs_check_method=pass_all
4376
lt_cv_deplibs_check_method=pass_all
4381
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4382
lt_cv_deplibs_check_method=pass_all
4387
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4388
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4389
file_magic_cmd=$lt_cv_file_magic_cmd
4390
deplibs_check_method=$lt_cv_deplibs_check_method
4391
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4396
# If no C compiler was specified, use CC.
4399
# If no C compiler flags were specified, use CFLAGS.
4400
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4402
# Allow CC to be a program name with arguments.
4406
# Check whether --enable-libtool-lock was given.
4407
if test "${enable_libtool_lock+set}" = set; then
4408
enableval=$enable_libtool_lock;
4411
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4413
# Some flags need to be propagated to the compiler or linker for good
4417
# Find out which ABI we are using.
4418
echo 'int i;' > conftest.$ac_ext
4419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420
(eval $ac_compile) 2>&5
4422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423
(exit $ac_status); }; then
4424
case `/usr/bin/file conftest.$ac_objext` in
4436
# Find out which ABI we are using.
4437
echo '#line 4437 "configure"' > conftest.$ac_ext
4438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439
(eval $ac_compile) 2>&5
4441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442
(exit $ac_status); }; then
4443
if test "$lt_cv_prog_gnu_ld" = yes; then
4444
case `/usr/bin/file conftest.$ac_objext` in
4446
LD="${LD-ld} -melf32bsmip"
4449
LD="${LD-ld} -melf32bmipn32"
4452
LD="${LD-ld} -melf64bmip"
4456
case `/usr/bin/file conftest.$ac_objext` in
4472
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4473
# Find out which ABI we are using.
4474
echo 'int i;' > conftest.$ac_ext
4475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476
(eval $ac_compile) 2>&5
4478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479
(exit $ac_status); }; then
4480
case `/usr/bin/file conftest.o` in
4484
LD="${LD-ld} -m elf_i386"
4486
ppc64-*linux*|powerpc64-*linux*)
4487
LD="${LD-ld} -m elf32ppclinux"
4490
LD="${LD-ld} -m elf_s390"
4493
LD="${LD-ld} -m elf32_sparc"
4500
LD="${LD-ld} -m elf_x86_64"
4502
ppc*-*linux*|powerpc*-*linux*)
4503
LD="${LD-ld} -m elf64ppc"
4506
LD="${LD-ld} -m elf64_s390"
4509
LD="${LD-ld} -m elf64_sparc"
4519
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4520
SAVE_CFLAGS="$CFLAGS"
4521
CFLAGS="$CFLAGS -belf"
4522
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4523
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4524
if test "${lt_cv_cc_needs_belf+set}" = set; then
4525
echo $ECHO_N "(cached) $ECHO_C" >&6
4528
ac_cpp='$CPP $CPPFLAGS'
4529
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
cat >conftest.$ac_ext <<_ACEOF
4536
cat confdefs.h >>conftest.$ac_ext
4537
cat >>conftest.$ac_ext <<_ACEOF
4538
/* end confdefs.h. */
4548
rm -f conftest.$ac_objext conftest$ac_exeext
4549
if { (ac_try="$ac_link"
4551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552
*) ac_try_echo=$ac_try;;
4554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555
(eval "$ac_link") 2>conftest.er1
4557
grep -v '^ *+' conftest.er1 >conftest.err
4559
cat conftest.err >&5
4560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561
(exit $ac_status); } &&
4562
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563
{ (case "(($ac_try" in
4564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565
*) ac_try_echo=$ac_try;;
4567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568
(eval "$ac_try") 2>&5
4570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571
(exit $ac_status); }; } &&
4572
{ ac_try='test -s conftest$ac_exeext'
4573
{ (case "(($ac_try" in
4574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575
*) ac_try_echo=$ac_try;;
4577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578
(eval "$ac_try") 2>&5
4580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581
(exit $ac_status); }; }; then
4582
lt_cv_cc_needs_belf=yes
4584
echo "$as_me: failed program was:" >&5
4585
sed 's/^/| /' conftest.$ac_ext >&5
4587
lt_cv_cc_needs_belf=no
4590
rm -f core conftest.err conftest.$ac_objext \
4591
conftest$ac_exeext conftest.$ac_ext
4593
ac_cpp='$CPP $CPPFLAGS'
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4600
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4601
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4602
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4603
CFLAGS="$SAVE_CFLAGS"
4607
# Find out which ABI we are using.
4608
echo 'int i;' > conftest.$ac_ext
4609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610
(eval $ac_compile) 2>&5
4612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613
(exit $ac_status); }; then
4614
case `/usr/bin/file conftest.o` in
4616
case $lt_cv_prog_gnu_ld in
4617
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4618
*) LD="${LD-ld} -64" ;;
4629
need_locks="$enable_libtool_lock"
4633
ac_cpp='$CPP $CPPFLAGS'
4634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4638
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4639
# On Suns, sometimes $CPP names a directory.
4640
if test -n "$CPP" && test -d "$CPP"; then
4643
if test -z "$CPP"; then
4644
if test "${ac_cv_prog_CPP+set}" = set; then
4645
echo $ECHO_N "(cached) $ECHO_C" >&6
4647
# Double quotes because CPP needs to be expanded
4648
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4651
for ac_c_preproc_warn_flag in '' yes
4653
# Use a header file that comes with gcc, so configuring glibc
4654
# with a fresh cross-compiler works.
4655
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4656
# <limits.h> exists even on freestanding compilers.
4657
# On the NeXT, cc -E runs the code through the compiler's parser,
4658
# not just through cpp. "Syntax error" is here to catch this case.
4659
cat >conftest.$ac_ext <<_ACEOF
4662
cat confdefs.h >>conftest.$ac_ext
4663
cat >>conftest.$ac_ext <<_ACEOF
4664
/* end confdefs.h. */
4666
# include <limits.h>
4668
# include <assert.h>
4672
if { (ac_try="$ac_cpp conftest.$ac_ext"
4674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675
*) ac_try_echo=$ac_try;;
4677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4680
grep -v '^ *+' conftest.er1 >conftest.err
4682
cat conftest.err >&5
4683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684
(exit $ac_status); } >/dev/null; then
4685
if test -s conftest.err; then
4686
ac_cpp_err=$ac_c_preproc_warn_flag
4687
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4694
if test -z "$ac_cpp_err"; then
4697
echo "$as_me: failed program was:" >&5
4698
sed 's/^/| /' conftest.$ac_ext >&5
4700
# Broken: fails on valid input.
4704
rm -f conftest.err conftest.$ac_ext
4706
# OK, works on sane cases. Now check whether nonexistent headers
4707
# can be detected and how.
4708
cat >conftest.$ac_ext <<_ACEOF
4711
cat confdefs.h >>conftest.$ac_ext
4712
cat >>conftest.$ac_ext <<_ACEOF
4713
/* end confdefs.h. */
4714
#include <ac_nonexistent.h>
4716
if { (ac_try="$ac_cpp conftest.$ac_ext"
4718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719
*) ac_try_echo=$ac_try;;
4721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724
grep -v '^ *+' conftest.er1 >conftest.err
4726
cat conftest.err >&5
4727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728
(exit $ac_status); } >/dev/null; then
4729
if test -s conftest.err; then
4730
ac_cpp_err=$ac_c_preproc_warn_flag
4731
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4738
if test -z "$ac_cpp_err"; then
4739
# Broken: success on invalid input.
4742
echo "$as_me: failed program was:" >&5
4743
sed 's/^/| /' conftest.$ac_ext >&5
4745
# Passes both tests.
4750
rm -f conftest.err conftest.$ac_ext
4753
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754
rm -f conftest.err conftest.$ac_ext
4755
if $ac_preproc_ok; then
4767
{ echo "$as_me:$LINENO: result: $CPP" >&5
4768
echo "${ECHO_T}$CPP" >&6; }
4770
for ac_c_preproc_warn_flag in '' yes
4772
# Use a header file that comes with gcc, so configuring glibc
4773
# with a fresh cross-compiler works.
4774
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775
# <limits.h> exists even on freestanding compilers.
4776
# On the NeXT, cc -E runs the code through the compiler's parser,
4777
# not just through cpp. "Syntax error" is here to catch this case.
4778
cat >conftest.$ac_ext <<_ACEOF
4781
cat confdefs.h >>conftest.$ac_ext
4782
cat >>conftest.$ac_ext <<_ACEOF
4783
/* end confdefs.h. */
4785
# include <limits.h>
4787
# include <assert.h>
4791
if { (ac_try="$ac_cpp conftest.$ac_ext"
4793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794
*) ac_try_echo=$ac_try;;
4796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799
grep -v '^ *+' conftest.er1 >conftest.err
4801
cat conftest.err >&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); } >/dev/null; then
4804
if test -s conftest.err; then
4805
ac_cpp_err=$ac_c_preproc_warn_flag
4806
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4813
if test -z "$ac_cpp_err"; then
4816
echo "$as_me: failed program was:" >&5
4817
sed 's/^/| /' conftest.$ac_ext >&5
4819
# Broken: fails on valid input.
4823
rm -f conftest.err conftest.$ac_ext
4825
# OK, works on sane cases. Now check whether nonexistent headers
4826
# can be detected and how.
4827
cat >conftest.$ac_ext <<_ACEOF
4830
cat confdefs.h >>conftest.$ac_ext
4831
cat >>conftest.$ac_ext <<_ACEOF
4832
/* end confdefs.h. */
4833
#include <ac_nonexistent.h>
4835
if { (ac_try="$ac_cpp conftest.$ac_ext"
4837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838
*) ac_try_echo=$ac_try;;
4840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843
grep -v '^ *+' conftest.er1 >conftest.err
4845
cat conftest.err >&5
4846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847
(exit $ac_status); } >/dev/null; then
4848
if test -s conftest.err; then
4849
ac_cpp_err=$ac_c_preproc_warn_flag
4850
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857
if test -z "$ac_cpp_err"; then
4858
# Broken: success on invalid input.
4861
echo "$as_me: failed program was:" >&5
4862
sed 's/^/| /' conftest.$ac_ext >&5
4864
# Passes both tests.
4869
rm -f conftest.err conftest.$ac_ext
4872
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873
rm -f conftest.err conftest.$ac_ext
4874
if $ac_preproc_ok; then
4877
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4878
See \`config.log' for more details." >&5
4879
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4880
See \`config.log' for more details." >&2;}
4881
{ (exit 1); exit 1; }; }
4885
ac_cpp='$CPP $CPPFLAGS'
4886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4892
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4893
if test "${ac_cv_header_stdc+set}" = set; then
4894
echo $ECHO_N "(cached) $ECHO_C" >&6
4896
cat >conftest.$ac_ext <<_ACEOF
4899
cat confdefs.h >>conftest.$ac_ext
4900
cat >>conftest.$ac_ext <<_ACEOF
4901
/* end confdefs.h. */
4915
rm -f conftest.$ac_objext
4916
if { (ac_try="$ac_compile"
4918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919
*) ac_try_echo=$ac_try;;
4921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922
(eval "$ac_compile") 2>conftest.er1
4924
grep -v '^ *+' conftest.er1 >conftest.err
4926
cat conftest.err >&5
4927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928
(exit $ac_status); } &&
4929
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4930
{ (case "(($ac_try" in
4931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932
*) ac_try_echo=$ac_try;;
4934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935
(eval "$ac_try") 2>&5
4937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938
(exit $ac_status); }; } &&
4939
{ ac_try='test -s conftest.$ac_objext'
4940
{ (case "(($ac_try" in
4941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942
*) ac_try_echo=$ac_try;;
4944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945
(eval "$ac_try") 2>&5
4947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948
(exit $ac_status); }; }; then
4949
ac_cv_header_stdc=yes
4951
echo "$as_me: failed program was:" >&5
4952
sed 's/^/| /' conftest.$ac_ext >&5
4954
ac_cv_header_stdc=no
4957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959
if test $ac_cv_header_stdc = yes; then
4960
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4961
cat >conftest.$ac_ext <<_ACEOF
4964
cat confdefs.h >>conftest.$ac_ext
4965
cat >>conftest.$ac_ext <<_ACEOF
4966
/* end confdefs.h. */
4970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971
$EGREP "memchr" >/dev/null 2>&1; then
4974
ac_cv_header_stdc=no
4980
if test $ac_cv_header_stdc = yes; then
4981
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982
cat >conftest.$ac_ext <<_ACEOF
4985
cat confdefs.h >>conftest.$ac_ext
4986
cat >>conftest.$ac_ext <<_ACEOF
4987
/* end confdefs.h. */
4991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992
$EGREP "free" >/dev/null 2>&1; then
4995
ac_cv_header_stdc=no
5001
if test $ac_cv_header_stdc = yes; then
5002
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003
if test "$cross_compiling" = yes; then
5006
cat >conftest.$ac_ext <<_ACEOF
5009
cat confdefs.h >>conftest.$ac_ext
5010
cat >>conftest.$ac_ext <<_ACEOF
5011
/* end confdefs.h. */
5014
#if ((' ' & 0x0FF) == 0x020)
5015
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5018
# define ISLOWER(c) \
5019
(('a' <= (c) && (c) <= 'i') \
5020
|| ('j' <= (c) && (c) <= 'r') \
5021
|| ('s' <= (c) && (c) <= 'z'))
5022
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5030
for (i = 0; i < 256; i++)
5031
if (XOR (islower (i), ISLOWER (i))
5032
|| toupper (i) != TOUPPER (i))
5037
rm -f conftest$ac_exeext
5038
if { (ac_try="$ac_link"
5040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041
*) ac_try_echo=$ac_try;;
5043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044
(eval "$ac_link") 2>&5
5046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5048
{ (case "(($ac_try" in
5049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
*) ac_try_echo=$ac_try;;
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
(eval "$ac_try") 2>&5
5055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056
(exit $ac_status); }; }; then
5059
echo "$as_me: program exited with status $ac_status" >&5
5060
echo "$as_me: failed program was:" >&5
5061
sed 's/^/| /' conftest.$ac_ext >&5
5064
ac_cv_header_stdc=no
5066
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5074
if test $ac_cv_header_stdc = yes; then
5076
cat >>confdefs.h <<\_ACEOF
5077
#define STDC_HEADERS 1
5082
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093
inttypes.h stdint.h unistd.h
5095
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5098
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099
echo $ECHO_N "(cached) $ECHO_C" >&6
5101
cat >conftest.$ac_ext <<_ACEOF
5104
cat confdefs.h >>conftest.$ac_ext
5105
cat >>conftest.$ac_ext <<_ACEOF
5106
/* end confdefs.h. */
5107
$ac_includes_default
5109
#include <$ac_header>
5111
rm -f conftest.$ac_objext
5112
if { (ac_try="$ac_compile"
5114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115
*) ac_try_echo=$ac_try;;
5117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118
(eval "$ac_compile") 2>conftest.er1
5120
grep -v '^ *+' conftest.er1 >conftest.err
5122
cat conftest.err >&5
5123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124
(exit $ac_status); } &&
5125
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5126
{ (case "(($ac_try" in
5127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128
*) ac_try_echo=$ac_try;;
5130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131
(eval "$ac_try") 2>&5
5133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
(exit $ac_status); }; } &&
5135
{ ac_try='test -s conftest.$ac_objext'
5136
{ (case "(($ac_try" in
5137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138
*) ac_try_echo=$ac_try;;
5140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141
(eval "$ac_try") 2>&5
5143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
(exit $ac_status); }; }; then
5145
eval "$as_ac_Header=yes"
5147
echo "$as_me: failed program was:" >&5
5148
sed 's/^/| /' conftest.$ac_ext >&5
5150
eval "$as_ac_Header=no"
5153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155
ac_res=`eval echo '${'$as_ac_Header'}'`
5156
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5157
echo "${ECHO_T}$ac_res" >&6; }
5158
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5159
cat >>confdefs.h <<_ACEOF
5160
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169
for ac_header in dlfcn.h
5171
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5172
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5173
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5174
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5175
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5176
echo $ECHO_N "(cached) $ECHO_C" >&6
5178
ac_res=`eval echo '${'$as_ac_Header'}'`
5179
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5180
echo "${ECHO_T}$ac_res" >&6; }
5182
# Is the header compilable?
5183
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5184
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5185
cat >conftest.$ac_ext <<_ACEOF
5188
cat confdefs.h >>conftest.$ac_ext
5189
cat >>conftest.$ac_ext <<_ACEOF
5190
/* end confdefs.h. */
5191
$ac_includes_default
5192
#include <$ac_header>
5194
rm -f conftest.$ac_objext
5195
if { (ac_try="$ac_compile"
5197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198
*) ac_try_echo=$ac_try;;
5200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201
(eval "$ac_compile") 2>conftest.er1
5203
grep -v '^ *+' conftest.er1 >conftest.err
5205
cat conftest.err >&5
5206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207
(exit $ac_status); } &&
5208
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209
{ (case "(($ac_try" in
5210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211
*) ac_try_echo=$ac_try;;
5213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214
(eval "$ac_try") 2>&5
5216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217
(exit $ac_status); }; } &&
5218
{ ac_try='test -s conftest.$ac_objext'
5219
{ (case "(($ac_try" in
5220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221
*) ac_try_echo=$ac_try;;
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224
(eval "$ac_try") 2>&5
5226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
(exit $ac_status); }; }; then
5228
ac_header_compiler=yes
5230
echo "$as_me: failed program was:" >&5
5231
sed 's/^/| /' conftest.$ac_ext >&5
5233
ac_header_compiler=no
5236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238
echo "${ECHO_T}$ac_header_compiler" >&6; }
5240
# Is the header present?
5241
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5243
cat >conftest.$ac_ext <<_ACEOF
5246
cat confdefs.h >>conftest.$ac_ext
5247
cat >>conftest.$ac_ext <<_ACEOF
5248
/* end confdefs.h. */
5249
#include <$ac_header>
5251
if { (ac_try="$ac_cpp conftest.$ac_ext"
5253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254
*) ac_try_echo=$ac_try;;
5256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259
grep -v '^ *+' conftest.er1 >conftest.err
5261
cat conftest.err >&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); } >/dev/null; then
5264
if test -s conftest.err; then
5265
ac_cpp_err=$ac_c_preproc_warn_flag
5266
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273
if test -z "$ac_cpp_err"; then
5274
ac_header_preproc=yes
5276
echo "$as_me: failed program was:" >&5
5277
sed 's/^/| /' conftest.$ac_ext >&5
5279
ac_header_preproc=no
5282
rm -f conftest.err conftest.$ac_ext
5283
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5284
echo "${ECHO_T}$ac_header_preproc" >&6; }
5286
# So? What about this header?
5287
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5289
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5290
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5291
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5292
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5293
ac_header_preproc=yes
5296
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5297
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5298
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5299
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5300
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5301
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5302
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5303
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5304
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5305
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5306
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5307
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5311
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314
echo $ECHO_N "(cached) $ECHO_C" >&6
5316
eval "$as_ac_Header=\$ac_header_preproc"
5318
ac_res=`eval echo '${'$as_ac_Header'}'`
5319
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5320
echo "${ECHO_T}$ac_res" >&6; }
5323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5324
cat >>confdefs.h <<_ACEOF
5325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5333
ac_cpp='$CXXCPP $CPPFLAGS'
5334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5337
if test -z "$CXX"; then
5338
if test -n "$CCC"; then
5341
if test -n "$ac_tool_prefix"; then
5342
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5344
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5345
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5346
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348
if test "${ac_cv_prog_CXX+set}" = set; then
5349
echo $ECHO_N "(cached) $ECHO_C" >&6
5351
if test -n "$CXX"; then
5352
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358
test -z "$as_dir" && as_dir=.
5359
for ac_exec_ext in '' $ac_executable_extensions; do
5360
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5361
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5362
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372
if test -n "$CXX"; then
5373
{ echo "$as_me:$LINENO: result: $CXX" >&5
5374
echo "${ECHO_T}$CXX" >&6; }
5376
{ echo "$as_me:$LINENO: result: no" >&5
5377
echo "${ECHO_T}no" >&6; }
5381
test -n "$CXX" && break
5384
if test -z "$CXX"; then
5386
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5388
# Extract the first word of "$ac_prog", so it can be a program name with args.
5389
set dummy $ac_prog; ac_word=$2
5390
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5391
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5392
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5393
echo $ECHO_N "(cached) $ECHO_C" >&6
5395
if test -n "$ac_ct_CXX"; then
5396
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402
test -z "$as_dir" && as_dir=.
5403
for ac_exec_ext in '' $ac_executable_extensions; do
5404
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5405
ac_cv_prog_ac_ct_CXX="$ac_prog"
5406
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5416
if test -n "$ac_ct_CXX"; then
5417
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5418
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5420
{ echo "$as_me:$LINENO: result: no" >&5
5421
echo "${ECHO_T}no" >&6; }
5425
test -n "$ac_ct_CXX" && break
5428
if test "x$ac_ct_CXX" = x; then
5431
case $cross_compiling:$ac_tool_warned in
5433
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5434
whose name does not start with the host triplet. If you think this
5435
configuration is useful to you, please write to autoconf@gnu.org." >&5
5436
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5437
whose name does not start with the host triplet. If you think this
5438
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5439
ac_tool_warned=yes ;;
5447
# Provide some information about the compiler.
5448
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5449
ac_compiler=`set X $ac_compile; echo $2`
5450
{ (ac_try="$ac_compiler --version >&5"
5452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453
*) ac_try_echo=$ac_try;;
5455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456
(eval "$ac_compiler --version >&5") 2>&5
5458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459
(exit $ac_status); }
5460
{ (ac_try="$ac_compiler -v >&5"
5462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463
*) ac_try_echo=$ac_try;;
5465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466
(eval "$ac_compiler -v >&5") 2>&5
5468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469
(exit $ac_status); }
5470
{ (ac_try="$ac_compiler -V >&5"
5472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473
*) ac_try_echo=$ac_try;;
5475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476
(eval "$ac_compiler -V >&5") 2>&5
5478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479
(exit $ac_status); }
5481
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5482
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5483
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5484
echo $ECHO_N "(cached) $ECHO_C" >&6
5486
cat >conftest.$ac_ext <<_ACEOF
5489
cat confdefs.h >>conftest.$ac_ext
5490
cat >>conftest.$ac_ext <<_ACEOF
5491
/* end confdefs.h. */
5504
rm -f conftest.$ac_objext
5505
if { (ac_try="$ac_compile"
5507
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508
*) ac_try_echo=$ac_try;;
5510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511
(eval "$ac_compile") 2>conftest.er1
5513
grep -v '^ *+' conftest.er1 >conftest.err
5515
cat conftest.err >&5
5516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517
(exit $ac_status); } &&
5518
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5519
{ (case "(($ac_try" in
5520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521
*) ac_try_echo=$ac_try;;
5523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524
(eval "$ac_try") 2>&5
5526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527
(exit $ac_status); }; } &&
5528
{ ac_try='test -s conftest.$ac_objext'
5529
{ (case "(($ac_try" in
5530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531
*) ac_try_echo=$ac_try;;
5533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534
(eval "$ac_try") 2>&5
5536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537
(exit $ac_status); }; }; then
5540
echo "$as_me: failed program was:" >&5
5541
sed 's/^/| /' conftest.$ac_ext >&5
5546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5550
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5551
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5552
GXX=`test $ac_compiler_gnu = yes && echo yes`
5553
ac_test_CXXFLAGS=${CXXFLAGS+set}
5554
ac_save_CXXFLAGS=$CXXFLAGS
5555
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5556
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5557
if test "${ac_cv_prog_cxx_g+set}" = set; then
5558
echo $ECHO_N "(cached) $ECHO_C" >&6
5560
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5561
ac_cxx_werror_flag=yes
5564
cat >conftest.$ac_ext <<_ACEOF
5567
cat confdefs.h >>conftest.$ac_ext
5568
cat >>conftest.$ac_ext <<_ACEOF
5569
/* end confdefs.h. */
5579
rm -f conftest.$ac_objext
5580
if { (ac_try="$ac_compile"
5582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583
*) ac_try_echo=$ac_try;;
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586
(eval "$ac_compile") 2>conftest.er1
5588
grep -v '^ *+' conftest.er1 >conftest.err
5590
cat conftest.err >&5
5591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592
(exit $ac_status); } &&
5593
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5594
{ (case "(($ac_try" in
5595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596
*) ac_try_echo=$ac_try;;
5598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599
(eval "$ac_try") 2>&5
5601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602
(exit $ac_status); }; } &&
5603
{ ac_try='test -s conftest.$ac_objext'
5604
{ (case "(($ac_try" in
5605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606
*) ac_try_echo=$ac_try;;
5608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609
(eval "$ac_try") 2>&5
5611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612
(exit $ac_status); }; }; then
5613
ac_cv_prog_cxx_g=yes
5615
echo "$as_me: failed program was:" >&5
5616
sed 's/^/| /' conftest.$ac_ext >&5
5619
cat >conftest.$ac_ext <<_ACEOF
5622
cat confdefs.h >>conftest.$ac_ext
5623
cat >>conftest.$ac_ext <<_ACEOF
5624
/* end confdefs.h. */
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641
(eval "$ac_compile") 2>conftest.er1
5643
grep -v '^ *+' conftest.er1 >conftest.err
5645
cat conftest.err >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } &&
5648
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5649
{ (case "(($ac_try" in
5650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651
*) ac_try_echo=$ac_try;;
5653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654
(eval "$ac_try") 2>&5
5656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657
(exit $ac_status); }; } &&
5658
{ ac_try='test -s conftest.$ac_objext'
5659
{ (case "(($ac_try" in
5660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661
*) ac_try_echo=$ac_try;;
5663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664
(eval "$ac_try") 2>&5
5666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
(exit $ac_status); }; }; then
5670
echo "$as_me: failed program was:" >&5
5671
sed 's/^/| /' conftest.$ac_ext >&5
5673
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5675
cat >conftest.$ac_ext <<_ACEOF
5678
cat confdefs.h >>conftest.$ac_ext
5679
cat >>conftest.$ac_ext <<_ACEOF
5680
/* end confdefs.h. */
5690
rm -f conftest.$ac_objext
5691
if { (ac_try="$ac_compile"
5693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694
*) ac_try_echo=$ac_try;;
5696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697
(eval "$ac_compile") 2>conftest.er1
5699
grep -v '^ *+' conftest.er1 >conftest.err
5701
cat conftest.err >&5
5702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703
(exit $ac_status); } &&
5704
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5705
{ (case "(($ac_try" in
5706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707
*) ac_try_echo=$ac_try;;
5709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710
(eval "$ac_try") 2>&5
5712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713
(exit $ac_status); }; } &&
5714
{ ac_try='test -s conftest.$ac_objext'
5715
{ (case "(($ac_try" in
5716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717
*) ac_try_echo=$ac_try;;
5719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720
(eval "$ac_try") 2>&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); }; }; then
5724
ac_cv_prog_cxx_g=yes
5726
echo "$as_me: failed program was:" >&5
5727
sed 's/^/| /' conftest.$ac_ext >&5
5732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5741
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5742
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5743
if test "$ac_test_CXXFLAGS" = set; then
5744
CXXFLAGS=$ac_save_CXXFLAGS
5745
elif test $ac_cv_prog_cxx_g = yes; then
5746
if test "$GXX" = yes; then
5752
if test "$GXX" = yes; then
5759
ac_cpp='$CXXCPP $CPPFLAGS'
5760
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5764
depcc="$CXX" am_compiler_list=
5766
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5767
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5768
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5769
echo $ECHO_N "(cached) $ECHO_C" >&6
5771
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5772
# We make a subdir and do the tests there. Otherwise we can end up
5773
# making bogus files that we don't know about and never remove. For
5774
# instance it was reported that on HP-UX the gcc test will end up
5775
# making a dummy file named `D' -- because `-MD' means `put the output
5778
# Copy depcomp to subdir because otherwise we won't find it if we're
5779
# using a relative directory.
5780
cp "$am_depcomp" conftest.dir
5782
# We will build objects and dependencies in a subdirectory because
5783
# it helps to detect inapplicable dependency modes. For instance
5784
# both Tru64's cc and ICC support -MD to output dependencies as a
5785
# side effect of compilation, but ICC will put the dependencies in
5786
# the current directory while Tru64 will put them in the object
5790
am_cv_CXX_dependencies_compiler_type=none
5791
if test "$am_compiler_list" = ""; then
5792
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5794
for depmode in $am_compiler_list; do
5795
# Setup a source with many dependencies, because some compilers
5796
# like to wrap large dependency lists on column 80 (with \), and
5797
# we should not choose a depcomp mode which is confused by this.
5799
# We need to recreate these files for each test, as the compiler may
5800
# overwrite some of them when testing with obscure command lines.
5801
# This happens at least with the AIX C compiler.
5803
for i in 1 2 3 4 5 6; do
5804
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5805
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5806
# Solaris 8's {/usr,}/bin/sh.
5807
touch sub/conftst$i.h
5809
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5813
# after this tag, mechanisms are not by side-effect, so they'll
5814
# only be used when explicitly requested
5815
if test "x$enable_dependency_tracking" = xyes; then
5823
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5824
# mode. It turns out that the SunPro C++ compiler does not properly
5825
# handle `-M -o', and we need to detect this.
5826
if depmode=$depmode \
5827
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5828
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5829
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5830
>/dev/null 2>conftest.err &&
5831
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5832
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5833
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5834
# icc doesn't choke on unknown options, it will just issue warnings
5835
# or remarks (even with -Werror). So we grep stderr for any message
5836
# that says an option was ignored or not supported.
5837
# When given -MP, icc 7.0 and 7.1 complain thusly:
5838
# icc: Command line warning: ignoring option '-M'; no argument required
5839
# The diagnosis changed in icc 8.0:
5840
# icc: Command line remark: option '-MP' not supported
5841
if (grep 'ignoring option' conftest.err ||
5842
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5843
am_cv_CXX_dependencies_compiler_type=$depmode
5852
am_cv_CXX_dependencies_compiler_type=none
5856
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5857
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5858
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5863
test "x$enable_dependency_tracking" != xno \
5864
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5865
am__fastdepCXX_TRUE=
5866
am__fastdepCXX_FALSE='#'
5868
am__fastdepCXX_TRUE='#'
5869
am__fastdepCXX_FALSE=
5875
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5876
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5877
(test "X$CXX" != "Xg++"))) ; then
5879
ac_cpp='$CXXCPP $CPPFLAGS'
5880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5884
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5885
if test -z "$CXXCPP"; then
5886
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5887
echo $ECHO_N "(cached) $ECHO_C" >&6
5889
# Double quotes because CXXCPP needs to be expanded
5890
for CXXCPP in "$CXX -E" "/lib/cpp"
5893
for ac_cxx_preproc_warn_flag in '' yes
5895
# Use a header file that comes with gcc, so configuring glibc
5896
# with a fresh cross-compiler works.
5897
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898
# <limits.h> exists even on freestanding compilers.
5899
# On the NeXT, cc -E runs the code through the compiler's parser,
5900
# not just through cpp. "Syntax error" is here to catch this case.
5901
cat >conftest.$ac_ext <<_ACEOF
5904
cat confdefs.h >>conftest.$ac_ext
5905
cat >>conftest.$ac_ext <<_ACEOF
5906
/* end confdefs.h. */
5908
# include <limits.h>
5910
# include <assert.h>
5914
if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
5927
if test -s conftest.err; then
5928
ac_cpp_err=$ac_cxx_preproc_warn_flag
5929
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5936
if test -z "$ac_cpp_err"; then
5939
echo "$as_me: failed program was:" >&5
5940
sed 's/^/| /' conftest.$ac_ext >&5
5942
# Broken: fails on valid input.
5946
rm -f conftest.err conftest.$ac_ext
5948
# OK, works on sane cases. Now check whether nonexistent headers
5949
# can be detected and how.
5950
cat >conftest.$ac_ext <<_ACEOF
5953
cat confdefs.h >>conftest.$ac_ext
5954
cat >>conftest.$ac_ext <<_ACEOF
5955
/* end confdefs.h. */
5956
#include <ac_nonexistent.h>
5958
if { (ac_try="$ac_cpp conftest.$ac_ext"
5960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961
*) ac_try_echo=$ac_try;;
5963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5966
grep -v '^ *+' conftest.er1 >conftest.err
5968
cat conftest.err >&5
5969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970
(exit $ac_status); } >/dev/null; then
5971
if test -s conftest.err; then
5972
ac_cpp_err=$ac_cxx_preproc_warn_flag
5973
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5980
if test -z "$ac_cpp_err"; then
5981
# Broken: success on invalid input.
5984
echo "$as_me: failed program was:" >&5
5985
sed 's/^/| /' conftest.$ac_ext >&5
5987
# Passes both tests.
5992
rm -f conftest.err conftest.$ac_ext
5995
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5996
rm -f conftest.err conftest.$ac_ext
5997
if $ac_preproc_ok; then
6002
ac_cv_prog_CXXCPP=$CXXCPP
6005
CXXCPP=$ac_cv_prog_CXXCPP
6007
ac_cv_prog_CXXCPP=$CXXCPP
6009
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6010
echo "${ECHO_T}$CXXCPP" >&6; }
6012
for ac_cxx_preproc_warn_flag in '' yes
6014
# Use a header file that comes with gcc, so configuring glibc
6015
# with a fresh cross-compiler works.
6016
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017
# <limits.h> exists even on freestanding compilers.
6018
# On the NeXT, cc -E runs the code through the compiler's parser,
6019
# not just through cpp. "Syntax error" is here to catch this case.
6020
cat >conftest.$ac_ext <<_ACEOF
6023
cat confdefs.h >>conftest.$ac_ext
6024
cat >>conftest.$ac_ext <<_ACEOF
6025
/* end confdefs.h. */
6027
# include <limits.h>
6029
# include <assert.h>
6033
if { (ac_try="$ac_cpp conftest.$ac_ext"
6035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036
*) ac_try_echo=$ac_try;;
6038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6041
grep -v '^ *+' conftest.er1 >conftest.err
6043
cat conftest.err >&5
6044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045
(exit $ac_status); } >/dev/null; then
6046
if test -s conftest.err; then
6047
ac_cpp_err=$ac_cxx_preproc_warn_flag
6048
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6055
if test -z "$ac_cpp_err"; then
6058
echo "$as_me: failed program was:" >&5
6059
sed 's/^/| /' conftest.$ac_ext >&5
6061
# Broken: fails on valid input.
6065
rm -f conftest.err conftest.$ac_ext
6067
# OK, works on sane cases. Now check whether nonexistent headers
6068
# can be detected and how.
6069
cat >conftest.$ac_ext <<_ACEOF
6072
cat confdefs.h >>conftest.$ac_ext
6073
cat >>conftest.$ac_ext <<_ACEOF
6074
/* end confdefs.h. */
6075
#include <ac_nonexistent.h>
6077
if { (ac_try="$ac_cpp conftest.$ac_ext"
6079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080
*) ac_try_echo=$ac_try;;
6082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6085
grep -v '^ *+' conftest.er1 >conftest.err
6087
cat conftest.err >&5
6088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089
(exit $ac_status); } >/dev/null; then
6090
if test -s conftest.err; then
6091
ac_cpp_err=$ac_cxx_preproc_warn_flag
6092
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6099
if test -z "$ac_cpp_err"; then
6100
# Broken: success on invalid input.
6103
echo "$as_me: failed program was:" >&5
6104
sed 's/^/| /' conftest.$ac_ext >&5
6106
# Passes both tests.
6111
rm -f conftest.err conftest.$ac_ext
6114
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115
rm -f conftest.err conftest.$ac_ext
6116
if $ac_preproc_ok; then
6119
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120
See \`config.log' for more details." >&5
6121
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122
See \`config.log' for more details." >&2;}
6123
{ (exit 1); exit 1; }; }
6127
ac_cpp='$CXXCPP $CPPFLAGS'
6128
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6136
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139
if test -n "$ac_tool_prefix"; then
6140
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6142
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146
if test "${ac_cv_prog_F77+set}" = set; then
6147
echo $ECHO_N "(cached) $ECHO_C" >&6
6149
if test -n "$F77"; then
6150
ac_cv_prog_F77="$F77" # Let the user override the test.
6152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156
test -z "$as_dir" && as_dir=.
6157
for ac_exec_ext in '' $ac_executable_extensions; do
6158
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170
if test -n "$F77"; then
6171
{ echo "$as_me:$LINENO: result: $F77" >&5
6172
echo "${ECHO_T}$F77" >&6; }
6174
{ echo "$as_me:$LINENO: result: no" >&5
6175
echo "${ECHO_T}no" >&6; }
6179
test -n "$F77" && break
6182
if test -z "$F77"; then
6184
for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6186
# Extract the first word of "$ac_prog", so it can be a program name with args.
6187
set dummy $ac_prog; ac_word=$2
6188
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6191
echo $ECHO_N "(cached) $ECHO_C" >&6
6193
if test -n "$ac_ct_F77"; then
6194
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200
test -z "$as_dir" && as_dir=.
6201
for ac_exec_ext in '' $ac_executable_extensions; do
6202
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203
ac_cv_prog_ac_ct_F77="$ac_prog"
6204
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214
if test -n "$ac_ct_F77"; then
6215
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6216
echo "${ECHO_T}$ac_ct_F77" >&6; }
6218
{ echo "$as_me:$LINENO: result: no" >&5
6219
echo "${ECHO_T}no" >&6; }
6223
test -n "$ac_ct_F77" && break
6226
if test "x$ac_ct_F77" = x; then
6229
case $cross_compiling:$ac_tool_warned in
6231
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232
whose name does not start with the host triplet. If you think this
6233
configuration is useful to you, please write to autoconf@gnu.org." >&5
6234
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235
whose name does not start with the host triplet. If you think this
6236
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237
ac_tool_warned=yes ;;
6244
# Provide some information about the compiler.
6245
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6246
ac_compiler=`set X $ac_compile; echo $2`
6247
{ (ac_try="$ac_compiler --version >&5"
6249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250
*) ac_try_echo=$ac_try;;
6252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253
(eval "$ac_compiler --version >&5") 2>&5
6255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256
(exit $ac_status); }
6257
{ (ac_try="$ac_compiler -v >&5"
6259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260
*) ac_try_echo=$ac_try;;
6262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263
(eval "$ac_compiler -v >&5") 2>&5
6265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266
(exit $ac_status); }
6267
{ (ac_try="$ac_compiler -V >&5"
6269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270
*) ac_try_echo=$ac_try;;
6272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273
(eval "$ac_compiler -V >&5") 2>&5
6275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276
(exit $ac_status); }
6279
# If we don't use `.F' as extension, the preprocessor is not run on the
6280
# input file. (Note that this only needs to work for GNU compilers.)
6283
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6284
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6285
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6286
echo $ECHO_N "(cached) $ECHO_C" >&6
6288
cat >conftest.$ac_ext <<_ACEOF
6296
rm -f conftest.$ac_objext
6297
if { (ac_try="$ac_compile"
6299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300
*) ac_try_echo=$ac_try;;
6302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303
(eval "$ac_compile") 2>conftest.er1
6305
grep -v '^ *+' conftest.er1 >conftest.err
6307
cat conftest.err >&5
6308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
(exit $ac_status); } &&
6310
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6311
{ (case "(($ac_try" in
6312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313
*) ac_try_echo=$ac_try;;
6315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316
(eval "$ac_try") 2>&5
6318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319
(exit $ac_status); }; } &&
6320
{ ac_try='test -s conftest.$ac_objext'
6321
{ (case "(($ac_try" in
6322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323
*) ac_try_echo=$ac_try;;
6325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326
(eval "$ac_try") 2>&5
6328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329
(exit $ac_status); }; }; then
6332
echo "$as_me: failed program was:" >&5
6333
sed 's/^/| /' conftest.$ac_ext >&5
6338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6342
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6343
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6345
ac_test_FFLAGS=${FFLAGS+set}
6346
ac_save_FFLAGS=$FFLAGS
6348
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6349
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6350
if test "${ac_cv_prog_f77_g+set}" = set; then
6351
echo $ECHO_N "(cached) $ECHO_C" >&6
6354
cat >conftest.$ac_ext <<_ACEOF
6359
rm -f conftest.$ac_objext
6360
if { (ac_try="$ac_compile"
6362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363
*) ac_try_echo=$ac_try;;
6365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366
(eval "$ac_compile") 2>conftest.er1
6368
grep -v '^ *+' conftest.er1 >conftest.err
6370
cat conftest.err >&5
6371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372
(exit $ac_status); } &&
6373
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6374
{ (case "(($ac_try" in
6375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376
*) ac_try_echo=$ac_try;;
6378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379
(eval "$ac_try") 2>&5
6381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382
(exit $ac_status); }; } &&
6383
{ ac_try='test -s conftest.$ac_objext'
6384
{ (case "(($ac_try" in
6385
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386
*) ac_try_echo=$ac_try;;
6388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389
(eval "$ac_try") 2>&5
6391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392
(exit $ac_status); }; }; then
6393
ac_cv_prog_f77_g=yes
6395
echo "$as_me: failed program was:" >&5
6396
sed 's/^/| /' conftest.$ac_ext >&5
6401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6405
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6406
if test "$ac_test_FFLAGS" = set; then
6407
FFLAGS=$ac_save_FFLAGS
6408
elif test $ac_cv_prog_f77_g = yes; then
6409
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6415
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6422
G77=`test $ac_compiler_gnu = yes && echo yes`
6424
ac_cpp='$CPP $CPPFLAGS'
6425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6433
# find the maximum length of command line arguments
6434
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6435
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6436
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6437
echo $ECHO_N "(cached) $ECHO_C" >&6
6444
# On DJGPP, this test can blow up pretty badly due to problems in libc
6445
# (any single argument exceeding 2000 bytes causes a buffer overrun
6446
# during glob expansion). Even if it were fixed, the result of this
6447
# check would be larger than it should be.
6448
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6452
# Under GNU Hurd, this test is not required because there is
6453
# no limit to the length of command line arguments.
6454
# Libtool will interpret -1 as no limit whatsoever
6455
lt_cv_sys_max_cmd_len=-1;
6459
# On Win9x/ME, this test blows up -- it succeeds, but takes
6460
# about 5 minutes as the teststring grows exponentially.
6461
# Worse, since 9x/ME are not pre-emptively multitasking,
6462
# you end up with a "frozen" computer, even though with patience
6463
# the test eventually succeeds (with a max line length of 256k).
6464
# Instead, let's just punt: use the minimum linelength reported by
6465
# all of the supported platforms: 8192 (on NT/2K/XP).
6466
lt_cv_sys_max_cmd_len=8192;
6470
# On AmigaOS with pdksh, this test takes hours, literally.
6471
# So we just punt and use a minimum line length of 8192.
6472
lt_cv_sys_max_cmd_len=8192;
6475
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6476
# This has been around since 386BSD, at least. Likely further.
6477
if test -x /sbin/sysctl; then
6478
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6479
elif test -x /usr/sbin/sysctl; then
6480
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6482
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6484
# And add a safety zone
6485
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6486
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6490
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6491
lt_cv_sys_max_cmd_len=196608
6495
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6496
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6497
# nice to cause kernel panics so lets avoid the loop below.
6498
# First set a reasonable default.
6499
lt_cv_sys_max_cmd_len=16384
6501
if test -x /sbin/sysconfig; then
6502
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6503
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6508
lt_cv_sys_max_cmd_len=102400
6510
sysv5* | sco5v6* | sysv4.2uw2*)
6511
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6512
if test -n "$kargmax"; then
6513
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6515
lt_cv_sys_max_cmd_len=32768
6519
# If test is not a shell built-in, we'll probably end up computing a
6520
# maximum length that is only half of the actual maximum length, but
6522
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6523
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6524
= "XX$teststring") >/dev/null 2>&1 &&
6525
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6526
lt_cv_sys_max_cmd_len=$new_result &&
6527
test $i != 17 # 1/2 MB should be enough
6530
teststring=$teststring$teststring
6533
# Add a significant safety factor because C++ compilers can tack on massive
6534
# amounts of additional arguments before passing them to the linker.
6535
# It appears as though 1/2 is a usable value.
6536
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6542
if test -n $lt_cv_sys_max_cmd_len ; then
6543
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6544
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6546
{ echo "$as_me:$LINENO: result: none" >&5
6547
echo "${ECHO_T}none" >&6; }
6553
# Check for command to grab the raw symbol name followed by C symbol from nm.
6554
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6555
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6556
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6557
echo $ECHO_N "(cached) $ECHO_C" >&6
6560
# These are sane defaults that work on at least a few old systems.
6561
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6563
# Character class describing NM global symbol codes.
6564
symcode='[BCDEGRST]'
6566
# Regexp to match symbols that can be accessed directly from C.
6567
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6569
# Transform an extracted symbol line into a proper C declaration
6570
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6572
# Transform an extracted symbol line into symbol name and symbol address
6573
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'"
6575
# Define system-specific variables.
6580
cygwin* | mingw* | pw32*)
6581
symcode='[ABCDGISTW]'
6583
hpux*) # Its linker distinguishes data from code symbols
6584
if test "$host_cpu" = ia64; then
6585
symcode='[ABCDEGRST]'
6587
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6588
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'"
6591
if test "$host_cpu" = ia64; then
6592
symcode='[ABCDGIRSTW]'
6593
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6594
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'"
6598
symcode='[BCDEGRST]'
6601
symcode='[BCDEGQRST]'
6612
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620
# Handle CRLF in mingw tool chain
6624
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6628
# If we're using GNU nm, then use its standard symbol codes.
6629
case `$NM -V 2>&1` in
6630
*GNU* | *'with BFD'*)
6631
symcode='[ABCDGIRSTW]' ;;
6634
# Try without a prefix undercore, then with it.
6635
for ac_symprfx in "" "_"; do
6637
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6638
symxfrm="\\1 $ac_symprfx\\2 \\2"
6640
# Write the raw and C identifiers.
6641
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6643
# Check to see that the pipe works correctly.
6647
cat > conftest.$ac_ext <<EOF
6652
void nm_test_func(){}
6656
int main(){nm_test_var='a';nm_test_func();return(0);}
6659
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660
(eval $ac_compile) 2>&5
6662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663
(exit $ac_status); }; then
6664
# Now try to grab the symbols.
6666
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6667
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670
(exit $ac_status); } && test -s "$nlist"; then
6671
# Try sorting and uniquifying the output.
6672
if sort "$nlist" | uniq > "$nlist"T; then
6673
mv -f "$nlist"T "$nlist"
6678
# Make sure that we snagged all the symbols we need.
6679
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6680
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6681
cat <<EOF > conftest.$ac_ext
6687
# Now generate the symbol file.
6688
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6690
cat <<EOF >> conftest.$ac_ext
6691
#if defined (__STDC__) && __STDC__
6692
# define lt_ptr_t void *
6694
# define lt_ptr_t char *
6698
/* The mapping between symbol names and symbols. */
6703
lt_preloaded_symbols[] =
6706
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6707
cat <<\EOF >> conftest.$ac_ext
6715
# Now try linking the two files.
6716
mv conftest.$ac_objext conftstm.$ac_objext
6717
lt_save_LIBS="$LIBS"
6718
lt_save_CFLAGS="$CFLAGS"
6719
LIBS="conftstm.$ac_objext"
6720
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722
(eval $ac_link) 2>&5
6724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6728
LIBS="$lt_save_LIBS"
6729
CFLAGS="$lt_save_CFLAGS"
6731
echo "cannot find nm_test_func in $nlist" >&5
6734
echo "cannot find nm_test_var in $nlist" >&5
6737
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6740
echo "$progname: failed program was:" >&5
6741
cat conftest.$ac_ext >&5
6743
rm -f conftest* conftst*
6745
# Do not use the global_symbol_pipe unless it works.
6746
if test "$pipe_works" = yes; then
6749
lt_cv_sys_global_symbol_pipe=
6755
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6756
lt_cv_sys_global_symbol_to_cdecl=
6758
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6759
{ echo "$as_me:$LINENO: result: failed" >&5
6760
echo "${ECHO_T}failed" >&6; }
6762
{ echo "$as_me:$LINENO: result: ok" >&5
6763
echo "${ECHO_T}ok" >&6; }
6766
{ echo "$as_me:$LINENO: checking for objdir" >&5
6767
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6768
if test "${lt_cv_objdir+set}" = set; then
6769
echo $ECHO_N "(cached) $ECHO_C" >&6
6771
rm -f .libs 2>/dev/null
6772
mkdir .libs 2>/dev/null
6773
if test -d .libs; then
6776
# MS-DOS does not allow filenames that begin with a dot.
6779
rmdir .libs 2>/dev/null
6781
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6782
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6783
objdir=$lt_cv_objdir
6791
# AIX sometimes has problems with the GCC collect2 program. For some
6792
# reason, if we set the COLLECT_NAMES environment variable, the problems
6793
# vanish in a puff of smoke.
6794
if test "X${COLLECT_NAMES+set}" != Xset; then
6796
export COLLECT_NAMES
6801
# Sed substitution that helps us do robust quoting. It backslashifies
6802
# metacharacters that are still active within double-quoted strings.
6803
Xsed='sed -e 1s/^X//'
6804
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6806
# Same as above, but do not quote variable references.
6807
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6809
# Sed substitution to delay expansion of an escaped shell variable in a
6810
# double_quote_subst'ed string.
6811
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6813
# Sed substitution to avoid accidental globbing in evaled expressions
6814
no_glob_subst='s/\*/\\\*/g'
6820
default_ofile=libtool
6821
can_build_shared=yes
6823
# All known linkers require a `.a' archive for static linking (except MSVC,
6824
# which needs '.lib').
6826
ltmain="$ac_aux_dir/ltmain.sh"
6827
ofile="$default_ofile"
6828
with_gnu_ld="$lt_cv_prog_gnu_ld"
6830
if test -n "$ac_tool_prefix"; then
6831
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6832
set dummy ${ac_tool_prefix}ar; ac_word=$2
6833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835
if test "${ac_cv_prog_AR+set}" = set; then
6836
echo $ECHO_N "(cached) $ECHO_C" >&6
6838
if test -n "$AR"; then
6839
ac_cv_prog_AR="$AR" # Let the user override the test.
6841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845
test -z "$as_dir" && as_dir=.
6846
for ac_exec_ext in '' $ac_executable_extensions; do
6847
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848
ac_cv_prog_AR="${ac_tool_prefix}ar"
6849
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859
if test -n "$AR"; then
6860
{ echo "$as_me:$LINENO: result: $AR" >&5
6861
echo "${ECHO_T}$AR" >&6; }
6863
{ echo "$as_me:$LINENO: result: no" >&5
6864
echo "${ECHO_T}no" >&6; }
6869
if test -z "$ac_cv_prog_AR"; then
6871
# Extract the first word of "ar", so it can be a program name with args.
6872
set dummy ar; ac_word=$2
6873
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6876
echo $ECHO_N "(cached) $ECHO_C" >&6
6878
if test -n "$ac_ct_AR"; then
6879
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885
test -z "$as_dir" && as_dir=.
6886
for ac_exec_ext in '' $ac_executable_extensions; do
6887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888
ac_cv_prog_ac_ct_AR="ar"
6889
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6899
if test -n "$ac_ct_AR"; then
6900
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6901
echo "${ECHO_T}$ac_ct_AR" >&6; }
6903
{ echo "$as_me:$LINENO: result: no" >&5
6904
echo "${ECHO_T}no" >&6; }
6907
if test "x$ac_ct_AR" = x; then
6910
case $cross_compiling:$ac_tool_warned in
6912
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6913
whose name does not start with the host triplet. If you think this
6914
configuration is useful to you, please write to autoconf@gnu.org." >&5
6915
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6916
whose name does not start with the host triplet. If you think this
6917
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6918
ac_tool_warned=yes ;;
6926
if test -n "$ac_tool_prefix"; then
6927
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6928
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6929
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931
if test "${ac_cv_prog_RANLIB+set}" = set; then
6932
echo $ECHO_N "(cached) $ECHO_C" >&6
6934
if test -n "$RANLIB"; then
6935
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941
test -z "$as_dir" && as_dir=.
6942
for ac_exec_ext in '' $ac_executable_extensions; do
6943
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6944
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6945
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954
RANLIB=$ac_cv_prog_RANLIB
6955
if test -n "$RANLIB"; then
6956
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6957
echo "${ECHO_T}$RANLIB" >&6; }
6959
{ echo "$as_me:$LINENO: result: no" >&5
6960
echo "${ECHO_T}no" >&6; }
6965
if test -z "$ac_cv_prog_RANLIB"; then
6966
ac_ct_RANLIB=$RANLIB
6967
# Extract the first word of "ranlib", so it can be a program name with args.
6968
set dummy ranlib; ac_word=$2
6969
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6972
echo $ECHO_N "(cached) $ECHO_C" >&6
6974
if test -n "$ac_ct_RANLIB"; then
6975
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981
test -z "$as_dir" && as_dir=.
6982
for ac_exec_ext in '' $ac_executable_extensions; do
6983
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984
ac_cv_prog_ac_ct_RANLIB="ranlib"
6985
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6995
if test -n "$ac_ct_RANLIB"; then
6996
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6997
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6999
{ echo "$as_me:$LINENO: result: no" >&5
7000
echo "${ECHO_T}no" >&6; }
7003
if test "x$ac_ct_RANLIB" = x; then
7006
case $cross_compiling:$ac_tool_warned in
7008
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7009
whose name does not start with the host triplet. If you think this
7010
configuration is useful to you, please write to autoconf@gnu.org." >&5
7011
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7012
whose name does not start with the host triplet. If you think this
7013
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7014
ac_tool_warned=yes ;;
7016
RANLIB=$ac_ct_RANLIB
7019
RANLIB="$ac_cv_prog_RANLIB"
7022
if test -n "$ac_tool_prefix"; then
7023
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7024
set dummy ${ac_tool_prefix}strip; ac_word=$2
7025
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027
if test "${ac_cv_prog_STRIP+set}" = set; then
7028
echo $ECHO_N "(cached) $ECHO_C" >&6
7030
if test -n "$STRIP"; then
7031
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037
test -z "$as_dir" && as_dir=.
7038
for ac_exec_ext in '' $ac_executable_extensions; do
7039
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7041
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050
STRIP=$ac_cv_prog_STRIP
7051
if test -n "$STRIP"; then
7052
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7053
echo "${ECHO_T}$STRIP" >&6; }
7055
{ echo "$as_me:$LINENO: result: no" >&5
7056
echo "${ECHO_T}no" >&6; }
7061
if test -z "$ac_cv_prog_STRIP"; then
7063
# Extract the first word of "strip", so it can be a program name with args.
7064
set dummy strip; ac_word=$2
7065
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7068
echo $ECHO_N "(cached) $ECHO_C" >&6
7070
if test -n "$ac_ct_STRIP"; then
7071
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077
test -z "$as_dir" && as_dir=.
7078
for ac_exec_ext in '' $ac_executable_extensions; do
7079
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080
ac_cv_prog_ac_ct_STRIP="strip"
7081
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7091
if test -n "$ac_ct_STRIP"; then
7092
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7093
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7095
{ echo "$as_me:$LINENO: result: no" >&5
7096
echo "${ECHO_T}no" >&6; }
7099
if test "x$ac_ct_STRIP" = x; then
7102
case $cross_compiling:$ac_tool_warned in
7104
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105
whose name does not start with the host triplet. If you think this
7106
configuration is useful to you, please write to autoconf@gnu.org." >&5
7107
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108
whose name does not start with the host triplet. If you think this
7109
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110
ac_tool_warned=yes ;;
7115
STRIP="$ac_cv_prog_STRIP"
7120
old_CFLAGS="$CFLAGS"
7122
# Set sane defaults for various variables
7123
test -z "$AR" && AR=ar
7124
test -z "$AR_FLAGS" && AR_FLAGS=cru
7125
test -z "$AS" && AS=as
7126
test -z "$CC" && CC=cc
7127
test -z "$LTCC" && LTCC=$CC
7128
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7129
test -z "$DLLTOOL" && DLLTOOL=dlltool
7130
test -z "$LD" && LD=ld
7131
test -z "$LN_S" && LN_S="ln -s"
7132
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7133
test -z "$NM" && NM=nm
7134
test -z "$SED" && SED=sed
7135
test -z "$OBJDUMP" && OBJDUMP=objdump
7136
test -z "$RANLIB" && RANLIB=:
7137
test -z "$STRIP" && STRIP=:
7138
test -z "$ac_objext" && ac_objext=o
7140
# Determine commands to create old-style static archives.
7141
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7142
old_postinstall_cmds='chmod 644 $oldlib'
7143
old_postuninstall_cmds=
7145
if test -n "$RANLIB"; then
7148
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7151
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7154
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7157
for cc_temp in $compiler""; do
7159
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7160
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7165
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7168
# Only perform the check for file, if the check method requires it
7169
case $deplibs_check_method in
7171
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7172
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7173
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7174
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7175
echo $ECHO_N "(cached) $ECHO_C" >&6
7179
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7182
lt_save_MAGIC_CMD="$MAGIC_CMD"
7183
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7184
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7185
for ac_dir in $ac_dummy; do
7187
test -z "$ac_dir" && ac_dir=.
7188
if test -f $ac_dir/${ac_tool_prefix}file; then
7189
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7190
if test -n "$file_magic_test_file"; then
7191
case $deplibs_check_method in
7193
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7194
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7195
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7196
$EGREP "$file_magic_regex" > /dev/null; then
7201
*** Warning: the command libtool uses to detect shared libraries,
7202
*** $file_magic_cmd, produces output that libtool cannot recognize.
7203
*** The result is that libtool may fail to recognize shared libraries
7204
*** as such. This will affect the creation of libtool libraries that
7205
*** depend on shared libraries, but programs linked with such libtool
7206
*** libraries will work regardless of this problem. Nevertheless, you
7207
*** may want to report the problem to your system manager and/or to
7208
*** bug-libtool@gnu.org
7218
MAGIC_CMD="$lt_save_MAGIC_CMD"
7223
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7224
if test -n "$MAGIC_CMD"; then
7225
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7226
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7228
{ echo "$as_me:$LINENO: result: no" >&5
7229
echo "${ECHO_T}no" >&6; }
7232
if test -z "$lt_cv_path_MAGIC_CMD"; then
7233
if test -n "$ac_tool_prefix"; then
7234
{ echo "$as_me:$LINENO: checking for file" >&5
7235
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7236
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7237
echo $ECHO_N "(cached) $ECHO_C" >&6
7241
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7244
lt_save_MAGIC_CMD="$MAGIC_CMD"
7245
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7246
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7247
for ac_dir in $ac_dummy; do
7249
test -z "$ac_dir" && ac_dir=.
7250
if test -f $ac_dir/file; then
7251
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7252
if test -n "$file_magic_test_file"; then
7253
case $deplibs_check_method in
7255
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7256
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7257
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7258
$EGREP "$file_magic_regex" > /dev/null; then
7263
*** Warning: the command libtool uses to detect shared libraries,
7264
*** $file_magic_cmd, produces output that libtool cannot recognize.
7265
*** The result is that libtool may fail to recognize shared libraries
7266
*** as such. This will affect the creation of libtool libraries that
7267
*** depend on shared libraries, but programs linked with such libtool
7268
*** libraries will work regardless of this problem. Nevertheless, you
7269
*** may want to report the problem to your system manager and/or to
7270
*** bug-libtool@gnu.org
7280
MAGIC_CMD="$lt_save_MAGIC_CMD"
7285
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7286
if test -n "$MAGIC_CMD"; then
7287
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7288
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7290
{ echo "$as_me:$LINENO: result: no" >&5
7291
echo "${ECHO_T}no" >&6; }
7306
# Check whether --enable-libtool-lock was given.
7307
if test "${enable_libtool_lock+set}" = set; then
7308
enableval=$enable_libtool_lock;
7311
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7314
# Check whether --with-pic was given.
7315
if test "${with_pic+set}" = set; then
7316
withval=$with_pic; pic_mode="$withval"
7321
test -z "$pic_mode" && pic_mode=default
7323
# Use C for the default configuration in the libtool script
7327
ac_cpp='$CPP $CPPFLAGS'
7328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333
# Source file extension for C test sources.
7336
# Object file extension for compiled C test sources.
7340
# Code to be used in simple compile tests
7341
lt_simple_compile_test_code="int some_variable = 0;\n"
7343
# Code to be used in simple link tests
7344
lt_simple_link_test_code='int main(){return(0);}\n'
7347
# If no C compiler was specified, use CC.
7350
# If no C compiler flags were specified, use CFLAGS.
7351
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7353
# Allow CC to be a program name with arguments.
7357
# save warnings/boilerplate of simple test code
7358
ac_outfile=conftest.$ac_objext
7359
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7360
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7361
_lt_compiler_boilerplate=`cat conftest.err`
7364
ac_outfile=conftest.$ac_objext
7365
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7366
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7367
_lt_linker_boilerplate=`cat conftest.err`
7372
lt_prog_compiler_no_builtin_flag=
7374
if test "$GCC" = yes; then
7375
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7378
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7379
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7380
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7381
echo $ECHO_N "(cached) $ECHO_C" >&6
7383
lt_cv_prog_compiler_rtti_exceptions=no
7384
ac_outfile=conftest.$ac_objext
7385
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7386
lt_compiler_flag="-fno-rtti -fno-exceptions"
7387
# Insert the option either (1) after the last *FLAGS variable, or
7388
# (2) before a word containing "conftest.", or (3) at the end.
7389
# Note that $ac_compile itself does not contain backslashes and begins
7390
# with a dollar sign (not a hyphen), so the echo should work correctly.
7391
# The option is referenced via a variable to avoid confusing sed.
7392
lt_compile=`echo "$ac_compile" | $SED \
7393
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7394
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7395
-e 's:$: $lt_compiler_flag:'`
7396
(eval echo "\"\$as_me:7396: $lt_compile\"" >&5)
7397
(eval "$lt_compile" 2>conftest.err)
7399
cat conftest.err >&5
7400
echo "$as_me:7400: \$? = $ac_status" >&5
7401
if (exit $ac_status) && test -s "$ac_outfile"; then
7402
# The compiler can only warn and ignore the option if not recognized
7403
# So say no if there are warnings other than the usual output.
7404
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7405
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7406
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7407
lt_cv_prog_compiler_rtti_exceptions=yes
7413
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7414
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7416
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7417
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7424
lt_prog_compiler_wl=
7425
lt_prog_compiler_pic=
7426
lt_prog_compiler_static=
7428
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7429
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7431
if test "$GCC" = yes; then
7432
lt_prog_compiler_wl='-Wl,'
7433
lt_prog_compiler_static='-static'
7437
# All AIX code is PIC.
7438
if test "$host_cpu" = ia64; then
7439
# AIX 5 now supports IA64 processor
7440
lt_prog_compiler_static='-Bstatic'
7445
# FIXME: we need at least 68020 code to build shared libraries, but
7446
# adding the `-m68020' flag to GCC prevents building anything better,
7448
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7451
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7452
# PIC is the default for these OSes.
7455
mingw* | pw32* | os2*)
7456
# This hack is so that the source file can tell whether it is being
7457
# built for inclusion in a dll (and should export symbols for example).
7458
lt_prog_compiler_pic='-DDLL_EXPORT'
7461
darwin* | rhapsody*)
7462
# PIC is the default on this platform
7463
# Common symbols not allowed in MH_DYLIB files
7464
lt_prog_compiler_pic='-fno-common'
7468
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7469
# Instead, we relocate shared libraries at runtime.
7473
# Just because we use GCC doesn't mean we suddenly get shared libraries
7474
# on systems that don't support them.
7475
lt_prog_compiler_can_build_shared=no
7480
if test -d /usr/nec; then
7481
lt_prog_compiler_pic=-Kconform_pic
7486
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7493
lt_prog_compiler_pic='-fPIC'
7499
lt_prog_compiler_pic='-fPIC'
7503
# PORTME Check for flag to pass linker flags through the system compiler.
7506
lt_prog_compiler_wl='-Wl,'
7507
if test "$host_cpu" = ia64; then
7508
# AIX 5 now supports IA64 processor
7509
lt_prog_compiler_static='-Bstatic'
7511
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7515
# PIC is the default on this platform
7516
# Common symbols not allowed in MH_DYLIB files
7517
case $cc_basename in
7519
lt_prog_compiler_pic='-qnocommon'
7520
lt_prog_compiler_wl='-Wl,'
7525
mingw* | pw32* | os2*)
7526
# This hack is so that the source file can tell whether it is being
7527
# built for inclusion in a dll (and should export symbols for example).
7528
lt_prog_compiler_pic='-DDLL_EXPORT'
7531
hpux9* | hpux10* | hpux11*)
7532
lt_prog_compiler_wl='-Wl,'
7533
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7540
lt_prog_compiler_pic='+Z'
7543
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7544
lt_prog_compiler_static='${wl}-a ${wl}archive'
7547
irix5* | irix6* | nonstopux*)
7548
lt_prog_compiler_wl='-Wl,'
7549
# PIC (with -KPIC) is the default.
7550
lt_prog_compiler_static='-non_shared'
7554
lt_prog_compiler_pic='-KPIC'
7555
lt_prog_compiler_static='-Bstatic'
7559
case $cc_basename in
7561
lt_prog_compiler_wl='-Wl,'
7562
lt_prog_compiler_pic='-KPIC'
7563
lt_prog_compiler_static='-static'
7565
pgcc* | pgf77* | pgf90* | pgf95*)
7566
# Portland Group compilers (*not* the Pentium gcc compiler,
7567
# which looks to be a dead project)
7568
lt_prog_compiler_wl='-Wl,'
7569
lt_prog_compiler_pic='-fpic'
7570
lt_prog_compiler_static='-Bstatic'
7573
lt_prog_compiler_wl='-Wl,'
7574
# All Alpha code is PIC.
7575
lt_prog_compiler_static='-non_shared'
7580
osf3* | osf4* | osf5*)
7581
lt_prog_compiler_wl='-Wl,'
7582
# All OSF/1 code is PIC.
7583
lt_prog_compiler_static='-non_shared'
7587
lt_prog_compiler_pic='-KPIC'
7588
lt_prog_compiler_static='-Bstatic'
7589
case $cc_basename in
7591
lt_prog_compiler_wl='-Qoption ld ';;
7593
lt_prog_compiler_wl='-Wl,';;
7598
lt_prog_compiler_wl='-Qoption ld '
7599
lt_prog_compiler_pic='-PIC'
7600
lt_prog_compiler_static='-Bstatic'
7603
sysv4 | sysv4.2uw2* | sysv4.3*)
7604
lt_prog_compiler_wl='-Wl,'
7605
lt_prog_compiler_pic='-KPIC'
7606
lt_prog_compiler_static='-Bstatic'
7610
if test -d /usr/nec ;then
7611
lt_prog_compiler_pic='-Kconform_pic'
7612
lt_prog_compiler_static='-Bstatic'
7616
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7617
lt_prog_compiler_wl='-Wl,'
7618
lt_prog_compiler_pic='-KPIC'
7619
lt_prog_compiler_static='-Bstatic'
7623
lt_prog_compiler_wl='-Wl,'
7624
lt_prog_compiler_can_build_shared=no
7628
lt_prog_compiler_pic='-pic'
7629
lt_prog_compiler_static='-Bstatic'
7633
lt_prog_compiler_can_build_shared=no
7638
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7639
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7642
# Check to make sure the PIC flag actually works.
7644
if test -n "$lt_prog_compiler_pic"; then
7646
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7647
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7648
if test "${lt_prog_compiler_pic_works+set}" = set; then
7649
echo $ECHO_N "(cached) $ECHO_C" >&6
7651
lt_prog_compiler_pic_works=no
7652
ac_outfile=conftest.$ac_objext
7653
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7654
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7655
# Insert the option either (1) after the last *FLAGS variable, or
7656
# (2) before a word containing "conftest.", or (3) at the end.
7657
# Note that $ac_compile itself does not contain backslashes and begins
7658
# with a dollar sign (not a hyphen), so the echo should work correctly.
7659
# The option is referenced via a variable to avoid confusing sed.
7660
lt_compile=`echo "$ac_compile" | $SED \
7661
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7662
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7663
-e 's:$: $lt_compiler_flag:'`
7664
(eval echo "\"\$as_me:7664: $lt_compile\"" >&5)
7665
(eval "$lt_compile" 2>conftest.err)
7667
cat conftest.err >&5
7668
echo "$as_me:7668: \$? = $ac_status" >&5
7669
if (exit $ac_status) && test -s "$ac_outfile"; then
7670
# The compiler can only warn and ignore the option if not recognized
7671
# So say no if there are warnings other than the usual output.
7672
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7673
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7674
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7675
lt_prog_compiler_pic_works=yes
7681
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7682
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7684
if test x"$lt_prog_compiler_pic_works" = xyes; then
7685
case $lt_prog_compiler_pic in
7687
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7690
lt_prog_compiler_pic=
7691
lt_prog_compiler_can_build_shared=no
7696
# For platforms which do not support PIC, -DPIC is meaningless:
7698
lt_prog_compiler_pic=
7701
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7706
# Check to make sure the static flag actually works.
7708
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7709
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7710
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7711
if test "${lt_prog_compiler_static_works+set}" = set; then
7712
echo $ECHO_N "(cached) $ECHO_C" >&6
7714
lt_prog_compiler_static_works=no
7715
save_LDFLAGS="$LDFLAGS"
7716
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7717
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7718
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7719
# The linker can only warn and ignore the option if not recognized
7720
# So say no if there are warnings
7721
if test -s conftest.err; then
7722
# Append any errors to the config.log.
7723
cat conftest.err 1>&5
7724
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7725
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7726
if diff conftest.exp conftest.er2 >/dev/null; then
7727
lt_prog_compiler_static_works=yes
7730
lt_prog_compiler_static_works=yes
7734
LDFLAGS="$save_LDFLAGS"
7737
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7738
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7740
if test x"$lt_prog_compiler_static_works" = xyes; then
7743
lt_prog_compiler_static=
7747
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7748
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7749
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7750
echo $ECHO_N "(cached) $ECHO_C" >&6
7752
lt_cv_prog_compiler_c_o=no
7753
$rm -r conftest 2>/dev/null
7757
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7759
lt_compiler_flag="-o out/conftest2.$ac_objext"
7760
# Insert the option either (1) after the last *FLAGS variable, or
7761
# (2) before a word containing "conftest.", or (3) at the end.
7762
# Note that $ac_compile itself does not contain backslashes and begins
7763
# with a dollar sign (not a hyphen), so the echo should work correctly.
7764
lt_compile=`echo "$ac_compile" | $SED \
7765
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767
-e 's:$: $lt_compiler_flag:'`
7768
(eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
7769
(eval "$lt_compile" 2>out/conftest.err)
7771
cat out/conftest.err >&5
7772
echo "$as_me:7772: \$? = $ac_status" >&5
7773
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7775
# The compiler can only warn and ignore the option if not recognized
7776
# So say no if there are warnings
7777
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7778
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7779
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7780
lt_cv_prog_compiler_c_o=yes
7785
# SGI C++ compiler will create directory out/ii_files/ for
7786
# template instantiation
7787
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7788
$rm out/* && rmdir out
7794
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7795
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7798
hard_links="nottested"
7799
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7800
# do not overwrite the value of need_locks provided by the user
7801
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7802
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7805
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7807
ln conftest.a conftest.b 2>&5 || hard_links=no
7808
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7809
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7810
echo "${ECHO_T}$hard_links" >&6; }
7811
if test "$hard_links" = no; then
7812
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7813
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7820
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7821
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7824
allow_undefined_flag=
7825
enable_shared_with_static_runtimes=no
7827
archive_expsym_cmds=
7828
old_archive_From_new_cmds=
7829
old_archive_from_expsyms_cmds=
7830
export_dynamic_flag_spec=
7831
whole_archive_flag_spec=
7832
thread_safe_flag_spec=
7833
hardcode_libdir_flag_spec=
7834
hardcode_libdir_flag_spec_ld=
7835
hardcode_libdir_separator=
7838
hardcode_shlibpath_var=unsupported
7839
link_all_deplibs=unknown
7840
hardcode_automatic=no
7843
always_export_symbols=no
7844
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7845
# include_expsyms should be a list of space-separated symbols to be *always*
7846
# included in the symbol list
7848
# exclude_expsyms can be an extended regexp of symbols to exclude
7849
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7850
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7851
# as well as any symbol that contains `d'.
7852
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7853
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7854
# platforms (ab)use it in PIC code, but their linkers get confused if
7855
# the symbol is explicitly referenced. Since portable code cannot
7856
# rely on this symbol name, it's probably fine to never include it in
7857
# preloaded symbol tables.
7858
extract_expsyms_cmds=
7859
# Just being paranoid about ensuring that cc_basename is set.
7860
for cc_temp in $compiler""; do
7862
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7863
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7868
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7871
cygwin* | mingw* | pw32*)
7872
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7873
# When not using gcc, we currently assume that we are using
7874
# Microsoft Visual C++.
7875
if test "$GCC" != yes; then
7880
# we just hope/assume this is gcc and not c89 (= MSVC++)
7889
if test "$with_gnu_ld" = yes; then
7890
# If archive_cmds runs LD, not CC, wlarc should be empty
7893
# Set some defaults for GNU ld with shared library support. These
7894
# are reset later if shared libraries are not supported. Putting them
7895
# here allows them to be overridden if necessary.
7896
runpath_var=LD_RUN_PATH
7897
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7898
export_dynamic_flag_spec='${wl}--export-dynamic'
7899
# ancient GNU ld didn't support --whole-archive et. al.
7900
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7901
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7903
whole_archive_flag_spec=
7905
supports_anon_versioning=no
7906
case `$LD -v 2>/dev/null` in
7907
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7908
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7909
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7910
*\ 2.11.*) ;; # other 2.11 versions
7911
*) supports_anon_versioning=yes ;;
7914
# See if GNU ld supports shared libraries.
7916
aix3* | aix4* | aix5*)
7917
# On AIX/PPC, the GNU linker is very broken
7918
if test "$host_cpu" != ia64; then
7922
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7923
*** to be unable to reliably create shared libraries on AIX.
7924
*** Therefore, libtool is disabling shared libraries support. If you
7925
*** really care for shared libraries, you may want to modify your PATH
7926
*** so that a non-GNU linker is found, and then restart.
7933
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)'
7934
hardcode_libdir_flag_spec='-L$libdir'
7935
hardcode_minus_L=yes
7937
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7938
# that the semantics of dynamic libraries on AmigaOS, at least up
7939
# to version 4, is to share data among multiple programs linked
7940
# with the same dynamic library. Since this doesn't match the
7941
# behavior of shared libraries on other platforms, we can't use
7947
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7948
allow_undefined_flag=unsupported
7949
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7950
# support --undefined. This deserves some investigation. FIXME
7951
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957
cygwin* | mingw* | pw32*)
7958
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7959
# as there is no search path for DLLs.
7960
hardcode_libdir_flag_spec='-L$libdir'
7961
allow_undefined_flag=unsupported
7962
always_export_symbols=no
7963
enable_shared_with_static_runtimes=yes
7964
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7966
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7967
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7968
# If the export-symbols file already is a .def file (1st line
7969
# is EXPORTS), use it as is; otherwise, prepend...
7970
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7971
cp $export_symbols $output_objdir/$soname.def;
7973
echo EXPORTS > $output_objdir/$soname.def;
7974
cat $export_symbols >> $output_objdir/$soname.def;
7976
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7984
hardcode_shlibpath_var=no
7985
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7986
export_dynamic_flag_spec='${wl}-E'
7987
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7988
# Instead, shared libraries are loaded at an image base (0x10000000 by
7989
# default) and relocated if they conflict, which is a slow very memory
7990
# consuming and fragmenting process. To avoid this, we pick a random,
7991
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7992
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7993
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7994
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'
7998
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8000
case $cc_basename,$host_cpu in
8001
pgcc*) # Portland Group C compiler
8002
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'
8003
tmp_addflag=' $pic_flag'
8005
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8006
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'
8007
tmp_addflag=' $pic_flag -Mnomain' ;;
8008
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8009
tmp_addflag=' -i_dynamic' ;;
8010
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8011
tmp_addflag=' -i_dynamic -nofor_main' ;;
8012
ifc* | ifort*) # Intel Fortran compiler
8013
tmp_addflag=' -nofor_main' ;;
8015
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017
if test $supports_anon_versioning = yes; then
8018
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8019
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8020
$echo "local: *; };" >> $output_objdir/$libname.ver~
8021
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8029
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8030
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8033
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8039
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8043
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8044
*** create shared libraries on Solaris systems. Therefore, libtool
8045
*** is disabling shared libraries support. We urge you to upgrade GNU
8046
*** binutils to release 2.9.1 or newer. Another option is to modify
8047
*** your PATH or compiler configuration so that the native linker is
8048
*** used, and then restart.
8051
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8052
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8059
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8060
case `$LD -v 2>&1` in
8061
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8065
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8066
*** reliably create shared libraries on SCO systems. Therefore, libtool
8067
*** is disabling shared libraries support. We urge you to upgrade GNU
8068
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8069
*** your PATH or compiler configuration so that the native linker is
8070
*** used, and then restart.
8075
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8076
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8077
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8078
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8087
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090
hardcode_shlibpath_var=no
8094
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8095
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8103
if test "$ld_shlibs" = no; then
8105
hardcode_libdir_flag_spec=
8106
export_dynamic_flag_spec=
8107
whole_archive_flag_spec=
8110
# PORTME fill in a description of your system's linker (not GNU ld)
8113
allow_undefined_flag=unsupported
8114
always_export_symbols=yes
8115
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'
8116
# Note: this linker hardcodes the directories in LIBPATH if there
8117
# are no directories specified by -L.
8118
hardcode_minus_L=yes
8119
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8120
# Neither direct hardcoding nor static linking is supported with a
8122
hardcode_direct=unsupported
8127
if test "$host_cpu" = ia64; then
8128
# On IA64, the linker does run time linking by default, so we don't
8129
# have to do anything special.
8130
aix_use_runtimelinking=no
8131
exp_sym_flag='-Bexport'
8134
# If we're using GNU nm, then we don't want the "-C" option.
8135
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8136
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8137
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'
8139
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'
8141
aix_use_runtimelinking=no
8143
# Test if we are trying to use run time linking or normal
8144
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8145
# need to do runtime linking.
8146
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8147
for ld_flag in $LDFLAGS; do
8148
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8149
aix_use_runtimelinking=yes
8156
exp_sym_flag='-bexport'
8157
no_entry_flag='-bnoentry'
8160
# When large executables or shared objects are built, AIX ld can
8161
# have problems creating the table of contents. If linking a library
8162
# or program results in "error TOC overflow" add -mminimal-toc to
8163
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8164
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8168
hardcode_libdir_separator=':'
8169
link_all_deplibs=yes
8171
if test "$GCC" = yes; then
8172
case $host_os in aix4.[012]|aix4.[012].*)
8173
# We only want to do this on AIX 4.2 and lower, the check
8174
# below for broken collect2 doesn't work under 4.3+
8175
collect2name=`${CC} -print-prog-name=collect2`
8176
if test -f "$collect2name" && \
8177
strings "$collect2name" | grep resolve_lib_name >/dev/null
8179
# We have reworked collect2
8182
# We have old collect2
8183
hardcode_direct=unsupported
8184
# It fails to find uninstalled libraries when the uninstalled
8185
# path is not listed in the libpath. Setting hardcode_minus_L
8186
# to unsupported forces relinking
8187
hardcode_minus_L=yes
8188
hardcode_libdir_flag_spec='-L$libdir'
8189
hardcode_libdir_separator=
8193
shared_flag='-shared'
8194
if test "$aix_use_runtimelinking" = yes; then
8195
shared_flag="$shared_flag "'${wl}-G'
8199
if test "$host_cpu" = ia64; then
8200
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8201
# chokes on -Wl,-G. The following line is correct:
8204
if test "$aix_use_runtimelinking" = yes; then
8205
shared_flag='${wl}-G'
8207
shared_flag='${wl}-bM:SRE'
8212
# It seems that -bexpall does not export symbols beginning with
8213
# underscore (_), so it is better to generate a list of symbols to export.
8214
always_export_symbols=yes
8215
if test "$aix_use_runtimelinking" = yes; then
8216
# Warning - without using the other runtime loading flags (-brtl),
8217
# -berok will link without error, but may produce a broken library.
8218
allow_undefined_flag='-berok'
8219
# Determine the default libpath from the value encoded in an empty executable.
8220
cat >conftest.$ac_ext <<_ACEOF
8223
cat confdefs.h >>conftest.$ac_ext
8224
cat >>conftest.$ac_ext <<_ACEOF
8225
/* end confdefs.h. */
8235
rm -f conftest.$ac_objext conftest$ac_exeext
8236
if { (ac_try="$ac_link"
8238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239
*) ac_try_echo=$ac_try;;
8241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242
(eval "$ac_link") 2>conftest.er1
8244
grep -v '^ *+' conftest.er1 >conftest.err
8246
cat conftest.err >&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); } &&
8249
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8250
{ (case "(($ac_try" in
8251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252
*) ac_try_echo=$ac_try;;
8254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255
(eval "$ac_try") 2>&5
8257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
(exit $ac_status); }; } &&
8259
{ ac_try='test -s conftest$ac_exeext'
8260
{ (case "(($ac_try" in
8261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262
*) ac_try_echo=$ac_try;;
8264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265
(eval "$ac_try") 2>&5
8267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268
(exit $ac_status); }; }; then
8270
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8272
# Check for a 64-bit object if we didn't find anything.
8273
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; }
8276
echo "$as_me: failed program was:" >&5
8277
sed 's/^/| /' conftest.$ac_ext >&5
8282
rm -f core conftest.err conftest.$ac_objext \
8283
conftest$ac_exeext conftest.$ac_ext
8284
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8286
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8287
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"
8289
if test "$host_cpu" = ia64; then
8290
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8291
allow_undefined_flag="-z nodefs"
8292
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"
8294
# Determine the default libpath from the value encoded in an empty executable.
8295
cat >conftest.$ac_ext <<_ACEOF
8298
cat confdefs.h >>conftest.$ac_ext
8299
cat >>conftest.$ac_ext <<_ACEOF
8300
/* end confdefs.h. */
8310
rm -f conftest.$ac_objext conftest$ac_exeext
8311
if { (ac_try="$ac_link"
8313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314
*) ac_try_echo=$ac_try;;
8316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317
(eval "$ac_link") 2>conftest.er1
8319
grep -v '^ *+' conftest.er1 >conftest.err
8321
cat conftest.err >&5
8322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323
(exit $ac_status); } &&
8324
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325
{ (case "(($ac_try" in
8326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327
*) ac_try_echo=$ac_try;;
8329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330
(eval "$ac_try") 2>&5
8332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333
(exit $ac_status); }; } &&
8334
{ ac_try='test -s conftest$ac_exeext'
8335
{ (case "(($ac_try" in
8336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337
*) ac_try_echo=$ac_try;;
8339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340
(eval "$ac_try") 2>&5
8342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
(exit $ac_status); }; }; then
8345
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8347
# Check for a 64-bit object if we didn't find anything.
8348
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; }
8351
echo "$as_me: failed program was:" >&5
8352
sed 's/^/| /' conftest.$ac_ext >&5
8357
rm -f core conftest.err conftest.$ac_objext \
8358
conftest$ac_exeext conftest.$ac_ext
8359
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8361
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8362
# Warning - without using the other run time loading flags,
8363
# -berok will link without error, but may produce a broken library.
8364
no_undefined_flag=' ${wl}-bernotok'
8365
allow_undefined_flag=' ${wl}-berok'
8366
# Exported symbols can be pulled into shared objects from archives
8367
whole_archive_flag_spec='$convenience'
8368
archive_cmds_need_lc=yes
8369
# This is similar to how AIX traditionally builds its shared libraries.
8370
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'
8376
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)'
8377
hardcode_libdir_flag_spec='-L$libdir'
8378
hardcode_minus_L=yes
8379
# see comment about different semantics on the GNU ld section
8384
export_dynamic_flag_spec=-rdynamic
8387
cygwin* | mingw* | pw32*)
8388
# When not using gcc, we currently assume that we are using
8389
# Microsoft Visual C++.
8390
# hardcode_libdir_flag_spec is actually meaningless, as there is
8391
# no search path for DLLs.
8392
hardcode_libdir_flag_spec=' '
8393
allow_undefined_flag=unsupported
8394
# Tell ltmain to make .lib files, not .a files.
8396
# Tell ltmain to make .dll files, not .so files.
8398
# FIXME: Setting linknames here is a bad hack.
8399
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8400
# The linker will automatically build a .lib file if we build a DLL.
8401
old_archive_From_new_cmds='true'
8402
# FIXME: Should let the user specify the lib program.
8403
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8404
fix_srcfile_path='`cygpath -w "$srcfile"`'
8405
enable_shared_with_static_runtimes=yes
8408
darwin* | rhapsody*)
8410
rhapsody* | darwin1.[012])
8411
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8414
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8415
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8417
case ${MACOSX_DEPLOYMENT_TARGET} in
8419
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8422
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8428
archive_cmds_need_lc=no
8430
hardcode_automatic=yes
8431
hardcode_shlibpath_var=unsupported
8432
whole_archive_flag_spec=''
8433
link_all_deplibs=yes
8434
if test "$GCC" = yes ; then
8435
output_verbose_link_cmd='echo'
8436
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8437
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8438
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8439
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}'
8440
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}'
8442
case $cc_basename in
8444
output_verbose_link_cmd='echo'
8445
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8446
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8447
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8448
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}'
8449
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}'
8459
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460
hardcode_libdir_flag_spec='-L$libdir'
8461
hardcode_shlibpath_var=no
8468
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8469
# support. Future versions do this automatically, but an explicit c++rt0.o
8470
# does not break anything, and helps significantly (at the cost of a little
8473
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8474
hardcode_libdir_flag_spec='-R$libdir'
8476
hardcode_shlibpath_var=no
8479
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8481
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8483
hardcode_minus_L=yes
8484
hardcode_shlibpath_var=no
8487
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8488
freebsd* | kfreebsd*-gnu | dragonfly*)
8489
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8490
hardcode_libdir_flag_spec='-R$libdir'
8492
hardcode_shlibpath_var=no
8496
if test "$GCC" = yes; then
8497
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'
8499
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'
8501
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502
hardcode_libdir_separator=:
8505
# hardcode_minus_L: Not really in the search PATH,
8506
# but as the default location of the library.
8507
hardcode_minus_L=yes
8508
export_dynamic_flag_spec='${wl}-E'
8512
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8513
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8515
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8517
if test "$with_gnu_ld" = no; then
8518
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519
hardcode_libdir_separator=:
8522
export_dynamic_flag_spec='${wl}-E'
8524
# hardcode_minus_L: Not really in the search PATH,
8525
# but as the default location of the library.
8526
hardcode_minus_L=yes
8531
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8534
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8537
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8540
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8546
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8552
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556
if test "$with_gnu_ld" = no; then
8557
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558
hardcode_libdir_separator=:
8562
hardcode_libdir_flag_spec_ld='+b $libdir'
8564
hardcode_shlibpath_var=no
8568
export_dynamic_flag_spec='${wl}-E'
8570
# hardcode_minus_L: Not really in the search PATH,
8571
# but as the default location of the library.
8572
hardcode_minus_L=yes
8578
irix5* | irix6* | nonstopux*)
8579
if test "$GCC" = yes; then
8580
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'
8582
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'
8583
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8585
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586
hardcode_libdir_separator=:
8587
link_all_deplibs=yes
8591
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8592
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8594
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8596
hardcode_libdir_flag_spec='-R$libdir'
8598
hardcode_shlibpath_var=no
8602
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605
hardcode_libdir_separator=:
8606
hardcode_shlibpath_var=no
8611
hardcode_shlibpath_var=no
8612
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8614
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8615
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616
export_dynamic_flag_spec='${wl}-E'
8619
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8620
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621
hardcode_libdir_flag_spec='-R$libdir'
8624
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8625
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8632
hardcode_libdir_flag_spec='-L$libdir'
8633
hardcode_minus_L=yes
8634
allow_undefined_flag=unsupported
8635
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'
8636
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8640
if test "$GCC" = yes; then
8641
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8642
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'
8644
allow_undefined_flag=' -expect_unresolved \*'
8645
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'
8647
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648
hardcode_libdir_separator=:
8651
osf4* | osf5*) # as osf3* with the addition of -msym flag
8652
if test "$GCC" = yes; then
8653
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8654
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'
8655
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8657
allow_undefined_flag=' -expect_unresolved \*'
8658
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'
8659
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8660
$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'
8662
# Both c and cxx compiler support -rpath directly
8663
hardcode_libdir_flag_spec='-rpath $libdir'
8665
hardcode_libdir_separator=:
8669
no_undefined_flag=' -z text'
8670
if test "$GCC" = yes; then
8672
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8674
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8677
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8681
hardcode_libdir_flag_spec='-R$libdir'
8682
hardcode_shlibpath_var=no
8684
solaris2.[0-5] | solaris2.[0-5].*) ;;
8686
# The compiler driver will combine linker options so we
8687
# cannot just pass the convience library names through
8688
# without $wl, iff we do not link with $LD.
8689
# Luckily, gcc supports the same syntax we need for Sun Studio.
8690
# Supported since Solaris 2.6 (maybe 2.5.1?)
8693
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8695
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' ;;
8698
link_all_deplibs=yes
8702
if test "x$host_vendor" = xsequent; then
8703
# Use $CC to link under sequent, because it throws in some extra .o
8704
# files that make .init and .fini sections work.
8705
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8707
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8709
hardcode_libdir_flag_spec='-L$libdir'
8711
hardcode_minus_L=yes
8712
hardcode_shlibpath_var=no
8716
case $host_vendor in
8718
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719
hardcode_direct=yes # is this really true???
8722
## LD is ld it makes a PLAMLIB
8723
## CC just makes a GrossModule.
8724
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8725
reload_cmds='$CC -r -o $output$reload_objs'
8729
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8733
runpath_var='LD_RUN_PATH'
8734
hardcode_shlibpath_var=no
8738
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739
hardcode_shlibpath_var=no
8740
export_dynamic_flag_spec='-Bexport'
8744
if test -d /usr/nec; then
8745
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746
hardcode_shlibpath_var=no
8747
runpath_var=LD_RUN_PATH
8748
hardcode_runpath_var=yes
8753
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8754
no_undefined_flag='${wl}-z,text'
8755
archive_cmds_need_lc=no
8756
hardcode_shlibpath_var=no
8757
runpath_var='LD_RUN_PATH'
8759
if test "$GCC" = yes; then
8760
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8763
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8764
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8768
sysv5* | sco3.2v5* | sco5v6*)
8769
# Note: We can NOT use -z defs as we might desire, because we do not
8770
# link with -lc, and that would cause any symbols used from libc to
8771
# always be unresolved, which means just about no library would
8772
# ever link correctly. If we're not using GNU ld we use -z text
8773
# though, which does catch some bad symbols but isn't as heavy-handed
8775
no_undefined_flag='${wl}-z,text'
8776
allow_undefined_flag='${wl}-z,nodefs'
8777
archive_cmds_need_lc=no
8778
hardcode_shlibpath_var=no
8779
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8780
hardcode_libdir_separator=':'
8781
link_all_deplibs=yes
8782
export_dynamic_flag_spec='${wl}-Bexport'
8783
runpath_var='LD_RUN_PATH'
8785
if test "$GCC" = yes; then
8786
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796
hardcode_libdir_flag_spec='-L$libdir'
8797
hardcode_shlibpath_var=no
8806
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8807
echo "${ECHO_T}$ld_shlibs" >&6; }
8808
test "$ld_shlibs" = no && can_build_shared=no
8811
# Do we need to explicitly link libc?
8813
case "x$archive_cmds_need_lc" in
8815
# Assume -lc should be added
8816
archive_cmds_need_lc=yes
8818
if test "$enable_shared" = yes && test "$GCC" = yes; then
8819
case $archive_cmds in
8821
# FIXME: we may have to deal with multi-command sequences.
8824
# Test whether the compiler implicitly links with -lc since on some
8825
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8826
# to ld, don't add -lc before -lgcc.
8827
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8828
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8830
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833
(eval $ac_compile) 2>&5
8835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836
(exit $ac_status); } 2>conftest.err; then
8839
libobjs=conftest.$ac_objext
8841
wl=$lt_prog_compiler_wl
8842
pic_flag=$lt_prog_compiler_pic
8848
lt_save_allow_undefined_flag=$allow_undefined_flag
8849
allow_undefined_flag=
8850
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8851
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854
(exit $ac_status); }
8856
archive_cmds_need_lc=no
8858
archive_cmds_need_lc=yes
8860
allow_undefined_flag=$lt_save_allow_undefined_flag
8862
cat conftest.err 1>&5
8865
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8866
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8873
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8876
libname_spec='lib$name'
8884
shlibpath_overrides_runpath=unknown
8886
dynamic_linker="$host_os ld.so"
8887
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888
if test "$GCC" = yes; then
8889
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891
# if the path contains ";" then we assume it to be the separator
8892
# otherwise default to the standard path separator (i.e. ":") - it is
8893
# assumed that no part of a normal pathname contains ";" but that should
8894
# okay in the real world where ";" in dirpaths is itself problematic.
8895
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8902
need_lib_prefix=unknown
8903
hardcode_into_libs=no
8905
# when you set need_version to no, make sure it does not cause -set_version
8906
# flags to be left without arguments
8907
need_version=unknown
8912
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913
shlibpath_var=LIBPATH
8915
# AIX 3 has no versioning support, so we append a major version to the name.
8916
soname_spec='${libname}${release}${shared_ext}$major'
8923
hardcode_into_libs=yes
8924
if test "$host_cpu" = ia64; then
8925
# AIX 5 supports IA64
8926
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927
shlibpath_var=LD_LIBRARY_PATH
8929
# With GCC up to 2.95.x, collect2 would create an import file
8930
# for dependence libraries. The import file would start with
8931
# the line `#! .'. This would cause the generated library to
8932
# depend on `.', always an invalid library. This was fixed in
8933
# development snapshots of GCC prior to 3.0.
8935
aix4 | aix4.[01] | aix4.[01].*)
8936
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8938
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8945
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946
# soname into executable. Probably we can add versioning support to
8947
# collect2, so additional links can be useful in future.
8948
if test "$aix_use_runtimelinking" = yes; then
8949
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950
# instead of lib<name>.a to let people know that these are not
8951
# typical AIX shared libraries.
8952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954
# We preserve .a as extension for shared libraries through AIX4.2
8955
# and later when we are not doing run time linking.
8956
library_names_spec='${libname}${release}.a $libname.a'
8957
soname_spec='${libname}${release}${shared_ext}$major'
8959
shlibpath_var=LIBPATH
8964
library_names_spec='$libname.ixlibrary $libname.a'
8965
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8966
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'
8970
library_names_spec='${libname}${shared_ext}'
8971
dynamic_linker="$host_os ld.so"
8972
shlibpath_var=LIBRARY_PATH
8978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979
soname_spec='${libname}${release}${shared_ext}$major'
8980
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981
shlibpath_var=LD_LIBRARY_PATH
8982
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984
# the default ld.so.conf also contains /usr/contrib/lib and
8985
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986
# libtool to hard-code these into programs
8989
cygwin* | mingw* | pw32*)
8990
version_type=windows
8995
case $GCC,$host_os in
8996
yes,cygwin* | yes,mingw* | yes,pw32*)
8997
library_names_spec='$libname.dll.a'
8998
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8999
postinstall_cmds='base_file=`basename \${file}`~
9000
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001
dldir=$destdir/`dirname \$dlpath`~
9002
test -d \$dldir || mkdir -p \$dldir~
9003
$install_prog $dir/$dlname \$dldir/$dlname~
9004
chmod a+x \$dldir/$dlname'
9005
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006
dlpath=$dir/\$dldll~
9008
shlibpath_overrides_runpath=yes
9012
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017
# MinGW DLLs use traditional 'lib' prefix
9018
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021
# It is most probably a Windows format PATH printed by
9022
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9023
# path with ; separators, and with drive letters. We can handle the
9024
# drive letters (cygwin fileutils understands them), so leave them,
9025
# especially as we might pass files found there to a mingw objdump,
9026
# which wouldn't understand a cygwinified path. Ahh.
9027
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9033
# pw32 DLLs use 'pw' prefix rather than 'lib'
9034
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043
dynamic_linker='Win32 ld.exe'
9044
# FIXME: first we should search . and the directory the executable is in
9048
darwin* | rhapsody*)
9049
dynamic_linker="$host_os dyld"
9053
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054
soname_spec='${libname}${release}${major}$shared_ext'
9055
shlibpath_overrides_runpath=yes
9056
shlibpath_var=DYLD_LIBRARY_PATH
9057
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9058
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059
if test "$GCC" = yes; then
9060
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"`
9062
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9064
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072
soname_spec='${libname}${release}${shared_ext}$major'
9073
shlibpath_var=LD_LIBRARY_PATH
9084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085
soname_spec='${libname}${release}${shared_ext}$major'
9086
shlibpath_var=LD_LIBRARY_PATH
9087
shlibpath_overrides_runpath=no
9088
hardcode_into_libs=yes
9089
dynamic_linker='GNU ld.so'
9092
freebsd* | dragonfly*)
9093
# DragonFly does not have aout. When/if they implement a new
9094
# versioning mechanism, adjust this.
9095
if test -x /usr/bin/objformat; then
9096
objformat=`/usr/bin/objformat`
9099
freebsd[123]*) objformat=aout ;;
9103
version_type=freebsd-$objformat
9104
case $version_type in
9106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9111
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9115
shlibpath_var=LD_LIBRARY_PATH
9118
shlibpath_overrides_runpath=yes
9120
freebsd3.[01]* | freebsdelf3.[01]*)
9121
shlibpath_overrides_runpath=yes
9122
hardcode_into_libs=yes
9124
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9125
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9126
shlibpath_overrides_runpath=no
9127
hardcode_into_libs=yes
9129
freebsd*) # from 4.6 on
9130
shlibpath_overrides_runpath=yes
9131
hardcode_into_libs=yes
9140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9141
soname_spec='${libname}${release}${shared_ext}$major'
9142
shlibpath_var=LD_LIBRARY_PATH
9143
hardcode_into_libs=yes
9146
hpux9* | hpux10* | hpux11*)
9147
# Give a soname corresponding to the major version so that dld.sl refuses to
9148
# link against other versions.
9155
hardcode_into_libs=yes
9156
dynamic_linker="$host_os dld.so"
9157
shlibpath_var=LD_LIBRARY_PATH
9158
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160
soname_spec='${libname}${release}${shared_ext}$major'
9161
if test "X$HPUX_IA64_MODE" = X32; then
9162
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9164
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9166
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9170
hardcode_into_libs=yes
9171
dynamic_linker="$host_os dld.sl"
9172
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9173
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175
soname_spec='${libname}${release}${shared_ext}$major'
9176
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9177
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9181
dynamic_linker="$host_os dld.sl"
9182
shlibpath_var=SHLIB_PATH
9183
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185
soname_spec='${libname}${release}${shared_ext}$major'
9188
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9189
postinstall_cmds='chmod 555 $lib'
9196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197
soname_spec='${libname}${release}${shared_ext}$major'
9198
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9199
shlibpath_var=LD_LIBRARY_PATH
9200
shlibpath_overrides_runpath=no
9201
hardcode_into_libs=yes
9204
irix5* | irix6* | nonstopux*)
9206
nonstopux*) version_type=nonstopux ;;
9208
if test "$lt_cv_prog_gnu_ld" = yes; then
9216
soname_spec='${libname}${release}${shared_ext}$major'
9217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9219
irix5* | nonstopux*)
9223
case $LD in # libtool.m4 will add one of these switches to LD
9224
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225
libsuff= shlibsuff= libmagic=32-bit;;
9226
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227
libsuff=32 shlibsuff=N32 libmagic=N32;;
9228
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230
*) libsuff= shlibsuff= libmagic=never-match;;
9234
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235
shlibpath_overrides_runpath=no
9236
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238
hardcode_into_libs=yes
9241
# No shared lib support for Linux oldld, aout, or coff.
9242
linux*oldld* | linux*aout* | linux*coff*)
9246
# This must be Linux ELF.
9251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252
soname_spec='${libname}${release}${shared_ext}$major'
9253
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254
shlibpath_var=LD_LIBRARY_PATH
9255
shlibpath_overrides_runpath=no
9256
# This implies no fast_install, which is unacceptable.
9257
# Some rework will be needed to allow for fast_install
9258
# before this can be enabled.
9259
hardcode_into_libs=yes
9261
# Append ld.so.conf contents to the search path
9262
if test -f /etc/ld.so.conf; then
9263
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' ' '`
9264
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9267
# We used to test for /lib/ld.so.1 and disable shared libraries on
9268
# powerpc, because MkLinux only supported shared libraries with the
9269
# GNU dynamic linker. Since this was broken with cross compilers,
9270
# most powerpc-linux boxes support dynamic linking these days and
9271
# people can always --disable-shared, the test was removed, and we
9272
# assume the GNU/Linux dynamic linker is in use.
9273
dynamic_linker='GNU/Linux ld.so'
9280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281
soname_spec='${libname}${release}${shared_ext}$major'
9282
shlibpath_var=LD_LIBRARY_PATH
9283
shlibpath_overrides_runpath=no
9284
hardcode_into_libs=yes
9285
dynamic_linker='GNU ld.so'
9292
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295
dynamic_linker='NetBSD (a.out) ld.so'
9297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298
soname_spec='${libname}${release}${shared_ext}$major'
9299
dynamic_linker='NetBSD ld.elf_so'
9301
shlibpath_var=LD_LIBRARY_PATH
9302
shlibpath_overrides_runpath=yes
9303
hardcode_into_libs=yes
9308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309
shlibpath_var=LD_LIBRARY_PATH
9310
shlibpath_overrides_runpath=yes
9317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318
soname_spec='${libname}${release}${shared_ext}$major'
9319
shlibpath_var=LD_LIBRARY_PATH
9320
shlibpath_overrides_runpath=yes
9325
sys_lib_dlsearch_path_spec="/usr/lib"
9327
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9329
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9330
*) need_version=no ;;
9332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334
shlibpath_var=LD_LIBRARY_PATH
9335
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337
openbsd2.[89] | openbsd2.[89].*)
9338
shlibpath_overrides_runpath=no
9341
shlibpath_overrides_runpath=yes
9345
shlibpath_overrides_runpath=yes
9350
libname_spec='$name'
9353
library_names_spec='$libname${shared_ext} $libname.a'
9354
dynamic_linker='OS/2 ld.exe'
9355
shlibpath_var=LIBPATH
9358
osf3* | osf4* | osf5*)
9362
soname_spec='${libname}${release}${shared_ext}$major'
9363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364
shlibpath_var=LD_LIBRARY_PATH
9365
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9366
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374
soname_spec='${libname}${release}${shared_ext}$major'
9375
shlibpath_var=LD_LIBRARY_PATH
9376
shlibpath_overrides_runpath=yes
9377
hardcode_into_libs=yes
9378
# ldd complains unless libraries are executable
9379
postinstall_cmds='chmod +x $lib'
9384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9386
shlibpath_var=LD_LIBRARY_PATH
9387
shlibpath_overrides_runpath=yes
9388
if test "$with_gnu_ld" = yes; then
9396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397
soname_spec='${libname}${release}${shared_ext}$major'
9398
shlibpath_var=LD_LIBRARY_PATH
9399
case $host_vendor in
9401
shlibpath_overrides_runpath=no
9403
export_dynamic_flag_spec='${wl}-Blargedynsym'
9404
runpath_var=LD_RUN_PATH
9412
shlibpath_overrides_runpath=no
9413
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419
if test -d /usr/nec ;then
9421
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9422
soname_spec='$libname${shared_ext}.$major'
9423
shlibpath_var=LD_LIBRARY_PATH
9427
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9428
version_type=freebsd-elf
9431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432
soname_spec='${libname}${release}${shared_ext}$major'
9433
shlibpath_var=LD_LIBRARY_PATH
9434
hardcode_into_libs=yes
9435
if test "$with_gnu_ld" = yes; then
9436
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9437
shlibpath_overrides_runpath=no
9439
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9440
shlibpath_overrides_runpath=yes
9443
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9447
sys_lib_dlsearch_path_spec='/usr/lib'
9452
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453
soname_spec='${libname}${release}${shared_ext}$major'
9454
shlibpath_var=LD_LIBRARY_PATH
9461
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462
echo "${ECHO_T}$dynamic_linker" >&6; }
9463
test "$dynamic_linker" = no && can_build_shared=no
9465
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466
if test "$GCC" = yes; then
9467
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9471
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9473
if test -n "$hardcode_libdir_flag_spec" || \
9474
test -n "$runpath_var" || \
9475
test "X$hardcode_automatic" = "Xyes" ; then
9477
# We can hardcode non-existant directories.
9478
if test "$hardcode_direct" != no &&
9479
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9480
# have to relink, otherwise we might link with an installed library
9481
# when we should be linking with a yet-to-be-installed one
9482
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9483
test "$hardcode_minus_L" != no; then
9484
# Linking always hardcodes the temporary library directory.
9485
hardcode_action=relink
9487
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9488
hardcode_action=immediate
9491
# We cannot hardcode anything, or else we can only hardcode existing
9493
hardcode_action=unsupported
9495
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9496
echo "${ECHO_T}$hardcode_action" >&6; }
9498
if test "$hardcode_action" = relink; then
9499
# Fast installation is not supported
9500
enable_fast_install=no
9501
elif test "$shlibpath_overrides_runpath" = yes ||
9502
test "$enable_shared" = no; then
9503
# Fast installation is not necessary
9504
enable_fast_install=needless
9509
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9510
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9511
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9512
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9513
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9514
{ echo "$as_me:$LINENO: result: yes" >&5
9515
echo "${ECHO_T}yes" >&6; }
9517
# FIXME - insert some real tests, host_os isn't really good enough
9520
if test -n "$STRIP" ; then
9521
striplib="$STRIP -x"
9522
{ echo "$as_me:$LINENO: result: yes" >&5
9523
echo "${ECHO_T}yes" >&6; }
9525
{ echo "$as_me:$LINENO: result: no" >&5
9526
echo "${ECHO_T}no" >&6; }
9530
{ echo "$as_me:$LINENO: result: no" >&5
9531
echo "${ECHO_T}no" >&6; }
9536
if test "x$enable_dlopen" != xyes; then
9537
enable_dlopen=unknown
9538
enable_dlopen_self=unknown
9539
enable_dlopen_self_static=unknown
9546
lt_cv_dlopen="load_add_on"
9548
lt_cv_dlopen_self=yes
9552
lt_cv_dlopen="LoadLibrary"
9557
lt_cv_dlopen="dlopen"
9562
# if libdl is installed we need to link against it
9563
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9564
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9565
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9566
echo $ECHO_N "(cached) $ECHO_C" >&6
9568
ac_check_lib_save_LIBS=$LIBS
9570
cat >conftest.$ac_ext <<_ACEOF
9573
cat confdefs.h >>conftest.$ac_ext
9574
cat >>conftest.$ac_ext <<_ACEOF
9575
/* end confdefs.h. */
9577
/* Override any GCC internal prototype to avoid an error.
9578
Use char because int might match the return type of a GCC
9579
builtin and then its argument prototype would still apply. */
9592
rm -f conftest.$ac_objext conftest$ac_exeext
9593
if { (ac_try="$ac_link"
9595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596
*) ac_try_echo=$ac_try;;
9598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599
(eval "$ac_link") 2>conftest.er1
9601
grep -v '^ *+' conftest.er1 >conftest.err
9603
cat conftest.err >&5
9604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605
(exit $ac_status); } &&
9606
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607
{ (case "(($ac_try" in
9608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609
*) ac_try_echo=$ac_try;;
9611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612
(eval "$ac_try") 2>&5
9614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615
(exit $ac_status); }; } &&
9616
{ ac_try='test -s conftest$ac_exeext'
9617
{ (case "(($ac_try" in
9618
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619
*) ac_try_echo=$ac_try;;
9621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622
(eval "$ac_try") 2>&5
9624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625
(exit $ac_status); }; }; then
9626
ac_cv_lib_dl_dlopen=yes
9628
echo "$as_me: failed program was:" >&5
9629
sed 's/^/| /' conftest.$ac_ext >&5
9631
ac_cv_lib_dl_dlopen=no
9634
rm -f core conftest.err conftest.$ac_objext \
9635
conftest$ac_exeext conftest.$ac_ext
9636
LIBS=$ac_check_lib_save_LIBS
9638
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9639
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9640
if test $ac_cv_lib_dl_dlopen = yes; then
9641
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9646
lt_cv_dlopen_self=yes
9653
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9654
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9655
if test "${ac_cv_func_shl_load+set}" = set; then
9656
echo $ECHO_N "(cached) $ECHO_C" >&6
9658
cat >conftest.$ac_ext <<_ACEOF
9661
cat confdefs.h >>conftest.$ac_ext
9662
cat >>conftest.$ac_ext <<_ACEOF
9663
/* end confdefs.h. */
9664
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9665
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9666
#define shl_load innocuous_shl_load
9668
/* System header to define __stub macros and hopefully few prototypes,
9669
which can conflict with char shl_load (); below.
9670
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671
<limits.h> exists even on freestanding compilers. */
9674
# include <limits.h>
9676
# include <assert.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. */
9688
/* The GNU C library defines this for functions which it implements
9689
to always fail with ENOSYS. Some functions are actually named
9690
something starting with __ and the normal name is an alias. */
9691
#if defined __stub_shl_load || defined __stub___shl_load
9703
rm -f conftest.$ac_objext conftest$ac_exeext
9704
if { (ac_try="$ac_link"
9706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707
*) ac_try_echo=$ac_try;;
9709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710
(eval "$ac_link") 2>conftest.er1
9712
grep -v '^ *+' conftest.er1 >conftest.err
9714
cat conftest.err >&5
9715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716
(exit $ac_status); } &&
9717
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718
{ (case "(($ac_try" in
9719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720
*) ac_try_echo=$ac_try;;
9722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723
(eval "$ac_try") 2>&5
9725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726
(exit $ac_status); }; } &&
9727
{ ac_try='test -s conftest$ac_exeext'
9728
{ (case "(($ac_try" in
9729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730
*) ac_try_echo=$ac_try;;
9732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733
(eval "$ac_try") 2>&5
9735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736
(exit $ac_status); }; }; then
9737
ac_cv_func_shl_load=yes
9739
echo "$as_me: failed program was:" >&5
9740
sed 's/^/| /' conftest.$ac_ext >&5
9742
ac_cv_func_shl_load=no
9745
rm -f core conftest.err conftest.$ac_objext \
9746
conftest$ac_exeext conftest.$ac_ext
9748
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9749
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9750
if test $ac_cv_func_shl_load = yes; then
9751
lt_cv_dlopen="shl_load"
9753
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756
echo $ECHO_N "(cached) $ECHO_C" >&6
9758
ac_check_lib_save_LIBS=$LIBS
9760
cat >conftest.$ac_ext <<_ACEOF
9763
cat confdefs.h >>conftest.$ac_ext
9764
cat >>conftest.$ac_ext <<_ACEOF
9765
/* end confdefs.h. */
9767
/* Override any GCC internal prototype to avoid an error.
9768
Use char because int might match the return type of a GCC
9769
builtin and then its argument prototype would still apply. */
9782
rm -f conftest.$ac_objext conftest$ac_exeext
9783
if { (ac_try="$ac_link"
9785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786
*) ac_try_echo=$ac_try;;
9788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789
(eval "$ac_link") 2>conftest.er1
9791
grep -v '^ *+' conftest.er1 >conftest.err
9793
cat conftest.err >&5
9794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795
(exit $ac_status); } &&
9796
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797
{ (case "(($ac_try" in
9798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799
*) ac_try_echo=$ac_try;;
9801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802
(eval "$ac_try") 2>&5
9804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805
(exit $ac_status); }; } &&
9806
{ ac_try='test -s conftest$ac_exeext'
9807
{ (case "(($ac_try" in
9808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809
*) ac_try_echo=$ac_try;;
9811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812
(eval "$ac_try") 2>&5
9814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815
(exit $ac_status); }; }; then
9816
ac_cv_lib_dld_shl_load=yes
9818
echo "$as_me: failed program was:" >&5
9819
sed 's/^/| /' conftest.$ac_ext >&5
9821
ac_cv_lib_dld_shl_load=no
9824
rm -f core conftest.err conftest.$ac_objext \
9825
conftest$ac_exeext conftest.$ac_ext
9826
LIBS=$ac_check_lib_save_LIBS
9828
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830
if test $ac_cv_lib_dld_shl_load = yes; then
9831
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9833
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9834
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9835
if test "${ac_cv_func_dlopen+set}" = set; then
9836
echo $ECHO_N "(cached) $ECHO_C" >&6
9838
cat >conftest.$ac_ext <<_ACEOF
9841
cat confdefs.h >>conftest.$ac_ext
9842
cat >>conftest.$ac_ext <<_ACEOF
9843
/* end confdefs.h. */
9844
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9845
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846
#define dlopen innocuous_dlopen
9848
/* System header to define __stub macros and hopefully few prototypes,
9849
which can conflict with char dlopen (); below.
9850
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851
<limits.h> exists even on freestanding compilers. */
9854
# include <limits.h>
9856
# include <assert.h>
9861
/* Override any GCC internal prototype to avoid an error.
9862
Use char because int might match the return type of a GCC
9863
builtin and then its argument prototype would still apply. */
9868
/* The GNU C library defines this for functions which it implements
9869
to always fail with ENOSYS. Some functions are actually named
9870
something starting with __ and the normal name is an alias. */
9871
#if defined __stub_dlopen || defined __stub___dlopen
9883
rm -f conftest.$ac_objext conftest$ac_exeext
9884
if { (ac_try="$ac_link"
9886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887
*) ac_try_echo=$ac_try;;
9889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890
(eval "$ac_link") 2>conftest.er1
9892
grep -v '^ *+' conftest.er1 >conftest.err
9894
cat conftest.err >&5
9895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896
(exit $ac_status); } &&
9897
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898
{ (case "(($ac_try" in
9899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900
*) ac_try_echo=$ac_try;;
9902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903
(eval "$ac_try") 2>&5
9905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906
(exit $ac_status); }; } &&
9907
{ ac_try='test -s conftest$ac_exeext'
9908
{ (case "(($ac_try" in
9909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910
*) ac_try_echo=$ac_try;;
9912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913
(eval "$ac_try") 2>&5
9915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916
(exit $ac_status); }; }; then
9917
ac_cv_func_dlopen=yes
9919
echo "$as_me: failed program was:" >&5
9920
sed 's/^/| /' conftest.$ac_ext >&5
9922
ac_cv_func_dlopen=no
9925
rm -f core conftest.err conftest.$ac_objext \
9926
conftest$ac_exeext conftest.$ac_ext
9928
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9929
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9930
if test $ac_cv_func_dlopen = yes; then
9931
lt_cv_dlopen="dlopen"
9933
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9934
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9935
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9936
echo $ECHO_N "(cached) $ECHO_C" >&6
9938
ac_check_lib_save_LIBS=$LIBS
9940
cat >conftest.$ac_ext <<_ACEOF
9943
cat confdefs.h >>conftest.$ac_ext
9944
cat >>conftest.$ac_ext <<_ACEOF
9945
/* end confdefs.h. */
9947
/* Override any GCC internal prototype to avoid an error.
9948
Use char because int might match the return type of a GCC
9949
builtin and then its argument prototype would still apply. */
9962
rm -f conftest.$ac_objext conftest$ac_exeext
9963
if { (ac_try="$ac_link"
9965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966
*) ac_try_echo=$ac_try;;
9968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969
(eval "$ac_link") 2>conftest.er1
9971
grep -v '^ *+' conftest.er1 >conftest.err
9973
cat conftest.err >&5
9974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975
(exit $ac_status); } &&
9976
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977
{ (case "(($ac_try" in
9978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979
*) ac_try_echo=$ac_try;;
9981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982
(eval "$ac_try") 2>&5
9984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985
(exit $ac_status); }; } &&
9986
{ ac_try='test -s conftest$ac_exeext'
9987
{ (case "(($ac_try" in
9988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989
*) ac_try_echo=$ac_try;;
9991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992
(eval "$ac_try") 2>&5
9994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995
(exit $ac_status); }; }; then
9996
ac_cv_lib_dl_dlopen=yes
9998
echo "$as_me: failed program was:" >&5
9999
sed 's/^/| /' conftest.$ac_ext >&5
10001
ac_cv_lib_dl_dlopen=no
10004
rm -f core conftest.err conftest.$ac_objext \
10005
conftest$ac_exeext conftest.$ac_ext
10006
LIBS=$ac_check_lib_save_LIBS
10008
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10009
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10010
if test $ac_cv_lib_dl_dlopen = yes; then
10011
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10013
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016
echo $ECHO_N "(cached) $ECHO_C" >&6
10018
ac_check_lib_save_LIBS=$LIBS
10019
LIBS="-lsvld $LIBS"
10020
cat >conftest.$ac_ext <<_ACEOF
10023
cat confdefs.h >>conftest.$ac_ext
10024
cat >>conftest.$ac_ext <<_ACEOF
10025
/* end confdefs.h. */
10027
/* Override any GCC internal prototype to avoid an error.
10028
Use char because int might match the return type of a GCC
10029
builtin and then its argument prototype would still apply. */
10042
rm -f conftest.$ac_objext conftest$ac_exeext
10043
if { (ac_try="$ac_link"
10044
case "(($ac_try" in
10045
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046
*) ac_try_echo=$ac_try;;
10048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049
(eval "$ac_link") 2>conftest.er1
10051
grep -v '^ *+' conftest.er1 >conftest.err
10053
cat conftest.err >&5
10054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055
(exit $ac_status); } &&
10056
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057
{ (case "(($ac_try" in
10058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059
*) ac_try_echo=$ac_try;;
10061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062
(eval "$ac_try") 2>&5
10064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065
(exit $ac_status); }; } &&
10066
{ ac_try='test -s conftest$ac_exeext'
10067
{ (case "(($ac_try" in
10068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069
*) ac_try_echo=$ac_try;;
10071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072
(eval "$ac_try") 2>&5
10074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
(exit $ac_status); }; }; then
10076
ac_cv_lib_svld_dlopen=yes
10078
echo "$as_me: failed program was:" >&5
10079
sed 's/^/| /' conftest.$ac_ext >&5
10081
ac_cv_lib_svld_dlopen=no
10084
rm -f core conftest.err conftest.$ac_objext \
10085
conftest$ac_exeext conftest.$ac_ext
10086
LIBS=$ac_check_lib_save_LIBS
10088
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10089
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10090
if test $ac_cv_lib_svld_dlopen = yes; then
10091
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10093
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10094
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10095
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10096
echo $ECHO_N "(cached) $ECHO_C" >&6
10098
ac_check_lib_save_LIBS=$LIBS
10100
cat >conftest.$ac_ext <<_ACEOF
10103
cat confdefs.h >>conftest.$ac_ext
10104
cat >>conftest.$ac_ext <<_ACEOF
10105
/* end confdefs.h. */
10107
/* Override any GCC internal prototype to avoid an error.
10108
Use char because int might match the return type of a GCC
10109
builtin and then its argument prototype would still apply. */
10117
return dld_link ();
10122
rm -f conftest.$ac_objext conftest$ac_exeext
10123
if { (ac_try="$ac_link"
10124
case "(($ac_try" in
10125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126
*) ac_try_echo=$ac_try;;
10128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129
(eval "$ac_link") 2>conftest.er1
10131
grep -v '^ *+' conftest.er1 >conftest.err
10133
cat conftest.err >&5
10134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135
(exit $ac_status); } &&
10136
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10137
{ (case "(($ac_try" in
10138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139
*) ac_try_echo=$ac_try;;
10141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142
(eval "$ac_try") 2>&5
10144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145
(exit $ac_status); }; } &&
10146
{ ac_try='test -s conftest$ac_exeext'
10147
{ (case "(($ac_try" in
10148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149
*) ac_try_echo=$ac_try;;
10151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152
(eval "$ac_try") 2>&5
10154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155
(exit $ac_status); }; }; then
10156
ac_cv_lib_dld_dld_link=yes
10158
echo "$as_me: failed program was:" >&5
10159
sed 's/^/| /' conftest.$ac_ext >&5
10161
ac_cv_lib_dld_dld_link=no
10164
rm -f core conftest.err conftest.$ac_objext \
10165
conftest$ac_exeext conftest.$ac_ext
10166
LIBS=$ac_check_lib_save_LIBS
10168
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10169
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10170
if test $ac_cv_lib_dld_dld_link = yes; then
10171
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10192
if test "x$lt_cv_dlopen" != xno; then
10198
case $lt_cv_dlopen in
10200
save_CPPFLAGS="$CPPFLAGS"
10201
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10203
save_LDFLAGS="$LDFLAGS"
10204
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10207
LIBS="$lt_cv_dlopen_libs $LIBS"
10209
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10210
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10211
if test "${lt_cv_dlopen_self+set}" = set; then
10212
echo $ECHO_N "(cached) $ECHO_C" >&6
10214
if test "$cross_compiling" = yes; then :
10215
lt_cv_dlopen_self=cross
10217
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218
lt_status=$lt_dlunknown
10219
cat > conftest.$ac_ext <<EOF
10220
#line 10220 "configure"
10221
#include "confdefs.h"
10230
# define LT_DLGLOBAL RTLD_GLOBAL
10233
# define LT_DLGLOBAL DL_GLOBAL
10235
# define LT_DLGLOBAL 0
10239
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240
find out it does not work in some platform. */
10241
#ifndef LT_DLLAZY_OR_NOW
10243
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10246
# define LT_DLLAZY_OR_NOW DL_LAZY
10249
# define LT_DLLAZY_OR_NOW RTLD_NOW
10252
# define LT_DLLAZY_OR_NOW DL_NOW
10254
# define LT_DLLAZY_OR_NOW 0
10262
extern "C" void exit (int);
10265
void fnord() { int i=42;}
10268
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269
int status = $lt_dlunknown;
10273
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275
/* dlclose (self); */
10283
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284
(eval $ac_link) 2>&5
10286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10288
(./conftest; exit; ) >&5 2>/dev/null
10290
case x$lt_status in
10291
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10292
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10293
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10296
# compilation failed
10297
lt_cv_dlopen_self=no
10304
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10305
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10307
if test "x$lt_cv_dlopen_self" = xyes; then
10308
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10309
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10310
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10311
if test "${lt_cv_dlopen_self_static+set}" = set; then
10312
echo $ECHO_N "(cached) $ECHO_C" >&6
10314
if test "$cross_compiling" = yes; then :
10315
lt_cv_dlopen_self_static=cross
10317
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318
lt_status=$lt_dlunknown
10319
cat > conftest.$ac_ext <<EOF
10320
#line 10320 "configure"
10321
#include "confdefs.h"
10330
# define LT_DLGLOBAL RTLD_GLOBAL
10333
# define LT_DLGLOBAL DL_GLOBAL
10335
# define LT_DLGLOBAL 0
10339
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340
find out it does not work in some platform. */
10341
#ifndef LT_DLLAZY_OR_NOW
10343
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10346
# define LT_DLLAZY_OR_NOW DL_LAZY
10349
# define LT_DLLAZY_OR_NOW RTLD_NOW
10352
# define LT_DLLAZY_OR_NOW DL_NOW
10354
# define LT_DLLAZY_OR_NOW 0
10362
extern "C" void exit (int);
10365
void fnord() { int i=42;}
10368
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369
int status = $lt_dlunknown;
10373
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375
/* dlclose (self); */
10383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384
(eval $ac_link) 2>&5
10386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388
(./conftest; exit; ) >&5 2>/dev/null
10390
case x$lt_status in
10391
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10396
# compilation failed
10397
lt_cv_dlopen_self_static=no
10404
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10405
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10408
CPPFLAGS="$save_CPPFLAGS"
10409
LDFLAGS="$save_LDFLAGS"
10414
case $lt_cv_dlopen_self in
10415
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416
*) enable_dlopen_self=unknown ;;
10419
case $lt_cv_dlopen_self_static in
10420
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421
*) enable_dlopen_self_static=unknown ;;
10426
# Report which library types will actually be built
10427
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10428
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10429
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10430
echo "${ECHO_T}$can_build_shared" >&6; }
10432
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10433
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10434
test "$can_build_shared" = "no" && enable_shared=no
10436
# On AIX, shared libraries and static libraries use the same namespace, and
10437
# are all built from PIC.
10440
test "$enable_shared" = yes && enable_static=no
10441
if test -n "$RANLIB"; then
10442
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10443
postinstall_cmds='$RANLIB $lib'
10448
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10449
test "$enable_shared" = yes && enable_static=no
10453
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10454
echo "${ECHO_T}$enable_shared" >&6; }
10456
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10457
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10458
# Make sure either enable_shared or enable_static is yes.
10459
test "$enable_shared" = yes || enable_static=yes
10460
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10461
echo "${ECHO_T}$enable_static" >&6; }
10463
# The else clause should only fire when bootstrapping the
10464
# libtool distribution, otherwise you forgot to ship ltmain.sh
10465
# with your package, and you will get complaints that there are
10466
# no rules to generate ltmain.sh.
10467
if test -f "$ltmain"; then
10468
# See if we are running on zsh, and set the options which allow our commands through
10469
# without removal of \ escapes.
10470
if test -n "${ZSH_VERSION+set}" ; then
10471
setopt NO_GLOB_SUBST
10473
# Now quote all the things that may contain metacharacters while being
10474
# careful not to overquote the AC_SUBSTed values. We take copies of the
10475
# variables and quote the copies for generation of the libtool script.
10476
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10478
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10479
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10480
deplibs_check_method reload_flag reload_cmds need_locks \
10481
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10482
lt_cv_sys_global_symbol_to_c_name_address \
10483
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10484
old_postinstall_cmds old_postuninstall_cmds \
10488
lt_prog_compiler_wl \
10489
lt_prog_compiler_pic \
10490
lt_prog_compiler_static \
10491
lt_prog_compiler_no_builtin_flag \
10492
export_dynamic_flag_spec \
10493
thread_safe_flag_spec \
10494
whole_archive_flag_spec \
10495
enable_shared_with_static_runtimes \
10497
old_archive_from_new_cmds \
10502
compiler_lib_search_path \
10504
archive_expsym_cmds \
10506
postuninstall_cmds \
10507
old_archive_from_expsyms_cmds \
10508
allow_undefined_flag \
10509
no_undefined_flag \
10510
export_symbols_cmds \
10511
hardcode_libdir_flag_spec \
10512
hardcode_libdir_flag_spec_ld \
10513
hardcode_libdir_separator \
10514
hardcode_automatic \
10516
module_expsym_cmds \
10517
lt_cv_prog_compiler_c_o \
10519
include_expsyms; do
10522
old_archive_cmds | \
10523
old_archive_from_new_cmds | \
10525
archive_expsym_cmds | \
10527
module_expsym_cmds | \
10528
old_archive_from_expsyms_cmds | \
10529
export_symbols_cmds | \
10530
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10531
postinstall_cmds | postuninstall_cmds | \
10532
old_postinstall_cmds | old_postuninstall_cmds | \
10533
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10534
# Double-quote double-evaled strings.
10535
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10538
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10544
*'\$0 --fallback-echo"')
10545
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10549
cfgfile="${ofile}T"
10550
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10552
{ echo "$as_me:$LINENO: creating $ofile" >&5
10553
echo "$as_me: creating $ofile" >&6;}
10555
cat <<__EOF__ >> "$cfgfile"
10558
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10559
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10560
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10562
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10563
# Free Software Foundation, Inc.
10565
# This file is part of GNU Libtool:
10566
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10568
# This program is free software; you can redistribute it and/or modify
10569
# it under the terms of the GNU General Public License as published by
10570
# the Free Software Foundation; either version 2 of the License, or
10571
# (at your option) any later version.
10573
# This program is distributed in the hope that it will be useful, but
10574
# WITHOUT ANY WARRANTY; without even the implied warranty of
10575
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10576
# General Public License for more details.
10578
# You should have received a copy of the GNU General Public License
10579
# along with this program; if not, write to the Free Software
10580
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10582
# As a special exception to the GNU General Public License, if you
10583
# distribute this file as part of a program that contains a
10584
# configuration script generated by Autoconf, you may include it under
10585
# the same distribution terms that you use for the rest of that program.
10587
# A sed program that does not truncate output.
10590
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10591
Xsed="$SED -e 1s/^X//"
10593
# The HP-UX ksh and POSIX shell print the target directory to stdout
10594
# if CDPATH is set.
10595
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10597
# The names of the tagged configurations supported by this script.
10600
# ### BEGIN LIBTOOL CONFIG
10602
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10604
# Shell to use when invoking shell scripts.
10607
# Whether or not to build shared libraries.
10608
build_libtool_libs=$enable_shared
10610
# Whether or not to build static libraries.
10611
build_old_libs=$enable_static
10613
# Whether or not to add -lc for building shared libraries.
10614
build_libtool_need_lc=$archive_cmds_need_lc
10616
# Whether or not to disallow shared libs when runtime libs are static
10617
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10619
# Whether or not to optimize for fast installation.
10620
fast_install=$enable_fast_install
10623
host_alias=$host_alias
10627
# The build system.
10628
build_alias=$build_alias
10632
# An echo program that does not interpret backslashes.
10637
AR_FLAGS=$lt_AR_FLAGS
10642
# LTCC compiler flags.
10643
LTCFLAGS=$lt_LTCFLAGS
10645
# A language-specific compiler.
10648
# Is the compiler the GNU C compiler?
10654
# The linker used to build libraries.
10657
# Whether we need hard or soft links.
10660
# A BSD-compatible nm program.
10663
# A symbol stripping program
10666
# Used to examine libraries when file_magic_cmd begins "file"
10667
MAGIC_CMD=$MAGIC_CMD
10669
# Used on cygwin: DLL creation program.
10672
# Used on cygwin: object dumper.
10675
# Used on cygwin: assembler.
10678
# The name of the directory that contains temporary libtool files.
10681
# How to create reloadable object files.
10682
reload_flag=$lt_reload_flag
10683
reload_cmds=$lt_reload_cmds
10685
# How to pass a linker flag through the compiler.
10686
wl=$lt_lt_prog_compiler_wl
10688
# Object file suffix (normally "o").
10689
objext="$ac_objext"
10691
# Old archive suffix (normally "a").
10694
# Shared library suffix (normally ".so").
10695
shrext_cmds='$shrext_cmds'
10697
# Executable file suffix (normally "").
10700
# Additional compiler flags for building library objects.
10701
pic_flag=$lt_lt_prog_compiler_pic
10704
# What is the maximum length of a command?
10705
max_cmd_len=$lt_cv_sys_max_cmd_len
10707
# Does compiler simultaneously support -c and -o options?
10708
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10710
# Must we lock files when doing compilation?
10711
need_locks=$lt_need_locks
10713
# Do we need the lib prefix for modules?
10714
need_lib_prefix=$need_lib_prefix
10716
# Do we need a version for libraries?
10717
need_version=$need_version
10719
# Whether dlopen is supported.
10720
dlopen_support=$enable_dlopen
10722
# Whether dlopen of programs is supported.
10723
dlopen_self=$enable_dlopen_self
10725
# Whether dlopen of statically linked programs is supported.
10726
dlopen_self_static=$enable_dlopen_self_static
10728
# Compiler flag to prevent dynamic linking.
10729
link_static_flag=$lt_lt_prog_compiler_static
10731
# Compiler flag to turn off builtin functions.
10732
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10734
# Compiler flag to allow reflexive dlopens.
10735
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10737
# Compiler flag to generate shared objects directly from archives.
10738
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10740
# Compiler flag to generate thread-safe objects.
10741
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10743
# Library versioning type.
10744
version_type=$version_type
10746
# Format of library name prefix.
10747
libname_spec=$lt_libname_spec
10749
# List of archive names. First name is the real one, the rest are links.
10750
# The last name is the one that the linker finds with -lNAME.
10751
library_names_spec=$lt_library_names_spec
10753
# The coded name of the library, if different from the real name.
10754
soname_spec=$lt_soname_spec
10756
# Commands used to build and install an old-style archive.
10758
old_archive_cmds=$lt_old_archive_cmds
10759
old_postinstall_cmds=$lt_old_postinstall_cmds
10760
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10762
# Create an old-style archive from a shared archive.
10763
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10765
# Create a temporary old-style archive to link instead of a shared archive.
10766
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10768
# Commands used to build and install a shared archive.
10769
archive_cmds=$lt_archive_cmds
10770
archive_expsym_cmds=$lt_archive_expsym_cmds
10771
postinstall_cmds=$lt_postinstall_cmds
10772
postuninstall_cmds=$lt_postuninstall_cmds
10774
# Commands used to build a loadable module (assumed same as above if empty)
10775
module_cmds=$lt_module_cmds
10776
module_expsym_cmds=$lt_module_expsym_cmds
10778
# Commands to strip libraries.
10779
old_striplib=$lt_old_striplib
10780
striplib=$lt_striplib
10782
# Dependencies to place before the objects being linked to create a
10784
predep_objects=$lt_predep_objects
10786
# Dependencies to place after the objects being linked to create a
10788
postdep_objects=$lt_postdep_objects
10790
# Dependencies to place before the objects being linked to create a
10792
predeps=$lt_predeps
10794
# Dependencies to place after the objects being linked to create a
10796
postdeps=$lt_postdeps
10798
# The library search path used internally by the compiler when linking
10799
# a shared library.
10800
compiler_lib_search_path=$lt_compiler_lib_search_path
10802
# Method to check whether dependent libraries are shared objects.
10803
deplibs_check_method=$lt_deplibs_check_method
10805
# Command to use when deplibs_check_method == file_magic.
10806
file_magic_cmd=$lt_file_magic_cmd
10808
# Flag that allows shared libraries with undefined symbols to be built.
10809
allow_undefined_flag=$lt_allow_undefined_flag
10811
# Flag that forces no undefined symbols.
10812
no_undefined_flag=$lt_no_undefined_flag
10814
# Commands used to finish a libtool library installation in a directory.
10815
finish_cmds=$lt_finish_cmds
10817
# Same as above, but a single script fragment to be evaled but not shown.
10818
finish_eval=$lt_finish_eval
10820
# Take the output of nm and produce a listing of raw symbols and C names.
10821
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10823
# Transform the output of nm in a proper C declaration
10824
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10826
# Transform the output of nm in a C name address pair
10827
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10829
# This is the shared library runtime path variable.
10830
runpath_var=$runpath_var
10832
# This is the shared library path variable.
10833
shlibpath_var=$shlibpath_var
10835
# Is shlibpath searched before the hard-coded library search path?
10836
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10838
# How to hardcode a shared library path into an executable.
10839
hardcode_action=$hardcode_action
10841
# Whether we should hardcode library paths into libraries.
10842
hardcode_into_libs=$hardcode_into_libs
10844
# Flag to hardcode \$libdir into a binary during linking.
10845
# This must work even if \$libdir does not exist.
10846
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10848
# If ld is used when linking, flag to hardcode \$libdir into
10849
# a binary during linking. This must work even if \$libdir does
10851
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10853
# Whether we need a single -rpath flag with a separated argument.
10854
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10856
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10857
# resulting binary.
10858
hardcode_direct=$hardcode_direct
10860
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10861
# resulting binary.
10862
hardcode_minus_L=$hardcode_minus_L
10864
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10865
# the resulting binary.
10866
hardcode_shlibpath_var=$hardcode_shlibpath_var
10868
# Set to yes if building a shared library automatically hardcodes DIR into the library
10869
# and all subsequent libraries and executables linked against it.
10870
hardcode_automatic=$hardcode_automatic
10872
# Variables whose values should be saved in libtool wrapper scripts and
10873
# restored at relink time.
10874
variables_saved_for_relink="$variables_saved_for_relink"
10876
# Whether libtool must link a program against all its dependency libraries.
10877
link_all_deplibs=$link_all_deplibs
10879
# Compile-time system search path for libraries
10880
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10882
# Run-time system search path for libraries
10883
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10885
# Fix the shell variable \$srcfile for the compiler.
10886
fix_srcfile_path="$fix_srcfile_path"
10888
# Set to yes if exported symbols are required.
10889
always_export_symbols=$always_export_symbols
10891
# The commands to list exported symbols.
10892
export_symbols_cmds=$lt_export_symbols_cmds
10894
# The commands to extract the exported symbol list from a shared archive.
10895
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10897
# Symbols that should not be listed in the preloaded symbols.
10898
exclude_expsyms=$lt_exclude_expsyms
10900
# Symbols that must always be exported.
10901
include_expsyms=$lt_include_expsyms
10903
# ### END LIBTOOL CONFIG
10910
cat <<\EOF >> "$cfgfile"
10912
# AIX sometimes has problems with the GCC collect2 program. For some
10913
# reason, if we set the COLLECT_NAMES environment variable, the problems
10914
# vanish in a puff of smoke.
10915
if test "X${COLLECT_NAMES+set}" != Xset; then
10917
export COLLECT_NAMES
10923
# We use sed instead of cat because bash on DJGPP gets confused if
10924
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10925
# text mode, it properly converts lines to CR/LF. This bash problem
10926
# is reportedly fixed, but why not run on old versions too?
10927
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10929
mv -f "$cfgfile" "$ofile" || \
10930
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10934
# If there is no Makefile yet, we rely on a make rule to execute
10935
# `config.status --recheck' to rerun these tests and create the
10936
# libtool script then.
10937
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10938
if test -f "$ltmain_in"; then
10939
test -f Makefile && make "$ltmain"
10945
ac_cpp='$CPP $CPPFLAGS'
10946
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10947
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10948
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10953
# Check whether --with-tags was given.
10954
if test "${with_tags+set}" = set; then
10955
withval=$with_tags; tagnames="$withval"
10959
if test -f "$ltmain" && test -n "$tagnames"; then
10960
if test ! -f "${ofile}"; then
10961
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10962
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10965
if test -z "$LTCC"; then
10966
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10967
if test -z "$LTCC"; then
10968
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10969
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10971
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10972
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10975
if test -z "$LTCFLAGS"; then
10976
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10979
# Extract list of available tagged configurations in $ofile.
10980
# Note that this assumes the entire list is on one line.
10981
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10983
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10984
for tagname in $tagnames; do
10986
# Check whether tagname contains only valid characters
10987
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10989
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10990
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10991
{ (exit 1); exit 1; }; }
10995
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10997
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10998
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10999
{ (exit 1); exit 1; }; }
11002
# Update the list of available tags.
11003
if test -n "$tagname"; then
11004
echo appending configuration tag \"$tagname\" to $ofile
11008
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11009
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11010
(test "X$CXX" != "Xg++"))) ; then
11012
ac_cpp='$CXXCPP $CPPFLAGS'
11013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11020
archive_cmds_need_lc_CXX=no
11021
allow_undefined_flag_CXX=
11022
always_export_symbols_CXX=no
11023
archive_expsym_cmds_CXX=
11024
export_dynamic_flag_spec_CXX=
11025
hardcode_direct_CXX=no
11026
hardcode_libdir_flag_spec_CXX=
11027
hardcode_libdir_flag_spec_ld_CXX=
11028
hardcode_libdir_separator_CXX=
11029
hardcode_minus_L_CXX=no
11030
hardcode_shlibpath_var_CXX=unsupported
11031
hardcode_automatic_CXX=no
11033
module_expsym_cmds_CXX=
11034
link_all_deplibs_CXX=unknown
11035
old_archive_cmds_CXX=$old_archive_cmds
11036
no_undefined_flag_CXX=
11037
whole_archive_flag_spec_CXX=
11038
enable_shared_with_static_runtimes_CXX=no
11040
# Dependencies to place before and after the object being linked:
11041
predep_objects_CXX=
11042
postdep_objects_CXX=
11045
compiler_lib_search_path_CXX=
11047
# Source file extension for C++ test sources.
11050
# Object file extension for compiled C++ test sources.
11054
# Code to be used in simple compile tests
11055
lt_simple_compile_test_code="int some_variable = 0;\n"
11057
# Code to be used in simple link tests
11058
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11062
# If no C compiler was specified, use CC.
11065
# If no C compiler flags were specified, use CFLAGS.
11066
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11068
# Allow CC to be a program name with arguments.
11072
# save warnings/boilerplate of simple test code
11073
ac_outfile=conftest.$ac_objext
11074
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11075
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11076
_lt_compiler_boilerplate=`cat conftest.err`
11079
ac_outfile=conftest.$ac_objext
11080
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11081
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11082
_lt_linker_boilerplate=`cat conftest.err`
11086
# Allow CC to be a program name with arguments.
11091
lt_save_with_gnu_ld=$with_gnu_ld
11092
lt_save_path_LD=$lt_cv_path_LD
11093
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11094
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11096
$as_unset lt_cv_prog_gnu_ld
11098
if test -n "${lt_cv_path_LDCXX+set}"; then
11099
lt_cv_path_LD=$lt_cv_path_LDCXX
11101
$as_unset lt_cv_path_LD
11103
test -z "${LDCXX+set}" || LD=$LDCXX
11107
for cc_temp in $compiler""; do
11109
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11110
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11115
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11118
# We don't want -fno-exception wen compiling C++ code, so set the
11119
# no_builtin_flag separately
11120
if test "$GXX" = yes; then
11121
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11123
lt_prog_compiler_no_builtin_flag_CXX=
11126
if test "$GXX" = yes; then
11127
# Set up default GNU C++ configuration
11130
# Check whether --with-gnu-ld was given.
11131
if test "${with_gnu_ld+set}" = set; then
11132
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11138
if test "$GCC" = yes; then
11139
# Check if gcc -print-prog-name=ld gives a path.
11140
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11141
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11144
# gcc leaves a trailing carriage return which upsets mingw
11145
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11147
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11150
# Accept absolute paths.
11152
re_direlt='/[^/][^/]*/\.\./'
11153
# Canonicalize the pathname of ld
11154
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11155
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11156
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11158
test -z "$LD" && LD="$ac_prog"
11161
# If it fails, then pretend we aren't using GCC.
11165
# If it is relative, then search for the first ld in PATH.
11166
with_gnu_ld=unknown
11169
elif test "$with_gnu_ld" = yes; then
11170
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11171
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11173
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11174
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11176
if test "${lt_cv_path_LD+set}" = set; then
11177
echo $ECHO_N "(cached) $ECHO_C" >&6
11179
if test -z "$LD"; then
11180
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11181
for ac_dir in $PATH; do
11183
test -z "$ac_dir" && ac_dir=.
11184
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11185
lt_cv_path_LD="$ac_dir/$ac_prog"
11186
# Check to see if the program is GNU ld. I'd rather use --version,
11187
# but apparently some variants of GNU ld only accept -v.
11188
# Break only if it was the GNU/non-GNU ld that we prefer.
11189
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11190
*GNU* | *'with BFD'*)
11191
test "$with_gnu_ld" != no && break
11194
test "$with_gnu_ld" != yes && break
11201
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11205
LD="$lt_cv_path_LD"
11206
if test -n "$LD"; then
11207
{ echo "$as_me:$LINENO: result: $LD" >&5
11208
echo "${ECHO_T}$LD" >&6; }
11210
{ echo "$as_me:$LINENO: result: no" >&5
11211
echo "${ECHO_T}no" >&6; }
11213
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11214
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11215
{ (exit 1); exit 1; }; }
11216
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11217
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11218
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11219
echo $ECHO_N "(cached) $ECHO_C" >&6
11221
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11222
case `$LD -v 2>&1 </dev/null` in
11223
*GNU* | *'with BFD'*)
11224
lt_cv_prog_gnu_ld=yes
11227
lt_cv_prog_gnu_ld=no
11231
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11232
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11233
with_gnu_ld=$lt_cv_prog_gnu_ld
11237
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11238
# archiving commands below assume that GNU ld is being used.
11239
if test "$with_gnu_ld" = yes; then
11240
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11241
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'
11243
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11244
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11246
# If archive_cmds runs LD, not CC, wlarc should be empty
11247
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11248
# investigate it a little bit more. (MM)
11251
# ancient GNU ld didn't support --whole-archive et. al.
11252
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11253
grep 'no-whole-archive' > /dev/null; then
11254
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11256
whole_archive_flag_spec_CXX=
11262
# A generic and very simple default shared library creation
11263
# command for GNU C++ for the case where it uses the native
11264
# linker, instead of GNU ld. If possible, this setting should
11265
# overridden to take advantage of the native linker features on
11266
# the platform it is being used on.
11267
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11270
# Commands to make compiler produce verbose output that lists
11271
# what "hidden" libraries, object files and flags are used when
11272
# linking a shared library.
11273
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11281
# PORTME: fill in a description of your system's C++ link characteristics
11282
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11283
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11287
# FIXME: insert proper C++ library support
11291
if test "$host_cpu" = ia64; then
11292
# On IA64, the linker does run time linking by default, so we don't
11293
# have to do anything special.
11294
aix_use_runtimelinking=no
11295
exp_sym_flag='-Bexport'
11298
aix_use_runtimelinking=no
11300
# Test if we are trying to use run time linking or normal
11301
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11302
# need to do runtime linking.
11303
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11304
for ld_flag in $LDFLAGS; do
11307
aix_use_runtimelinking=yes
11315
exp_sym_flag='-bexport'
11316
no_entry_flag='-bnoentry'
11319
# When large executables or shared objects are built, AIX ld can
11320
# have problems creating the table of contents. If linking a library
11321
# or program results in "error TOC overflow" add -mminimal-toc to
11322
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11323
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11325
archive_cmds_CXX=''
11326
hardcode_direct_CXX=yes
11327
hardcode_libdir_separator_CXX=':'
11328
link_all_deplibs_CXX=yes
11330
if test "$GXX" = yes; then
11331
case $host_os in aix4.[012]|aix4.[012].*)
11332
# We only want to do this on AIX 4.2 and lower, the check
11333
# below for broken collect2 doesn't work under 4.3+
11334
collect2name=`${CC} -print-prog-name=collect2`
11335
if test -f "$collect2name" && \
11336
strings "$collect2name" | grep resolve_lib_name >/dev/null
11338
# We have reworked collect2
11339
hardcode_direct_CXX=yes
11341
# We have old collect2
11342
hardcode_direct_CXX=unsupported
11343
# It fails to find uninstalled libraries when the uninstalled
11344
# path is not listed in the libpath. Setting hardcode_minus_L
11345
# to unsupported forces relinking
11346
hardcode_minus_L_CXX=yes
11347
hardcode_libdir_flag_spec_CXX='-L$libdir'
11348
hardcode_libdir_separator_CXX=
11352
shared_flag='-shared'
11353
if test "$aix_use_runtimelinking" = yes; then
11354
shared_flag="$shared_flag "'${wl}-G'
11358
if test "$host_cpu" = ia64; then
11359
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11360
# chokes on -Wl,-G. The following line is correct:
11363
if test "$aix_use_runtimelinking" = yes; then
11364
shared_flag='${wl}-G'
11366
shared_flag='${wl}-bM:SRE'
11371
# It seems that -bexpall does not export symbols beginning with
11372
# underscore (_), so it is better to generate a list of symbols to export.
11373
always_export_symbols_CXX=yes
11374
if test "$aix_use_runtimelinking" = yes; then
11375
# Warning - without using the other runtime loading flags (-brtl),
11376
# -berok will link without error, but may produce a broken library.
11377
allow_undefined_flag_CXX='-berok'
11378
# Determine the default libpath from the value encoded in an empty executable.
11379
cat >conftest.$ac_ext <<_ACEOF
11382
cat confdefs.h >>conftest.$ac_ext
11383
cat >>conftest.$ac_ext <<_ACEOF
11384
/* end confdefs.h. */
11394
rm -f conftest.$ac_objext conftest$ac_exeext
11395
if { (ac_try="$ac_link"
11396
case "(($ac_try" in
11397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398
*) ac_try_echo=$ac_try;;
11400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401
(eval "$ac_link") 2>conftest.er1
11403
grep -v '^ *+' conftest.er1 >conftest.err
11405
cat conftest.err >&5
11406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407
(exit $ac_status); } &&
11408
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11409
{ (case "(($ac_try" in
11410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411
*) ac_try_echo=$ac_try;;
11413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414
(eval "$ac_try") 2>&5
11416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417
(exit $ac_status); }; } &&
11418
{ ac_try='test -s conftest$ac_exeext'
11419
{ (case "(($ac_try" in
11420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421
*) ac_try_echo=$ac_try;;
11423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424
(eval "$ac_try") 2>&5
11426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427
(exit $ac_status); }; }; then
11429
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11431
# Check for a 64-bit object if we didn't find anything.
11432
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; }
11435
echo "$as_me: failed program was:" >&5
11436
sed 's/^/| /' conftest.$ac_ext >&5
11441
rm -f core conftest.err conftest.$ac_objext \
11442
conftest$ac_exeext conftest.$ac_ext
11443
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11445
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11447
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"
11449
if test "$host_cpu" = ia64; then
11450
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11451
allow_undefined_flag_CXX="-z nodefs"
11452
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"
11454
# Determine the default libpath from the value encoded in an empty executable.
11455
cat >conftest.$ac_ext <<_ACEOF
11458
cat confdefs.h >>conftest.$ac_ext
11459
cat >>conftest.$ac_ext <<_ACEOF
11460
/* end confdefs.h. */
11470
rm -f conftest.$ac_objext conftest$ac_exeext
11471
if { (ac_try="$ac_link"
11472
case "(($ac_try" in
11473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474
*) ac_try_echo=$ac_try;;
11476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477
(eval "$ac_link") 2>conftest.er1
11479
grep -v '^ *+' conftest.er1 >conftest.err
11481
cat conftest.err >&5
11482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483
(exit $ac_status); } &&
11484
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11485
{ (case "(($ac_try" in
11486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487
*) ac_try_echo=$ac_try;;
11489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490
(eval "$ac_try") 2>&5
11492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
(exit $ac_status); }; } &&
11494
{ ac_try='test -s conftest$ac_exeext'
11495
{ (case "(($ac_try" in
11496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497
*) ac_try_echo=$ac_try;;
11499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500
(eval "$ac_try") 2>&5
11502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503
(exit $ac_status); }; }; then
11505
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11507
# Check for a 64-bit object if we didn't find anything.
11508
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; }
11511
echo "$as_me: failed program was:" >&5
11512
sed 's/^/| /' conftest.$ac_ext >&5
11517
rm -f core conftest.err conftest.$ac_objext \
11518
conftest$ac_exeext conftest.$ac_ext
11519
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11521
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11522
# Warning - without using the other run time loading flags,
11523
# -berok will link without error, but may produce a broken library.
11524
no_undefined_flag_CXX=' ${wl}-bernotok'
11525
allow_undefined_flag_CXX=' ${wl}-berok'
11526
# Exported symbols can be pulled into shared objects from archives
11527
whole_archive_flag_spec_CXX='$convenience'
11528
archive_cmds_need_lc_CXX=yes
11529
# This is similar to how AIX traditionally builds its shared libraries.
11530
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'
11536
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11537
allow_undefined_flag_CXX=unsupported
11538
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11539
# support --undefined. This deserves some investigation. FIXME
11540
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11547
case $cc_basename in
11549
# FIXME: insert proper C++ library support
11555
cygwin* | mingw* | pw32*)
11556
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11557
# as there is no search path for DLLs.
11558
hardcode_libdir_flag_spec_CXX='-L$libdir'
11559
allow_undefined_flag_CXX=unsupported
11560
always_export_symbols_CXX=no
11561
enable_shared_with_static_runtimes_CXX=yes
11563
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11564
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'
11565
# If the export-symbols file already is a .def file (1st line
11566
# is EXPORTS), use it as is; otherwise, prepend...
11567
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11568
cp $export_symbols $output_objdir/$soname.def;
11570
echo EXPORTS > $output_objdir/$soname.def;
11571
cat $export_symbols >> $output_objdir/$soname.def;
11573
$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'
11578
darwin* | rhapsody*)
11580
rhapsody* | darwin1.[012])
11581
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11584
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11585
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11587
case ${MACOSX_DEPLOYMENT_TARGET} in
11589
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11592
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11598
archive_cmds_need_lc_CXX=no
11599
hardcode_direct_CXX=no
11600
hardcode_automatic_CXX=yes
11601
hardcode_shlibpath_var_CXX=unsupported
11602
whole_archive_flag_spec_CXX=''
11603
link_all_deplibs_CXX=yes
11605
if test "$GXX" = yes ; then
11606
lt_int_apple_cc_single_mod=no
11607
output_verbose_link_cmd='echo'
11608
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11609
lt_int_apple_cc_single_mod=yes
11611
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11612
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11614
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'
11616
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11617
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11618
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11619
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}'
11621
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}'
11623
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}'
11625
case $cc_basename in
11627
output_verbose_link_cmd='echo'
11628
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'
11629
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11630
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11631
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}'
11632
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}'
11642
case $cc_basename in
11644
# FIXME: insert proper C++ library support
11648
# Green Hills C++ Compiler
11649
# FIXME: insert proper C++ library support
11653
# FIXME: insert proper C++ library support
11659
# C++ shared libraries reported to be fairly broken before switch to ELF
11663
archive_cmds_need_lc_CXX=no
11665
freebsd* | kfreebsd*-gnu | dragonfly*)
11666
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11673
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11674
hardcode_libdir_separator_CXX=:
11675
export_dynamic_flag_spec_CXX='${wl}-E'
11676
hardcode_direct_CXX=yes
11677
hardcode_minus_L_CXX=yes # Not in the search PATH,
11678
# but as the default
11679
# location of the library.
11681
case $cc_basename in
11683
# FIXME: insert proper C++ library support
11687
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'
11688
# Commands to make compiler produce verbose output that lists
11689
# what "hidden" libraries, object files and flags are used when
11690
# linking a shared library.
11692
# There doesn't appear to be a way to prevent this compiler from
11693
# explicitly linking system object files so we need to strip them
11694
# from the output so that they don't get included in the library
11696
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'
11699
if test "$GXX" = yes; then
11700
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'
11702
# FIXME: insert proper C++ library support
11709
if test $with_gnu_ld = no; then
11710
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11711
hardcode_libdir_separator_CXX=:
11715
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11718
export_dynamic_flag_spec_CXX='${wl}-E'
11724
hardcode_direct_CXX=no
11725
hardcode_shlibpath_var_CXX=no
11728
hardcode_direct_CXX=yes
11729
hardcode_minus_L_CXX=yes # Not in the search PATH,
11730
# but as the default
11731
# location of the library.
11735
case $cc_basename in
11737
# FIXME: insert proper C++ library support
11743
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11746
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11749
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11752
# Commands to make compiler produce verbose output that lists
11753
# what "hidden" libraries, object files and flags are used when
11754
# linking a shared library.
11756
# There doesn't appear to be a way to prevent this compiler from
11757
# explicitly linking system object files so we need to strip them
11758
# from the output so that they don't get included in the library
11760
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'
11763
if test "$GXX" = yes; then
11764
if test $with_gnu_ld = no; then
11767
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11770
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11773
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'
11778
# FIXME: insert proper C++ library support
11785
hardcode_direct_CXX=no
11786
hardcode_shlibpath_var_CXX=no
11787
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788
export_dynamic_flag_spec_CXX='${wl}-E'
11789
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11790
# Instead, shared libraries are loaded at an image base (0x10000000 by
11791
# default) and relocated if they conflict, which is a slow very memory
11792
# consuming and fragmenting process. To avoid this, we pick a random,
11793
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11794
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11795
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'
11796
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'
11799
case $cc_basename in
11802
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'
11804
# Archives containing C++ object files must be created using
11805
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11806
# necessary to make sure instantiated templates are included
11808
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11811
if test "$GXX" = yes; then
11812
if test "$with_gnu_ld" = no; then
11813
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'
11815
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'
11818
link_all_deplibs_CXX=yes
11821
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11822
hardcode_libdir_separator_CXX=:
11825
case $cc_basename in
11827
# Kuck and Associates, Inc. (KAI) C++ Compiler
11829
# KCC will only create a shared library if the output file
11830
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11831
# to its proper name (with version) after linking.
11832
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'
11833
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'
11834
# Commands to make compiler produce verbose output that lists
11835
# what "hidden" libraries, object files and flags are used when
11836
# linking a shared library.
11838
# There doesn't appear to be a way to prevent this compiler from
11839
# explicitly linking system object files so we need to strip them
11840
# from the output so that they don't get included in the library
11842
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'
11844
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11845
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11847
# Archives containing C++ object files must be created using
11848
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11849
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11854
# version 8.0 and above of icpc choke on multiply defined symbols
11855
# if we add $predep_objects and $postdep_objects, however 7.1 and
11856
# earlier do not add the objects themselves.
11857
case `$CC -V 2>&1` in
11859
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11860
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'
11862
*) # Version 8.0 or newer
11865
ia64*) tmp_idyn=' -i_dynamic';;
11867
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11868
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'
11871
archive_cmds_need_lc_CXX=no
11872
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11873
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11874
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11877
# Portland Group C++ compiler
11878
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11879
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'
11881
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11882
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11883
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'
11887
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11888
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'
11890
runpath_var=LD_RUN_PATH
11891
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11892
hardcode_libdir_separator_CXX=:
11894
# Commands to make compiler produce verbose output that lists
11895
# what "hidden" libraries, object files and flags are used when
11896
# linking a shared library.
11898
# There doesn't appear to be a way to prevent this compiler from
11899
# explicitly linking system object files so we need to strip them
11900
# from the output so that they don't get included in the library
11902
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'
11907
# FIXME: insert proper C++ library support
11911
# FIXME: insert proper C++ library support
11915
case $cc_basename in
11917
# FIXME: insert proper C++ library support
11921
# FIXME: insert proper C++ library support
11927
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11928
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11930
hardcode_libdir_flag_spec_CXX='-R$libdir'
11931
hardcode_direct_CXX=yes
11932
hardcode_shlibpath_var_CXX=no
11934
# Workaround some broken pre-1.5 toolchains
11935
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11938
# C++ shared libraries are fairly broken
11942
hardcode_direct_CXX=yes
11943
hardcode_shlibpath_var_CXX=no
11944
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11945
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11946
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11947
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11948
export_dynamic_flag_spec_CXX='${wl}-E'
11949
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11951
output_verbose_link_cmd='echo'
11954
case $cc_basename in
11956
# Kuck and Associates, Inc. (KAI) C++ Compiler
11958
# KCC will only create a shared library if the output file
11959
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11960
# to its proper name (with version) after linking.
11961
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'
11963
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964
hardcode_libdir_separator_CXX=:
11966
# Archives containing C++ object files must be created using
11967
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11968
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11972
# Rational C++ 2.4.1
11973
# FIXME: insert proper C++ library support
11977
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11978
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'
11980
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11981
hardcode_libdir_separator_CXX=:
11983
# Commands to make compiler produce verbose output that lists
11984
# what "hidden" libraries, object files and flags are used when
11985
# linking a shared library.
11987
# There doesn't appear to be a way to prevent this compiler from
11988
# explicitly linking system object files so we need to strip them
11989
# from the output so that they don't get included in the library
11991
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'
11994
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11995
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11996
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'
11998
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11999
hardcode_libdir_separator_CXX=:
12001
# Commands to make compiler produce verbose output that lists
12002
# what "hidden" libraries, object files and flags are used when
12003
# linking a shared library.
12004
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12007
# FIXME: insert proper C++ library support
12014
case $cc_basename in
12016
# Kuck and Associates, Inc. (KAI) C++ Compiler
12018
# KCC will only create a shared library if the output file
12019
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12020
# to its proper name (with version) after linking.
12021
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'
12023
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12024
hardcode_libdir_separator_CXX=:
12026
# Archives containing C++ object files must be created using
12027
# the KAI C++ compiler.
12028
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12031
# Rational C++ 2.4.1
12032
# FIXME: insert proper C++ library support
12036
allow_undefined_flag_CXX=' -expect_unresolved \*'
12037
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'
12038
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12039
echo "-hidden">> $lib.exp~
12040
$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~
12043
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12044
hardcode_libdir_separator_CXX=:
12046
# Commands to make compiler produce verbose output that lists
12047
# what "hidden" libraries, object files and flags are used when
12048
# linking a shared library.
12050
# There doesn't appear to be a way to prevent this compiler from
12051
# explicitly linking system object files so we need to strip them
12052
# from the output so that they don't get included in the library
12054
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'
12057
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12058
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12059
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'
12061
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12062
hardcode_libdir_separator_CXX=:
12064
# Commands to make compiler produce verbose output that lists
12065
# what "hidden" libraries, object files and flags are used when
12066
# linking a shared library.
12067
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12070
# FIXME: insert proper C++ library support
12077
# FIXME: insert proper C++ library support
12081
case $cc_basename in
12084
# FIXME: insert proper C++ library support
12089
# FIXME: insert proper C++ library support
12093
# FIXME: insert proper C++ library support
12099
case $cc_basename in
12101
# Sun C++ 4.2, 5.x and Centerline C++
12102
archive_cmds_need_lc_CXX=yes
12103
no_undefined_flag_CXX=' -zdefs'
12104
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12105
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12106
$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'
12108
hardcode_libdir_flag_spec_CXX='-R$libdir'
12109
hardcode_shlibpath_var_CXX=no
12111
solaris2.[0-5] | solaris2.[0-5].*) ;;
12113
# The C++ compiler is used as linker so we must use $wl
12114
# flag to pass the commands to the underlying system
12115
# linker. We must also pass each convience library through
12116
# to the system linker between allextract/defaultextract.
12117
# The C++ compiler will combine linker options so we
12118
# cannot just pass the convience library names through
12120
# Supported since Solaris 2.6 (maybe 2.5.1?)
12121
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'
12124
link_all_deplibs_CXX=yes
12126
output_verbose_link_cmd='echo'
12128
# Archives containing C++ object files must be created using
12129
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12130
# necessary to make sure instantiated templates are included
12132
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12135
# Green Hills C++ Compiler
12136
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12138
# The C++ compiler must be used to create the archive.
12139
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12142
# GNU C++ compiler with Solaris linker
12143
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12144
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12145
if $CC --version | grep -v '^2\.7' > /dev/null; then
12146
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12147
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12148
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12150
# Commands to make compiler produce verbose output that lists
12151
# what "hidden" libraries, object files and flags are used when
12152
# linking a shared library.
12153
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12155
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12157
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12158
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12159
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12161
# Commands to make compiler produce verbose output that lists
12162
# what "hidden" libraries, object files and flags are used when
12163
# linking a shared library.
12164
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12167
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12172
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12173
no_undefined_flag_CXX='${wl}-z,text'
12174
archive_cmds_need_lc_CXX=no
12175
hardcode_shlibpath_var_CXX=no
12176
runpath_var='LD_RUN_PATH'
12178
case $cc_basename in
12180
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189
sysv5* | sco3.2v5* | sco5v6*)
12190
# Note: We can NOT use -z defs as we might desire, because we do not
12191
# link with -lc, and that would cause any symbols used from libc to
12192
# always be unresolved, which means just about no library would
12193
# ever link correctly. If we're not using GNU ld we use -z text
12194
# though, which does catch some bad symbols but isn't as heavy-handed
12196
# For security reasons, it is highly recommended that you always
12197
# use absolute paths for naming shared libraries, and exclude the
12198
# DT_RUNPATH tag from executables and libraries. But doing so
12199
# requires that you compile everything twice, which is a pain.
12200
# So that behaviour is only enabled if SCOABSPATH is set to a
12201
# non-empty value in the environment. Most likely only useful for
12202
# creating official distributions of packages.
12203
# This is a hack until libtool officially supports absolute path
12204
# names for shared libraries.
12205
no_undefined_flag_CXX='${wl}-z,text'
12206
allow_undefined_flag_CXX='${wl}-z,nodefs'
12207
archive_cmds_need_lc_CXX=no
12208
hardcode_shlibpath_var_CXX=no
12209
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12210
hardcode_libdir_separator_CXX=':'
12211
link_all_deplibs_CXX=yes
12212
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12213
runpath_var='LD_RUN_PATH'
12215
case $cc_basename in
12217
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12221
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12227
case $cc_basename in
12229
# NonStop-UX NCC 3.20
12230
# FIXME: insert proper C++ library support
12234
# FIXME: insert proper C++ library support
12240
# FIXME: insert proper C++ library support
12244
# FIXME: insert proper C++ library support
12248
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12249
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12250
test "$ld_shlibs_CXX" = no && can_build_shared=no
12256
cat > conftest.$ac_ext <<EOF
12260
Foo (void) { a = 0; }
12266
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267
(eval $ac_compile) 2>&5
12269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270
(exit $ac_status); }; then
12271
# Parse the compiler output and extract the necessary
12272
# objects, libraries and library flags.
12274
# Sentinel used to keep track of whether or not we are before
12275
# the conftest object file.
12276
pre_test_object_deps_done=no
12278
# The `*' in the case matches for architectures that use `case' in
12279
# $output_verbose_cmd can trigger glob expansion during the loop
12280
# eval without this substitution.
12281
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12283
for p in `eval $output_verbose_link_cmd`; do
12287
# Some compilers place space between "-{L,R}" and the path.
12288
# Remove the space.
12289
if test $p = "-L" \
12290
|| test $p = "-R"; then
12297
if test "$pre_test_object_deps_done" = no; then
12300
# Internal compiler library paths should come after those
12301
# provided the user. The postdeps already come after the
12302
# user supplied libs so there is no need to process them.
12303
if test -z "$compiler_lib_search_path_CXX"; then
12304
compiler_lib_search_path_CXX="${prev}${p}"
12306
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12309
# The "-l" case would never come before the object being
12310
# linked, so don't bother handling this case.
12313
if test -z "$postdeps_CXX"; then
12314
postdeps_CXX="${prev}${p}"
12316
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12322
# This assumes that the test object file only shows up
12323
# once in the compiler output.
12324
if test "$p" = "conftest.$objext"; then
12325
pre_test_object_deps_done=yes
12329
if test "$pre_test_object_deps_done" = no; then
12330
if test -z "$predep_objects_CXX"; then
12331
predep_objects_CXX="$p"
12333
predep_objects_CXX="$predep_objects_CXX $p"
12336
if test -z "$postdep_objects_CXX"; then
12337
postdep_objects_CXX="$p"
12339
postdep_objects_CXX="$postdep_objects_CXX $p"
12344
*) ;; # Ignore the rest.
12352
echo "libtool.m4: error: problem compiling CXX test program"
12355
$rm -f confest.$objext
12357
# PORTME: override above test on systems where it is broken
12360
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12361
# hack all around it, let's just trust "g++" to DTRT.
12362
predep_objects_CXX=
12363
postdep_objects_CXX=
12368
case $cc_basename in
12370
# Adding this requires a known-good setup of shared libraries for
12371
# Sun compiler versions before 5.6, else PIC objects from an old
12372
# archive will be linked into the output, leading to subtle bugs.
12373
postdeps_CXX='-lCstd -lCrun'
12380
case " $postdeps_CXX " in
12381
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12384
lt_prog_compiler_wl_CXX=
12385
lt_prog_compiler_pic_CXX=
12386
lt_prog_compiler_static_CXX=
12388
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12389
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12391
# C++ specific cases for pic, static, wl, etc.
12392
if test "$GXX" = yes; then
12393
lt_prog_compiler_wl_CXX='-Wl,'
12394
lt_prog_compiler_static_CXX='-static'
12398
# All AIX code is PIC.
12399
if test "$host_cpu" = ia64; then
12400
# AIX 5 now supports IA64 processor
12401
lt_prog_compiler_static_CXX='-Bstatic'
12405
# FIXME: we need at least 68020 code to build shared libraries, but
12406
# adding the `-m68020' flag to GCC prevents building anything better,
12408
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12410
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12411
# PIC is the default for these OSes.
12413
mingw* | os2* | pw32*)
12414
# This hack is so that the source file can tell whether it is being
12415
# built for inclusion in a dll (and should export symbols for example).
12416
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12418
darwin* | rhapsody*)
12419
# PIC is the default on this platform
12420
# Common symbols not allowed in MH_DYLIB files
12421
lt_prog_compiler_pic_CXX='-fno-common'
12424
# DJGPP does not support shared libraries at all
12425
lt_prog_compiler_pic_CXX=
12428
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12429
# Instead, we relocate shared libraries at runtime.
12432
if test -d /usr/nec; then
12433
lt_prog_compiler_pic_CXX=-Kconform_pic
12437
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438
# not for PA HP-UX.
12443
lt_prog_compiler_pic_CXX='-fPIC'
12448
lt_prog_compiler_pic_CXX='-fPIC'
12454
# All AIX code is PIC.
12455
if test "$host_cpu" = ia64; then
12456
# AIX 5 now supports IA64 processor
12457
lt_prog_compiler_static_CXX='-Bstatic'
12459
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12463
case $cc_basename in
12465
# Green Hills C++ Compiler
12466
# _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"
12471
# PIC is the default on this platform
12472
# Common symbols not allowed in MH_DYLIB files
12473
case $cc_basename in
12475
lt_prog_compiler_pic_CXX='-qnocommon'
12476
lt_prog_compiler_wl_CXX='-Wl,'
12481
case $cc_basename in
12483
lt_prog_compiler_pic_CXX='-KPIC'
12486
# Green Hills C++ Compiler
12487
lt_prog_compiler_pic_CXX='-pic'
12493
freebsd* | kfreebsd*-gnu | dragonfly*)
12494
# FreeBSD uses GNU C++
12496
hpux9* | hpux10* | hpux11*)
12497
case $cc_basename in
12499
lt_prog_compiler_wl_CXX='-Wl,'
12500
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501
if test "$host_cpu" != ia64; then
12502
lt_prog_compiler_pic_CXX='+Z'
12506
lt_prog_compiler_wl_CXX='-Wl,'
12507
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12513
lt_prog_compiler_pic_CXX='+Z'
12522
# This is c89, which is MS Visual C++ (no shared libs)
12523
# Anyone wants to do a port?
12525
irix5* | irix6* | nonstopux*)
12526
case $cc_basename in
12528
lt_prog_compiler_wl_CXX='-Wl,'
12529
lt_prog_compiler_static_CXX='-non_shared'
12530
# CC pic flag -KPIC is the default.
12537
case $cc_basename in
12540
lt_prog_compiler_wl_CXX='--backend -Wl,'
12541
lt_prog_compiler_pic_CXX='-fPIC'
12545
lt_prog_compiler_wl_CXX='-Wl,'
12546
lt_prog_compiler_pic_CXX='-KPIC'
12547
lt_prog_compiler_static_CXX='-static'
12550
# Portland Group C++ compiler.
12551
lt_prog_compiler_wl_CXX='-Wl,'
12552
lt_prog_compiler_pic_CXX='-fpic'
12553
lt_prog_compiler_static_CXX='-Bstatic'
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'
12571
case $cc_basename in
12573
lt_prog_compiler_pic_CXX='-W c,exportall'
12581
osf3* | osf4* | osf5*)
12582
case $cc_basename in
12584
lt_prog_compiler_wl_CXX='--backend -Wl,'
12587
# Rational C++ 2.4.1
12588
lt_prog_compiler_pic_CXX='-pic'
12591
# Digital/Compaq C++
12592
lt_prog_compiler_wl_CXX='-Wl,'
12593
# Make sure the PIC flag is empty. It appears that all Alpha
12594
# Linux and Compaq Tru64 Unix objects are PIC.
12595
lt_prog_compiler_pic_CXX=
12596
lt_prog_compiler_static_CXX='-non_shared'
12605
case $cc_basename in
12607
# Sun C++ 4.2, 5.x and Centerline C++
12608
lt_prog_compiler_pic_CXX='-KPIC'
12609
lt_prog_compiler_static_CXX='-Bstatic'
12610
lt_prog_compiler_wl_CXX='-Qoption ld '
12613
# Green Hills C++ Compiler
12614
lt_prog_compiler_pic_CXX='-PIC'
12621
case $cc_basename in
12624
lt_prog_compiler_pic_CXX='-pic'
12625
lt_prog_compiler_static_CXX='-Bstatic'
12629
lt_prog_compiler_pic_CXX='-pic'
12636
case $cc_basename in
12638
# NonStop-UX NCC 3.20
12639
lt_prog_compiler_pic_CXX='-KPIC'
12645
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12646
case $cc_basename in
12648
lt_prog_compiler_wl_CXX='-Wl,'
12649
lt_prog_compiler_pic_CXX='-KPIC'
12650
lt_prog_compiler_static_CXX='-Bstatic'
12657
lt_prog_compiler_can_build_shared_CXX=no
12662
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12663
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12666
# Check to make sure the PIC flag actually works.
12668
if test -n "$lt_prog_compiler_pic_CXX"; then
12670
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12671
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12672
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12673
echo $ECHO_N "(cached) $ECHO_C" >&6
12675
lt_prog_compiler_pic_works_CXX=no
12676
ac_outfile=conftest.$ac_objext
12677
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12678
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12679
# Insert the option either (1) after the last *FLAGS variable, or
12680
# (2) before a word containing "conftest.", or (3) at the end.
12681
# Note that $ac_compile itself does not contain backslashes and begins
12682
# with a dollar sign (not a hyphen), so the echo should work correctly.
12683
# The option is referenced via a variable to avoid confusing sed.
12684
lt_compile=`echo "$ac_compile" | $SED \
12685
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12686
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12687
-e 's:$: $lt_compiler_flag:'`
12688
(eval echo "\"\$as_me:12688: $lt_compile\"" >&5)
12689
(eval "$lt_compile" 2>conftest.err)
12691
cat conftest.err >&5
12692
echo "$as_me:12692: \$? = $ac_status" >&5
12693
if (exit $ac_status) && test -s "$ac_outfile"; then
12694
# The compiler can only warn and ignore the option if not recognized
12695
# So say no if there are warnings other than the usual output.
12696
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12697
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12698
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12699
lt_prog_compiler_pic_works_CXX=yes
12705
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12706
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12708
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12709
case $lt_prog_compiler_pic_CXX in
12711
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12714
lt_prog_compiler_pic_CXX=
12715
lt_prog_compiler_can_build_shared_CXX=no
12720
# For platforms which do not support PIC, -DPIC is meaningless:
12722
lt_prog_compiler_pic_CXX=
12725
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12730
# Check to make sure the static flag actually works.
12732
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12733
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12734
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12735
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12736
echo $ECHO_N "(cached) $ECHO_C" >&6
12738
lt_prog_compiler_static_works_CXX=no
12739
save_LDFLAGS="$LDFLAGS"
12740
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12741
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12742
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12743
# The linker can only warn and ignore the option if not recognized
12744
# So say no if there are warnings
12745
if test -s conftest.err; then
12746
# Append any errors to the config.log.
12747
cat conftest.err 1>&5
12748
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12749
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12750
if diff conftest.exp conftest.er2 >/dev/null; then
12751
lt_prog_compiler_static_works_CXX=yes
12754
lt_prog_compiler_static_works_CXX=yes
12758
LDFLAGS="$save_LDFLAGS"
12761
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12762
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12764
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12767
lt_prog_compiler_static_CXX=
12771
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12772
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12773
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12774
echo $ECHO_N "(cached) $ECHO_C" >&6
12776
lt_cv_prog_compiler_c_o_CXX=no
12777
$rm -r conftest 2>/dev/null
12781
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12783
lt_compiler_flag="-o out/conftest2.$ac_objext"
12784
# Insert the option either (1) after the last *FLAGS variable, or
12785
# (2) before a word containing "conftest.", or (3) at the end.
12786
# Note that $ac_compile itself does not contain backslashes and begins
12787
# with a dollar sign (not a hyphen), so the echo should work correctly.
12788
lt_compile=`echo "$ac_compile" | $SED \
12789
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12790
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12791
-e 's:$: $lt_compiler_flag:'`
12792
(eval echo "\"\$as_me:12792: $lt_compile\"" >&5)
12793
(eval "$lt_compile" 2>out/conftest.err)
12795
cat out/conftest.err >&5
12796
echo "$as_me:12796: \$? = $ac_status" >&5
12797
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12799
# The compiler can only warn and ignore the option if not recognized
12800
# So say no if there are warnings
12801
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12802
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12803
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12804
lt_cv_prog_compiler_c_o_CXX=yes
12809
# SGI C++ compiler will create directory out/ii_files/ for
12810
# template instantiation
12811
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12812
$rm out/* && rmdir out
12818
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12819
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12822
hard_links="nottested"
12823
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12824
# do not overwrite the value of need_locks provided by the user
12825
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12826
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12829
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12831
ln conftest.a conftest.b 2>&5 || hard_links=no
12832
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12833
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12834
echo "${ECHO_T}$hard_links" >&6; }
12835
if test "$hard_links" = no; then
12836
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12837
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12844
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12845
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12847
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12850
# If we're using GNU nm, then we don't want the "-C" option.
12851
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12852
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12853
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'
12855
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'
12859
export_symbols_cmds_CXX="$ltdll_cmds"
12862
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'
12865
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12869
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12870
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12871
test "$ld_shlibs_CXX" = no && can_build_shared=no
12874
# Do we need to explicitly link libc?
12876
case "x$archive_cmds_need_lc_CXX" in
12878
# Assume -lc should be added
12879
archive_cmds_need_lc_CXX=yes
12881
if test "$enable_shared" = yes && test "$GCC" = yes; then
12882
case $archive_cmds_CXX in
12884
# FIXME: we may have to deal with multi-command sequences.
12887
# Test whether the compiler implicitly links with -lc since on some
12888
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12889
# to ld, don't add -lc before -lgcc.
12890
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12891
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12893
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896
(eval $ac_compile) 2>&5
12898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899
(exit $ac_status); } 2>conftest.err; then
12902
libobjs=conftest.$ac_objext
12904
wl=$lt_prog_compiler_wl_CXX
12905
pic_flag=$lt_prog_compiler_pic_CXX
12911
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12912
allow_undefined_flag_CXX=
12913
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12914
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917
(exit $ac_status); }
12919
archive_cmds_need_lc_CXX=no
12921
archive_cmds_need_lc_CXX=yes
12923
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12925
cat conftest.err 1>&5
12928
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12929
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12936
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12937
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12938
library_names_spec=
12939
libname_spec='lib$name'
12943
postuninstall_cmds=
12947
shlibpath_overrides_runpath=unknown
12949
dynamic_linker="$host_os ld.so"
12950
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12951
if test "$GCC" = yes; then
12952
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12953
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12954
# if the path contains ";" then we assume it to be the separator
12955
# otherwise default to the standard path separator (i.e. ":") - it is
12956
# assumed that no part of a normal pathname contains ";" but that should
12957
# okay in the real world where ";" in dirpaths is itself problematic.
12958
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12960
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12963
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12965
need_lib_prefix=unknown
12966
hardcode_into_libs=no
12968
# when you set need_version to no, make sure it does not cause -set_version
12969
# flags to be left without arguments
12970
need_version=unknown
12975
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12976
shlibpath_var=LIBPATH
12978
# AIX 3 has no versioning support, so we append a major version to the name.
12979
soname_spec='${libname}${release}${shared_ext}$major'
12986
hardcode_into_libs=yes
12987
if test "$host_cpu" = ia64; then
12988
# AIX 5 supports IA64
12989
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12990
shlibpath_var=LD_LIBRARY_PATH
12992
# With GCC up to 2.95.x, collect2 would create an import file
12993
# for dependence libraries. The import file would start with
12994
# the line `#! .'. This would cause the generated library to
12995
# depend on `.', always an invalid library. This was fixed in
12996
# development snapshots of GCC prior to 3.0.
12998
aix4 | aix4.[01] | aix4.[01].*)
12999
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13001
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13004
can_build_shared=no
13008
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13009
# soname into executable. Probably we can add versioning support to
13010
# collect2, so additional links can be useful in future.
13011
if test "$aix_use_runtimelinking" = yes; then
13012
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13013
# instead of lib<name>.a to let people know that these are not
13014
# typical AIX shared libraries.
13015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017
# We preserve .a as extension for shared libraries through AIX4.2
13018
# and later when we are not doing run time linking.
13019
library_names_spec='${libname}${release}.a $libname.a'
13020
soname_spec='${libname}${release}${shared_ext}$major'
13022
shlibpath_var=LIBPATH
13027
library_names_spec='$libname.ixlibrary $libname.a'
13028
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13029
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'
13033
library_names_spec='${libname}${shared_ext}'
13034
dynamic_linker="$host_os ld.so"
13035
shlibpath_var=LIBRARY_PATH
13041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042
soname_spec='${libname}${release}${shared_ext}$major'
13043
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13044
shlibpath_var=LD_LIBRARY_PATH
13045
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13046
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13047
# the default ld.so.conf also contains /usr/contrib/lib and
13048
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13049
# libtool to hard-code these into programs
13052
cygwin* | mingw* | pw32*)
13053
version_type=windows
13058
case $GCC,$host_os in
13059
yes,cygwin* | yes,mingw* | yes,pw32*)
13060
library_names_spec='$libname.dll.a'
13061
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13062
postinstall_cmds='base_file=`basename \${file}`~
13063
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13064
dldir=$destdir/`dirname \$dlpath`~
13065
test -d \$dldir || mkdir -p \$dldir~
13066
$install_prog $dir/$dlname \$dldir/$dlname~
13067
chmod a+x \$dldir/$dlname'
13068
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13069
dlpath=$dir/\$dldll~
13071
shlibpath_overrides_runpath=yes
13075
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13076
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13080
# MinGW DLLs use traditional 'lib' prefix
13081
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13084
# It is most probably a Windows format PATH printed by
13085
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13086
# path with ; separators, and with drive letters. We can handle the
13087
# drive letters (cygwin fileutils understands them), so leave them,
13088
# especially as we might pass files found there to a mingw objdump,
13089
# which wouldn't understand a cygwinified path. Ahh.
13090
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13092
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13096
# pw32 DLLs use 'pw' prefix rather than 'lib'
13097
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13103
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13106
dynamic_linker='Win32 ld.exe'
13107
# FIXME: first we should search . and the directory the executable is in
13111
darwin* | rhapsody*)
13112
dynamic_linker="$host_os dyld"
13113
version_type=darwin
13116
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13117
soname_spec='${libname}${release}${major}$shared_ext'
13118
shlibpath_overrides_runpath=yes
13119
shlibpath_var=DYLD_LIBRARY_PATH
13120
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13121
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13122
if test "$GCC" = yes; then
13123
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"`
13125
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13127
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13135
soname_spec='${libname}${release}${shared_ext}$major'
13136
shlibpath_var=LD_LIBRARY_PATH
13147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13148
soname_spec='${libname}${release}${shared_ext}$major'
13149
shlibpath_var=LD_LIBRARY_PATH
13150
shlibpath_overrides_runpath=no
13151
hardcode_into_libs=yes
13152
dynamic_linker='GNU ld.so'
13155
freebsd* | dragonfly*)
13156
# DragonFly does not have aout. When/if they implement a new
13157
# versioning mechanism, adjust this.
13158
if test -x /usr/bin/objformat; then
13159
objformat=`/usr/bin/objformat`
13162
freebsd[123]*) objformat=aout ;;
13163
*) objformat=elf ;;
13166
version_type=freebsd-$objformat
13167
case $version_type in
13169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13174
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13178
shlibpath_var=LD_LIBRARY_PATH
13181
shlibpath_overrides_runpath=yes
13183
freebsd3.[01]* | freebsdelf3.[01]*)
13184
shlibpath_overrides_runpath=yes
13185
hardcode_into_libs=yes
13187
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189
shlibpath_overrides_runpath=no
13190
hardcode_into_libs=yes
13192
freebsd*) # from 4.6 on
13193
shlibpath_overrides_runpath=yes
13194
hardcode_into_libs=yes
13203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13204
soname_spec='${libname}${release}${shared_ext}$major'
13205
shlibpath_var=LD_LIBRARY_PATH
13206
hardcode_into_libs=yes
13209
hpux9* | hpux10* | hpux11*)
13210
# Give a soname corresponding to the major version so that dld.sl refuses to
13211
# link against other versions.
13218
hardcode_into_libs=yes
13219
dynamic_linker="$host_os dld.so"
13220
shlibpath_var=LD_LIBRARY_PATH
13221
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223
soname_spec='${libname}${release}${shared_ext}$major'
13224
if test "X$HPUX_IA64_MODE" = X32; then
13225
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13227
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13229
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13233
hardcode_into_libs=yes
13234
dynamic_linker="$host_os dld.sl"
13235
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13236
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238
soname_spec='${libname}${release}${shared_ext}$major'
13239
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13240
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13244
dynamic_linker="$host_os dld.sl"
13245
shlibpath_var=SHLIB_PATH
13246
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248
soname_spec='${libname}${release}${shared_ext}$major'
13251
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13252
postinstall_cmds='chmod 555 $lib'
13259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260
soname_spec='${libname}${release}${shared_ext}$major'
13261
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13262
shlibpath_var=LD_LIBRARY_PATH
13263
shlibpath_overrides_runpath=no
13264
hardcode_into_libs=yes
13267
irix5* | irix6* | nonstopux*)
13269
nonstopux*) version_type=nonstopux ;;
13271
if test "$lt_cv_prog_gnu_ld" = yes; then
13279
soname_spec='${libname}${release}${shared_ext}$major'
13280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13282
irix5* | nonstopux*)
13283
libsuff= shlibsuff=
13286
case $LD in # libtool.m4 will add one of these switches to LD
13287
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13288
libsuff= shlibsuff= libmagic=32-bit;;
13289
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13290
libsuff=32 shlibsuff=N32 libmagic=N32;;
13291
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13292
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13293
*) libsuff= shlibsuff= libmagic=never-match;;
13297
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13298
shlibpath_overrides_runpath=no
13299
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13300
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13301
hardcode_into_libs=yes
13304
# No shared lib support for Linux oldld, aout, or coff.
13305
linux*oldld* | linux*aout* | linux*coff*)
13309
# This must be Linux ELF.
13314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315
soname_spec='${libname}${release}${shared_ext}$major'
13316
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13317
shlibpath_var=LD_LIBRARY_PATH
13318
shlibpath_overrides_runpath=no
13319
# This implies no fast_install, which is unacceptable.
13320
# Some rework will be needed to allow for fast_install
13321
# before this can be enabled.
13322
hardcode_into_libs=yes
13324
# Append ld.so.conf contents to the search path
13325
if test -f /etc/ld.so.conf; then
13326
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' ' '`
13327
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13330
# We used to test for /lib/ld.so.1 and disable shared libraries on
13331
# powerpc, because MkLinux only supported shared libraries with the
13332
# GNU dynamic linker. Since this was broken with cross compilers,
13333
# most powerpc-linux boxes support dynamic linking these days and
13334
# people can always --disable-shared, the test was removed, and we
13335
# assume the GNU/Linux dynamic linker is in use.
13336
dynamic_linker='GNU/Linux ld.so'
13343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344
soname_spec='${libname}${release}${shared_ext}$major'
13345
shlibpath_var=LD_LIBRARY_PATH
13346
shlibpath_overrides_runpath=no
13347
hardcode_into_libs=yes
13348
dynamic_linker='GNU ld.so'
13355
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358
dynamic_linker='NetBSD (a.out) ld.so'
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361
soname_spec='${libname}${release}${shared_ext}$major'
13362
dynamic_linker='NetBSD ld.elf_so'
13364
shlibpath_var=LD_LIBRARY_PATH
13365
shlibpath_overrides_runpath=yes
13366
hardcode_into_libs=yes
13371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372
shlibpath_var=LD_LIBRARY_PATH
13373
shlibpath_overrides_runpath=yes
13380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381
soname_spec='${libname}${release}${shared_ext}$major'
13382
shlibpath_var=LD_LIBRARY_PATH
13383
shlibpath_overrides_runpath=yes
13388
sys_lib_dlsearch_path_spec="/usr/lib"
13390
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13392
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393
*) need_version=no ;;
13395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397
shlibpath_var=LD_LIBRARY_PATH
13398
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13400
openbsd2.[89] | openbsd2.[89].*)
13401
shlibpath_overrides_runpath=no
13404
shlibpath_overrides_runpath=yes
13408
shlibpath_overrides_runpath=yes
13413
libname_spec='$name'
13416
library_names_spec='$libname${shared_ext} $libname.a'
13417
dynamic_linker='OS/2 ld.exe'
13418
shlibpath_var=LIBPATH
13421
osf3* | osf4* | osf5*)
13425
soname_spec='${libname}${release}${shared_ext}$major'
13426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427
shlibpath_var=LD_LIBRARY_PATH
13428
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437
soname_spec='${libname}${release}${shared_ext}$major'
13438
shlibpath_var=LD_LIBRARY_PATH
13439
shlibpath_overrides_runpath=yes
13440
hardcode_into_libs=yes
13441
# ldd complains unless libraries are executable
13442
postinstall_cmds='chmod +x $lib'
13447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13449
shlibpath_var=LD_LIBRARY_PATH
13450
shlibpath_overrides_runpath=yes
13451
if test "$with_gnu_ld" = yes; then
13459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460
soname_spec='${libname}${release}${shared_ext}$major'
13461
shlibpath_var=LD_LIBRARY_PATH
13462
case $host_vendor in
13464
shlibpath_overrides_runpath=no
13466
export_dynamic_flag_spec='${wl}-Blargedynsym'
13467
runpath_var=LD_RUN_PATH
13475
shlibpath_overrides_runpath=no
13476
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13482
if test -d /usr/nec ;then
13484
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13485
soname_spec='$libname${shared_ext}.$major'
13486
shlibpath_var=LD_LIBRARY_PATH
13490
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491
version_type=freebsd-elf
13494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495
soname_spec='${libname}${release}${shared_ext}$major'
13496
shlibpath_var=LD_LIBRARY_PATH
13497
hardcode_into_libs=yes
13498
if test "$with_gnu_ld" = yes; then
13499
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13500
shlibpath_overrides_runpath=no
13502
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13503
shlibpath_overrides_runpath=yes
13506
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13510
sys_lib_dlsearch_path_spec='/usr/lib'
13515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516
soname_spec='${libname}${release}${shared_ext}$major'
13517
shlibpath_var=LD_LIBRARY_PATH
13524
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13525
echo "${ECHO_T}$dynamic_linker" >&6; }
13526
test "$dynamic_linker" = no && can_build_shared=no
13528
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529
if test "$GCC" = yes; then
13530
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13533
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13535
hardcode_action_CXX=
13536
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13537
test -n "$runpath_var_CXX" || \
13538
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13540
# We can hardcode non-existant directories.
13541
if test "$hardcode_direct_CXX" != no &&
13542
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13543
# have to relink, otherwise we might link with an installed library
13544
# when we should be linking with a yet-to-be-installed one
13545
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13546
test "$hardcode_minus_L_CXX" != no; then
13547
# Linking always hardcodes the temporary library directory.
13548
hardcode_action_CXX=relink
13550
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13551
hardcode_action_CXX=immediate
13554
# We cannot hardcode anything, or else we can only hardcode existing
13556
hardcode_action_CXX=unsupported
13558
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13559
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13561
if test "$hardcode_action_CXX" = relink; then
13562
# Fast installation is not supported
13563
enable_fast_install=no
13564
elif test "$shlibpath_overrides_runpath" = yes ||
13565
test "$enable_shared" = no; then
13566
# Fast installation is not necessary
13567
enable_fast_install=needless
13571
# The else clause should only fire when bootstrapping the
13572
# libtool distribution, otherwise you forgot to ship ltmain.sh
13573
# with your package, and you will get complaints that there are
13574
# no rules to generate ltmain.sh.
13575
if test -f "$ltmain"; then
13576
# See if we are running on zsh, and set the options which allow our commands through
13577
# without removal of \ escapes.
13578
if test -n "${ZSH_VERSION+set}" ; then
13579
setopt NO_GLOB_SUBST
13581
# Now quote all the things that may contain metacharacters while being
13582
# careful not to overquote the AC_SUBSTed values. We take copies of the
13583
# variables and quote the copies for generation of the libtool script.
13584
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13586
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13587
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13588
deplibs_check_method reload_flag reload_cmds need_locks \
13589
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13590
lt_cv_sys_global_symbol_to_c_name_address \
13591
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13592
old_postinstall_cmds old_postuninstall_cmds \
13596
lt_prog_compiler_wl_CXX \
13597
lt_prog_compiler_pic_CXX \
13598
lt_prog_compiler_static_CXX \
13599
lt_prog_compiler_no_builtin_flag_CXX \
13600
export_dynamic_flag_spec_CXX \
13601
thread_safe_flag_spec_CXX \
13602
whole_archive_flag_spec_CXX \
13603
enable_shared_with_static_runtimes_CXX \
13604
old_archive_cmds_CXX \
13605
old_archive_from_new_cmds_CXX \
13606
predep_objects_CXX \
13607
postdep_objects_CXX \
13610
compiler_lib_search_path_CXX \
13612
archive_expsym_cmds_CXX \
13613
postinstall_cmds_CXX \
13614
postuninstall_cmds_CXX \
13615
old_archive_from_expsyms_cmds_CXX \
13616
allow_undefined_flag_CXX \
13617
no_undefined_flag_CXX \
13618
export_symbols_cmds_CXX \
13619
hardcode_libdir_flag_spec_CXX \
13620
hardcode_libdir_flag_spec_ld_CXX \
13621
hardcode_libdir_separator_CXX \
13622
hardcode_automatic_CXX \
13624
module_expsym_cmds_CXX \
13625
lt_cv_prog_compiler_c_o_CXX \
13626
exclude_expsyms_CXX \
13627
include_expsyms_CXX; do
13630
old_archive_cmds_CXX | \
13631
old_archive_from_new_cmds_CXX | \
13632
archive_cmds_CXX | \
13633
archive_expsym_cmds_CXX | \
13634
module_cmds_CXX | \
13635
module_expsym_cmds_CXX | \
13636
old_archive_from_expsyms_cmds_CXX | \
13637
export_symbols_cmds_CXX | \
13638
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639
postinstall_cmds | postuninstall_cmds | \
13640
old_postinstall_cmds | old_postuninstall_cmds | \
13641
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642
# Double-quote double-evaled strings.
13643
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13646
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13652
*'\$0 --fallback-echo"')
13653
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13659
cat <<__EOF__ >> "$cfgfile"
13660
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13662
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13664
# Shell to use when invoking shell scripts.
13667
# Whether or not to build shared libraries.
13668
build_libtool_libs=$enable_shared
13670
# Whether or not to build static libraries.
13671
build_old_libs=$enable_static
13673
# Whether or not to add -lc for building shared libraries.
13674
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13676
# Whether or not to disallow shared libs when runtime libs are static
13677
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13679
# Whether or not to optimize for fast installation.
13680
fast_install=$enable_fast_install
13683
host_alias=$host_alias
13687
# The build system.
13688
build_alias=$build_alias
13692
# An echo program that does not interpret backslashes.
13697
AR_FLAGS=$lt_AR_FLAGS
13702
# LTCC compiler flags.
13703
LTCFLAGS=$lt_LTCFLAGS
13705
# A language-specific compiler.
13706
CC=$lt_compiler_CXX
13708
# Is the compiler the GNU C compiler?
13714
# The linker used to build libraries.
13717
# Whether we need hard or soft links.
13720
# A BSD-compatible nm program.
13723
# A symbol stripping program
13726
# Used to examine libraries when file_magic_cmd begins "file"
13727
MAGIC_CMD=$MAGIC_CMD
13729
# Used on cygwin: DLL creation program.
13732
# Used on cygwin: object dumper.
13735
# Used on cygwin: assembler.
13738
# The name of the directory that contains temporary libtool files.
13741
# How to create reloadable object files.
13742
reload_flag=$lt_reload_flag
13743
reload_cmds=$lt_reload_cmds
13745
# How to pass a linker flag through the compiler.
13746
wl=$lt_lt_prog_compiler_wl_CXX
13748
# Object file suffix (normally "o").
13749
objext="$ac_objext"
13751
# Old archive suffix (normally "a").
13754
# Shared library suffix (normally ".so").
13755
shrext_cmds='$shrext_cmds'
13757
# Executable file suffix (normally "").
13760
# Additional compiler flags for building library objects.
13761
pic_flag=$lt_lt_prog_compiler_pic_CXX
13764
# What is the maximum length of a command?
13765
max_cmd_len=$lt_cv_sys_max_cmd_len
13767
# Does compiler simultaneously support -c and -o options?
13768
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13770
# Must we lock files when doing compilation?
13771
need_locks=$lt_need_locks
13773
# Do we need the lib prefix for modules?
13774
need_lib_prefix=$need_lib_prefix
13776
# Do we need a version for libraries?
13777
need_version=$need_version
13779
# Whether dlopen is supported.
13780
dlopen_support=$enable_dlopen
13782
# Whether dlopen of programs is supported.
13783
dlopen_self=$enable_dlopen_self
13785
# Whether dlopen of statically linked programs is supported.
13786
dlopen_self_static=$enable_dlopen_self_static
13788
# Compiler flag to prevent dynamic linking.
13789
link_static_flag=$lt_lt_prog_compiler_static_CXX
13791
# Compiler flag to turn off builtin functions.
13792
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13794
# Compiler flag to allow reflexive dlopens.
13795
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13797
# Compiler flag to generate shared objects directly from archives.
13798
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13800
# Compiler flag to generate thread-safe objects.
13801
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13803
# Library versioning type.
13804
version_type=$version_type
13806
# Format of library name prefix.
13807
libname_spec=$lt_libname_spec
13809
# List of archive names. First name is the real one, the rest are links.
13810
# The last name is the one that the linker finds with -lNAME.
13811
library_names_spec=$lt_library_names_spec
13813
# The coded name of the library, if different from the real name.
13814
soname_spec=$lt_soname_spec
13816
# Commands used to build and install an old-style archive.
13818
old_archive_cmds=$lt_old_archive_cmds_CXX
13819
old_postinstall_cmds=$lt_old_postinstall_cmds
13820
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13822
# Create an old-style archive from a shared archive.
13823
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13825
# Create a temporary old-style archive to link instead of a shared archive.
13826
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13828
# Commands used to build and install a shared archive.
13829
archive_cmds=$lt_archive_cmds_CXX
13830
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831
postinstall_cmds=$lt_postinstall_cmds
13832
postuninstall_cmds=$lt_postuninstall_cmds
13834
# Commands used to build a loadable module (assumed same as above if empty)
13835
module_cmds=$lt_module_cmds_CXX
13836
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13838
# Commands to strip libraries.
13839
old_striplib=$lt_old_striplib
13840
striplib=$lt_striplib
13842
# Dependencies to place before the objects being linked to create a
13844
predep_objects=$lt_predep_objects_CXX
13846
# Dependencies to place after the objects being linked to create a
13848
postdep_objects=$lt_postdep_objects_CXX
13850
# Dependencies to place before the objects being linked to create a
13852
predeps=$lt_predeps_CXX
13854
# Dependencies to place after the objects being linked to create a
13856
postdeps=$lt_postdeps_CXX
13858
# The library search path used internally by the compiler when linking
13859
# a shared library.
13860
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13862
# Method to check whether dependent libraries are shared objects.
13863
deplibs_check_method=$lt_deplibs_check_method
13865
# Command to use when deplibs_check_method == file_magic.
13866
file_magic_cmd=$lt_file_magic_cmd
13868
# Flag that allows shared libraries with undefined symbols to be built.
13869
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13871
# Flag that forces no undefined symbols.
13872
no_undefined_flag=$lt_no_undefined_flag_CXX
13874
# Commands used to finish a libtool library installation in a directory.
13875
finish_cmds=$lt_finish_cmds
13877
# Same as above, but a single script fragment to be evaled but not shown.
13878
finish_eval=$lt_finish_eval
13880
# Take the output of nm and produce a listing of raw symbols and C names.
13881
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13883
# Transform the output of nm in a proper C declaration
13884
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13886
# Transform the output of nm in a C name address pair
13887
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13889
# This is the shared library runtime path variable.
13890
runpath_var=$runpath_var
13892
# This is the shared library path variable.
13893
shlibpath_var=$shlibpath_var
13895
# Is shlibpath searched before the hard-coded library search path?
13896
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13898
# How to hardcode a shared library path into an executable.
13899
hardcode_action=$hardcode_action_CXX
13901
# Whether we should hardcode library paths into libraries.
13902
hardcode_into_libs=$hardcode_into_libs
13904
# Flag to hardcode \$libdir into a binary during linking.
13905
# This must work even if \$libdir does not exist.
13906
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13908
# If ld is used when linking, flag to hardcode \$libdir into
13909
# a binary during linking. This must work even if \$libdir does
13911
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13913
# Whether we need a single -rpath flag with a separated argument.
13914
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13916
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917
# resulting binary.
13918
hardcode_direct=$hardcode_direct_CXX
13920
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921
# resulting binary.
13922
hardcode_minus_L=$hardcode_minus_L_CXX
13924
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925
# the resulting binary.
13926
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13928
# Set to yes if building a shared library automatically hardcodes DIR into the library
13929
# and all subsequent libraries and executables linked against it.
13930
hardcode_automatic=$hardcode_automatic_CXX
13932
# Variables whose values should be saved in libtool wrapper scripts and
13933
# restored at relink time.
13934
variables_saved_for_relink="$variables_saved_for_relink"
13936
# Whether libtool must link a program against all its dependency libraries.
13937
link_all_deplibs=$link_all_deplibs_CXX
13939
# Compile-time system search path for libraries
13940
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13942
# Run-time system search path for libraries
13943
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13945
# Fix the shell variable \$srcfile for the compiler.
13946
fix_srcfile_path="$fix_srcfile_path_CXX"
13948
# Set to yes if exported symbols are required.
13949
always_export_symbols=$always_export_symbols_CXX
13951
# The commands to list exported symbols.
13952
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13954
# The commands to extract the exported symbol list from a shared archive.
13955
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13957
# Symbols that should not be listed in the preloaded symbols.
13958
exclude_expsyms=$lt_exclude_expsyms_CXX
13960
# Symbols that must always be exported.
13961
include_expsyms=$lt_include_expsyms_CXX
13963
# ### END LIBTOOL TAG CONFIG: $tagname
13969
# If there is no Makefile yet, we rely on a make rule to execute
13970
# `config.status --recheck' to rerun these tests and create the
13971
# libtool script then.
13972
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973
if test -f "$ltmain_in"; then
13974
test -f Makefile && make "$ltmain"
13980
ac_cpp='$CPP $CPPFLAGS'
13981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
with_gnu_ldcxx=$with_gnu_ld
13990
with_gnu_ld=$lt_save_with_gnu_ld
13991
lt_cv_path_LDCXX=$lt_cv_path_LD
13992
lt_cv_path_LD=$lt_save_path_LD
13993
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002
if test -n "$F77" && test "X$F77" != "Xno"; then
14005
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14010
archive_cmds_need_lc_F77=no
14011
allow_undefined_flag_F77=
14012
always_export_symbols_F77=no
14013
archive_expsym_cmds_F77=
14014
export_dynamic_flag_spec_F77=
14015
hardcode_direct_F77=no
14016
hardcode_libdir_flag_spec_F77=
14017
hardcode_libdir_flag_spec_ld_F77=
14018
hardcode_libdir_separator_F77=
14019
hardcode_minus_L_F77=no
14020
hardcode_automatic_F77=no
14022
module_expsym_cmds_F77=
14023
link_all_deplibs_F77=unknown
14024
old_archive_cmds_F77=$old_archive_cmds
14025
no_undefined_flag_F77=
14026
whole_archive_flag_spec_F77=
14027
enable_shared_with_static_runtimes_F77=no
14029
# Source file extension for f77 test sources.
14032
# Object file extension for compiled f77 test sources.
14036
# Code to be used in simple compile tests
14037
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14039
# Code to be used in simple link tests
14040
lt_simple_link_test_code=" program t\n end\n"
14042
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14044
# If no C compiler was specified, use CC.
14047
# If no C compiler flags were specified, use CFLAGS.
14048
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14050
# Allow CC to be a program name with arguments.
14054
# save warnings/boilerplate of simple test code
14055
ac_outfile=conftest.$ac_objext
14056
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14057
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14058
_lt_compiler_boilerplate=`cat conftest.err`
14061
ac_outfile=conftest.$ac_objext
14062
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14063
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064
_lt_linker_boilerplate=`cat conftest.err`
14068
# Allow CC to be a program name with arguments.
14073
for cc_temp in $compiler""; do
14075
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14076
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14084
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14085
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14086
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14087
echo "${ECHO_T}$can_build_shared" >&6; }
14089
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14090
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14091
test "$can_build_shared" = "no" && enable_shared=no
14093
# On AIX, shared libraries and static libraries use the same namespace, and
14094
# are all built from PIC.
14097
test "$enable_shared" = yes && enable_static=no
14098
if test -n "$RANLIB"; then
14099
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14100
postinstall_cmds='$RANLIB $lib'
14104
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14105
test "$enable_shared" = yes && enable_static=no
14109
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14110
echo "${ECHO_T}$enable_shared" >&6; }
14112
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14113
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14114
# Make sure either enable_shared or enable_static is yes.
14115
test "$enable_shared" = yes || enable_static=yes
14116
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14117
echo "${ECHO_T}$enable_static" >&6; }
14122
lt_prog_compiler_wl_F77=
14123
lt_prog_compiler_pic_F77=
14124
lt_prog_compiler_static_F77=
14126
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14127
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14129
if test "$GCC" = yes; then
14130
lt_prog_compiler_wl_F77='-Wl,'
14131
lt_prog_compiler_static_F77='-static'
14135
# All AIX code is PIC.
14136
if test "$host_cpu" = ia64; then
14137
# AIX 5 now supports IA64 processor
14138
lt_prog_compiler_static_F77='-Bstatic'
14143
# FIXME: we need at least 68020 code to build shared libraries, but
14144
# adding the `-m68020' flag to GCC prevents building anything better,
14146
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14149
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14150
# PIC is the default for these OSes.
14153
mingw* | pw32* | os2*)
14154
# This hack is so that the source file can tell whether it is being
14155
# built for inclusion in a dll (and should export symbols for example).
14156
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14159
darwin* | rhapsody*)
14160
# PIC is the default on this platform
14161
# Common symbols not allowed in MH_DYLIB files
14162
lt_prog_compiler_pic_F77='-fno-common'
14166
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14167
# Instead, we relocate shared libraries at runtime.
14171
# Just because we use GCC doesn't mean we suddenly get shared libraries
14172
# on systems that don't support them.
14173
lt_prog_compiler_can_build_shared_F77=no
14178
if test -d /usr/nec; then
14179
lt_prog_compiler_pic_F77=-Kconform_pic
14184
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185
# not for PA HP-UX.
14191
lt_prog_compiler_pic_F77='-fPIC'
14197
lt_prog_compiler_pic_F77='-fPIC'
14201
# PORTME Check for flag to pass linker flags through the system compiler.
14204
lt_prog_compiler_wl_F77='-Wl,'
14205
if test "$host_cpu" = ia64; then
14206
# AIX 5 now supports IA64 processor
14207
lt_prog_compiler_static_F77='-Bstatic'
14209
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14213
# PIC is the default on this platform
14214
# Common symbols not allowed in MH_DYLIB files
14215
case $cc_basename in
14217
lt_prog_compiler_pic_F77='-qnocommon'
14218
lt_prog_compiler_wl_F77='-Wl,'
14223
mingw* | pw32* | os2*)
14224
# This hack is so that the source file can tell whether it is being
14225
# built for inclusion in a dll (and should export symbols for example).
14226
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14229
hpux9* | hpux10* | hpux11*)
14230
lt_prog_compiler_wl_F77='-Wl,'
14231
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14232
# not for PA HP-UX.
14238
lt_prog_compiler_pic_F77='+Z'
14241
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14242
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14245
irix5* | irix6* | nonstopux*)
14246
lt_prog_compiler_wl_F77='-Wl,'
14247
# PIC (with -KPIC) is the default.
14248
lt_prog_compiler_static_F77='-non_shared'
14252
lt_prog_compiler_pic_F77='-KPIC'
14253
lt_prog_compiler_static_F77='-Bstatic'
14257
case $cc_basename in
14259
lt_prog_compiler_wl_F77='-Wl,'
14260
lt_prog_compiler_pic_F77='-KPIC'
14261
lt_prog_compiler_static_F77='-static'
14263
pgcc* | pgf77* | pgf90* | pgf95*)
14264
# Portland Group compilers (*not* the Pentium gcc compiler,
14265
# which looks to be a dead project)
14266
lt_prog_compiler_wl_F77='-Wl,'
14267
lt_prog_compiler_pic_F77='-fpic'
14268
lt_prog_compiler_static_F77='-Bstatic'
14271
lt_prog_compiler_wl_F77='-Wl,'
14272
# All Alpha code is PIC.
14273
lt_prog_compiler_static_F77='-non_shared'
14278
osf3* | osf4* | osf5*)
14279
lt_prog_compiler_wl_F77='-Wl,'
14280
# All OSF/1 code is PIC.
14281
lt_prog_compiler_static_F77='-non_shared'
14285
lt_prog_compiler_pic_F77='-KPIC'
14286
lt_prog_compiler_static_F77='-Bstatic'
14287
case $cc_basename in
14288
f77* | f90* | f95*)
14289
lt_prog_compiler_wl_F77='-Qoption ld ';;
14291
lt_prog_compiler_wl_F77='-Wl,';;
14296
lt_prog_compiler_wl_F77='-Qoption ld '
14297
lt_prog_compiler_pic_F77='-PIC'
14298
lt_prog_compiler_static_F77='-Bstatic'
14301
sysv4 | sysv4.2uw2* | sysv4.3*)
14302
lt_prog_compiler_wl_F77='-Wl,'
14303
lt_prog_compiler_pic_F77='-KPIC'
14304
lt_prog_compiler_static_F77='-Bstatic'
14308
if test -d /usr/nec ;then
14309
lt_prog_compiler_pic_F77='-Kconform_pic'
14310
lt_prog_compiler_static_F77='-Bstatic'
14314
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14315
lt_prog_compiler_wl_F77='-Wl,'
14316
lt_prog_compiler_pic_F77='-KPIC'
14317
lt_prog_compiler_static_F77='-Bstatic'
14321
lt_prog_compiler_wl_F77='-Wl,'
14322
lt_prog_compiler_can_build_shared_F77=no
14326
lt_prog_compiler_pic_F77='-pic'
14327
lt_prog_compiler_static_F77='-Bstatic'
14331
lt_prog_compiler_can_build_shared_F77=no
14336
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14337
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14340
# Check to make sure the PIC flag actually works.
14342
if test -n "$lt_prog_compiler_pic_F77"; then
14344
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14345
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14346
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14347
echo $ECHO_N "(cached) $ECHO_C" >&6
14349
lt_prog_compiler_pic_works_F77=no
14350
ac_outfile=conftest.$ac_objext
14351
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14353
# Insert the option either (1) after the last *FLAGS variable, or
14354
# (2) before a word containing "conftest.", or (3) at the end.
14355
# Note that $ac_compile itself does not contain backslashes and begins
14356
# with a dollar sign (not a hyphen), so the echo should work correctly.
14357
# The option is referenced via a variable to avoid confusing sed.
14358
lt_compile=`echo "$ac_compile" | $SED \
14359
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361
-e 's:$: $lt_compiler_flag:'`
14362
(eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363
(eval "$lt_compile" 2>conftest.err)
14365
cat conftest.err >&5
14366
echo "$as_me:14366: \$? = $ac_status" >&5
14367
if (exit $ac_status) && test -s "$ac_outfile"; then
14368
# The compiler can only warn and ignore the option if not recognized
14369
# So say no if there are warnings other than the usual output.
14370
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14371
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373
lt_prog_compiler_pic_works_F77=yes
14379
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14380
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14382
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14383
case $lt_prog_compiler_pic_F77 in
14385
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14388
lt_prog_compiler_pic_F77=
14389
lt_prog_compiler_can_build_shared_F77=no
14394
# For platforms which do not support PIC, -DPIC is meaningless:
14396
lt_prog_compiler_pic_F77=
14399
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14404
# Check to make sure the static flag actually works.
14406
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14407
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14408
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14409
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14410
echo $ECHO_N "(cached) $ECHO_C" >&6
14412
lt_prog_compiler_static_works_F77=no
14413
save_LDFLAGS="$LDFLAGS"
14414
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14415
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14416
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14417
# The linker can only warn and ignore the option if not recognized
14418
# So say no if there are warnings
14419
if test -s conftest.err; then
14420
# Append any errors to the config.log.
14421
cat conftest.err 1>&5
14422
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14423
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424
if diff conftest.exp conftest.er2 >/dev/null; then
14425
lt_prog_compiler_static_works_F77=yes
14428
lt_prog_compiler_static_works_F77=yes
14432
LDFLAGS="$save_LDFLAGS"
14435
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14436
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14438
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14441
lt_prog_compiler_static_F77=
14445
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14446
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14447
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14448
echo $ECHO_N "(cached) $ECHO_C" >&6
14450
lt_cv_prog_compiler_c_o_F77=no
14451
$rm -r conftest 2>/dev/null
14455
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14457
lt_compiler_flag="-o out/conftest2.$ac_objext"
14458
# Insert the option either (1) after the last *FLAGS variable, or
14459
# (2) before a word containing "conftest.", or (3) at the end.
14460
# Note that $ac_compile itself does not contain backslashes and begins
14461
# with a dollar sign (not a hyphen), so the echo should work correctly.
14462
lt_compile=`echo "$ac_compile" | $SED \
14463
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465
-e 's:$: $lt_compiler_flag:'`
14466
(eval echo "\"\$as_me:14466: $lt_compile\"" >&5)
14467
(eval "$lt_compile" 2>out/conftest.err)
14469
cat out/conftest.err >&5
14470
echo "$as_me:14470: \$? = $ac_status" >&5
14471
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14473
# The compiler can only warn and ignore the option if not recognized
14474
# So say no if there are warnings
14475
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14476
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14477
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14478
lt_cv_prog_compiler_c_o_F77=yes
14483
# SGI C++ compiler will create directory out/ii_files/ for
14484
# template instantiation
14485
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14486
$rm out/* && rmdir out
14492
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14493
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14496
hard_links="nottested"
14497
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14498
# do not overwrite the value of need_locks provided by the user
14499
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14500
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14503
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14505
ln conftest.a conftest.b 2>&5 || hard_links=no
14506
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14507
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14508
echo "${ECHO_T}$hard_links" >&6; }
14509
if test "$hard_links" = no; then
14510
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14511
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14518
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14519
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14522
allow_undefined_flag_F77=
14523
enable_shared_with_static_runtimes_F77=no
14525
archive_expsym_cmds_F77=
14526
old_archive_From_new_cmds_F77=
14527
old_archive_from_expsyms_cmds_F77=
14528
export_dynamic_flag_spec_F77=
14529
whole_archive_flag_spec_F77=
14530
thread_safe_flag_spec_F77=
14531
hardcode_libdir_flag_spec_F77=
14532
hardcode_libdir_flag_spec_ld_F77=
14533
hardcode_libdir_separator_F77=
14534
hardcode_direct_F77=no
14535
hardcode_minus_L_F77=no
14536
hardcode_shlibpath_var_F77=unsupported
14537
link_all_deplibs_F77=unknown
14538
hardcode_automatic_F77=no
14540
module_expsym_cmds_F77=
14541
always_export_symbols_F77=no
14542
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14543
# include_expsyms should be a list of space-separated symbols to be *always*
14544
# included in the symbol list
14545
include_expsyms_F77=
14546
# exclude_expsyms can be an extended regexp of symbols to exclude
14547
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14548
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14549
# as well as any symbol that contains `d'.
14550
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14551
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14552
# platforms (ab)use it in PIC code, but their linkers get confused if
14553
# the symbol is explicitly referenced. Since portable code cannot
14554
# rely on this symbol name, it's probably fine to never include it in
14555
# preloaded symbol tables.
14556
extract_expsyms_cmds=
14557
# Just being paranoid about ensuring that cc_basename is set.
14558
for cc_temp in $compiler""; do
14560
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14561
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14569
cygwin* | mingw* | pw32*)
14570
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14571
# When not using gcc, we currently assume that we are using
14572
# Microsoft Visual C++.
14573
if test "$GCC" != yes; then
14578
# we just hope/assume this is gcc and not c89 (= MSVC++)
14587
if test "$with_gnu_ld" = yes; then
14588
# If archive_cmds runs LD, not CC, wlarc should be empty
14591
# Set some defaults for GNU ld with shared library support. These
14592
# are reset later if shared libraries are not supported. Putting them
14593
# here allows them to be overridden if necessary.
14594
runpath_var=LD_RUN_PATH
14595
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14596
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14597
# ancient GNU ld didn't support --whole-archive et. al.
14598
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14599
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14601
whole_archive_flag_spec_F77=
14603
supports_anon_versioning=no
14604
case `$LD -v 2>/dev/null` in
14605
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14606
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14607
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14608
*\ 2.11.*) ;; # other 2.11 versions
14609
*) supports_anon_versioning=yes ;;
14612
# See if GNU ld supports shared libraries.
14614
aix3* | aix4* | aix5*)
14615
# On AIX/PPC, the GNU linker is very broken
14616
if test "$host_cpu" != ia64; then
14620
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14621
*** to be unable to reliably create shared libraries on AIX.
14622
*** Therefore, libtool is disabling shared libraries support. If you
14623
*** really care for shared libraries, you may want to modify your PATH
14624
*** so that a non-GNU linker is found, and then restart.
14631
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)'
14632
hardcode_libdir_flag_spec_F77='-L$libdir'
14633
hardcode_minus_L_F77=yes
14635
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14636
# that the semantics of dynamic libraries on AmigaOS, at least up
14637
# to version 4, is to share data among multiple programs linked
14638
# with the same dynamic library. Since this doesn't match the
14639
# behavior of shared libraries on other platforms, we can't use
14645
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14646
allow_undefined_flag_F77=unsupported
14647
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14648
# support --undefined. This deserves some investigation. FIXME
14649
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14655
cygwin* | mingw* | pw32*)
14656
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14657
# as there is no search path for DLLs.
14658
hardcode_libdir_flag_spec_F77='-L$libdir'
14659
allow_undefined_flag_F77=unsupported
14660
always_export_symbols_F77=no
14661
enable_shared_with_static_runtimes_F77=yes
14662
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14664
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14665
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14666
# If the export-symbols file already is a .def file (1st line
14667
# is EXPORTS), use it as is; otherwise, prepend...
14668
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14669
cp $export_symbols $output_objdir/$soname.def;
14671
echo EXPORTS > $output_objdir/$soname.def;
14672
cat $export_symbols >> $output_objdir/$soname.def;
14674
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681
hardcode_direct_F77=no
14682
hardcode_shlibpath_var_F77=no
14683
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14684
export_dynamic_flag_spec_F77='${wl}-E'
14685
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14686
# Instead, shared libraries are loaded at an image base (0x10000000 by
14687
# default) and relocated if they conflict, which is a slow very memory
14688
# consuming and fragmenting process. To avoid this, we pick a random,
14689
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14690
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14691
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'
14692
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'
14696
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698
case $cc_basename,$host_cpu in
14699
pgcc*) # Portland Group C compiler
14700
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'
14701
tmp_addflag=' $pic_flag'
14703
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14704
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'
14705
tmp_addflag=' $pic_flag -Mnomain' ;;
14706
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14707
tmp_addflag=' -i_dynamic' ;;
14708
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14709
tmp_addflag=' -i_dynamic -nofor_main' ;;
14710
ifc* | ifort*) # Intel Fortran compiler
14711
tmp_addflag=' -nofor_main' ;;
14713
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14715
if test $supports_anon_versioning = yes; then
14716
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14717
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14718
$echo "local: *; };" >> $output_objdir/$libname.ver~
14719
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14727
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14728
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14731
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14737
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14741
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14742
*** create shared libraries on Solaris systems. Therefore, libtool
14743
*** is disabling shared libraries support. We urge you to upgrade GNU
14744
*** binutils to release 2.9.1 or newer. Another option is to modify
14745
*** your PATH or compiler configuration so that the native linker is
14746
*** used, and then restart.
14749
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14750
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14751
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14758
case `$LD -v 2>&1` in
14759
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14763
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14764
*** reliably create shared libraries on SCO systems. Therefore, libtool
14765
*** is disabling shared libraries support. We urge you to upgrade GNU
14766
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14767
*** your PATH or compiler configuration so that the native linker is
14768
*** used, and then restart.
14773
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14774
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14775
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14776
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14785
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14787
hardcode_direct_F77=yes
14788
hardcode_shlibpath_var_F77=no
14792
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14801
if test "$ld_shlibs_F77" = no; then
14803
hardcode_libdir_flag_spec_F77=
14804
export_dynamic_flag_spec_F77=
14805
whole_archive_flag_spec_F77=
14808
# PORTME fill in a description of your system's linker (not GNU ld)
14811
allow_undefined_flag_F77=unsupported
14812
always_export_symbols_F77=yes
14813
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'
14814
# Note: this linker hardcodes the directories in LIBPATH if there
14815
# are no directories specified by -L.
14816
hardcode_minus_L_F77=yes
14817
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14818
# Neither direct hardcoding nor static linking is supported with a
14820
hardcode_direct_F77=unsupported
14825
if test "$host_cpu" = ia64; then
14826
# On IA64, the linker does run time linking by default, so we don't
14827
# have to do anything special.
14828
aix_use_runtimelinking=no
14829
exp_sym_flag='-Bexport'
14832
# If we're using GNU nm, then we don't want the "-C" option.
14833
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14834
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14835
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'
14837
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'
14839
aix_use_runtimelinking=no
14841
# Test if we are trying to use run time linking or normal
14842
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14843
# need to do runtime linking.
14844
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14845
for ld_flag in $LDFLAGS; do
14846
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14847
aix_use_runtimelinking=yes
14854
exp_sym_flag='-bexport'
14855
no_entry_flag='-bnoentry'
14858
# When large executables or shared objects are built, AIX ld can
14859
# have problems creating the table of contents. If linking a library
14860
# or program results in "error TOC overflow" add -mminimal-toc to
14861
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14862
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14864
archive_cmds_F77=''
14865
hardcode_direct_F77=yes
14866
hardcode_libdir_separator_F77=':'
14867
link_all_deplibs_F77=yes
14869
if test "$GCC" = yes; then
14870
case $host_os in aix4.[012]|aix4.[012].*)
14871
# We only want to do this on AIX 4.2 and lower, the check
14872
# below for broken collect2 doesn't work under 4.3+
14873
collect2name=`${CC} -print-prog-name=collect2`
14874
if test -f "$collect2name" && \
14875
strings "$collect2name" | grep resolve_lib_name >/dev/null
14877
# We have reworked collect2
14878
hardcode_direct_F77=yes
14880
# We have old collect2
14881
hardcode_direct_F77=unsupported
14882
# It fails to find uninstalled libraries when the uninstalled
14883
# path is not listed in the libpath. Setting hardcode_minus_L
14884
# to unsupported forces relinking
14885
hardcode_minus_L_F77=yes
14886
hardcode_libdir_flag_spec_F77='-L$libdir'
14887
hardcode_libdir_separator_F77=
14891
shared_flag='-shared'
14892
if test "$aix_use_runtimelinking" = yes; then
14893
shared_flag="$shared_flag "'${wl}-G'
14897
if test "$host_cpu" = ia64; then
14898
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14899
# chokes on -Wl,-G. The following line is correct:
14902
if test "$aix_use_runtimelinking" = yes; then
14903
shared_flag='${wl}-G'
14905
shared_flag='${wl}-bM:SRE'
14910
# It seems that -bexpall does not export symbols beginning with
14911
# underscore (_), so it is better to generate a list of symbols to export.
14912
always_export_symbols_F77=yes
14913
if test "$aix_use_runtimelinking" = yes; then
14914
# Warning - without using the other runtime loading flags (-brtl),
14915
# -berok will link without error, but may produce a broken library.
14916
allow_undefined_flag_F77='-berok'
14917
# Determine the default libpath from the value encoded in an empty executable.
14918
cat >conftest.$ac_ext <<_ACEOF
14923
rm -f conftest.$ac_objext conftest$ac_exeext
14924
if { (ac_try="$ac_link"
14925
case "(($ac_try" in
14926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927
*) ac_try_echo=$ac_try;;
14929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930
(eval "$ac_link") 2>conftest.er1
14932
grep -v '^ *+' conftest.er1 >conftest.err
14934
cat conftest.err >&5
14935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936
(exit $ac_status); } &&
14937
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14938
{ (case "(($ac_try" in
14939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940
*) ac_try_echo=$ac_try;;
14942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943
(eval "$ac_try") 2>&5
14945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946
(exit $ac_status); }; } &&
14947
{ ac_try='test -s conftest$ac_exeext'
14948
{ (case "(($ac_try" in
14949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950
*) ac_try_echo=$ac_try;;
14952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953
(eval "$ac_try") 2>&5
14955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956
(exit $ac_status); }; }; then
14958
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14960
# Check for a 64-bit object if we didn't find anything.
14961
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; }
14964
echo "$as_me: failed program was:" >&5
14965
sed 's/^/| /' conftest.$ac_ext >&5
14970
rm -f core conftest.err conftest.$ac_objext \
14971
conftest$ac_exeext conftest.$ac_ext
14972
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14974
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14975
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"
14977
if test "$host_cpu" = ia64; then
14978
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14979
allow_undefined_flag_F77="-z nodefs"
14980
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"
14982
# Determine the default libpath from the value encoded in an empty executable.
14983
cat >conftest.$ac_ext <<_ACEOF
14988
rm -f conftest.$ac_objext conftest$ac_exeext
14989
if { (ac_try="$ac_link"
14990
case "(($ac_try" in
14991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992
*) ac_try_echo=$ac_try;;
14994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995
(eval "$ac_link") 2>conftest.er1
14997
grep -v '^ *+' conftest.er1 >conftest.err
14999
cat conftest.err >&5
15000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001
(exit $ac_status); } &&
15002
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15003
{ (case "(($ac_try" in
15004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005
*) ac_try_echo=$ac_try;;
15007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008
(eval "$ac_try") 2>&5
15010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011
(exit $ac_status); }; } &&
15012
{ ac_try='test -s conftest$ac_exeext'
15013
{ (case "(($ac_try" in
15014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015
*) ac_try_echo=$ac_try;;
15017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018
(eval "$ac_try") 2>&5
15020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021
(exit $ac_status); }; }; then
15023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15025
# Check for a 64-bit object if we didn't find anything.
15026
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; }
15029
echo "$as_me: failed program was:" >&5
15030
sed 's/^/| /' conftest.$ac_ext >&5
15035
rm -f core conftest.err conftest.$ac_objext \
15036
conftest$ac_exeext conftest.$ac_ext
15037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15039
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15040
# Warning - without using the other run time loading flags,
15041
# -berok will link without error, but may produce a broken library.
15042
no_undefined_flag_F77=' ${wl}-bernotok'
15043
allow_undefined_flag_F77=' ${wl}-berok'
15044
# Exported symbols can be pulled into shared objects from archives
15045
whole_archive_flag_spec_F77='$convenience'
15046
archive_cmds_need_lc_F77=yes
15047
# This is similar to how AIX traditionally builds its shared libraries.
15048
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'
15054
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)'
15055
hardcode_libdir_flag_spec_F77='-L$libdir'
15056
hardcode_minus_L_F77=yes
15057
# see comment about different semantics on the GNU ld section
15062
export_dynamic_flag_spec_F77=-rdynamic
15065
cygwin* | mingw* | pw32*)
15066
# When not using gcc, we currently assume that we are using
15067
# Microsoft Visual C++.
15068
# hardcode_libdir_flag_spec is actually meaningless, as there is
15069
# no search path for DLLs.
15070
hardcode_libdir_flag_spec_F77=' '
15071
allow_undefined_flag_F77=unsupported
15072
# Tell ltmain to make .lib files, not .a files.
15074
# Tell ltmain to make .dll files, not .so files.
15076
# FIXME: Setting linknames here is a bad hack.
15077
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15078
# The linker will automatically build a .lib file if we build a DLL.
15079
old_archive_From_new_cmds_F77='true'
15080
# FIXME: Should let the user specify the lib program.
15081
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15082
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15083
enable_shared_with_static_runtimes_F77=yes
15086
darwin* | rhapsody*)
15088
rhapsody* | darwin1.[012])
15089
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15092
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15093
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15095
case ${MACOSX_DEPLOYMENT_TARGET} in
15097
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15100
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15106
archive_cmds_need_lc_F77=no
15107
hardcode_direct_F77=no
15108
hardcode_automatic_F77=yes
15109
hardcode_shlibpath_var_F77=unsupported
15110
whole_archive_flag_spec_F77=''
15111
link_all_deplibs_F77=yes
15112
if test "$GCC" = yes ; then
15113
output_verbose_link_cmd='echo'
15114
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15115
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15116
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15117
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}'
15118
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}'
15120
case $cc_basename in
15122
output_verbose_link_cmd='echo'
15123
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15124
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15125
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15126
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}'
15127
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}'
15137
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138
hardcode_libdir_flag_spec_F77='-L$libdir'
15139
hardcode_shlibpath_var_F77=no
15146
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15147
# support. Future versions do this automatically, but an explicit c++rt0.o
15148
# does not break anything, and helps significantly (at the cost of a little
15151
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15152
hardcode_libdir_flag_spec_F77='-R$libdir'
15153
hardcode_direct_F77=yes
15154
hardcode_shlibpath_var_F77=no
15157
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15159
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160
hardcode_direct_F77=yes
15161
hardcode_minus_L_F77=yes
15162
hardcode_shlibpath_var_F77=no
15165
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15166
freebsd* | kfreebsd*-gnu | dragonfly*)
15167
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15168
hardcode_libdir_flag_spec_F77='-R$libdir'
15169
hardcode_direct_F77=yes
15170
hardcode_shlibpath_var_F77=no
15174
if test "$GCC" = yes; then
15175
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'
15177
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'
15179
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15180
hardcode_libdir_separator_F77=:
15181
hardcode_direct_F77=yes
15183
# hardcode_minus_L: Not really in the search PATH,
15184
# but as the default location of the library.
15185
hardcode_minus_L_F77=yes
15186
export_dynamic_flag_spec_F77='${wl}-E'
15190
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15191
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15193
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15195
if test "$with_gnu_ld" = no; then
15196
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15197
hardcode_libdir_separator_F77=:
15199
hardcode_direct_F77=yes
15200
export_dynamic_flag_spec_F77='${wl}-E'
15202
# hardcode_minus_L: Not really in the search PATH,
15203
# but as the default location of the library.
15204
hardcode_minus_L_F77=yes
15209
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15212
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15218
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15224
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15227
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15230
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15234
if test "$with_gnu_ld" = no; then
15235
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236
hardcode_libdir_separator_F77=:
15240
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15241
hardcode_direct_F77=no
15242
hardcode_shlibpath_var_F77=no
15245
hardcode_direct_F77=yes
15246
export_dynamic_flag_spec_F77='${wl}-E'
15248
# hardcode_minus_L: Not really in the search PATH,
15249
# but as the default location of the library.
15250
hardcode_minus_L_F77=yes
15256
irix5* | irix6* | nonstopux*)
15257
if test "$GCC" = yes; then
15258
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'
15260
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'
15261
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15263
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264
hardcode_libdir_separator_F77=:
15265
link_all_deplibs_F77=yes
15269
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15272
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15274
hardcode_libdir_flag_spec_F77='-R$libdir'
15275
hardcode_direct_F77=yes
15276
hardcode_shlibpath_var_F77=no
15280
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281
hardcode_direct_F77=yes
15282
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283
hardcode_libdir_separator_F77=:
15284
hardcode_shlibpath_var_F77=no
15288
hardcode_direct_F77=yes
15289
hardcode_shlibpath_var_F77=no
15290
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15291
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15292
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15293
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15294
export_dynamic_flag_spec_F77='${wl}-E'
15297
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15298
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15299
hardcode_libdir_flag_spec_F77='-R$libdir'
15302
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15303
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15310
hardcode_libdir_flag_spec_F77='-L$libdir'
15311
hardcode_minus_L_F77=yes
15312
allow_undefined_flag_F77=unsupported
15313
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'
15314
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15318
if test "$GCC" = yes; then
15319
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15320
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'
15322
allow_undefined_flag_F77=' -expect_unresolved \*'
15323
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'
15325
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326
hardcode_libdir_separator_F77=:
15329
osf4* | osf5*) # as osf3* with the addition of -msym flag
15330
if test "$GCC" = yes; then
15331
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15332
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'
15333
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15335
allow_undefined_flag_F77=' -expect_unresolved \*'
15336
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'
15337
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~
15338
$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'
15340
# Both c and cxx compiler support -rpath directly
15341
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15343
hardcode_libdir_separator_F77=:
15347
no_undefined_flag_F77=' -z text'
15348
if test "$GCC" = yes; then
15350
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15352
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15355
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15357
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15359
hardcode_libdir_flag_spec_F77='-R$libdir'
15360
hardcode_shlibpath_var_F77=no
15362
solaris2.[0-5] | solaris2.[0-5].*) ;;
15364
# The compiler driver will combine linker options so we
15365
# cannot just pass the convience library names through
15366
# without $wl, iff we do not link with $LD.
15367
# Luckily, gcc supports the same syntax we need for Sun Studio.
15368
# Supported since Solaris 2.6 (maybe 2.5.1?)
15371
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15373
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' ;;
15376
link_all_deplibs_F77=yes
15380
if test "x$host_vendor" = xsequent; then
15381
# Use $CC to link under sequent, because it throws in some extra .o
15382
# files that make .init and .fini sections work.
15383
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15385
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15387
hardcode_libdir_flag_spec_F77='-L$libdir'
15388
hardcode_direct_F77=yes
15389
hardcode_minus_L_F77=yes
15390
hardcode_shlibpath_var_F77=no
15394
case $host_vendor in
15396
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15397
hardcode_direct_F77=yes # is this really true???
15400
## LD is ld it makes a PLAMLIB
15401
## CC just makes a GrossModule.
15402
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15403
reload_cmds_F77='$CC -r -o $output$reload_objs'
15404
hardcode_direct_F77=no
15407
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15411
runpath_var='LD_RUN_PATH'
15412
hardcode_shlibpath_var_F77=no
15416
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417
hardcode_shlibpath_var_F77=no
15418
export_dynamic_flag_spec_F77='-Bexport'
15422
if test -d /usr/nec; then
15423
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424
hardcode_shlibpath_var_F77=no
15425
runpath_var=LD_RUN_PATH
15426
hardcode_runpath_var=yes
15431
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15432
no_undefined_flag_F77='${wl}-z,text'
15433
archive_cmds_need_lc_F77=no
15434
hardcode_shlibpath_var_F77=no
15435
runpath_var='LD_RUN_PATH'
15437
if test "$GCC" = yes; then
15438
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15439
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15441
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446
sysv5* | sco3.2v5* | sco5v6*)
15447
# Note: We can NOT use -z defs as we might desire, because we do not
15448
# link with -lc, and that would cause any symbols used from libc to
15449
# always be unresolved, which means just about no library would
15450
# ever link correctly. If we're not using GNU ld we use -z text
15451
# though, which does catch some bad symbols but isn't as heavy-handed
15453
no_undefined_flag_F77='${wl}-z,text'
15454
allow_undefined_flag_F77='${wl}-z,nodefs'
15455
archive_cmds_need_lc_F77=no
15456
hardcode_shlibpath_var_F77=no
15457
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15458
hardcode_libdir_separator_F77=':'
15459
link_all_deplibs_F77=yes
15460
export_dynamic_flag_spec_F77='${wl}-Bexport'
15461
runpath_var='LD_RUN_PATH'
15463
if test "$GCC" = yes; then
15464
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15465
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15473
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474
hardcode_libdir_flag_spec_F77='-L$libdir'
15475
hardcode_shlibpath_var_F77=no
15484
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15485
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15486
test "$ld_shlibs_F77" = no && can_build_shared=no
15489
# Do we need to explicitly link libc?
15491
case "x$archive_cmds_need_lc_F77" in
15493
# Assume -lc should be added
15494
archive_cmds_need_lc_F77=yes
15496
if test "$enable_shared" = yes && test "$GCC" = yes; then
15497
case $archive_cmds_F77 in
15499
# FIXME: we may have to deal with multi-command sequences.
15502
# Test whether the compiler implicitly links with -lc since on some
15503
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15504
# to ld, don't add -lc before -lgcc.
15505
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15506
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15508
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511
(eval $ac_compile) 2>&5
15513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514
(exit $ac_status); } 2>conftest.err; then
15517
libobjs=conftest.$ac_objext
15519
wl=$lt_prog_compiler_wl_F77
15520
pic_flag=$lt_prog_compiler_pic_F77
15526
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15527
allow_undefined_flag_F77=
15528
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15529
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532
(exit $ac_status); }
15534
archive_cmds_need_lc_F77=no
15536
archive_cmds_need_lc_F77=yes
15538
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15540
cat conftest.err 1>&5
15543
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15544
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15551
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15552
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15553
library_names_spec=
15554
libname_spec='lib$name'
15558
postuninstall_cmds=
15562
shlibpath_overrides_runpath=unknown
15564
dynamic_linker="$host_os ld.so"
15565
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15566
if test "$GCC" = yes; then
15567
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15568
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15569
# if the path contains ";" then we assume it to be the separator
15570
# otherwise default to the standard path separator (i.e. ":") - it is
15571
# assumed that no part of a normal pathname contains ";" but that should
15572
# okay in the real world where ";" in dirpaths is itself problematic.
15573
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15575
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15578
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15580
need_lib_prefix=unknown
15581
hardcode_into_libs=no
15583
# when you set need_version to no, make sure it does not cause -set_version
15584
# flags to be left without arguments
15585
need_version=unknown
15590
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15591
shlibpath_var=LIBPATH
15593
# AIX 3 has no versioning support, so we append a major version to the name.
15594
soname_spec='${libname}${release}${shared_ext}$major'
15601
hardcode_into_libs=yes
15602
if test "$host_cpu" = ia64; then
15603
# AIX 5 supports IA64
15604
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15605
shlibpath_var=LD_LIBRARY_PATH
15607
# With GCC up to 2.95.x, collect2 would create an import file
15608
# for dependence libraries. The import file would start with
15609
# the line `#! .'. This would cause the generated library to
15610
# depend on `.', always an invalid library. This was fixed in
15611
# development snapshots of GCC prior to 3.0.
15613
aix4 | aix4.[01] | aix4.[01].*)
15614
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15616
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15619
can_build_shared=no
15623
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15624
# soname into executable. Probably we can add versioning support to
15625
# collect2, so additional links can be useful in future.
15626
if test "$aix_use_runtimelinking" = yes; then
15627
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15628
# instead of lib<name>.a to let people know that these are not
15629
# typical AIX shared libraries.
15630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632
# We preserve .a as extension for shared libraries through AIX4.2
15633
# and later when we are not doing run time linking.
15634
library_names_spec='${libname}${release}.a $libname.a'
15635
soname_spec='${libname}${release}${shared_ext}$major'
15637
shlibpath_var=LIBPATH
15642
library_names_spec='$libname.ixlibrary $libname.a'
15643
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15644
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'
15648
library_names_spec='${libname}${shared_ext}'
15649
dynamic_linker="$host_os ld.so"
15650
shlibpath_var=LIBRARY_PATH
15656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657
soname_spec='${libname}${release}${shared_ext}$major'
15658
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15659
shlibpath_var=LD_LIBRARY_PATH
15660
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15661
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15662
# the default ld.so.conf also contains /usr/contrib/lib and
15663
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15664
# libtool to hard-code these into programs
15667
cygwin* | mingw* | pw32*)
15668
version_type=windows
15673
case $GCC,$host_os in
15674
yes,cygwin* | yes,mingw* | yes,pw32*)
15675
library_names_spec='$libname.dll.a'
15676
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15677
postinstall_cmds='base_file=`basename \${file}`~
15678
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15679
dldir=$destdir/`dirname \$dlpath`~
15680
test -d \$dldir || mkdir -p \$dldir~
15681
$install_prog $dir/$dlname \$dldir/$dlname~
15682
chmod a+x \$dldir/$dlname'
15683
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684
dlpath=$dir/\$dldll~
15686
shlibpath_overrides_runpath=yes
15690
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15691
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15695
# MinGW DLLs use traditional 'lib' prefix
15696
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15698
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15699
# It is most probably a Windows format PATH printed by
15700
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15701
# path with ; separators, and with drive letters. We can handle the
15702
# drive letters (cygwin fileutils understands them), so leave them,
15703
# especially as we might pass files found there to a mingw objdump,
15704
# which wouldn't understand a cygwinified path. Ahh.
15705
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15707
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15711
# pw32 DLLs use 'pw' prefix rather than 'lib'
15712
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15721
dynamic_linker='Win32 ld.exe'
15722
# FIXME: first we should search . and the directory the executable is in
15726
darwin* | rhapsody*)
15727
dynamic_linker="$host_os dyld"
15728
version_type=darwin
15731
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15732
soname_spec='${libname}${release}${major}$shared_ext'
15733
shlibpath_overrides_runpath=yes
15734
shlibpath_var=DYLD_LIBRARY_PATH
15735
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15736
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15737
if test "$GCC" = yes; then
15738
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"`
15740
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15742
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
shlibpath_var=LD_LIBRARY_PATH
15762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15763
soname_spec='${libname}${release}${shared_ext}$major'
15764
shlibpath_var=LD_LIBRARY_PATH
15765
shlibpath_overrides_runpath=no
15766
hardcode_into_libs=yes
15767
dynamic_linker='GNU ld.so'
15770
freebsd* | dragonfly*)
15771
# DragonFly does not have aout. When/if they implement a new
15772
# versioning mechanism, adjust this.
15773
if test -x /usr/bin/objformat; then
15774
objformat=`/usr/bin/objformat`
15777
freebsd[123]*) objformat=aout ;;
15778
*) objformat=elf ;;
15781
version_type=freebsd-$objformat
15782
case $version_type in
15784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15789
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15793
shlibpath_var=LD_LIBRARY_PATH
15796
shlibpath_overrides_runpath=yes
15798
freebsd3.[01]* | freebsdelf3.[01]*)
15799
shlibpath_overrides_runpath=yes
15800
hardcode_into_libs=yes
15802
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15803
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15804
shlibpath_overrides_runpath=no
15805
hardcode_into_libs=yes
15807
freebsd*) # from 4.6 on
15808
shlibpath_overrides_runpath=yes
15809
hardcode_into_libs=yes
15818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15819
soname_spec='${libname}${release}${shared_ext}$major'
15820
shlibpath_var=LD_LIBRARY_PATH
15821
hardcode_into_libs=yes
15824
hpux9* | hpux10* | hpux11*)
15825
# Give a soname corresponding to the major version so that dld.sl refuses to
15826
# link against other versions.
15833
hardcode_into_libs=yes
15834
dynamic_linker="$host_os dld.so"
15835
shlibpath_var=LD_LIBRARY_PATH
15836
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838
soname_spec='${libname}${release}${shared_ext}$major'
15839
if test "X$HPUX_IA64_MODE" = X32; then
15840
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15842
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15844
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15848
hardcode_into_libs=yes
15849
dynamic_linker="$host_os dld.sl"
15850
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15851
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853
soname_spec='${libname}${release}${shared_ext}$major'
15854
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15855
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15859
dynamic_linker="$host_os dld.sl"
15860
shlibpath_var=SHLIB_PATH
15861
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863
soname_spec='${libname}${release}${shared_ext}$major'
15866
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15867
postinstall_cmds='chmod 555 $lib'
15874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15875
soname_spec='${libname}${release}${shared_ext}$major'
15876
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15877
shlibpath_var=LD_LIBRARY_PATH
15878
shlibpath_overrides_runpath=no
15879
hardcode_into_libs=yes
15882
irix5* | irix6* | nonstopux*)
15884
nonstopux*) version_type=nonstopux ;;
15886
if test "$lt_cv_prog_gnu_ld" = yes; then
15894
soname_spec='${libname}${release}${shared_ext}$major'
15895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15897
irix5* | nonstopux*)
15898
libsuff= shlibsuff=
15901
case $LD in # libtool.m4 will add one of these switches to LD
15902
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15903
libsuff= shlibsuff= libmagic=32-bit;;
15904
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15905
libsuff=32 shlibsuff=N32 libmagic=N32;;
15906
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15907
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15908
*) libsuff= shlibsuff= libmagic=never-match;;
15912
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15913
shlibpath_overrides_runpath=no
15914
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15915
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15916
hardcode_into_libs=yes
15919
# No shared lib support for Linux oldld, aout, or coff.
15920
linux*oldld* | linux*aout* | linux*coff*)
15924
# This must be Linux ELF.
15929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930
soname_spec='${libname}${release}${shared_ext}$major'
15931
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15932
shlibpath_var=LD_LIBRARY_PATH
15933
shlibpath_overrides_runpath=no
15934
# This implies no fast_install, which is unacceptable.
15935
# Some rework will be needed to allow for fast_install
15936
# before this can be enabled.
15937
hardcode_into_libs=yes
15939
# Append ld.so.conf contents to the search path
15940
if test -f /etc/ld.so.conf; then
15941
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' ' '`
15942
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15945
# We used to test for /lib/ld.so.1 and disable shared libraries on
15946
# powerpc, because MkLinux only supported shared libraries with the
15947
# GNU dynamic linker. Since this was broken with cross compilers,
15948
# most powerpc-linux boxes support dynamic linking these days and
15949
# people can always --disable-shared, the test was removed, and we
15950
# assume the GNU/Linux dynamic linker is in use.
15951
dynamic_linker='GNU/Linux ld.so'
15958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15959
soname_spec='${libname}${release}${shared_ext}$major'
15960
shlibpath_var=LD_LIBRARY_PATH
15961
shlibpath_overrides_runpath=no
15962
hardcode_into_libs=yes
15963
dynamic_linker='GNU ld.so'
15970
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15972
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15973
dynamic_linker='NetBSD (a.out) ld.so'
15975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15976
soname_spec='${libname}${release}${shared_ext}$major'
15977
dynamic_linker='NetBSD ld.elf_so'
15979
shlibpath_var=LD_LIBRARY_PATH
15980
shlibpath_overrides_runpath=yes
15981
hardcode_into_libs=yes
15986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987
shlibpath_var=LD_LIBRARY_PATH
15988
shlibpath_overrides_runpath=yes
15995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996
soname_spec='${libname}${release}${shared_ext}$major'
15997
shlibpath_var=LD_LIBRARY_PATH
15998
shlibpath_overrides_runpath=yes
16003
sys_lib_dlsearch_path_spec="/usr/lib"
16005
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16007
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16008
*) need_version=no ;;
16010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16011
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16012
shlibpath_var=LD_LIBRARY_PATH
16013
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16015
openbsd2.[89] | openbsd2.[89].*)
16016
shlibpath_overrides_runpath=no
16019
shlibpath_overrides_runpath=yes
16023
shlibpath_overrides_runpath=yes
16028
libname_spec='$name'
16031
library_names_spec='$libname${shared_ext} $libname.a'
16032
dynamic_linker='OS/2 ld.exe'
16033
shlibpath_var=LIBPATH
16036
osf3* | osf4* | osf5*)
16040
soname_spec='${libname}${release}${shared_ext}$major'
16041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042
shlibpath_var=LD_LIBRARY_PATH
16043
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16044
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052
soname_spec='${libname}${release}${shared_ext}$major'
16053
shlibpath_var=LD_LIBRARY_PATH
16054
shlibpath_overrides_runpath=yes
16055
hardcode_into_libs=yes
16056
# ldd complains unless libraries are executable
16057
postinstall_cmds='chmod +x $lib'
16062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16063
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16064
shlibpath_var=LD_LIBRARY_PATH
16065
shlibpath_overrides_runpath=yes
16066
if test "$with_gnu_ld" = yes; then
16074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075
soname_spec='${libname}${release}${shared_ext}$major'
16076
shlibpath_var=LD_LIBRARY_PATH
16077
case $host_vendor in
16079
shlibpath_overrides_runpath=no
16081
export_dynamic_flag_spec='${wl}-Blargedynsym'
16082
runpath_var=LD_RUN_PATH
16090
shlibpath_overrides_runpath=no
16091
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16097
if test -d /usr/nec ;then
16099
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16100
soname_spec='$libname${shared_ext}.$major'
16101
shlibpath_var=LD_LIBRARY_PATH
16105
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16106
version_type=freebsd-elf
16109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16110
soname_spec='${libname}${release}${shared_ext}$major'
16111
shlibpath_var=LD_LIBRARY_PATH
16112
hardcode_into_libs=yes
16113
if test "$with_gnu_ld" = yes; then
16114
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16115
shlibpath_overrides_runpath=no
16117
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16118
shlibpath_overrides_runpath=yes
16121
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16125
sys_lib_dlsearch_path_spec='/usr/lib'
16130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131
soname_spec='${libname}${release}${shared_ext}$major'
16132
shlibpath_var=LD_LIBRARY_PATH
16139
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16140
echo "${ECHO_T}$dynamic_linker" >&6; }
16141
test "$dynamic_linker" = no && can_build_shared=no
16143
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16144
if test "$GCC" = yes; then
16145
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16148
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16149
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16150
hardcode_action_F77=
16151
if test -n "$hardcode_libdir_flag_spec_F77" || \
16152
test -n "$runpath_var_F77" || \
16153
test "X$hardcode_automatic_F77" = "Xyes" ; then
16155
# We can hardcode non-existant directories.
16156
if test "$hardcode_direct_F77" != no &&
16157
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16158
# have to relink, otherwise we might link with an installed library
16159
# when we should be linking with a yet-to-be-installed one
16160
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16161
test "$hardcode_minus_L_F77" != no; then
16162
# Linking always hardcodes the temporary library directory.
16163
hardcode_action_F77=relink
16165
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16166
hardcode_action_F77=immediate
16169
# We cannot hardcode anything, or else we can only hardcode existing
16171
hardcode_action_F77=unsupported
16173
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16174
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16176
if test "$hardcode_action_F77" = relink; then
16177
# Fast installation is not supported
16178
enable_fast_install=no
16179
elif test "$shlibpath_overrides_runpath" = yes ||
16180
test "$enable_shared" = no; then
16181
# Fast installation is not necessary
16182
enable_fast_install=needless
16186
# The else clause should only fire when bootstrapping the
16187
# libtool distribution, otherwise you forgot to ship ltmain.sh
16188
# with your package, and you will get complaints that there are
16189
# no rules to generate ltmain.sh.
16190
if test -f "$ltmain"; then
16191
# See if we are running on zsh, and set the options which allow our commands through
16192
# without removal of \ escapes.
16193
if test -n "${ZSH_VERSION+set}" ; then
16194
setopt NO_GLOB_SUBST
16196
# Now quote all the things that may contain metacharacters while being
16197
# careful not to overquote the AC_SUBSTed values. We take copies of the
16198
# variables and quote the copies for generation of the libtool script.
16199
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16201
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16202
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16203
deplibs_check_method reload_flag reload_cmds need_locks \
16204
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16205
lt_cv_sys_global_symbol_to_c_name_address \
16206
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16207
old_postinstall_cmds old_postuninstall_cmds \
16211
lt_prog_compiler_wl_F77 \
16212
lt_prog_compiler_pic_F77 \
16213
lt_prog_compiler_static_F77 \
16214
lt_prog_compiler_no_builtin_flag_F77 \
16215
export_dynamic_flag_spec_F77 \
16216
thread_safe_flag_spec_F77 \
16217
whole_archive_flag_spec_F77 \
16218
enable_shared_with_static_runtimes_F77 \
16219
old_archive_cmds_F77 \
16220
old_archive_from_new_cmds_F77 \
16221
predep_objects_F77 \
16222
postdep_objects_F77 \
16225
compiler_lib_search_path_F77 \
16227
archive_expsym_cmds_F77 \
16228
postinstall_cmds_F77 \
16229
postuninstall_cmds_F77 \
16230
old_archive_from_expsyms_cmds_F77 \
16231
allow_undefined_flag_F77 \
16232
no_undefined_flag_F77 \
16233
export_symbols_cmds_F77 \
16234
hardcode_libdir_flag_spec_F77 \
16235
hardcode_libdir_flag_spec_ld_F77 \
16236
hardcode_libdir_separator_F77 \
16237
hardcode_automatic_F77 \
16239
module_expsym_cmds_F77 \
16240
lt_cv_prog_compiler_c_o_F77 \
16241
exclude_expsyms_F77 \
16242
include_expsyms_F77; do
16245
old_archive_cmds_F77 | \
16246
old_archive_from_new_cmds_F77 | \
16247
archive_cmds_F77 | \
16248
archive_expsym_cmds_F77 | \
16249
module_cmds_F77 | \
16250
module_expsym_cmds_F77 | \
16251
old_archive_from_expsyms_cmds_F77 | \
16252
export_symbols_cmds_F77 | \
16253
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16254
postinstall_cmds | postuninstall_cmds | \
16255
old_postinstall_cmds | old_postuninstall_cmds | \
16256
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16257
# Double-quote double-evaled strings.
16258
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16261
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16267
*'\$0 --fallback-echo"')
16268
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16274
cat <<__EOF__ >> "$cfgfile"
16275
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16277
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16279
# Shell to use when invoking shell scripts.
16282
# Whether or not to build shared libraries.
16283
build_libtool_libs=$enable_shared
16285
# Whether or not to build static libraries.
16286
build_old_libs=$enable_static
16288
# Whether or not to add -lc for building shared libraries.
16289
build_libtool_need_lc=$archive_cmds_need_lc_F77
16291
# Whether or not to disallow shared libs when runtime libs are static
16292
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16294
# Whether or not to optimize for fast installation.
16295
fast_install=$enable_fast_install
16298
host_alias=$host_alias
16302
# The build system.
16303
build_alias=$build_alias
16307
# An echo program that does not interpret backslashes.
16312
AR_FLAGS=$lt_AR_FLAGS
16317
# LTCC compiler flags.
16318
LTCFLAGS=$lt_LTCFLAGS
16320
# A language-specific compiler.
16321
CC=$lt_compiler_F77
16323
# Is the compiler the GNU C compiler?
16329
# The linker used to build libraries.
16332
# Whether we need hard or soft links.
16335
# A BSD-compatible nm program.
16338
# A symbol stripping program
16341
# Used to examine libraries when file_magic_cmd begins "file"
16342
MAGIC_CMD=$MAGIC_CMD
16344
# Used on cygwin: DLL creation program.
16347
# Used on cygwin: object dumper.
16350
# Used on cygwin: assembler.
16353
# The name of the directory that contains temporary libtool files.
16356
# How to create reloadable object files.
16357
reload_flag=$lt_reload_flag
16358
reload_cmds=$lt_reload_cmds
16360
# How to pass a linker flag through the compiler.
16361
wl=$lt_lt_prog_compiler_wl_F77
16363
# Object file suffix (normally "o").
16364
objext="$ac_objext"
16366
# Old archive suffix (normally "a").
16369
# Shared library suffix (normally ".so").
16370
shrext_cmds='$shrext_cmds'
16372
# Executable file suffix (normally "").
16375
# Additional compiler flags for building library objects.
16376
pic_flag=$lt_lt_prog_compiler_pic_F77
16379
# What is the maximum length of a command?
16380
max_cmd_len=$lt_cv_sys_max_cmd_len
16382
# Does compiler simultaneously support -c and -o options?
16383
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16385
# Must we lock files when doing compilation?
16386
need_locks=$lt_need_locks
16388
# Do we need the lib prefix for modules?
16389
need_lib_prefix=$need_lib_prefix
16391
# Do we need a version for libraries?
16392
need_version=$need_version
16394
# Whether dlopen is supported.
16395
dlopen_support=$enable_dlopen
16397
# Whether dlopen of programs is supported.
16398
dlopen_self=$enable_dlopen_self
16400
# Whether dlopen of statically linked programs is supported.
16401
dlopen_self_static=$enable_dlopen_self_static
16403
# Compiler flag to prevent dynamic linking.
16404
link_static_flag=$lt_lt_prog_compiler_static_F77
16406
# Compiler flag to turn off builtin functions.
16407
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16409
# Compiler flag to allow reflexive dlopens.
16410
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16412
# Compiler flag to generate shared objects directly from archives.
16413
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16415
# Compiler flag to generate thread-safe objects.
16416
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16418
# Library versioning type.
16419
version_type=$version_type
16421
# Format of library name prefix.
16422
libname_spec=$lt_libname_spec
16424
# List of archive names. First name is the real one, the rest are links.
16425
# The last name is the one that the linker finds with -lNAME.
16426
library_names_spec=$lt_library_names_spec
16428
# The coded name of the library, if different from the real name.
16429
soname_spec=$lt_soname_spec
16431
# Commands used to build and install an old-style archive.
16433
old_archive_cmds=$lt_old_archive_cmds_F77
16434
old_postinstall_cmds=$lt_old_postinstall_cmds
16435
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16437
# Create an old-style archive from a shared archive.
16438
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16440
# Create a temporary old-style archive to link instead of a shared archive.
16441
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16443
# Commands used to build and install a shared archive.
16444
archive_cmds=$lt_archive_cmds_F77
16445
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16446
postinstall_cmds=$lt_postinstall_cmds
16447
postuninstall_cmds=$lt_postuninstall_cmds
16449
# Commands used to build a loadable module (assumed same as above if empty)
16450
module_cmds=$lt_module_cmds_F77
16451
module_expsym_cmds=$lt_module_expsym_cmds_F77
16453
# Commands to strip libraries.
16454
old_striplib=$lt_old_striplib
16455
striplib=$lt_striplib
16457
# Dependencies to place before the objects being linked to create a
16459
predep_objects=$lt_predep_objects_F77
16461
# Dependencies to place after the objects being linked to create a
16463
postdep_objects=$lt_postdep_objects_F77
16465
# Dependencies to place before the objects being linked to create a
16467
predeps=$lt_predeps_F77
16469
# Dependencies to place after the objects being linked to create a
16471
postdeps=$lt_postdeps_F77
16473
# The library search path used internally by the compiler when linking
16474
# a shared library.
16475
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16477
# Method to check whether dependent libraries are shared objects.
16478
deplibs_check_method=$lt_deplibs_check_method
16480
# Command to use when deplibs_check_method == file_magic.
16481
file_magic_cmd=$lt_file_magic_cmd
16483
# Flag that allows shared libraries with undefined symbols to be built.
16484
allow_undefined_flag=$lt_allow_undefined_flag_F77
16486
# Flag that forces no undefined symbols.
16487
no_undefined_flag=$lt_no_undefined_flag_F77
16489
# Commands used to finish a libtool library installation in a directory.
16490
finish_cmds=$lt_finish_cmds
16492
# Same as above, but a single script fragment to be evaled but not shown.
16493
finish_eval=$lt_finish_eval
16495
# Take the output of nm and produce a listing of raw symbols and C names.
16496
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16498
# Transform the output of nm in a proper C declaration
16499
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16501
# Transform the output of nm in a C name address pair
16502
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16504
# This is the shared library runtime path variable.
16505
runpath_var=$runpath_var
16507
# This is the shared library path variable.
16508
shlibpath_var=$shlibpath_var
16510
# Is shlibpath searched before the hard-coded library search path?
16511
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16513
# How to hardcode a shared library path into an executable.
16514
hardcode_action=$hardcode_action_F77
16516
# Whether we should hardcode library paths into libraries.
16517
hardcode_into_libs=$hardcode_into_libs
16519
# Flag to hardcode \$libdir into a binary during linking.
16520
# This must work even if \$libdir does not exist.
16521
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16523
# If ld is used when linking, flag to hardcode \$libdir into
16524
# a binary during linking. This must work even if \$libdir does
16526
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16528
# Whether we need a single -rpath flag with a separated argument.
16529
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16531
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16532
# resulting binary.
16533
hardcode_direct=$hardcode_direct_F77
16535
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16536
# resulting binary.
16537
hardcode_minus_L=$hardcode_minus_L_F77
16539
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16540
# the resulting binary.
16541
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16543
# Set to yes if building a shared library automatically hardcodes DIR into the library
16544
# and all subsequent libraries and executables linked against it.
16545
hardcode_automatic=$hardcode_automatic_F77
16547
# Variables whose values should be saved in libtool wrapper scripts and
16548
# restored at relink time.
16549
variables_saved_for_relink="$variables_saved_for_relink"
16551
# Whether libtool must link a program against all its dependency libraries.
16552
link_all_deplibs=$link_all_deplibs_F77
16554
# Compile-time system search path for libraries
16555
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16557
# Run-time system search path for libraries
16558
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16560
# Fix the shell variable \$srcfile for the compiler.
16561
fix_srcfile_path="$fix_srcfile_path_F77"
16563
# Set to yes if exported symbols are required.
16564
always_export_symbols=$always_export_symbols_F77
16566
# The commands to list exported symbols.
16567
export_symbols_cmds=$lt_export_symbols_cmds_F77
16569
# The commands to extract the exported symbol list from a shared archive.
16570
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16572
# Symbols that should not be listed in the preloaded symbols.
16573
exclude_expsyms=$lt_exclude_expsyms_F77
16575
# Symbols that must always be exported.
16576
include_expsyms=$lt_include_expsyms_F77
16578
# ### END LIBTOOL TAG CONFIG: $tagname
16584
# If there is no Makefile yet, we rely on a make rule to execute
16585
# `config.status --recheck' to rerun these tests and create the
16586
# libtool script then.
16587
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16588
if test -f "$ltmain_in"; then
16589
test -f Makefile && make "$ltmain"
16595
ac_cpp='$CPP $CPPFLAGS'
16596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16611
# Source file extension for Java test sources.
16614
# Object file extension for compiled Java test sources.
16618
# Code to be used in simple compile tests
16619
lt_simple_compile_test_code="class foo {}\n"
16621
# Code to be used in simple link tests
16622
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16624
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16626
# If no C compiler was specified, use CC.
16629
# If no C compiler flags were specified, use CFLAGS.
16630
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16632
# Allow CC to be a program name with arguments.
16636
# save warnings/boilerplate of simple test code
16637
ac_outfile=conftest.$ac_objext
16638
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16639
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16640
_lt_compiler_boilerplate=`cat conftest.err`
16643
ac_outfile=conftest.$ac_objext
16644
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16645
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16646
_lt_linker_boilerplate=`cat conftest.err`
16650
# Allow CC to be a program name with arguments.
16655
for cc_temp in $compiler""; do
16657
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16663
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16666
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16667
archive_cmds_need_lc_GCJ=no
16669
old_archive_cmds_GCJ=$old_archive_cmds
16672
lt_prog_compiler_no_builtin_flag_GCJ=
16674
if test "$GCC" = yes; then
16675
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16678
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16679
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16680
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16681
echo $ECHO_N "(cached) $ECHO_C" >&6
16683
lt_cv_prog_compiler_rtti_exceptions=no
16684
ac_outfile=conftest.$ac_objext
16685
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686
lt_compiler_flag="-fno-rtti -fno-exceptions"
16687
# Insert the option either (1) after the last *FLAGS variable, or
16688
# (2) before a word containing "conftest.", or (3) at the end.
16689
# Note that $ac_compile itself does not contain backslashes and begins
16690
# with a dollar sign (not a hyphen), so the echo should work correctly.
16691
# The option is referenced via a variable to avoid confusing sed.
16692
lt_compile=`echo "$ac_compile" | $SED \
16693
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695
-e 's:$: $lt_compiler_flag:'`
16696
(eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697
(eval "$lt_compile" 2>conftest.err)
16699
cat conftest.err >&5
16700
echo "$as_me:16700: \$? = $ac_status" >&5
16701
if (exit $ac_status) && test -s "$ac_outfile"; then
16702
# The compiler can only warn and ignore the option if not recognized
16703
# So say no if there are warnings other than the usual output.
16704
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707
lt_cv_prog_compiler_rtti_exceptions=yes
16713
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16714
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16716
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16717
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16724
lt_prog_compiler_wl_GCJ=
16725
lt_prog_compiler_pic_GCJ=
16726
lt_prog_compiler_static_GCJ=
16728
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16729
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16731
if test "$GCC" = yes; then
16732
lt_prog_compiler_wl_GCJ='-Wl,'
16733
lt_prog_compiler_static_GCJ='-static'
16737
# All AIX code is PIC.
16738
if test "$host_cpu" = ia64; then
16739
# AIX 5 now supports IA64 processor
16740
lt_prog_compiler_static_GCJ='-Bstatic'
16745
# FIXME: we need at least 68020 code to build shared libraries, but
16746
# adding the `-m68020' flag to GCC prevents building anything better,
16748
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16751
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16752
# PIC is the default for these OSes.
16755
mingw* | pw32* | os2*)
16756
# This hack is so that the source file can tell whether it is being
16757
# built for inclusion in a dll (and should export symbols for example).
16758
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16761
darwin* | rhapsody*)
16762
# PIC is the default on this platform
16763
# Common symbols not allowed in MH_DYLIB files
16764
lt_prog_compiler_pic_GCJ='-fno-common'
16768
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16769
# Instead, we relocate shared libraries at runtime.
16773
# Just because we use GCC doesn't mean we suddenly get shared libraries
16774
# on systems that don't support them.
16775
lt_prog_compiler_can_build_shared_GCJ=no
16780
if test -d /usr/nec; then
16781
lt_prog_compiler_pic_GCJ=-Kconform_pic
16786
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787
# not for PA HP-UX.
16793
lt_prog_compiler_pic_GCJ='-fPIC'
16799
lt_prog_compiler_pic_GCJ='-fPIC'
16803
# PORTME Check for flag to pass linker flags through the system compiler.
16806
lt_prog_compiler_wl_GCJ='-Wl,'
16807
if test "$host_cpu" = ia64; then
16808
# AIX 5 now supports IA64 processor
16809
lt_prog_compiler_static_GCJ='-Bstatic'
16811
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16815
# PIC is the default on this platform
16816
# Common symbols not allowed in MH_DYLIB files
16817
case $cc_basename in
16819
lt_prog_compiler_pic_GCJ='-qnocommon'
16820
lt_prog_compiler_wl_GCJ='-Wl,'
16825
mingw* | pw32* | os2*)
16826
# This hack is so that the source file can tell whether it is being
16827
# built for inclusion in a dll (and should export symbols for example).
16828
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16831
hpux9* | hpux10* | hpux11*)
16832
lt_prog_compiler_wl_GCJ='-Wl,'
16833
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16834
# not for PA HP-UX.
16840
lt_prog_compiler_pic_GCJ='+Z'
16843
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16844
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16847
irix5* | irix6* | nonstopux*)
16848
lt_prog_compiler_wl_GCJ='-Wl,'
16849
# PIC (with -KPIC) is the default.
16850
lt_prog_compiler_static_GCJ='-non_shared'
16854
lt_prog_compiler_pic_GCJ='-KPIC'
16855
lt_prog_compiler_static_GCJ='-Bstatic'
16859
case $cc_basename in
16861
lt_prog_compiler_wl_GCJ='-Wl,'
16862
lt_prog_compiler_pic_GCJ='-KPIC'
16863
lt_prog_compiler_static_GCJ='-static'
16865
pgcc* | pgf77* | pgf90* | pgf95*)
16866
# Portland Group compilers (*not* the Pentium gcc compiler,
16867
# which looks to be a dead project)
16868
lt_prog_compiler_wl_GCJ='-Wl,'
16869
lt_prog_compiler_pic_GCJ='-fpic'
16870
lt_prog_compiler_static_GCJ='-Bstatic'
16873
lt_prog_compiler_wl_GCJ='-Wl,'
16874
# All Alpha code is PIC.
16875
lt_prog_compiler_static_GCJ='-non_shared'
16880
osf3* | osf4* | osf5*)
16881
lt_prog_compiler_wl_GCJ='-Wl,'
16882
# All OSF/1 code is PIC.
16883
lt_prog_compiler_static_GCJ='-non_shared'
16887
lt_prog_compiler_pic_GCJ='-KPIC'
16888
lt_prog_compiler_static_GCJ='-Bstatic'
16889
case $cc_basename in
16890
f77* | f90* | f95*)
16891
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16893
lt_prog_compiler_wl_GCJ='-Wl,';;
16898
lt_prog_compiler_wl_GCJ='-Qoption ld '
16899
lt_prog_compiler_pic_GCJ='-PIC'
16900
lt_prog_compiler_static_GCJ='-Bstatic'
16903
sysv4 | sysv4.2uw2* | sysv4.3*)
16904
lt_prog_compiler_wl_GCJ='-Wl,'
16905
lt_prog_compiler_pic_GCJ='-KPIC'
16906
lt_prog_compiler_static_GCJ='-Bstatic'
16910
if test -d /usr/nec ;then
16911
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16912
lt_prog_compiler_static_GCJ='-Bstatic'
16916
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16917
lt_prog_compiler_wl_GCJ='-Wl,'
16918
lt_prog_compiler_pic_GCJ='-KPIC'
16919
lt_prog_compiler_static_GCJ='-Bstatic'
16923
lt_prog_compiler_wl_GCJ='-Wl,'
16924
lt_prog_compiler_can_build_shared_GCJ=no
16928
lt_prog_compiler_pic_GCJ='-pic'
16929
lt_prog_compiler_static_GCJ='-Bstatic'
16933
lt_prog_compiler_can_build_shared_GCJ=no
16938
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16939
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16942
# Check to make sure the PIC flag actually works.
16944
if test -n "$lt_prog_compiler_pic_GCJ"; then
16946
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16947
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16948
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16949
echo $ECHO_N "(cached) $ECHO_C" >&6
16951
lt_prog_compiler_pic_works_GCJ=no
16952
ac_outfile=conftest.$ac_objext
16953
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16954
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16955
# Insert the option either (1) after the last *FLAGS variable, or
16956
# (2) before a word containing "conftest.", or (3) at the end.
16957
# Note that $ac_compile itself does not contain backslashes and begins
16958
# with a dollar sign (not a hyphen), so the echo should work correctly.
16959
# The option is referenced via a variable to avoid confusing sed.
16960
lt_compile=`echo "$ac_compile" | $SED \
16961
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963
-e 's:$: $lt_compiler_flag:'`
16964
(eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16965
(eval "$lt_compile" 2>conftest.err)
16967
cat conftest.err >&5
16968
echo "$as_me:16968: \$? = $ac_status" >&5
16969
if (exit $ac_status) && test -s "$ac_outfile"; then
16970
# The compiler can only warn and ignore the option if not recognized
16971
# So say no if there are warnings other than the usual output.
16972
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16973
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16974
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16975
lt_prog_compiler_pic_works_GCJ=yes
16981
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16982
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16984
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16985
case $lt_prog_compiler_pic_GCJ in
16987
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16990
lt_prog_compiler_pic_GCJ=
16991
lt_prog_compiler_can_build_shared_GCJ=no
16996
# For platforms which do not support PIC, -DPIC is meaningless:
16998
lt_prog_compiler_pic_GCJ=
17001
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17006
# Check to make sure the static flag actually works.
17008
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17009
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17010
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17011
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17012
echo $ECHO_N "(cached) $ECHO_C" >&6
17014
lt_prog_compiler_static_works_GCJ=no
17015
save_LDFLAGS="$LDFLAGS"
17016
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17017
printf "$lt_simple_link_test_code" > conftest.$ac_ext
17018
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17019
# The linker can only warn and ignore the option if not recognized
17020
# So say no if there are warnings
17021
if test -s conftest.err; then
17022
# Append any errors to the config.log.
17023
cat conftest.err 1>&5
17024
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17025
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17026
if diff conftest.exp conftest.er2 >/dev/null; then
17027
lt_prog_compiler_static_works_GCJ=yes
17030
lt_prog_compiler_static_works_GCJ=yes
17034
LDFLAGS="$save_LDFLAGS"
17037
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17038
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17040
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17043
lt_prog_compiler_static_GCJ=
17047
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17048
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17049
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17050
echo $ECHO_N "(cached) $ECHO_C" >&6
17052
lt_cv_prog_compiler_c_o_GCJ=no
17053
$rm -r conftest 2>/dev/null
17057
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17059
lt_compiler_flag="-o out/conftest2.$ac_objext"
17060
# Insert the option either (1) after the last *FLAGS variable, or
17061
# (2) before a word containing "conftest.", or (3) at the end.
17062
# Note that $ac_compile itself does not contain backslashes and begins
17063
# with a dollar sign (not a hyphen), so the echo should work correctly.
17064
lt_compile=`echo "$ac_compile" | $SED \
17065
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17066
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17067
-e 's:$: $lt_compiler_flag:'`
17068
(eval echo "\"\$as_me:17068: $lt_compile\"" >&5)
17069
(eval "$lt_compile" 2>out/conftest.err)
17071
cat out/conftest.err >&5
17072
echo "$as_me:17072: \$? = $ac_status" >&5
17073
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17075
# The compiler can only warn and ignore the option if not recognized
17076
# So say no if there are warnings
17077
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17078
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17079
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17080
lt_cv_prog_compiler_c_o_GCJ=yes
17085
# SGI C++ compiler will create directory out/ii_files/ for
17086
# template instantiation
17087
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17088
$rm out/* && rmdir out
17094
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17095
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17098
hard_links="nottested"
17099
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17100
# do not overwrite the value of need_locks provided by the user
17101
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17102
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17105
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17107
ln conftest.a conftest.b 2>&5 || hard_links=no
17108
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17109
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17110
echo "${ECHO_T}$hard_links" >&6; }
17111
if test "$hard_links" = no; then
17112
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17113
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17120
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17121
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17124
allow_undefined_flag_GCJ=
17125
enable_shared_with_static_runtimes_GCJ=no
17127
archive_expsym_cmds_GCJ=
17128
old_archive_From_new_cmds_GCJ=
17129
old_archive_from_expsyms_cmds_GCJ=
17130
export_dynamic_flag_spec_GCJ=
17131
whole_archive_flag_spec_GCJ=
17132
thread_safe_flag_spec_GCJ=
17133
hardcode_libdir_flag_spec_GCJ=
17134
hardcode_libdir_flag_spec_ld_GCJ=
17135
hardcode_libdir_separator_GCJ=
17136
hardcode_direct_GCJ=no
17137
hardcode_minus_L_GCJ=no
17138
hardcode_shlibpath_var_GCJ=unsupported
17139
link_all_deplibs_GCJ=unknown
17140
hardcode_automatic_GCJ=no
17142
module_expsym_cmds_GCJ=
17143
always_export_symbols_GCJ=no
17144
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17145
# include_expsyms should be a list of space-separated symbols to be *always*
17146
# included in the symbol list
17147
include_expsyms_GCJ=
17148
# exclude_expsyms can be an extended regexp of symbols to exclude
17149
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17150
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17151
# as well as any symbol that contains `d'.
17152
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17153
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17154
# platforms (ab)use it in PIC code, but their linkers get confused if
17155
# the symbol is explicitly referenced. Since portable code cannot
17156
# rely on this symbol name, it's probably fine to never include it in
17157
# preloaded symbol tables.
17158
extract_expsyms_cmds=
17159
# Just being paranoid about ensuring that cc_basename is set.
17160
for cc_temp in $compiler""; do
17162
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17163
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17168
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17171
cygwin* | mingw* | pw32*)
17172
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17173
# When not using gcc, we currently assume that we are using
17174
# Microsoft Visual C++.
17175
if test "$GCC" != yes; then
17180
# we just hope/assume this is gcc and not c89 (= MSVC++)
17189
if test "$with_gnu_ld" = yes; then
17190
# If archive_cmds runs LD, not CC, wlarc should be empty
17193
# Set some defaults for GNU ld with shared library support. These
17194
# are reset later if shared libraries are not supported. Putting them
17195
# here allows them to be overridden if necessary.
17196
runpath_var=LD_RUN_PATH
17197
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17198
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17199
# ancient GNU ld didn't support --whole-archive et. al.
17200
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17201
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17203
whole_archive_flag_spec_GCJ=
17205
supports_anon_versioning=no
17206
case `$LD -v 2>/dev/null` in
17207
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17208
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17209
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17210
*\ 2.11.*) ;; # other 2.11 versions
17211
*) supports_anon_versioning=yes ;;
17214
# See if GNU ld supports shared libraries.
17216
aix3* | aix4* | aix5*)
17217
# On AIX/PPC, the GNU linker is very broken
17218
if test "$host_cpu" != ia64; then
17222
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17223
*** to be unable to reliably create shared libraries on AIX.
17224
*** Therefore, libtool is disabling shared libraries support. If you
17225
*** really care for shared libraries, you may want to modify your PATH
17226
*** so that a non-GNU linker is found, and then restart.
17233
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)'
17234
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235
hardcode_minus_L_GCJ=yes
17237
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17238
# that the semantics of dynamic libraries on AmigaOS, at least up
17239
# to version 4, is to share data among multiple programs linked
17240
# with the same dynamic library. Since this doesn't match the
17241
# behavior of shared libraries on other platforms, we can't use
17247
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17248
allow_undefined_flag_GCJ=unsupported
17249
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17250
# support --undefined. This deserves some investigation. FIXME
17251
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17257
cygwin* | mingw* | pw32*)
17258
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17259
# as there is no search path for DLLs.
17260
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261
allow_undefined_flag_GCJ=unsupported
17262
always_export_symbols_GCJ=no
17263
enable_shared_with_static_runtimes_GCJ=yes
17264
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17266
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17267
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17268
# If the export-symbols file already is a .def file (1st line
17269
# is EXPORTS), use it as is; otherwise, prepend...
17270
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17271
cp $export_symbols $output_objdir/$soname.def;
17273
echo EXPORTS > $output_objdir/$soname.def;
17274
cat $export_symbols >> $output_objdir/$soname.def;
17276
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17283
hardcode_direct_GCJ=no
17284
hardcode_shlibpath_var_GCJ=no
17285
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17286
export_dynamic_flag_spec_GCJ='${wl}-E'
17287
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17288
# Instead, shared libraries are loaded at an image base (0x10000000 by
17289
# default) and relocated if they conflict, which is a slow very memory
17290
# consuming and fragmenting process. To avoid this, we pick a random,
17291
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17292
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17293
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'
17294
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'
17298
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17300
case $cc_basename,$host_cpu in
17301
pgcc*) # Portland Group C compiler
17302
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'
17303
tmp_addflag=' $pic_flag'
17305
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17306
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'
17307
tmp_addflag=' $pic_flag -Mnomain' ;;
17308
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17309
tmp_addflag=' -i_dynamic' ;;
17310
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17311
tmp_addflag=' -i_dynamic -nofor_main' ;;
17312
ifc* | ifort*) # Intel Fortran compiler
17313
tmp_addflag=' -nofor_main' ;;
17315
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17317
if test $supports_anon_versioning = yes; then
17318
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17319
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17320
$echo "local: *; };" >> $output_objdir/$libname.ver~
17321
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17329
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17330
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17333
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17334
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17339
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17343
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17344
*** create shared libraries on Solaris systems. Therefore, libtool
17345
*** is disabling shared libraries support. We urge you to upgrade GNU
17346
*** binutils to release 2.9.1 or newer. Another option is to modify
17347
*** your PATH or compiler configuration so that the native linker is
17348
*** used, and then restart.
17351
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17352
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17359
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17360
case `$LD -v 2>&1` in
17361
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17365
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17366
*** reliably create shared libraries on SCO systems. Therefore, libtool
17367
*** is disabling shared libraries support. We urge you to upgrade GNU
17368
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17369
*** your PATH or compiler configuration so that the native linker is
17370
*** used, and then restart.
17375
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17376
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17377
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17378
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17387
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17389
hardcode_direct_GCJ=yes
17390
hardcode_shlibpath_var_GCJ=no
17394
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17403
if test "$ld_shlibs_GCJ" = no; then
17405
hardcode_libdir_flag_spec_GCJ=
17406
export_dynamic_flag_spec_GCJ=
17407
whole_archive_flag_spec_GCJ=
17410
# PORTME fill in a description of your system's linker (not GNU ld)
17413
allow_undefined_flag_GCJ=unsupported
17414
always_export_symbols_GCJ=yes
17415
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'
17416
# Note: this linker hardcodes the directories in LIBPATH if there
17417
# are no directories specified by -L.
17418
hardcode_minus_L_GCJ=yes
17419
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17420
# Neither direct hardcoding nor static linking is supported with a
17422
hardcode_direct_GCJ=unsupported
17427
if test "$host_cpu" = ia64; then
17428
# On IA64, the linker does run time linking by default, so we don't
17429
# have to do anything special.
17430
aix_use_runtimelinking=no
17431
exp_sym_flag='-Bexport'
17434
# If we're using GNU nm, then we don't want the "-C" option.
17435
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17436
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17437
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'
17439
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'
17441
aix_use_runtimelinking=no
17443
# Test if we are trying to use run time linking or normal
17444
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17445
# need to do runtime linking.
17446
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17447
for ld_flag in $LDFLAGS; do
17448
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17449
aix_use_runtimelinking=yes
17456
exp_sym_flag='-bexport'
17457
no_entry_flag='-bnoentry'
17460
# When large executables or shared objects are built, AIX ld can
17461
# have problems creating the table of contents. If linking a library
17462
# or program results in "error TOC overflow" add -mminimal-toc to
17463
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17464
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17466
archive_cmds_GCJ=''
17467
hardcode_direct_GCJ=yes
17468
hardcode_libdir_separator_GCJ=':'
17469
link_all_deplibs_GCJ=yes
17471
if test "$GCC" = yes; then
17472
case $host_os in aix4.[012]|aix4.[012].*)
17473
# We only want to do this on AIX 4.2 and lower, the check
17474
# below for broken collect2 doesn't work under 4.3+
17475
collect2name=`${CC} -print-prog-name=collect2`
17476
if test -f "$collect2name" && \
17477
strings "$collect2name" | grep resolve_lib_name >/dev/null
17479
# We have reworked collect2
17480
hardcode_direct_GCJ=yes
17482
# We have old collect2
17483
hardcode_direct_GCJ=unsupported
17484
# It fails to find uninstalled libraries when the uninstalled
17485
# path is not listed in the libpath. Setting hardcode_minus_L
17486
# to unsupported forces relinking
17487
hardcode_minus_L_GCJ=yes
17488
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489
hardcode_libdir_separator_GCJ=
17493
shared_flag='-shared'
17494
if test "$aix_use_runtimelinking" = yes; then
17495
shared_flag="$shared_flag "'${wl}-G'
17499
if test "$host_cpu" = ia64; then
17500
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17501
# chokes on -Wl,-G. The following line is correct:
17504
if test "$aix_use_runtimelinking" = yes; then
17505
shared_flag='${wl}-G'
17507
shared_flag='${wl}-bM:SRE'
17512
# It seems that -bexpall does not export symbols beginning with
17513
# underscore (_), so it is better to generate a list of symbols to export.
17514
always_export_symbols_GCJ=yes
17515
if test "$aix_use_runtimelinking" = yes; then
17516
# Warning - without using the other runtime loading flags (-brtl),
17517
# -berok will link without error, but may produce a broken library.
17518
allow_undefined_flag_GCJ='-berok'
17519
# Determine the default libpath from the value encoded in an empty executable.
17520
cat >conftest.$ac_ext <<_ACEOF
17523
cat confdefs.h >>conftest.$ac_ext
17524
cat >>conftest.$ac_ext <<_ACEOF
17525
/* end confdefs.h. */
17535
rm -f conftest.$ac_objext conftest$ac_exeext
17536
if { (ac_try="$ac_link"
17537
case "(($ac_try" in
17538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539
*) ac_try_echo=$ac_try;;
17541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542
(eval "$ac_link") 2>conftest.er1
17544
grep -v '^ *+' conftest.er1 >conftest.err
17546
cat conftest.err >&5
17547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548
(exit $ac_status); } &&
17549
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17550
{ (case "(($ac_try" in
17551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552
*) ac_try_echo=$ac_try;;
17554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555
(eval "$ac_try") 2>&5
17557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558
(exit $ac_status); }; } &&
17559
{ ac_try='test -s conftest$ac_exeext'
17560
{ (case "(($ac_try" in
17561
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562
*) ac_try_echo=$ac_try;;
17564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565
(eval "$ac_try") 2>&5
17567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568
(exit $ac_status); }; }; then
17570
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17572
# Check for a 64-bit object if we didn't find anything.
17573
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; }
17576
echo "$as_me: failed program was:" >&5
17577
sed 's/^/| /' conftest.$ac_ext >&5
17582
rm -f core conftest.err conftest.$ac_objext \
17583
conftest$ac_exeext conftest.$ac_ext
17584
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17586
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17587
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"
17589
if test "$host_cpu" = ia64; then
17590
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17591
allow_undefined_flag_GCJ="-z nodefs"
17592
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"
17594
# Determine the default libpath from the value encoded in an empty executable.
17595
cat >conftest.$ac_ext <<_ACEOF
17598
cat confdefs.h >>conftest.$ac_ext
17599
cat >>conftest.$ac_ext <<_ACEOF
17600
/* end confdefs.h. */
17610
rm -f conftest.$ac_objext conftest$ac_exeext
17611
if { (ac_try="$ac_link"
17612
case "(($ac_try" in
17613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614
*) ac_try_echo=$ac_try;;
17616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617
(eval "$ac_link") 2>conftest.er1
17619
grep -v '^ *+' conftest.er1 >conftest.err
17621
cat conftest.err >&5
17622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623
(exit $ac_status); } &&
17624
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625
{ (case "(($ac_try" in
17626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627
*) ac_try_echo=$ac_try;;
17629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630
(eval "$ac_try") 2>&5
17632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633
(exit $ac_status); }; } &&
17634
{ ac_try='test -s conftest$ac_exeext'
17635
{ (case "(($ac_try" in
17636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637
*) ac_try_echo=$ac_try;;
17639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640
(eval "$ac_try") 2>&5
17642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643
(exit $ac_status); }; }; then
17645
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17647
# Check for a 64-bit object if we didn't find anything.
17648
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; }
17651
echo "$as_me: failed program was:" >&5
17652
sed 's/^/| /' conftest.$ac_ext >&5
17657
rm -f core conftest.err conftest.$ac_objext \
17658
conftest$ac_exeext conftest.$ac_ext
17659
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17661
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17662
# Warning - without using the other run time loading flags,
17663
# -berok will link without error, but may produce a broken library.
17664
no_undefined_flag_GCJ=' ${wl}-bernotok'
17665
allow_undefined_flag_GCJ=' ${wl}-berok'
17666
# Exported symbols can be pulled into shared objects from archives
17667
whole_archive_flag_spec_GCJ='$convenience'
17668
archive_cmds_need_lc_GCJ=yes
17669
# This is similar to how AIX traditionally builds its shared libraries.
17670
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'
17676
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)'
17677
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17678
hardcode_minus_L_GCJ=yes
17679
# see comment about different semantics on the GNU ld section
17684
export_dynamic_flag_spec_GCJ=-rdynamic
17687
cygwin* | mingw* | pw32*)
17688
# When not using gcc, we currently assume that we are using
17689
# Microsoft Visual C++.
17690
# hardcode_libdir_flag_spec is actually meaningless, as there is
17691
# no search path for DLLs.
17692
hardcode_libdir_flag_spec_GCJ=' '
17693
allow_undefined_flag_GCJ=unsupported
17694
# Tell ltmain to make .lib files, not .a files.
17696
# Tell ltmain to make .dll files, not .so files.
17698
# FIXME: Setting linknames here is a bad hack.
17699
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17700
# The linker will automatically build a .lib file if we build a DLL.
17701
old_archive_From_new_cmds_GCJ='true'
17702
# FIXME: Should let the user specify the lib program.
17703
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17704
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17705
enable_shared_with_static_runtimes_GCJ=yes
17708
darwin* | rhapsody*)
17710
rhapsody* | darwin1.[012])
17711
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17714
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17715
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17717
case ${MACOSX_DEPLOYMENT_TARGET} in
17719
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17722
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17728
archive_cmds_need_lc_GCJ=no
17729
hardcode_direct_GCJ=no
17730
hardcode_automatic_GCJ=yes
17731
hardcode_shlibpath_var_GCJ=unsupported
17732
whole_archive_flag_spec_GCJ=''
17733
link_all_deplibs_GCJ=yes
17734
if test "$GCC" = yes ; then
17735
output_verbose_link_cmd='echo'
17736
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17737
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17738
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17739
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}'
17740
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}'
17742
case $cc_basename in
17744
output_verbose_link_cmd='echo'
17745
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17746
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17747
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17748
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}'
17749
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}'
17759
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17760
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17761
hardcode_shlibpath_var_GCJ=no
17768
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17769
# support. Future versions do this automatically, but an explicit c++rt0.o
17770
# does not break anything, and helps significantly (at the cost of a little
17773
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17774
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17775
hardcode_direct_GCJ=yes
17776
hardcode_shlibpath_var_GCJ=no
17779
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17781
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17782
hardcode_direct_GCJ=yes
17783
hardcode_minus_L_GCJ=yes
17784
hardcode_shlibpath_var_GCJ=no
17787
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17788
freebsd* | kfreebsd*-gnu | dragonfly*)
17789
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17790
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17791
hardcode_direct_GCJ=yes
17792
hardcode_shlibpath_var_GCJ=no
17796
if test "$GCC" = yes; then
17797
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'
17799
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'
17801
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17802
hardcode_libdir_separator_GCJ=:
17803
hardcode_direct_GCJ=yes
17805
# hardcode_minus_L: Not really in the search PATH,
17806
# but as the default location of the library.
17807
hardcode_minus_L_GCJ=yes
17808
export_dynamic_flag_spec_GCJ='${wl}-E'
17812
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17813
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17815
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17817
if test "$with_gnu_ld" = no; then
17818
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17819
hardcode_libdir_separator_GCJ=:
17821
hardcode_direct_GCJ=yes
17822
export_dynamic_flag_spec_GCJ='${wl}-E'
17824
# hardcode_minus_L: Not really in the search PATH,
17825
# but as the default location of the library.
17826
hardcode_minus_L_GCJ=yes
17831
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17834
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17840
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17846
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17849
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17852
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17856
if test "$with_gnu_ld" = no; then
17857
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17858
hardcode_libdir_separator_GCJ=:
17862
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17863
hardcode_direct_GCJ=no
17864
hardcode_shlibpath_var_GCJ=no
17867
hardcode_direct_GCJ=yes
17868
export_dynamic_flag_spec_GCJ='${wl}-E'
17870
# hardcode_minus_L: Not really in the search PATH,
17871
# but as the default location of the library.
17872
hardcode_minus_L_GCJ=yes
17878
irix5* | irix6* | nonstopux*)
17879
if test "$GCC" = yes; then
17880
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'
17882
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'
17883
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17885
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17886
hardcode_libdir_separator_GCJ=:
17887
link_all_deplibs_GCJ=yes
17891
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17892
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17894
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17896
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17897
hardcode_direct_GCJ=yes
17898
hardcode_shlibpath_var_GCJ=no
17902
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17903
hardcode_direct_GCJ=yes
17904
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17905
hardcode_libdir_separator_GCJ=:
17906
hardcode_shlibpath_var_GCJ=no
17910
hardcode_direct_GCJ=yes
17911
hardcode_shlibpath_var_GCJ=no
17912
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17913
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17914
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17915
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17916
export_dynamic_flag_spec_GCJ='${wl}-E'
17919
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17920
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17921
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17925
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17932
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17933
hardcode_minus_L_GCJ=yes
17934
allow_undefined_flag_GCJ=unsupported
17935
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'
17936
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17940
if test "$GCC" = yes; then
17941
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17942
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'
17944
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17945
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'
17947
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17948
hardcode_libdir_separator_GCJ=:
17951
osf4* | osf5*) # as osf3* with the addition of -msym flag
17952
if test "$GCC" = yes; then
17953
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17954
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'
17955
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17957
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17958
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'
17959
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~
17960
$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'
17962
# Both c and cxx compiler support -rpath directly
17963
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17965
hardcode_libdir_separator_GCJ=:
17969
no_undefined_flag_GCJ=' -z text'
17970
if test "$GCC" = yes; then
17972
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17973
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17974
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17977
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17978
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17979
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17981
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17982
hardcode_shlibpath_var_GCJ=no
17984
solaris2.[0-5] | solaris2.[0-5].*) ;;
17986
# The compiler driver will combine linker options so we
17987
# cannot just pass the convience library names through
17988
# without $wl, iff we do not link with $LD.
17989
# Luckily, gcc supports the same syntax we need for Sun Studio.
17990
# Supported since Solaris 2.6 (maybe 2.5.1?)
17993
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17995
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' ;;
17998
link_all_deplibs_GCJ=yes
18002
if test "x$host_vendor" = xsequent; then
18003
# Use $CC to link under sequent, because it throws in some extra .o
18004
# files that make .init and .fini sections work.
18005
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18007
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18009
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18010
hardcode_direct_GCJ=yes
18011
hardcode_minus_L_GCJ=yes
18012
hardcode_shlibpath_var_GCJ=no
18016
case $host_vendor in
18018
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18019
hardcode_direct_GCJ=yes # is this really true???
18022
## LD is ld it makes a PLAMLIB
18023
## CC just makes a GrossModule.
18024
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18025
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18026
hardcode_direct_GCJ=no
18029
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18033
runpath_var='LD_RUN_PATH'
18034
hardcode_shlibpath_var_GCJ=no
18038
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039
hardcode_shlibpath_var_GCJ=no
18040
export_dynamic_flag_spec_GCJ='-Bexport'
18044
if test -d /usr/nec; then
18045
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18046
hardcode_shlibpath_var_GCJ=no
18047
runpath_var=LD_RUN_PATH
18048
hardcode_runpath_var=yes
18053
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18054
no_undefined_flag_GCJ='${wl}-z,text'
18055
archive_cmds_need_lc_GCJ=no
18056
hardcode_shlibpath_var_GCJ=no
18057
runpath_var='LD_RUN_PATH'
18059
if test "$GCC" = yes; then
18060
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18061
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18064
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068
sysv5* | sco3.2v5* | sco5v6*)
18069
# Note: We can NOT use -z defs as we might desire, because we do not
18070
# link with -lc, and that would cause any symbols used from libc to
18071
# always be unresolved, which means just about no library would
18072
# ever link correctly. If we're not using GNU ld we use -z text
18073
# though, which does catch some bad symbols but isn't as heavy-handed
18075
no_undefined_flag_GCJ='${wl}-z,text'
18076
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18077
archive_cmds_need_lc_GCJ=no
18078
hardcode_shlibpath_var_GCJ=no
18079
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18080
hardcode_libdir_separator_GCJ=':'
18081
link_all_deplibs_GCJ=yes
18082
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18083
runpath_var='LD_RUN_PATH'
18085
if test "$GCC" = yes; then
18086
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18087
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18089
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18090
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18097
hardcode_shlibpath_var_GCJ=no
18106
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18107
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18108
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18111
# Do we need to explicitly link libc?
18113
case "x$archive_cmds_need_lc_GCJ" in
18115
# Assume -lc should be added
18116
archive_cmds_need_lc_GCJ=yes
18118
if test "$enable_shared" = yes && test "$GCC" = yes; then
18119
case $archive_cmds_GCJ in
18121
# FIXME: we may have to deal with multi-command sequences.
18124
# Test whether the compiler implicitly links with -lc since on some
18125
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18126
# to ld, don't add -lc before -lgcc.
18127
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18128
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18130
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18133
(eval $ac_compile) 2>&5
18135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
(exit $ac_status); } 2>conftest.err; then
18139
libobjs=conftest.$ac_objext
18141
wl=$lt_prog_compiler_wl_GCJ
18142
pic_flag=$lt_prog_compiler_pic_GCJ
18148
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18149
allow_undefined_flag_GCJ=
18150
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18151
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154
(exit $ac_status); }
18156
archive_cmds_need_lc_GCJ=no
18158
archive_cmds_need_lc_GCJ=yes
18160
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18162
cat conftest.err 1>&5
18165
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18166
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18173
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18174
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18175
library_names_spec=
18176
libname_spec='lib$name'
18180
postuninstall_cmds=
18184
shlibpath_overrides_runpath=unknown
18186
dynamic_linker="$host_os ld.so"
18187
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18188
if test "$GCC" = yes; then
18189
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18190
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18191
# if the path contains ";" then we assume it to be the separator
18192
# otherwise default to the standard path separator (i.e. ":") - it is
18193
# assumed that no part of a normal pathname contains ";" but that should
18194
# okay in the real world where ";" in dirpaths is itself problematic.
18195
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18197
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18200
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18202
need_lib_prefix=unknown
18203
hardcode_into_libs=no
18205
# when you set need_version to no, make sure it does not cause -set_version
18206
# flags to be left without arguments
18207
need_version=unknown
18212
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18213
shlibpath_var=LIBPATH
18215
# AIX 3 has no versioning support, so we append a major version to the name.
18216
soname_spec='${libname}${release}${shared_ext}$major'
18223
hardcode_into_libs=yes
18224
if test "$host_cpu" = ia64; then
18225
# AIX 5 supports IA64
18226
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18227
shlibpath_var=LD_LIBRARY_PATH
18229
# With GCC up to 2.95.x, collect2 would create an import file
18230
# for dependence libraries. The import file would start with
18231
# the line `#! .'. This would cause the generated library to
18232
# depend on `.', always an invalid library. This was fixed in
18233
# development snapshots of GCC prior to 3.0.
18235
aix4 | aix4.[01] | aix4.[01].*)
18236
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18238
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18241
can_build_shared=no
18245
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18246
# soname into executable. Probably we can add versioning support to
18247
# collect2, so additional links can be useful in future.
18248
if test "$aix_use_runtimelinking" = yes; then
18249
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18250
# instead of lib<name>.a to let people know that these are not
18251
# typical AIX shared libraries.
18252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254
# We preserve .a as extension for shared libraries through AIX4.2
18255
# and later when we are not doing run time linking.
18256
library_names_spec='${libname}${release}.a $libname.a'
18257
soname_spec='${libname}${release}${shared_ext}$major'
18259
shlibpath_var=LIBPATH
18264
library_names_spec='$libname.ixlibrary $libname.a'
18265
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18266
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'
18270
library_names_spec='${libname}${shared_ext}'
18271
dynamic_linker="$host_os ld.so"
18272
shlibpath_var=LIBRARY_PATH
18278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279
soname_spec='${libname}${release}${shared_ext}$major'
18280
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18281
shlibpath_var=LD_LIBRARY_PATH
18282
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18283
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18284
# the default ld.so.conf also contains /usr/contrib/lib and
18285
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18286
# libtool to hard-code these into programs
18289
cygwin* | mingw* | pw32*)
18290
version_type=windows
18295
case $GCC,$host_os in
18296
yes,cygwin* | yes,mingw* | yes,pw32*)
18297
library_names_spec='$libname.dll.a'
18298
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18299
postinstall_cmds='base_file=`basename \${file}`~
18300
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18301
dldir=$destdir/`dirname \$dlpath`~
18302
test -d \$dldir || mkdir -p \$dldir~
18303
$install_prog $dir/$dlname \$dldir/$dlname~
18304
chmod a+x \$dldir/$dlname'
18305
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18306
dlpath=$dir/\$dldll~
18308
shlibpath_overrides_runpath=yes
18312
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18313
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18314
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18317
# MinGW DLLs use traditional 'lib' prefix
18318
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18319
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18320
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18321
# It is most probably a Windows format PATH printed by
18322
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18323
# path with ; separators, and with drive letters. We can handle the
18324
# drive letters (cygwin fileutils understands them), so leave them,
18325
# especially as we might pass files found there to a mingw objdump,
18326
# which wouldn't understand a cygwinified path. Ahh.
18327
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18329
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18333
# pw32 DLLs use 'pw' prefix rather than 'lib'
18334
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18340
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18343
dynamic_linker='Win32 ld.exe'
18344
# FIXME: first we should search . and the directory the executable is in
18348
darwin* | rhapsody*)
18349
dynamic_linker="$host_os dyld"
18350
version_type=darwin
18353
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18354
soname_spec='${libname}${release}${major}$shared_ext'
18355
shlibpath_overrides_runpath=yes
18356
shlibpath_var=DYLD_LIBRARY_PATH
18357
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18358
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18359
if test "$GCC" = yes; then
18360
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"`
18362
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18364
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18372
soname_spec='${libname}${release}${shared_ext}$major'
18373
shlibpath_var=LD_LIBRARY_PATH
18384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18385
soname_spec='${libname}${release}${shared_ext}$major'
18386
shlibpath_var=LD_LIBRARY_PATH
18387
shlibpath_overrides_runpath=no
18388
hardcode_into_libs=yes
18389
dynamic_linker='GNU ld.so'
18392
freebsd* | dragonfly*)
18393
# DragonFly does not have aout. When/if they implement a new
18394
# versioning mechanism, adjust this.
18395
if test -x /usr/bin/objformat; then
18396
objformat=`/usr/bin/objformat`
18399
freebsd[123]*) objformat=aout ;;
18400
*) objformat=elf ;;
18403
version_type=freebsd-$objformat
18404
case $version_type in
18406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18411
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18415
shlibpath_var=LD_LIBRARY_PATH
18418
shlibpath_overrides_runpath=yes
18420
freebsd3.[01]* | freebsdelf3.[01]*)
18421
shlibpath_overrides_runpath=yes
18422
hardcode_into_libs=yes
18424
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18425
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18426
shlibpath_overrides_runpath=no
18427
hardcode_into_libs=yes
18429
freebsd*) # from 4.6 on
18430
shlibpath_overrides_runpath=yes
18431
hardcode_into_libs=yes
18440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18441
soname_spec='${libname}${release}${shared_ext}$major'
18442
shlibpath_var=LD_LIBRARY_PATH
18443
hardcode_into_libs=yes
18446
hpux9* | hpux10* | hpux11*)
18447
# Give a soname corresponding to the major version so that dld.sl refuses to
18448
# link against other versions.
18455
hardcode_into_libs=yes
18456
dynamic_linker="$host_os dld.so"
18457
shlibpath_var=LD_LIBRARY_PATH
18458
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460
soname_spec='${libname}${release}${shared_ext}$major'
18461
if test "X$HPUX_IA64_MODE" = X32; then
18462
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18464
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18466
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18470
hardcode_into_libs=yes
18471
dynamic_linker="$host_os dld.sl"
18472
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18473
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18475
soname_spec='${libname}${release}${shared_ext}$major'
18476
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18477
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18481
dynamic_linker="$host_os dld.sl"
18482
shlibpath_var=SHLIB_PATH
18483
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485
soname_spec='${libname}${release}${shared_ext}$major'
18488
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18489
postinstall_cmds='chmod 555 $lib'
18496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18497
soname_spec='${libname}${release}${shared_ext}$major'
18498
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18499
shlibpath_var=LD_LIBRARY_PATH
18500
shlibpath_overrides_runpath=no
18501
hardcode_into_libs=yes
18504
irix5* | irix6* | nonstopux*)
18506
nonstopux*) version_type=nonstopux ;;
18508
if test "$lt_cv_prog_gnu_ld" = yes; then
18516
soname_spec='${libname}${release}${shared_ext}$major'
18517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18519
irix5* | nonstopux*)
18520
libsuff= shlibsuff=
18523
case $LD in # libtool.m4 will add one of these switches to LD
18524
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18525
libsuff= shlibsuff= libmagic=32-bit;;
18526
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18527
libsuff=32 shlibsuff=N32 libmagic=N32;;
18528
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18529
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18530
*) libsuff= shlibsuff= libmagic=never-match;;
18534
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18535
shlibpath_overrides_runpath=no
18536
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18537
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18538
hardcode_into_libs=yes
18541
# No shared lib support for Linux oldld, aout, or coff.
18542
linux*oldld* | linux*aout* | linux*coff*)
18546
# This must be Linux ELF.
18551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552
soname_spec='${libname}${release}${shared_ext}$major'
18553
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18554
shlibpath_var=LD_LIBRARY_PATH
18555
shlibpath_overrides_runpath=no
18556
# This implies no fast_install, which is unacceptable.
18557
# Some rework will be needed to allow for fast_install
18558
# before this can be enabled.
18559
hardcode_into_libs=yes
18561
# Append ld.so.conf contents to the search path
18562
if test -f /etc/ld.so.conf; then
18563
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' ' '`
18564
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18567
# We used to test for /lib/ld.so.1 and disable shared libraries on
18568
# powerpc, because MkLinux only supported shared libraries with the
18569
# GNU dynamic linker. Since this was broken with cross compilers,
18570
# most powerpc-linux boxes support dynamic linking these days and
18571
# people can always --disable-shared, the test was removed, and we
18572
# assume the GNU/Linux dynamic linker is in use.
18573
dynamic_linker='GNU/Linux ld.so'
18580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18581
soname_spec='${libname}${release}${shared_ext}$major'
18582
shlibpath_var=LD_LIBRARY_PATH
18583
shlibpath_overrides_runpath=no
18584
hardcode_into_libs=yes
18585
dynamic_linker='GNU ld.so'
18592
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18594
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18595
dynamic_linker='NetBSD (a.out) ld.so'
18597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18598
soname_spec='${libname}${release}${shared_ext}$major'
18599
dynamic_linker='NetBSD ld.elf_so'
18601
shlibpath_var=LD_LIBRARY_PATH
18602
shlibpath_overrides_runpath=yes
18603
hardcode_into_libs=yes
18608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609
shlibpath_var=LD_LIBRARY_PATH
18610
shlibpath_overrides_runpath=yes
18617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618
soname_spec='${libname}${release}${shared_ext}$major'
18619
shlibpath_var=LD_LIBRARY_PATH
18620
shlibpath_overrides_runpath=yes
18625
sys_lib_dlsearch_path_spec="/usr/lib"
18627
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18629
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18630
*) need_version=no ;;
18632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18633
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18634
shlibpath_var=LD_LIBRARY_PATH
18635
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18637
openbsd2.[89] | openbsd2.[89].*)
18638
shlibpath_overrides_runpath=no
18641
shlibpath_overrides_runpath=yes
18645
shlibpath_overrides_runpath=yes
18650
libname_spec='$name'
18653
library_names_spec='$libname${shared_ext} $libname.a'
18654
dynamic_linker='OS/2 ld.exe'
18655
shlibpath_var=LIBPATH
18658
osf3* | osf4* | osf5*)
18662
soname_spec='${libname}${release}${shared_ext}$major'
18663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664
shlibpath_var=LD_LIBRARY_PATH
18665
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18666
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674
soname_spec='${libname}${release}${shared_ext}$major'
18675
shlibpath_var=LD_LIBRARY_PATH
18676
shlibpath_overrides_runpath=yes
18677
hardcode_into_libs=yes
18678
# ldd complains unless libraries are executable
18679
postinstall_cmds='chmod +x $lib'
18684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18685
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18686
shlibpath_var=LD_LIBRARY_PATH
18687
shlibpath_overrides_runpath=yes
18688
if test "$with_gnu_ld" = yes; then
18696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697
soname_spec='${libname}${release}${shared_ext}$major'
18698
shlibpath_var=LD_LIBRARY_PATH
18699
case $host_vendor in
18701
shlibpath_overrides_runpath=no
18703
export_dynamic_flag_spec='${wl}-Blargedynsym'
18704
runpath_var=LD_RUN_PATH
18712
shlibpath_overrides_runpath=no
18713
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18719
if test -d /usr/nec ;then
18721
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18722
soname_spec='$libname${shared_ext}.$major'
18723
shlibpath_var=LD_LIBRARY_PATH
18727
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18728
version_type=freebsd-elf
18731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18732
soname_spec='${libname}${release}${shared_ext}$major'
18733
shlibpath_var=LD_LIBRARY_PATH
18734
hardcode_into_libs=yes
18735
if test "$with_gnu_ld" = yes; then
18736
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18737
shlibpath_overrides_runpath=no
18739
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18740
shlibpath_overrides_runpath=yes
18743
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18747
sys_lib_dlsearch_path_spec='/usr/lib'
18752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753
soname_spec='${libname}${release}${shared_ext}$major'
18754
shlibpath_var=LD_LIBRARY_PATH
18761
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18762
echo "${ECHO_T}$dynamic_linker" >&6; }
18763
test "$dynamic_linker" = no && can_build_shared=no
18765
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18766
if test "$GCC" = yes; then
18767
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18770
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18771
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18772
hardcode_action_GCJ=
18773
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18774
test -n "$runpath_var_GCJ" || \
18775
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18777
# We can hardcode non-existant directories.
18778
if test "$hardcode_direct_GCJ" != no &&
18779
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18780
# have to relink, otherwise we might link with an installed library
18781
# when we should be linking with a yet-to-be-installed one
18782
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18783
test "$hardcode_minus_L_GCJ" != no; then
18784
# Linking always hardcodes the temporary library directory.
18785
hardcode_action_GCJ=relink
18787
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18788
hardcode_action_GCJ=immediate
18791
# We cannot hardcode anything, or else we can only hardcode existing
18793
hardcode_action_GCJ=unsupported
18795
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18796
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18798
if test "$hardcode_action_GCJ" = relink; then
18799
# Fast installation is not supported
18800
enable_fast_install=no
18801
elif test "$shlibpath_overrides_runpath" = yes ||
18802
test "$enable_shared" = no; then
18803
# Fast installation is not necessary
18804
enable_fast_install=needless
18808
# The else clause should only fire when bootstrapping the
18809
# libtool distribution, otherwise you forgot to ship ltmain.sh
18810
# with your package, and you will get complaints that there are
18811
# no rules to generate ltmain.sh.
18812
if test -f "$ltmain"; then
18813
# See if we are running on zsh, and set the options which allow our commands through
18814
# without removal of \ escapes.
18815
if test -n "${ZSH_VERSION+set}" ; then
18816
setopt NO_GLOB_SUBST
18818
# Now quote all the things that may contain metacharacters while being
18819
# careful not to overquote the AC_SUBSTed values. We take copies of the
18820
# variables and quote the copies for generation of the libtool script.
18821
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18823
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18824
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18825
deplibs_check_method reload_flag reload_cmds need_locks \
18826
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18827
lt_cv_sys_global_symbol_to_c_name_address \
18828
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18829
old_postinstall_cmds old_postuninstall_cmds \
18833
lt_prog_compiler_wl_GCJ \
18834
lt_prog_compiler_pic_GCJ \
18835
lt_prog_compiler_static_GCJ \
18836
lt_prog_compiler_no_builtin_flag_GCJ \
18837
export_dynamic_flag_spec_GCJ \
18838
thread_safe_flag_spec_GCJ \
18839
whole_archive_flag_spec_GCJ \
18840
enable_shared_with_static_runtimes_GCJ \
18841
old_archive_cmds_GCJ \
18842
old_archive_from_new_cmds_GCJ \
18843
predep_objects_GCJ \
18844
postdep_objects_GCJ \
18847
compiler_lib_search_path_GCJ \
18849
archive_expsym_cmds_GCJ \
18850
postinstall_cmds_GCJ \
18851
postuninstall_cmds_GCJ \
18852
old_archive_from_expsyms_cmds_GCJ \
18853
allow_undefined_flag_GCJ \
18854
no_undefined_flag_GCJ \
18855
export_symbols_cmds_GCJ \
18856
hardcode_libdir_flag_spec_GCJ \
18857
hardcode_libdir_flag_spec_ld_GCJ \
18858
hardcode_libdir_separator_GCJ \
18859
hardcode_automatic_GCJ \
18861
module_expsym_cmds_GCJ \
18862
lt_cv_prog_compiler_c_o_GCJ \
18863
exclude_expsyms_GCJ \
18864
include_expsyms_GCJ; do
18867
old_archive_cmds_GCJ | \
18868
old_archive_from_new_cmds_GCJ | \
18869
archive_cmds_GCJ | \
18870
archive_expsym_cmds_GCJ | \
18871
module_cmds_GCJ | \
18872
module_expsym_cmds_GCJ | \
18873
old_archive_from_expsyms_cmds_GCJ | \
18874
export_symbols_cmds_GCJ | \
18875
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18876
postinstall_cmds | postuninstall_cmds | \
18877
old_postinstall_cmds | old_postuninstall_cmds | \
18878
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18879
# Double-quote double-evaled strings.
18880
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18883
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18889
*'\$0 --fallback-echo"')
18890
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18896
cat <<__EOF__ >> "$cfgfile"
18897
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18899
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18901
# Shell to use when invoking shell scripts.
18904
# Whether or not to build shared libraries.
18905
build_libtool_libs=$enable_shared
18907
# Whether or not to build static libraries.
18908
build_old_libs=$enable_static
18910
# Whether or not to add -lc for building shared libraries.
18911
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18913
# Whether or not to disallow shared libs when runtime libs are static
18914
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18916
# Whether or not to optimize for fast installation.
18917
fast_install=$enable_fast_install
18920
host_alias=$host_alias
18924
# The build system.
18925
build_alias=$build_alias
18929
# An echo program that does not interpret backslashes.
18934
AR_FLAGS=$lt_AR_FLAGS
18939
# LTCC compiler flags.
18940
LTCFLAGS=$lt_LTCFLAGS
18942
# A language-specific compiler.
18943
CC=$lt_compiler_GCJ
18945
# Is the compiler the GNU C compiler?
18951
# The linker used to build libraries.
18954
# Whether we need hard or soft links.
18957
# A BSD-compatible nm program.
18960
# A symbol stripping program
18963
# Used to examine libraries when file_magic_cmd begins "file"
18964
MAGIC_CMD=$MAGIC_CMD
18966
# Used on cygwin: DLL creation program.
18969
# Used on cygwin: object dumper.
18972
# Used on cygwin: assembler.
18975
# The name of the directory that contains temporary libtool files.
18978
# How to create reloadable object files.
18979
reload_flag=$lt_reload_flag
18980
reload_cmds=$lt_reload_cmds
18982
# How to pass a linker flag through the compiler.
18983
wl=$lt_lt_prog_compiler_wl_GCJ
18985
# Object file suffix (normally "o").
18986
objext="$ac_objext"
18988
# Old archive suffix (normally "a").
18991
# Shared library suffix (normally ".so").
18992
shrext_cmds='$shrext_cmds'
18994
# Executable file suffix (normally "").
18997
# Additional compiler flags for building library objects.
18998
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19001
# What is the maximum length of a command?
19002
max_cmd_len=$lt_cv_sys_max_cmd_len
19004
# Does compiler simultaneously support -c and -o options?
19005
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19007
# Must we lock files when doing compilation?
19008
need_locks=$lt_need_locks
19010
# Do we need the lib prefix for modules?
19011
need_lib_prefix=$need_lib_prefix
19013
# Do we need a version for libraries?
19014
need_version=$need_version
19016
# Whether dlopen is supported.
19017
dlopen_support=$enable_dlopen
19019
# Whether dlopen of programs is supported.
19020
dlopen_self=$enable_dlopen_self
19022
# Whether dlopen of statically linked programs is supported.
19023
dlopen_self_static=$enable_dlopen_self_static
19025
# Compiler flag to prevent dynamic linking.
19026
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19028
# Compiler flag to turn off builtin functions.
19029
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19031
# Compiler flag to allow reflexive dlopens.
19032
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19034
# Compiler flag to generate shared objects directly from archives.
19035
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19037
# Compiler flag to generate thread-safe objects.
19038
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19040
# Library versioning type.
19041
version_type=$version_type
19043
# Format of library name prefix.
19044
libname_spec=$lt_libname_spec
19046
# List of archive names. First name is the real one, the rest are links.
19047
# The last name is the one that the linker finds with -lNAME.
19048
library_names_spec=$lt_library_names_spec
19050
# The coded name of the library, if different from the real name.
19051
soname_spec=$lt_soname_spec
19053
# Commands used to build and install an old-style archive.
19055
old_archive_cmds=$lt_old_archive_cmds_GCJ
19056
old_postinstall_cmds=$lt_old_postinstall_cmds
19057
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19059
# Create an old-style archive from a shared archive.
19060
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19062
# Create a temporary old-style archive to link instead of a shared archive.
19063
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19065
# Commands used to build and install a shared archive.
19066
archive_cmds=$lt_archive_cmds_GCJ
19067
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19068
postinstall_cmds=$lt_postinstall_cmds
19069
postuninstall_cmds=$lt_postuninstall_cmds
19071
# Commands used to build a loadable module (assumed same as above if empty)
19072
module_cmds=$lt_module_cmds_GCJ
19073
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19075
# Commands to strip libraries.
19076
old_striplib=$lt_old_striplib
19077
striplib=$lt_striplib
19079
# Dependencies to place before the objects being linked to create a
19081
predep_objects=$lt_predep_objects_GCJ
19083
# Dependencies to place after the objects being linked to create a
19085
postdep_objects=$lt_postdep_objects_GCJ
19087
# Dependencies to place before the objects being linked to create a
19089
predeps=$lt_predeps_GCJ
19091
# Dependencies to place after the objects being linked to create a
19093
postdeps=$lt_postdeps_GCJ
19095
# The library search path used internally by the compiler when linking
19096
# a shared library.
19097
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19099
# Method to check whether dependent libraries are shared objects.
19100
deplibs_check_method=$lt_deplibs_check_method
19102
# Command to use when deplibs_check_method == file_magic.
19103
file_magic_cmd=$lt_file_magic_cmd
19105
# Flag that allows shared libraries with undefined symbols to be built.
19106
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19108
# Flag that forces no undefined symbols.
19109
no_undefined_flag=$lt_no_undefined_flag_GCJ
19111
# Commands used to finish a libtool library installation in a directory.
19112
finish_cmds=$lt_finish_cmds
19114
# Same as above, but a single script fragment to be evaled but not shown.
19115
finish_eval=$lt_finish_eval
19117
# Take the output of nm and produce a listing of raw symbols and C names.
19118
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19120
# Transform the output of nm in a proper C declaration
19121
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19123
# Transform the output of nm in a C name address pair
19124
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19126
# This is the shared library runtime path variable.
19127
runpath_var=$runpath_var
19129
# This is the shared library path variable.
19130
shlibpath_var=$shlibpath_var
19132
# Is shlibpath searched before the hard-coded library search path?
19133
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19135
# How to hardcode a shared library path into an executable.
19136
hardcode_action=$hardcode_action_GCJ
19138
# Whether we should hardcode library paths into libraries.
19139
hardcode_into_libs=$hardcode_into_libs
19141
# Flag to hardcode \$libdir into a binary during linking.
19142
# This must work even if \$libdir does not exist.
19143
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19145
# If ld is used when linking, flag to hardcode \$libdir into
19146
# a binary during linking. This must work even if \$libdir does
19148
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19150
# Whether we need a single -rpath flag with a separated argument.
19151
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19153
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19154
# resulting binary.
19155
hardcode_direct=$hardcode_direct_GCJ
19157
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19158
# resulting binary.
19159
hardcode_minus_L=$hardcode_minus_L_GCJ
19161
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19162
# the resulting binary.
19163
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19165
# Set to yes if building a shared library automatically hardcodes DIR into the library
19166
# and all subsequent libraries and executables linked against it.
19167
hardcode_automatic=$hardcode_automatic_GCJ
19169
# Variables whose values should be saved in libtool wrapper scripts and
19170
# restored at relink time.
19171
variables_saved_for_relink="$variables_saved_for_relink"
19173
# Whether libtool must link a program against all its dependency libraries.
19174
link_all_deplibs=$link_all_deplibs_GCJ
19176
# Compile-time system search path for libraries
19177
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19179
# Run-time system search path for libraries
19180
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19182
# Fix the shell variable \$srcfile for the compiler.
19183
fix_srcfile_path="$fix_srcfile_path_GCJ"
19185
# Set to yes if exported symbols are required.
19186
always_export_symbols=$always_export_symbols_GCJ
19188
# The commands to list exported symbols.
19189
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19191
# The commands to extract the exported symbol list from a shared archive.
19192
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19194
# Symbols that should not be listed in the preloaded symbols.
19195
exclude_expsyms=$lt_exclude_expsyms_GCJ
19197
# Symbols that must always be exported.
19198
include_expsyms=$lt_include_expsyms_GCJ
19200
# ### END LIBTOOL TAG CONFIG: $tagname
19206
# If there is no Makefile yet, we rely on a make rule to execute
19207
# `config.status --recheck' to rerun these tests and create the
19208
# libtool script then.
19209
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19210
if test -f "$ltmain_in"; then
19211
test -f Makefile && make "$ltmain"
19217
ac_cpp='$CPP $CPPFLAGS'
19218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19232
# Source file extension for RC test sources.
19235
# Object file extension for compiled RC test sources.
19239
# Code to be used in simple compile tests
19240
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19242
# Code to be used in simple link tests
19243
lt_simple_link_test_code="$lt_simple_compile_test_code"
19245
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19247
# If no C compiler was specified, use CC.
19250
# If no C compiler flags were specified, use CFLAGS.
19251
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19253
# Allow CC to be a program name with arguments.
19257
# save warnings/boilerplate of simple test code
19258
ac_outfile=conftest.$ac_objext
19259
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19260
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19261
_lt_compiler_boilerplate=`cat conftest.err`
19264
ac_outfile=conftest.$ac_objext
19265
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19266
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19267
_lt_linker_boilerplate=`cat conftest.err`
19271
# Allow CC to be a program name with arguments.
19276
for cc_temp in $compiler""; do
19278
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19279
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19284
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19286
lt_cv_prog_compiler_c_o_RC=yes
19288
# The else clause should only fire when bootstrapping the
19289
# libtool distribution, otherwise you forgot to ship ltmain.sh
19290
# with your package, and you will get complaints that there are
19291
# no rules to generate ltmain.sh.
19292
if test -f "$ltmain"; then
19293
# See if we are running on zsh, and set the options which allow our commands through
19294
# without removal of \ escapes.
19295
if test -n "${ZSH_VERSION+set}" ; then
19296
setopt NO_GLOB_SUBST
19298
# Now quote all the things that may contain metacharacters while being
19299
# careful not to overquote the AC_SUBSTed values. We take copies of the
19300
# variables and quote the copies for generation of the libtool script.
19301
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19303
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19304
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19305
deplibs_check_method reload_flag reload_cmds need_locks \
19306
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19307
lt_cv_sys_global_symbol_to_c_name_address \
19308
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19309
old_postinstall_cmds old_postuninstall_cmds \
19313
lt_prog_compiler_wl_RC \
19314
lt_prog_compiler_pic_RC \
19315
lt_prog_compiler_static_RC \
19316
lt_prog_compiler_no_builtin_flag_RC \
19317
export_dynamic_flag_spec_RC \
19318
thread_safe_flag_spec_RC \
19319
whole_archive_flag_spec_RC \
19320
enable_shared_with_static_runtimes_RC \
19321
old_archive_cmds_RC \
19322
old_archive_from_new_cmds_RC \
19323
predep_objects_RC \
19324
postdep_objects_RC \
19327
compiler_lib_search_path_RC \
19329
archive_expsym_cmds_RC \
19330
postinstall_cmds_RC \
19331
postuninstall_cmds_RC \
19332
old_archive_from_expsyms_cmds_RC \
19333
allow_undefined_flag_RC \
19334
no_undefined_flag_RC \
19335
export_symbols_cmds_RC \
19336
hardcode_libdir_flag_spec_RC \
19337
hardcode_libdir_flag_spec_ld_RC \
19338
hardcode_libdir_separator_RC \
19339
hardcode_automatic_RC \
19341
module_expsym_cmds_RC \
19342
lt_cv_prog_compiler_c_o_RC \
19343
exclude_expsyms_RC \
19344
include_expsyms_RC; do
19347
old_archive_cmds_RC | \
19348
old_archive_from_new_cmds_RC | \
19349
archive_cmds_RC | \
19350
archive_expsym_cmds_RC | \
19352
module_expsym_cmds_RC | \
19353
old_archive_from_expsyms_cmds_RC | \
19354
export_symbols_cmds_RC | \
19355
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19356
postinstall_cmds | postuninstall_cmds | \
19357
old_postinstall_cmds | old_postuninstall_cmds | \
19358
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19359
# Double-quote double-evaled strings.
19360
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19363
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19369
*'\$0 --fallback-echo"')
19370
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19376
cat <<__EOF__ >> "$cfgfile"
19377
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19379
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19381
# Shell to use when invoking shell scripts.
19384
# Whether or not to build shared libraries.
19385
build_libtool_libs=$enable_shared
19387
# Whether or not to build static libraries.
19388
build_old_libs=$enable_static
19390
# Whether or not to add -lc for building shared libraries.
19391
build_libtool_need_lc=$archive_cmds_need_lc_RC
19393
# Whether or not to disallow shared libs when runtime libs are static
19394
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19396
# Whether or not to optimize for fast installation.
19397
fast_install=$enable_fast_install
19400
host_alias=$host_alias
19404
# The build system.
19405
build_alias=$build_alias
19409
# An echo program that does not interpret backslashes.
19414
AR_FLAGS=$lt_AR_FLAGS
19419
# LTCC compiler flags.
19420
LTCFLAGS=$lt_LTCFLAGS
19422
# A language-specific compiler.
19425
# Is the compiler the GNU C compiler?
19431
# The linker used to build libraries.
19434
# Whether we need hard or soft links.
19437
# A BSD-compatible nm program.
19440
# A symbol stripping program
19443
# Used to examine libraries when file_magic_cmd begins "file"
19444
MAGIC_CMD=$MAGIC_CMD
19446
# Used on cygwin: DLL creation program.
19449
# Used on cygwin: object dumper.
19452
# Used on cygwin: assembler.
19455
# The name of the directory that contains temporary libtool files.
19458
# How to create reloadable object files.
19459
reload_flag=$lt_reload_flag
19460
reload_cmds=$lt_reload_cmds
19462
# How to pass a linker flag through the compiler.
19463
wl=$lt_lt_prog_compiler_wl_RC
19465
# Object file suffix (normally "o").
19466
objext="$ac_objext"
19468
# Old archive suffix (normally "a").
19471
# Shared library suffix (normally ".so").
19472
shrext_cmds='$shrext_cmds'
19474
# Executable file suffix (normally "").
19477
# Additional compiler flags for building library objects.
19478
pic_flag=$lt_lt_prog_compiler_pic_RC
19481
# What is the maximum length of a command?
19482
max_cmd_len=$lt_cv_sys_max_cmd_len
19484
# Does compiler simultaneously support -c and -o options?
19485
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19487
# Must we lock files when doing compilation?
19488
need_locks=$lt_need_locks
19490
# Do we need the lib prefix for modules?
19491
need_lib_prefix=$need_lib_prefix
19493
# Do we need a version for libraries?
19494
need_version=$need_version
19496
# Whether dlopen is supported.
19497
dlopen_support=$enable_dlopen
19499
# Whether dlopen of programs is supported.
19500
dlopen_self=$enable_dlopen_self
19502
# Whether dlopen of statically linked programs is supported.
19503
dlopen_self_static=$enable_dlopen_self_static
19505
# Compiler flag to prevent dynamic linking.
19506
link_static_flag=$lt_lt_prog_compiler_static_RC
19508
# Compiler flag to turn off builtin functions.
19509
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19511
# Compiler flag to allow reflexive dlopens.
19512
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19514
# Compiler flag to generate shared objects directly from archives.
19515
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19517
# Compiler flag to generate thread-safe objects.
19518
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19520
# Library versioning type.
19521
version_type=$version_type
19523
# Format of library name prefix.
19524
libname_spec=$lt_libname_spec
19526
# List of archive names. First name is the real one, the rest are links.
19527
# The last name is the one that the linker finds with -lNAME.
19528
library_names_spec=$lt_library_names_spec
19530
# The coded name of the library, if different from the real name.
19531
soname_spec=$lt_soname_spec
19533
# Commands used to build and install an old-style archive.
19535
old_archive_cmds=$lt_old_archive_cmds_RC
19536
old_postinstall_cmds=$lt_old_postinstall_cmds
19537
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19539
# Create an old-style archive from a shared archive.
19540
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19542
# Create a temporary old-style archive to link instead of a shared archive.
19543
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19545
# Commands used to build and install a shared archive.
19546
archive_cmds=$lt_archive_cmds_RC
19547
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19548
postinstall_cmds=$lt_postinstall_cmds
19549
postuninstall_cmds=$lt_postuninstall_cmds
19551
# Commands used to build a loadable module (assumed same as above if empty)
19552
module_cmds=$lt_module_cmds_RC
19553
module_expsym_cmds=$lt_module_expsym_cmds_RC
19555
# Commands to strip libraries.
19556
old_striplib=$lt_old_striplib
19557
striplib=$lt_striplib
19559
# Dependencies to place before the objects being linked to create a
19561
predep_objects=$lt_predep_objects_RC
19563
# Dependencies to place after the objects being linked to create a
19565
postdep_objects=$lt_postdep_objects_RC
19567
# Dependencies to place before the objects being linked to create a
19569
predeps=$lt_predeps_RC
19571
# Dependencies to place after the objects being linked to create a
19573
postdeps=$lt_postdeps_RC
19575
# The library search path used internally by the compiler when linking
19576
# a shared library.
19577
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19579
# Method to check whether dependent libraries are shared objects.
19580
deplibs_check_method=$lt_deplibs_check_method
19582
# Command to use when deplibs_check_method == file_magic.
19583
file_magic_cmd=$lt_file_magic_cmd
19585
# Flag that allows shared libraries with undefined symbols to be built.
19586
allow_undefined_flag=$lt_allow_undefined_flag_RC
19588
# Flag that forces no undefined symbols.
19589
no_undefined_flag=$lt_no_undefined_flag_RC
19591
# Commands used to finish a libtool library installation in a directory.
19592
finish_cmds=$lt_finish_cmds
19594
# Same as above, but a single script fragment to be evaled but not shown.
19595
finish_eval=$lt_finish_eval
19597
# Take the output of nm and produce a listing of raw symbols and C names.
19598
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19600
# Transform the output of nm in a proper C declaration
19601
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19603
# Transform the output of nm in a C name address pair
19604
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19606
# This is the shared library runtime path variable.
19607
runpath_var=$runpath_var
19609
# This is the shared library path variable.
19610
shlibpath_var=$shlibpath_var
19612
# Is shlibpath searched before the hard-coded library search path?
19613
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19615
# How to hardcode a shared library path into an executable.
19616
hardcode_action=$hardcode_action_RC
19618
# Whether we should hardcode library paths into libraries.
19619
hardcode_into_libs=$hardcode_into_libs
19621
# Flag to hardcode \$libdir into a binary during linking.
19622
# This must work even if \$libdir does not exist.
19623
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19625
# If ld is used when linking, flag to hardcode \$libdir into
19626
# a binary during linking. This must work even if \$libdir does
19628
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19630
# Whether we need a single -rpath flag with a separated argument.
19631
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19633
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19634
# resulting binary.
19635
hardcode_direct=$hardcode_direct_RC
19637
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19638
# resulting binary.
19639
hardcode_minus_L=$hardcode_minus_L_RC
19641
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19642
# the resulting binary.
19643
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19645
# Set to yes if building a shared library automatically hardcodes DIR into the library
19646
# and all subsequent libraries and executables linked against it.
19647
hardcode_automatic=$hardcode_automatic_RC
19649
# Variables whose values should be saved in libtool wrapper scripts and
19650
# restored at relink time.
19651
variables_saved_for_relink="$variables_saved_for_relink"
19653
# Whether libtool must link a program against all its dependency libraries.
19654
link_all_deplibs=$link_all_deplibs_RC
19656
# Compile-time system search path for libraries
19657
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19659
# Run-time system search path for libraries
19660
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19662
# Fix the shell variable \$srcfile for the compiler.
19663
fix_srcfile_path="$fix_srcfile_path_RC"
19665
# Set to yes if exported symbols are required.
19666
always_export_symbols=$always_export_symbols_RC
19668
# The commands to list exported symbols.
19669
export_symbols_cmds=$lt_export_symbols_cmds_RC
19671
# The commands to extract the exported symbol list from a shared archive.
19672
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19674
# Symbols that should not be listed in the preloaded symbols.
19675
exclude_expsyms=$lt_exclude_expsyms_RC
19677
# Symbols that must always be exported.
19678
include_expsyms=$lt_include_expsyms_RC
19680
# ### END LIBTOOL TAG CONFIG: $tagname
19686
# If there is no Makefile yet, we rely on a make rule to execute
19687
# `config.status --recheck' to rerun these tests and create the
19688
# libtool script then.
19689
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19690
if test -f "$ltmain_in"; then
19691
test -f Makefile && make "$ltmain"
19697
ac_cpp='$CPP $CPPFLAGS'
19698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19707
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19708
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19709
{ (exit 1); exit 1; }; }
19713
# Append the new tag name to the list of available tags.
19714
if test -n "$tagname" ; then
19715
available_tags="$available_tags $tagname"
19721
# Now substitute the updated list of available tags.
19722
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19723
mv "${ofile}T" "$ofile"
19727
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19728
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19729
{ (exit 1); exit 1; }; }
19735
# This can be used to rebuild libtool when needed
19736
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19738
# Always use our own libtool.
19739
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19741
# Prevent multiple expansion
19763
# Extract the first word of "test", so it can be a program name with args.
19764
set dummy test; ac_word=$2
19765
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19767
if test "${ac_cv_path_TEST+set}" = set; then
19768
echo $ECHO_N "(cached) $ECHO_C" >&6
19772
ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
19775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776
for as_dir in $PATH
19779
test -z "$as_dir" && as_dir=.
19780
for ac_exec_ext in '' $ac_executable_extensions; do
19781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19782
ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
19783
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790
test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="$PATH"
19794
TEST=$ac_cv_path_TEST
19795
if test -n "$TEST"; then
19796
{ echo "$as_me:$LINENO: result: $TEST" >&5
19797
echo "${ECHO_T}$TEST" >&6; }
19799
{ echo "$as_me:$LINENO: result: no" >&5
19800
echo "${ECHO_T}no" >&6; }
19805
# Extract the first word of "rm", so it can be a program name with args.
19806
set dummy rm; ac_word=$2
19807
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19809
if test "${ac_cv_path_RM+set}" = set; then
19810
echo $ECHO_N "(cached) $ECHO_C" >&6
19814
ac_cv_path_RM="$RM" # Let the user override the test with a path.
19817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818
for as_dir in $PATH
19821
test -z "$as_dir" && as_dir=.
19822
for ac_exec_ext in '' $ac_executable_extensions; do
19823
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19824
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
19825
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19832
test -z "$ac_cv_path_RM" && ac_cv_path_RM="$PATH"
19837
if test -n "$RM"; then
19838
{ echo "$as_me:$LINENO: result: $RM" >&5
19839
echo "${ECHO_T}$RM" >&6; }
19841
{ echo "$as_me:$LINENO: result: no" >&5
19842
echo "${ECHO_T}no" >&6; }
19847
# Extract the first word of "grep", so it can be a program name with args.
19848
set dummy grep; ac_word=$2
19849
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19851
if test "${ac_cv_path_GREP+set}" = set; then
19852
echo $ECHO_N "(cached) $ECHO_C" >&6
19856
ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860
for as_dir in $PATH
19863
test -z "$as_dir" && as_dir=.
19864
for ac_exec_ext in '' $ac_executable_extensions; do
19865
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19866
ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19867
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19874
test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="$PATH"
19878
GREP=$ac_cv_path_GREP
19879
if test -n "$GREP"; then
19880
{ echo "$as_me:$LINENO: result: $GREP" >&5
19881
echo "${ECHO_T}$GREP" >&6; }
19883
{ echo "$as_me:$LINENO: result: no" >&5
19884
echo "${ECHO_T}no" >&6; }
19889
# Extract the first word of "echo", so it can be a program name with args.
19890
set dummy echo; ac_word=$2
19891
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19893
if test "${ac_cv_path_ECHO+set}" = set; then
19894
echo $ECHO_N "(cached) $ECHO_C" >&6
19898
ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
19901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19902
for as_dir in $PATH
19905
test -z "$as_dir" && as_dir=.
19906
for ac_exec_ext in '' $ac_executable_extensions; do
19907
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19908
ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
19909
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916
test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
19920
ECHO=$ac_cv_path_ECHO
19921
if test -n "$ECHO"; then
19922
{ echo "$as_me:$LINENO: result: $ECHO" >&5
19923
echo "${ECHO_T}$ECHO" >&6; }
19925
{ echo "$as_me:$LINENO: result: no" >&5
19926
echo "${ECHO_T}no" >&6; }
19931
# Extract the first word of "sed", so it can be a program name with args.
19932
set dummy sed; ac_word=$2
19933
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19935
if test "${ac_cv_path_SED+set}" = set; then
19936
echo $ECHO_N "(cached) $ECHO_C" >&6
19940
ac_cv_path_SED="$SED" # Let the user override the test with a path.
19943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19944
for as_dir in $PATH
19947
test -z "$as_dir" && as_dir=.
19948
for ac_exec_ext in '' $ac_executable_extensions; do
19949
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19950
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
19951
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19958
test -z "$ac_cv_path_SED" && ac_cv_path_SED="$PATH"
19962
SED=$ac_cv_path_SED
19963
if test -n "$SED"; then
19964
{ echo "$as_me:$LINENO: result: $SED" >&5
19965
echo "${ECHO_T}$SED" >&6; }
19967
{ echo "$as_me:$LINENO: result: no" >&5
19968
echo "${ECHO_T}no" >&6; }
19973
# Extract the first word of "cp", so it can be a program name with args.
19974
set dummy cp; ac_word=$2
19975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19977
if test "${ac_cv_path_CP+set}" = set; then
19978
echo $ECHO_N "(cached) $ECHO_C" >&6
19982
ac_cv_path_CP="$CP" # Let the user override the test with a path.
19985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19986
for as_dir in $PATH
19989
test -z "$as_dir" && as_dir=.
19990
for ac_exec_ext in '' $ac_executable_extensions; do
19991
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19992
ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
19993
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20000
test -z "$ac_cv_path_CP" && ac_cv_path_CP="$PATH"
20005
if test -n "$CP"; then
20006
{ echo "$as_me:$LINENO: result: $CP" >&5
20007
echo "${ECHO_T}$CP" >&6; }
20009
{ echo "$as_me:$LINENO: result: no" >&5
20010
echo "${ECHO_T}no" >&6; }
20015
# Extract the first word of "mkdir", so it can be a program name with args.
20016
set dummy mkdir; ac_word=$2
20017
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20019
if test "${ac_cv_path_MKDIR+set}" = set; then
20020
echo $ECHO_N "(cached) $ECHO_C" >&6
20024
ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
20027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028
for as_dir in $PATH
20031
test -z "$as_dir" && as_dir=.
20032
for ac_exec_ext in '' $ac_executable_extensions; do
20033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20034
ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
20035
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042
test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$PATH"
20046
MKDIR=$ac_cv_path_MKDIR
20047
if test -n "$MKDIR"; then
20048
{ echo "$as_me:$LINENO: result: $MKDIR" >&5
20049
echo "${ECHO_T}$MKDIR" >&6; }
20051
{ echo "$as_me:$LINENO: result: no" >&5
20052
echo "${ECHO_T}no" >&6; }
20060
{ echo "$as_me:$LINENO: checking for char" >&5
20061
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20062
if test "${ac_cv_type_char+set}" = set; then
20063
echo $ECHO_N "(cached) $ECHO_C" >&6
20065
cat >conftest.$ac_ext <<_ACEOF
20068
cat confdefs.h >>conftest.$ac_ext
20069
cat >>conftest.$ac_ext <<_ACEOF
20070
/* end confdefs.h. */
20071
$ac_includes_default
20072
typedef char ac__type_new_;
20076
if ((ac__type_new_ *) 0)
20078
if (sizeof (ac__type_new_))
20084
rm -f conftest.$ac_objext
20085
if { (ac_try="$ac_compile"
20086
case "(($ac_try" in
20087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088
*) ac_try_echo=$ac_try;;
20090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091
(eval "$ac_compile") 2>conftest.er1
20093
grep -v '^ *+' conftest.er1 >conftest.err
20095
cat conftest.err >&5
20096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097
(exit $ac_status); } &&
20098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20099
{ (case "(($ac_try" in
20100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101
*) ac_try_echo=$ac_try;;
20103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104
(eval "$ac_try") 2>&5
20106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107
(exit $ac_status); }; } &&
20108
{ ac_try='test -s conftest.$ac_objext'
20109
{ (case "(($ac_try" in
20110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111
*) ac_try_echo=$ac_try;;
20113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114
(eval "$ac_try") 2>&5
20116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117
(exit $ac_status); }; }; then
20118
ac_cv_type_char=yes
20120
echo "$as_me: failed program was:" >&5
20121
sed 's/^/| /' conftest.$ac_ext >&5
20126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20128
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20129
echo "${ECHO_T}$ac_cv_type_char" >&6; }
20131
{ echo "$as_me:$LINENO: checking size of char" >&5
20132
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20133
if test "${ac_cv_sizeof_char+set}" = set; then
20134
echo $ECHO_N "(cached) $ECHO_C" >&6
20136
if test "$ac_cv_type_char" = yes; then
20137
# The cast to long int works around a bug in the HP C Compiler
20138
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20139
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20140
# This bug is HP SR number 8606223364.
20141
if test "$cross_compiling" = yes; then
20142
# Depending upon the size, compute the lo and hi bounds.
20143
cat >conftest.$ac_ext <<_ACEOF
20146
cat confdefs.h >>conftest.$ac_ext
20147
cat >>conftest.$ac_ext <<_ACEOF
20148
/* end confdefs.h. */
20149
$ac_includes_default
20150
typedef char ac__type_sizeof_;
20154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20161
rm -f conftest.$ac_objext
20162
if { (ac_try="$ac_compile"
20163
case "(($ac_try" in
20164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165
*) ac_try_echo=$ac_try;;
20167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168
(eval "$ac_compile") 2>conftest.er1
20170
grep -v '^ *+' conftest.er1 >conftest.err
20172
cat conftest.err >&5
20173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174
(exit $ac_status); } &&
20175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20176
{ (case "(($ac_try" in
20177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178
*) ac_try_echo=$ac_try;;
20180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181
(eval "$ac_try") 2>&5
20183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184
(exit $ac_status); }; } &&
20185
{ ac_try='test -s conftest.$ac_objext'
20186
{ (case "(($ac_try" in
20187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188
*) ac_try_echo=$ac_try;;
20190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191
(eval "$ac_try") 2>&5
20193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194
(exit $ac_status); }; }; then
20197
cat >conftest.$ac_ext <<_ACEOF
20200
cat confdefs.h >>conftest.$ac_ext
20201
cat >>conftest.$ac_ext <<_ACEOF
20202
/* end confdefs.h. */
20203
$ac_includes_default
20204
typedef char ac__type_sizeof_;
20208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20215
rm -f conftest.$ac_objext
20216
if { (ac_try="$ac_compile"
20217
case "(($ac_try" in
20218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219
*) ac_try_echo=$ac_try;;
20221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222
(eval "$ac_compile") 2>conftest.er1
20224
grep -v '^ *+' conftest.er1 >conftest.err
20226
cat conftest.err >&5
20227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228
(exit $ac_status); } &&
20229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20230
{ (case "(($ac_try" in
20231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232
*) ac_try_echo=$ac_try;;
20234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235
(eval "$ac_try") 2>&5
20237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238
(exit $ac_status); }; } &&
20239
{ ac_try='test -s conftest.$ac_objext'
20240
{ (case "(($ac_try" in
20241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242
*) ac_try_echo=$ac_try;;
20244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245
(eval "$ac_try") 2>&5
20247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248
(exit $ac_status); }; }; then
20249
ac_hi=$ac_mid; break
20251
echo "$as_me: failed program was:" >&5
20252
sed 's/^/| /' conftest.$ac_ext >&5
20254
ac_lo=`expr $ac_mid + 1`
20255
if test $ac_lo -le $ac_mid; then
20259
ac_mid=`expr 2 '*' $ac_mid + 1`
20262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265
echo "$as_me: failed program was:" >&5
20266
sed 's/^/| /' conftest.$ac_ext >&5
20268
cat >conftest.$ac_ext <<_ACEOF
20271
cat confdefs.h >>conftest.$ac_ext
20272
cat >>conftest.$ac_ext <<_ACEOF
20273
/* end confdefs.h. */
20274
$ac_includes_default
20275
typedef char ac__type_sizeof_;
20279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20286
rm -f conftest.$ac_objext
20287
if { (ac_try="$ac_compile"
20288
case "(($ac_try" in
20289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290
*) ac_try_echo=$ac_try;;
20292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293
(eval "$ac_compile") 2>conftest.er1
20295
grep -v '^ *+' conftest.er1 >conftest.err
20297
cat conftest.err >&5
20298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299
(exit $ac_status); } &&
20300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20301
{ (case "(($ac_try" in
20302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303
*) ac_try_echo=$ac_try;;
20305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306
(eval "$ac_try") 2>&5
20308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309
(exit $ac_status); }; } &&
20310
{ ac_try='test -s conftest.$ac_objext'
20311
{ (case "(($ac_try" in
20312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313
*) ac_try_echo=$ac_try;;
20315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316
(eval "$ac_try") 2>&5
20318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319
(exit $ac_status); }; }; then
20322
cat >conftest.$ac_ext <<_ACEOF
20325
cat confdefs.h >>conftest.$ac_ext
20326
cat >>conftest.$ac_ext <<_ACEOF
20327
/* end confdefs.h. */
20328
$ac_includes_default
20329
typedef char ac__type_sizeof_;
20333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20340
rm -f conftest.$ac_objext
20341
if { (ac_try="$ac_compile"
20342
case "(($ac_try" in
20343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344
*) ac_try_echo=$ac_try;;
20346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347
(eval "$ac_compile") 2>conftest.er1
20349
grep -v '^ *+' conftest.er1 >conftest.err
20351
cat conftest.err >&5
20352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353
(exit $ac_status); } &&
20354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355
{ (case "(($ac_try" in
20356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357
*) ac_try_echo=$ac_try;;
20359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360
(eval "$ac_try") 2>&5
20362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363
(exit $ac_status); }; } &&
20364
{ ac_try='test -s conftest.$ac_objext'
20365
{ (case "(($ac_try" in
20366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367
*) ac_try_echo=$ac_try;;
20369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370
(eval "$ac_try") 2>&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); }; }; then
20374
ac_lo=$ac_mid; break
20376
echo "$as_me: failed program was:" >&5
20377
sed 's/^/| /' conftest.$ac_ext >&5
20379
ac_hi=`expr '(' $ac_mid ')' - 1`
20380
if test $ac_mid -le $ac_hi; then
20384
ac_mid=`expr 2 '*' $ac_mid`
20387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20390
echo "$as_me: failed program was:" >&5
20391
sed 's/^/| /' conftest.$ac_ext >&5
20396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20400
# Binary search between lo and hi bounds.
20401
while test "x$ac_lo" != "x$ac_hi"; do
20402
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20403
cat >conftest.$ac_ext <<_ACEOF
20406
cat confdefs.h >>conftest.$ac_ext
20407
cat >>conftest.$ac_ext <<_ACEOF
20408
/* end confdefs.h. */
20409
$ac_includes_default
20410
typedef char ac__type_sizeof_;
20414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20421
rm -f conftest.$ac_objext
20422
if { (ac_try="$ac_compile"
20423
case "(($ac_try" in
20424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425
*) ac_try_echo=$ac_try;;
20427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428
(eval "$ac_compile") 2>conftest.er1
20430
grep -v '^ *+' conftest.er1 >conftest.err
20432
cat conftest.err >&5
20433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434
(exit $ac_status); } &&
20435
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20436
{ (case "(($ac_try" in
20437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438
*) ac_try_echo=$ac_try;;
20440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441
(eval "$ac_try") 2>&5
20443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444
(exit $ac_status); }; } &&
20445
{ ac_try='test -s conftest.$ac_objext'
20446
{ (case "(($ac_try" in
20447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448
*) ac_try_echo=$ac_try;;
20450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451
(eval "$ac_try") 2>&5
20453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454
(exit $ac_status); }; }; then
20457
echo "$as_me: failed program was:" >&5
20458
sed 's/^/| /' conftest.$ac_ext >&5
20460
ac_lo=`expr '(' $ac_mid ')' + 1`
20463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466
?*) ac_cv_sizeof_char=$ac_lo;;
20467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20468
See \`config.log' for more details." >&5
20469
echo "$as_me: error: cannot compute sizeof (char)
20470
See \`config.log' for more details." >&2;}
20471
{ (exit 77); exit 77; }; } ;;
20474
cat >conftest.$ac_ext <<_ACEOF
20477
cat confdefs.h >>conftest.$ac_ext
20478
cat >>conftest.$ac_ext <<_ACEOF
20479
/* end confdefs.h. */
20480
$ac_includes_default
20481
typedef char ac__type_sizeof_;
20482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20485
#include <stdlib.h>
20490
FILE *f = fopen ("conftest.val", "w");
20493
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20495
long int i = longval ();
20496
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20498
fprintf (f, "%ld\n", i);
20502
unsigned long int i = ulongval ();
20503
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20505
fprintf (f, "%lu\n", i);
20507
return ferror (f) || fclose (f) != 0;
20513
rm -f conftest$ac_exeext
20514
if { (ac_try="$ac_link"
20515
case "(($ac_try" in
20516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517
*) ac_try_echo=$ac_try;;
20519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520
(eval "$ac_link") 2>&5
20522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20524
{ (case "(($ac_try" in
20525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526
*) ac_try_echo=$ac_try;;
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529
(eval "$ac_try") 2>&5
20531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532
(exit $ac_status); }; }; then
20533
ac_cv_sizeof_char=`cat conftest.val`
20535
echo "$as_me: program exited with status $ac_status" >&5
20536
echo "$as_me: failed program was:" >&5
20537
sed 's/^/| /' conftest.$ac_ext >&5
20539
( exit $ac_status )
20540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20541
See \`config.log' for more details." >&5
20542
echo "$as_me: error: cannot compute sizeof (char)
20543
See \`config.log' for more details." >&2;}
20544
{ (exit 77); exit 77; }; }
20546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20550
ac_cv_sizeof_char=0
20553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20554
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20555
cat >>confdefs.h <<_ACEOF
20556
#define SIZEOF_CHAR $ac_cv_sizeof_char
20560
{ echo "$as_me:$LINENO: checking for int" >&5
20561
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20562
if test "${ac_cv_type_int+set}" = set; then
20563
echo $ECHO_N "(cached) $ECHO_C" >&6
20565
cat >conftest.$ac_ext <<_ACEOF
20568
cat confdefs.h >>conftest.$ac_ext
20569
cat >>conftest.$ac_ext <<_ACEOF
20570
/* end confdefs.h. */
20571
$ac_includes_default
20572
typedef int ac__type_new_;
20576
if ((ac__type_new_ *) 0)
20578
if (sizeof (ac__type_new_))
20584
rm -f conftest.$ac_objext
20585
if { (ac_try="$ac_compile"
20586
case "(($ac_try" in
20587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588
*) ac_try_echo=$ac_try;;
20590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591
(eval "$ac_compile") 2>conftest.er1
20593
grep -v '^ *+' conftest.er1 >conftest.err
20595
cat conftest.err >&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); } &&
20598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599
{ (case "(($ac_try" in
20600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601
*) ac_try_echo=$ac_try;;
20603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604
(eval "$ac_try") 2>&5
20606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607
(exit $ac_status); }; } &&
20608
{ ac_try='test -s conftest.$ac_objext'
20609
{ (case "(($ac_try" in
20610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611
*) ac_try_echo=$ac_try;;
20613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614
(eval "$ac_try") 2>&5
20616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617
(exit $ac_status); }; }; then
20620
echo "$as_me: failed program was:" >&5
20621
sed 's/^/| /' conftest.$ac_ext >&5
20626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20629
echo "${ECHO_T}$ac_cv_type_int" >&6; }
20631
{ echo "$as_me:$LINENO: checking size of int" >&5
20632
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20633
if test "${ac_cv_sizeof_int+set}" = set; then
20634
echo $ECHO_N "(cached) $ECHO_C" >&6
20636
if test "$ac_cv_type_int" = yes; then
20637
# The cast to long int works around a bug in the HP C Compiler
20638
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20639
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20640
# This bug is HP SR number 8606223364.
20641
if test "$cross_compiling" = yes; then
20642
# Depending upon the size, compute the lo and hi bounds.
20643
cat >conftest.$ac_ext <<_ACEOF
20646
cat confdefs.h >>conftest.$ac_ext
20647
cat >>conftest.$ac_ext <<_ACEOF
20648
/* end confdefs.h. */
20649
$ac_includes_default
20650
typedef int ac__type_sizeof_;
20654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20661
rm -f conftest.$ac_objext
20662
if { (ac_try="$ac_compile"
20663
case "(($ac_try" in
20664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665
*) ac_try_echo=$ac_try;;
20667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668
(eval "$ac_compile") 2>conftest.er1
20670
grep -v '^ *+' conftest.er1 >conftest.err
20672
cat conftest.err >&5
20673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674
(exit $ac_status); } &&
20675
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676
{ (case "(($ac_try" in
20677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678
*) ac_try_echo=$ac_try;;
20680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681
(eval "$ac_try") 2>&5
20683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684
(exit $ac_status); }; } &&
20685
{ ac_try='test -s conftest.$ac_objext'
20686
{ (case "(($ac_try" in
20687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688
*) ac_try_echo=$ac_try;;
20690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691
(eval "$ac_try") 2>&5
20693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694
(exit $ac_status); }; }; then
20697
cat >conftest.$ac_ext <<_ACEOF
20700
cat confdefs.h >>conftest.$ac_ext
20701
cat >>conftest.$ac_ext <<_ACEOF
20702
/* end confdefs.h. */
20703
$ac_includes_default
20704
typedef int ac__type_sizeof_;
20708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20715
rm -f conftest.$ac_objext
20716
if { (ac_try="$ac_compile"
20717
case "(($ac_try" in
20718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719
*) ac_try_echo=$ac_try;;
20721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722
(eval "$ac_compile") 2>conftest.er1
20724
grep -v '^ *+' conftest.er1 >conftest.err
20726
cat conftest.err >&5
20727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728
(exit $ac_status); } &&
20729
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730
{ (case "(($ac_try" in
20731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732
*) ac_try_echo=$ac_try;;
20734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735
(eval "$ac_try") 2>&5
20737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738
(exit $ac_status); }; } &&
20739
{ ac_try='test -s conftest.$ac_objext'
20740
{ (case "(($ac_try" in
20741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742
*) ac_try_echo=$ac_try;;
20744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745
(eval "$ac_try") 2>&5
20747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748
(exit $ac_status); }; }; then
20749
ac_hi=$ac_mid; break
20751
echo "$as_me: failed program was:" >&5
20752
sed 's/^/| /' conftest.$ac_ext >&5
20754
ac_lo=`expr $ac_mid + 1`
20755
if test $ac_lo -le $ac_mid; then
20759
ac_mid=`expr 2 '*' $ac_mid + 1`
20762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765
echo "$as_me: failed program was:" >&5
20766
sed 's/^/| /' conftest.$ac_ext >&5
20768
cat >conftest.$ac_ext <<_ACEOF
20771
cat confdefs.h >>conftest.$ac_ext
20772
cat >>conftest.$ac_ext <<_ACEOF
20773
/* end confdefs.h. */
20774
$ac_includes_default
20775
typedef int ac__type_sizeof_;
20779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20786
rm -f conftest.$ac_objext
20787
if { (ac_try="$ac_compile"
20788
case "(($ac_try" in
20789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790
*) ac_try_echo=$ac_try;;
20792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793
(eval "$ac_compile") 2>conftest.er1
20795
grep -v '^ *+' conftest.er1 >conftest.err
20797
cat conftest.err >&5
20798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799
(exit $ac_status); } &&
20800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801
{ (case "(($ac_try" in
20802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803
*) ac_try_echo=$ac_try;;
20805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806
(eval "$ac_try") 2>&5
20808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809
(exit $ac_status); }; } &&
20810
{ ac_try='test -s conftest.$ac_objext'
20811
{ (case "(($ac_try" in
20812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813
*) ac_try_echo=$ac_try;;
20815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816
(eval "$ac_try") 2>&5
20818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819
(exit $ac_status); }; }; then
20822
cat >conftest.$ac_ext <<_ACEOF
20825
cat confdefs.h >>conftest.$ac_ext
20826
cat >>conftest.$ac_ext <<_ACEOF
20827
/* end confdefs.h. */
20828
$ac_includes_default
20829
typedef int ac__type_sizeof_;
20833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20840
rm -f conftest.$ac_objext
20841
if { (ac_try="$ac_compile"
20842
case "(($ac_try" in
20843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844
*) ac_try_echo=$ac_try;;
20846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847
(eval "$ac_compile") 2>conftest.er1
20849
grep -v '^ *+' conftest.er1 >conftest.err
20851
cat conftest.err >&5
20852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853
(exit $ac_status); } &&
20854
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20855
{ (case "(($ac_try" in
20856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857
*) ac_try_echo=$ac_try;;
20859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860
(eval "$ac_try") 2>&5
20862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863
(exit $ac_status); }; } &&
20864
{ ac_try='test -s conftest.$ac_objext'
20865
{ (case "(($ac_try" in
20866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867
*) ac_try_echo=$ac_try;;
20869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870
(eval "$ac_try") 2>&5
20872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873
(exit $ac_status); }; }; then
20874
ac_lo=$ac_mid; break
20876
echo "$as_me: failed program was:" >&5
20877
sed 's/^/| /' conftest.$ac_ext >&5
20879
ac_hi=`expr '(' $ac_mid ')' - 1`
20880
if test $ac_mid -le $ac_hi; then
20884
ac_mid=`expr 2 '*' $ac_mid`
20887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890
echo "$as_me: failed program was:" >&5
20891
sed 's/^/| /' conftest.$ac_ext >&5
20896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900
# Binary search between lo and hi bounds.
20901
while test "x$ac_lo" != "x$ac_hi"; do
20902
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20903
cat >conftest.$ac_ext <<_ACEOF
20906
cat confdefs.h >>conftest.$ac_ext
20907
cat >>conftest.$ac_ext <<_ACEOF
20908
/* end confdefs.h. */
20909
$ac_includes_default
20910
typedef int ac__type_sizeof_;
20914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20921
rm -f conftest.$ac_objext
20922
if { (ac_try="$ac_compile"
20923
case "(($ac_try" in
20924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925
*) ac_try_echo=$ac_try;;
20927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928
(eval "$ac_compile") 2>conftest.er1
20930
grep -v '^ *+' conftest.er1 >conftest.err
20932
cat conftest.err >&5
20933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934
(exit $ac_status); } &&
20935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20936
{ (case "(($ac_try" in
20937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938
*) ac_try_echo=$ac_try;;
20940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941
(eval "$ac_try") 2>&5
20943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944
(exit $ac_status); }; } &&
20945
{ ac_try='test -s conftest.$ac_objext'
20946
{ (case "(($ac_try" in
20947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948
*) ac_try_echo=$ac_try;;
20950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951
(eval "$ac_try") 2>&5
20953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954
(exit $ac_status); }; }; then
20957
echo "$as_me: failed program was:" >&5
20958
sed 's/^/| /' conftest.$ac_ext >&5
20960
ac_lo=`expr '(' $ac_mid ')' + 1`
20963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966
?*) ac_cv_sizeof_int=$ac_lo;;
20967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20968
See \`config.log' for more details." >&5
20969
echo "$as_me: error: cannot compute sizeof (int)
20970
See \`config.log' for more details." >&2;}
20971
{ (exit 77); exit 77; }; } ;;
20974
cat >conftest.$ac_ext <<_ACEOF
20977
cat confdefs.h >>conftest.$ac_ext
20978
cat >>conftest.$ac_ext <<_ACEOF
20979
/* end confdefs.h. */
20980
$ac_includes_default
20981
typedef int ac__type_sizeof_;
20982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20985
#include <stdlib.h>
20990
FILE *f = fopen ("conftest.val", "w");
20993
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20995
long int i = longval ();
20996
if (i != ((long int) (sizeof (ac__type_sizeof_))))
20998
fprintf (f, "%ld\n", i);
21002
unsigned long int i = ulongval ();
21003
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21005
fprintf (f, "%lu\n", i);
21007
return ferror (f) || fclose (f) != 0;
21013
rm -f conftest$ac_exeext
21014
if { (ac_try="$ac_link"
21015
case "(($ac_try" in
21016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017
*) ac_try_echo=$ac_try;;
21019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020
(eval "$ac_link") 2>&5
21022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21024
{ (case "(($ac_try" in
21025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026
*) ac_try_echo=$ac_try;;
21028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029
(eval "$ac_try") 2>&5
21031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032
(exit $ac_status); }; }; then
21033
ac_cv_sizeof_int=`cat conftest.val`
21035
echo "$as_me: program exited with status $ac_status" >&5
21036
echo "$as_me: failed program was:" >&5
21037
sed 's/^/| /' conftest.$ac_ext >&5
21039
( exit $ac_status )
21040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21041
See \`config.log' for more details." >&5
21042
echo "$as_me: error: cannot compute sizeof (int)
21043
See \`config.log' for more details." >&2;}
21044
{ (exit 77); exit 77; }; }
21046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21054
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21055
cat >>confdefs.h <<_ACEOF
21056
#define SIZEOF_INT $ac_cv_sizeof_int
21060
{ echo "$as_me:$LINENO: checking for long" >&5
21061
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21062
if test "${ac_cv_type_long+set}" = set; then
21063
echo $ECHO_N "(cached) $ECHO_C" >&6
21065
cat >conftest.$ac_ext <<_ACEOF
21068
cat confdefs.h >>conftest.$ac_ext
21069
cat >>conftest.$ac_ext <<_ACEOF
21070
/* end confdefs.h. */
21071
$ac_includes_default
21072
typedef long ac__type_new_;
21076
if ((ac__type_new_ *) 0)
21078
if (sizeof (ac__type_new_))
21084
rm -f conftest.$ac_objext
21085
if { (ac_try="$ac_compile"
21086
case "(($ac_try" in
21087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088
*) ac_try_echo=$ac_try;;
21090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091
(eval "$ac_compile") 2>conftest.er1
21093
grep -v '^ *+' conftest.er1 >conftest.err
21095
cat conftest.err >&5
21096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097
(exit $ac_status); } &&
21098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21099
{ (case "(($ac_try" in
21100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101
*) ac_try_echo=$ac_try;;
21103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104
(eval "$ac_try") 2>&5
21106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107
(exit $ac_status); }; } &&
21108
{ ac_try='test -s conftest.$ac_objext'
21109
{ (case "(($ac_try" in
21110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111
*) ac_try_echo=$ac_try;;
21113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114
(eval "$ac_try") 2>&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); }; }; then
21118
ac_cv_type_long=yes
21120
echo "$as_me: failed program was:" >&5
21121
sed 's/^/| /' conftest.$ac_ext >&5
21126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21128
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21129
echo "${ECHO_T}$ac_cv_type_long" >&6; }
21131
{ echo "$as_me:$LINENO: checking size of long" >&5
21132
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21133
if test "${ac_cv_sizeof_long+set}" = set; then
21134
echo $ECHO_N "(cached) $ECHO_C" >&6
21136
if test "$ac_cv_type_long" = yes; then
21137
# The cast to long int works around a bug in the HP C Compiler
21138
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21139
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21140
# This bug is HP SR number 8606223364.
21141
if test "$cross_compiling" = yes; then
21142
# Depending upon the size, compute the lo and hi bounds.
21143
cat >conftest.$ac_ext <<_ACEOF
21146
cat confdefs.h >>conftest.$ac_ext
21147
cat >>conftest.$ac_ext <<_ACEOF
21148
/* end confdefs.h. */
21149
$ac_includes_default
21150
typedef long ac__type_sizeof_;
21154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21161
rm -f conftest.$ac_objext
21162
if { (ac_try="$ac_compile"
21163
case "(($ac_try" in
21164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165
*) ac_try_echo=$ac_try;;
21167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168
(eval "$ac_compile") 2>conftest.er1
21170
grep -v '^ *+' conftest.er1 >conftest.err
21172
cat conftest.err >&5
21173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174
(exit $ac_status); } &&
21175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21176
{ (case "(($ac_try" in
21177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178
*) ac_try_echo=$ac_try;;
21180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181
(eval "$ac_try") 2>&5
21183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184
(exit $ac_status); }; } &&
21185
{ ac_try='test -s conftest.$ac_objext'
21186
{ (case "(($ac_try" in
21187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188
*) ac_try_echo=$ac_try;;
21190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191
(eval "$ac_try") 2>&5
21193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194
(exit $ac_status); }; }; then
21197
cat >conftest.$ac_ext <<_ACEOF
21200
cat confdefs.h >>conftest.$ac_ext
21201
cat >>conftest.$ac_ext <<_ACEOF
21202
/* end confdefs.h. */
21203
$ac_includes_default
21204
typedef long ac__type_sizeof_;
21208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21215
rm -f conftest.$ac_objext
21216
if { (ac_try="$ac_compile"
21217
case "(($ac_try" in
21218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219
*) ac_try_echo=$ac_try;;
21221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222
(eval "$ac_compile") 2>conftest.er1
21224
grep -v '^ *+' conftest.er1 >conftest.err
21226
cat conftest.err >&5
21227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228
(exit $ac_status); } &&
21229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21230
{ (case "(($ac_try" in
21231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232
*) ac_try_echo=$ac_try;;
21234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235
(eval "$ac_try") 2>&5
21237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238
(exit $ac_status); }; } &&
21239
{ ac_try='test -s conftest.$ac_objext'
21240
{ (case "(($ac_try" in
21241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242
*) ac_try_echo=$ac_try;;
21244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245
(eval "$ac_try") 2>&5
21247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248
(exit $ac_status); }; }; then
21249
ac_hi=$ac_mid; break
21251
echo "$as_me: failed program was:" >&5
21252
sed 's/^/| /' conftest.$ac_ext >&5
21254
ac_lo=`expr $ac_mid + 1`
21255
if test $ac_lo -le $ac_mid; then
21259
ac_mid=`expr 2 '*' $ac_mid + 1`
21262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265
echo "$as_me: failed program was:" >&5
21266
sed 's/^/| /' conftest.$ac_ext >&5
21268
cat >conftest.$ac_ext <<_ACEOF
21271
cat confdefs.h >>conftest.$ac_ext
21272
cat >>conftest.$ac_ext <<_ACEOF
21273
/* end confdefs.h. */
21274
$ac_includes_default
21275
typedef long ac__type_sizeof_;
21279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21286
rm -f conftest.$ac_objext
21287
if { (ac_try="$ac_compile"
21288
case "(($ac_try" in
21289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290
*) ac_try_echo=$ac_try;;
21292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293
(eval "$ac_compile") 2>conftest.er1
21295
grep -v '^ *+' conftest.er1 >conftest.err
21297
cat conftest.err >&5
21298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299
(exit $ac_status); } &&
21300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21301
{ (case "(($ac_try" in
21302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303
*) ac_try_echo=$ac_try;;
21305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306
(eval "$ac_try") 2>&5
21308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309
(exit $ac_status); }; } &&
21310
{ ac_try='test -s conftest.$ac_objext'
21311
{ (case "(($ac_try" in
21312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313
*) ac_try_echo=$ac_try;;
21315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316
(eval "$ac_try") 2>&5
21318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319
(exit $ac_status); }; }; then
21322
cat >conftest.$ac_ext <<_ACEOF
21325
cat confdefs.h >>conftest.$ac_ext
21326
cat >>conftest.$ac_ext <<_ACEOF
21327
/* end confdefs.h. */
21328
$ac_includes_default
21329
typedef long ac__type_sizeof_;
21333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21340
rm -f conftest.$ac_objext
21341
if { (ac_try="$ac_compile"
21342
case "(($ac_try" in
21343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344
*) ac_try_echo=$ac_try;;
21346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347
(eval "$ac_compile") 2>conftest.er1
21349
grep -v '^ *+' conftest.er1 >conftest.err
21351
cat conftest.err >&5
21352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353
(exit $ac_status); } &&
21354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21355
{ (case "(($ac_try" in
21356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357
*) ac_try_echo=$ac_try;;
21359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360
(eval "$ac_try") 2>&5
21362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363
(exit $ac_status); }; } &&
21364
{ ac_try='test -s conftest.$ac_objext'
21365
{ (case "(($ac_try" in
21366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367
*) ac_try_echo=$ac_try;;
21369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370
(eval "$ac_try") 2>&5
21372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373
(exit $ac_status); }; }; then
21374
ac_lo=$ac_mid; break
21376
echo "$as_me: failed program was:" >&5
21377
sed 's/^/| /' conftest.$ac_ext >&5
21379
ac_hi=`expr '(' $ac_mid ')' - 1`
21380
if test $ac_mid -le $ac_hi; then
21384
ac_mid=`expr 2 '*' $ac_mid`
21387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390
echo "$as_me: failed program was:" >&5
21391
sed 's/^/| /' conftest.$ac_ext >&5
21396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400
# Binary search between lo and hi bounds.
21401
while test "x$ac_lo" != "x$ac_hi"; do
21402
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21403
cat >conftest.$ac_ext <<_ACEOF
21406
cat confdefs.h >>conftest.$ac_ext
21407
cat >>conftest.$ac_ext <<_ACEOF
21408
/* end confdefs.h. */
21409
$ac_includes_default
21410
typedef long ac__type_sizeof_;
21414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21421
rm -f conftest.$ac_objext
21422
if { (ac_try="$ac_compile"
21423
case "(($ac_try" in
21424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425
*) ac_try_echo=$ac_try;;
21427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428
(eval "$ac_compile") 2>conftest.er1
21430
grep -v '^ *+' conftest.er1 >conftest.err
21432
cat conftest.err >&5
21433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434
(exit $ac_status); } &&
21435
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21436
{ (case "(($ac_try" in
21437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438
*) ac_try_echo=$ac_try;;
21440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441
(eval "$ac_try") 2>&5
21443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444
(exit $ac_status); }; } &&
21445
{ ac_try='test -s conftest.$ac_objext'
21446
{ (case "(($ac_try" in
21447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448
*) ac_try_echo=$ac_try;;
21450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451
(eval "$ac_try") 2>&5
21453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454
(exit $ac_status); }; }; then
21457
echo "$as_me: failed program was:" >&5
21458
sed 's/^/| /' conftest.$ac_ext >&5
21460
ac_lo=`expr '(' $ac_mid ')' + 1`
21463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466
?*) ac_cv_sizeof_long=$ac_lo;;
21467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21468
See \`config.log' for more details." >&5
21469
echo "$as_me: error: cannot compute sizeof (long)
21470
See \`config.log' for more details." >&2;}
21471
{ (exit 77); exit 77; }; } ;;
21474
cat >conftest.$ac_ext <<_ACEOF
21477
cat confdefs.h >>conftest.$ac_ext
21478
cat >>conftest.$ac_ext <<_ACEOF
21479
/* end confdefs.h. */
21480
$ac_includes_default
21481
typedef long ac__type_sizeof_;
21482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21485
#include <stdlib.h>
21490
FILE *f = fopen ("conftest.val", "w");
21493
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21495
long int i = longval ();
21496
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21498
fprintf (f, "%ld\n", i);
21502
unsigned long int i = ulongval ();
21503
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21505
fprintf (f, "%lu\n", i);
21507
return ferror (f) || fclose (f) != 0;
21513
rm -f conftest$ac_exeext
21514
if { (ac_try="$ac_link"
21515
case "(($ac_try" in
21516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517
*) ac_try_echo=$ac_try;;
21519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520
(eval "$ac_link") 2>&5
21522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21524
{ (case "(($ac_try" in
21525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526
*) ac_try_echo=$ac_try;;
21528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529
(eval "$ac_try") 2>&5
21531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532
(exit $ac_status); }; }; then
21533
ac_cv_sizeof_long=`cat conftest.val`
21535
echo "$as_me: program exited with status $ac_status" >&5
21536
echo "$as_me: failed program was:" >&5
21537
sed 's/^/| /' conftest.$ac_ext >&5
21539
( exit $ac_status )
21540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21541
See \`config.log' for more details." >&5
21542
echo "$as_me: error: cannot compute sizeof (long)
21543
See \`config.log' for more details." >&2;}
21544
{ (exit 77); exit 77; }; }
21546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550
ac_cv_sizeof_long=0
21553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21554
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21555
cat >>confdefs.h <<_ACEOF
21556
#define SIZEOF_LONG $ac_cv_sizeof_long
21560
{ echo "$as_me:$LINENO: checking for short" >&5
21561
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21562
if test "${ac_cv_type_short+set}" = set; then
21563
echo $ECHO_N "(cached) $ECHO_C" >&6
21565
cat >conftest.$ac_ext <<_ACEOF
21568
cat confdefs.h >>conftest.$ac_ext
21569
cat >>conftest.$ac_ext <<_ACEOF
21570
/* end confdefs.h. */
21571
$ac_includes_default
21572
typedef short ac__type_new_;
21576
if ((ac__type_new_ *) 0)
21578
if (sizeof (ac__type_new_))
21584
rm -f conftest.$ac_objext
21585
if { (ac_try="$ac_compile"
21586
case "(($ac_try" in
21587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588
*) ac_try_echo=$ac_try;;
21590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591
(eval "$ac_compile") 2>conftest.er1
21593
grep -v '^ *+' conftest.er1 >conftest.err
21595
cat conftest.err >&5
21596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597
(exit $ac_status); } &&
21598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21599
{ (case "(($ac_try" in
21600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601
*) ac_try_echo=$ac_try;;
21603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604
(eval "$ac_try") 2>&5
21606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607
(exit $ac_status); }; } &&
21608
{ ac_try='test -s conftest.$ac_objext'
21609
{ (case "(($ac_try" in
21610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611
*) ac_try_echo=$ac_try;;
21613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614
(eval "$ac_try") 2>&5
21616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617
(exit $ac_status); }; }; then
21618
ac_cv_type_short=yes
21620
echo "$as_me: failed program was:" >&5
21621
sed 's/^/| /' conftest.$ac_ext >&5
21623
ac_cv_type_short=no
21626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21629
echo "${ECHO_T}$ac_cv_type_short" >&6; }
21631
{ echo "$as_me:$LINENO: checking size of short" >&5
21632
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21633
if test "${ac_cv_sizeof_short+set}" = set; then
21634
echo $ECHO_N "(cached) $ECHO_C" >&6
21636
if test "$ac_cv_type_short" = yes; then
21637
# The cast to long int works around a bug in the HP C Compiler
21638
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21639
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21640
# This bug is HP SR number 8606223364.
21641
if test "$cross_compiling" = yes; then
21642
# Depending upon the size, compute the lo and hi bounds.
21643
cat >conftest.$ac_ext <<_ACEOF
21646
cat confdefs.h >>conftest.$ac_ext
21647
cat >>conftest.$ac_ext <<_ACEOF
21648
/* end confdefs.h. */
21649
$ac_includes_default
21650
typedef short ac__type_sizeof_;
21654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21661
rm -f conftest.$ac_objext
21662
if { (ac_try="$ac_compile"
21663
case "(($ac_try" in
21664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665
*) ac_try_echo=$ac_try;;
21667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668
(eval "$ac_compile") 2>conftest.er1
21670
grep -v '^ *+' conftest.er1 >conftest.err
21672
cat conftest.err >&5
21673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674
(exit $ac_status); } &&
21675
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21676
{ (case "(($ac_try" in
21677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678
*) ac_try_echo=$ac_try;;
21680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681
(eval "$ac_try") 2>&5
21683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684
(exit $ac_status); }; } &&
21685
{ ac_try='test -s conftest.$ac_objext'
21686
{ (case "(($ac_try" in
21687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688
*) ac_try_echo=$ac_try;;
21690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691
(eval "$ac_try") 2>&5
21693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694
(exit $ac_status); }; }; then
21697
cat >conftest.$ac_ext <<_ACEOF
21700
cat confdefs.h >>conftest.$ac_ext
21701
cat >>conftest.$ac_ext <<_ACEOF
21702
/* end confdefs.h. */
21703
$ac_includes_default
21704
typedef short ac__type_sizeof_;
21708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21715
rm -f conftest.$ac_objext
21716
if { (ac_try="$ac_compile"
21717
case "(($ac_try" in
21718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719
*) ac_try_echo=$ac_try;;
21721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722
(eval "$ac_compile") 2>conftest.er1
21724
grep -v '^ *+' conftest.er1 >conftest.err
21726
cat conftest.err >&5
21727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728
(exit $ac_status); } &&
21729
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21730
{ (case "(($ac_try" in
21731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732
*) ac_try_echo=$ac_try;;
21734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735
(eval "$ac_try") 2>&5
21737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738
(exit $ac_status); }; } &&
21739
{ ac_try='test -s conftest.$ac_objext'
21740
{ (case "(($ac_try" in
21741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742
*) ac_try_echo=$ac_try;;
21744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745
(eval "$ac_try") 2>&5
21747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748
(exit $ac_status); }; }; then
21749
ac_hi=$ac_mid; break
21751
echo "$as_me: failed program was:" >&5
21752
sed 's/^/| /' conftest.$ac_ext >&5
21754
ac_lo=`expr $ac_mid + 1`
21755
if test $ac_lo -le $ac_mid; then
21759
ac_mid=`expr 2 '*' $ac_mid + 1`
21762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21765
echo "$as_me: failed program was:" >&5
21766
sed 's/^/| /' conftest.$ac_ext >&5
21768
cat >conftest.$ac_ext <<_ACEOF
21771
cat confdefs.h >>conftest.$ac_ext
21772
cat >>conftest.$ac_ext <<_ACEOF
21773
/* end confdefs.h. */
21774
$ac_includes_default
21775
typedef short ac__type_sizeof_;
21779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21786
rm -f conftest.$ac_objext
21787
if { (ac_try="$ac_compile"
21788
case "(($ac_try" in
21789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790
*) ac_try_echo=$ac_try;;
21792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793
(eval "$ac_compile") 2>conftest.er1
21795
grep -v '^ *+' conftest.er1 >conftest.err
21797
cat conftest.err >&5
21798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799
(exit $ac_status); } &&
21800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21801
{ (case "(($ac_try" in
21802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803
*) ac_try_echo=$ac_try;;
21805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806
(eval "$ac_try") 2>&5
21808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809
(exit $ac_status); }; } &&
21810
{ ac_try='test -s conftest.$ac_objext'
21811
{ (case "(($ac_try" in
21812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813
*) ac_try_echo=$ac_try;;
21815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816
(eval "$ac_try") 2>&5
21818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819
(exit $ac_status); }; }; then
21822
cat >conftest.$ac_ext <<_ACEOF
21825
cat confdefs.h >>conftest.$ac_ext
21826
cat >>conftest.$ac_ext <<_ACEOF
21827
/* end confdefs.h. */
21828
$ac_includes_default
21829
typedef short ac__type_sizeof_;
21833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21840
rm -f conftest.$ac_objext
21841
if { (ac_try="$ac_compile"
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_compile") 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
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21855
{ (case "(($ac_try" in
21856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857
*) ac_try_echo=$ac_try;;
21859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860
(eval "$ac_try") 2>&5
21862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863
(exit $ac_status); }; } &&
21864
{ ac_try='test -s conftest.$ac_objext'
21865
{ (case "(($ac_try" in
21866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867
*) ac_try_echo=$ac_try;;
21869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870
(eval "$ac_try") 2>&5
21872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873
(exit $ac_status); }; }; then
21874
ac_lo=$ac_mid; break
21876
echo "$as_me: failed program was:" >&5
21877
sed 's/^/| /' conftest.$ac_ext >&5
21879
ac_hi=`expr '(' $ac_mid ')' - 1`
21880
if test $ac_mid -le $ac_hi; then
21884
ac_mid=`expr 2 '*' $ac_mid`
21887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890
echo "$as_me: failed program was:" >&5
21891
sed 's/^/| /' conftest.$ac_ext >&5
21896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900
# Binary search between lo and hi bounds.
21901
while test "x$ac_lo" != "x$ac_hi"; do
21902
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21903
cat >conftest.$ac_ext <<_ACEOF
21906
cat confdefs.h >>conftest.$ac_ext
21907
cat >>conftest.$ac_ext <<_ACEOF
21908
/* end confdefs.h. */
21909
$ac_includes_default
21910
typedef short ac__type_sizeof_;
21914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21921
rm -f conftest.$ac_objext
21922
if { (ac_try="$ac_compile"
21923
case "(($ac_try" in
21924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925
*) ac_try_echo=$ac_try;;
21927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928
(eval "$ac_compile") 2>conftest.er1
21930
grep -v '^ *+' conftest.er1 >conftest.err
21932
cat conftest.err >&5
21933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934
(exit $ac_status); } &&
21935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21936
{ (case "(($ac_try" in
21937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938
*) ac_try_echo=$ac_try;;
21940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941
(eval "$ac_try") 2>&5
21943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944
(exit $ac_status); }; } &&
21945
{ ac_try='test -s conftest.$ac_objext'
21946
{ (case "(($ac_try" in
21947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948
*) ac_try_echo=$ac_try;;
21950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951
(eval "$ac_try") 2>&5
21953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954
(exit $ac_status); }; }; then
21957
echo "$as_me: failed program was:" >&5
21958
sed 's/^/| /' conftest.$ac_ext >&5
21960
ac_lo=`expr '(' $ac_mid ')' + 1`
21963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966
?*) ac_cv_sizeof_short=$ac_lo;;
21967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21968
See \`config.log' for more details." >&5
21969
echo "$as_me: error: cannot compute sizeof (short)
21970
See \`config.log' for more details." >&2;}
21971
{ (exit 77); exit 77; }; } ;;
21974
cat >conftest.$ac_ext <<_ACEOF
21977
cat confdefs.h >>conftest.$ac_ext
21978
cat >>conftest.$ac_ext <<_ACEOF
21979
/* end confdefs.h. */
21980
$ac_includes_default
21981
typedef short ac__type_sizeof_;
21982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21985
#include <stdlib.h>
21990
FILE *f = fopen ("conftest.val", "w");
21993
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21995
long int i = longval ();
21996
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21998
fprintf (f, "%ld\n", i);
22002
unsigned long int i = ulongval ();
22003
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22005
fprintf (f, "%lu\n", i);
22007
return ferror (f) || fclose (f) != 0;
22013
rm -f conftest$ac_exeext
22014
if { (ac_try="$ac_link"
22015
case "(($ac_try" in
22016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017
*) ac_try_echo=$ac_try;;
22019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020
(eval "$ac_link") 2>&5
22022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22024
{ (case "(($ac_try" in
22025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026
*) ac_try_echo=$ac_try;;
22028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029
(eval "$ac_try") 2>&5
22031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032
(exit $ac_status); }; }; then
22033
ac_cv_sizeof_short=`cat conftest.val`
22035
echo "$as_me: program exited with status $ac_status" >&5
22036
echo "$as_me: failed program was:" >&5
22037
sed 's/^/| /' conftest.$ac_ext >&5
22039
( exit $ac_status )
22040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22041
See \`config.log' for more details." >&5
22042
echo "$as_me: error: cannot compute sizeof (short)
22043
See \`config.log' for more details." >&2;}
22044
{ (exit 77); exit 77; }; }
22046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22050
ac_cv_sizeof_short=0
22053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22054
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22055
cat >>confdefs.h <<_ACEOF
22056
#define SIZEOF_SHORT $ac_cv_sizeof_short
22060
{ echo "$as_me:$LINENO: checking for long double" >&5
22061
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
22062
if test "${ac_cv_type_long_double+set}" = set; then
22063
echo $ECHO_N "(cached) $ECHO_C" >&6
22065
cat >conftest.$ac_ext <<_ACEOF
22068
cat confdefs.h >>conftest.$ac_ext
22069
cat >>conftest.$ac_ext <<_ACEOF
22070
/* end confdefs.h. */
22071
$ac_includes_default
22072
typedef long double ac__type_new_;
22076
if ((ac__type_new_ *) 0)
22078
if (sizeof (ac__type_new_))
22084
rm -f conftest.$ac_objext
22085
if { (ac_try="$ac_compile"
22086
case "(($ac_try" in
22087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088
*) ac_try_echo=$ac_try;;
22090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091
(eval "$ac_compile") 2>conftest.er1
22093
grep -v '^ *+' conftest.er1 >conftest.err
22095
cat conftest.err >&5
22096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097
(exit $ac_status); } &&
22098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22099
{ (case "(($ac_try" in
22100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101
*) ac_try_echo=$ac_try;;
22103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104
(eval "$ac_try") 2>&5
22106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107
(exit $ac_status); }; } &&
22108
{ ac_try='test -s conftest.$ac_objext'
22109
{ (case "(($ac_try" in
22110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111
*) ac_try_echo=$ac_try;;
22113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114
(eval "$ac_try") 2>&5
22116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117
(exit $ac_status); }; }; then
22118
ac_cv_type_long_double=yes
22120
echo "$as_me: failed program was:" >&5
22121
sed 's/^/| /' conftest.$ac_ext >&5
22123
ac_cv_type_long_double=no
22126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
22129
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
22131
{ echo "$as_me:$LINENO: checking size of long double" >&5
22132
echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
22133
if test "${ac_cv_sizeof_long_double+set}" = set; then
22134
echo $ECHO_N "(cached) $ECHO_C" >&6
22136
if test "$ac_cv_type_long_double" = yes; then
22137
# The cast to long int works around a bug in the HP C Compiler
22138
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22139
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22140
# This bug is HP SR number 8606223364.
22141
if test "$cross_compiling" = yes; then
22142
# Depending upon the size, compute the lo and hi bounds.
22143
cat >conftest.$ac_ext <<_ACEOF
22146
cat confdefs.h >>conftest.$ac_ext
22147
cat >>conftest.$ac_ext <<_ACEOF
22148
/* end confdefs.h. */
22149
$ac_includes_default
22150
typedef long double ac__type_sizeof_;
22154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22161
rm -f conftest.$ac_objext
22162
if { (ac_try="$ac_compile"
22163
case "(($ac_try" in
22164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165
*) ac_try_echo=$ac_try;;
22167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168
(eval "$ac_compile") 2>conftest.er1
22170
grep -v '^ *+' conftest.er1 >conftest.err
22172
cat conftest.err >&5
22173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174
(exit $ac_status); } &&
22175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176
{ (case "(($ac_try" in
22177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178
*) ac_try_echo=$ac_try;;
22180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181
(eval "$ac_try") 2>&5
22183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184
(exit $ac_status); }; } &&
22185
{ ac_try='test -s conftest.$ac_objext'
22186
{ (case "(($ac_try" in
22187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188
*) ac_try_echo=$ac_try;;
22190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191
(eval "$ac_try") 2>&5
22193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194
(exit $ac_status); }; }; then
22197
cat >conftest.$ac_ext <<_ACEOF
22200
cat confdefs.h >>conftest.$ac_ext
22201
cat >>conftest.$ac_ext <<_ACEOF
22202
/* end confdefs.h. */
22203
$ac_includes_default
22204
typedef long double ac__type_sizeof_;
22208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22215
rm -f conftest.$ac_objext
22216
if { (ac_try="$ac_compile"
22217
case "(($ac_try" in
22218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219
*) ac_try_echo=$ac_try;;
22221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222
(eval "$ac_compile") 2>conftest.er1
22224
grep -v '^ *+' conftest.er1 >conftest.err
22226
cat conftest.err >&5
22227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228
(exit $ac_status); } &&
22229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22230
{ (case "(($ac_try" in
22231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232
*) ac_try_echo=$ac_try;;
22234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235
(eval "$ac_try") 2>&5
22237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238
(exit $ac_status); }; } &&
22239
{ ac_try='test -s conftest.$ac_objext'
22240
{ (case "(($ac_try" in
22241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242
*) ac_try_echo=$ac_try;;
22244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245
(eval "$ac_try") 2>&5
22247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248
(exit $ac_status); }; }; then
22249
ac_hi=$ac_mid; break
22251
echo "$as_me: failed program was:" >&5
22252
sed 's/^/| /' conftest.$ac_ext >&5
22254
ac_lo=`expr $ac_mid + 1`
22255
if test $ac_lo -le $ac_mid; then
22259
ac_mid=`expr 2 '*' $ac_mid + 1`
22262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265
echo "$as_me: failed program was:" >&5
22266
sed 's/^/| /' conftest.$ac_ext >&5
22268
cat >conftest.$ac_ext <<_ACEOF
22271
cat confdefs.h >>conftest.$ac_ext
22272
cat >>conftest.$ac_ext <<_ACEOF
22273
/* end confdefs.h. */
22274
$ac_includes_default
22275
typedef long double ac__type_sizeof_;
22279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22286
rm -f conftest.$ac_objext
22287
if { (ac_try="$ac_compile"
22288
case "(($ac_try" in
22289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290
*) ac_try_echo=$ac_try;;
22292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293
(eval "$ac_compile") 2>conftest.er1
22295
grep -v '^ *+' conftest.er1 >conftest.err
22297
cat conftest.err >&5
22298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299
(exit $ac_status); } &&
22300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22301
{ (case "(($ac_try" in
22302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303
*) ac_try_echo=$ac_try;;
22305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306
(eval "$ac_try") 2>&5
22308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309
(exit $ac_status); }; } &&
22310
{ ac_try='test -s conftest.$ac_objext'
22311
{ (case "(($ac_try" in
22312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313
*) ac_try_echo=$ac_try;;
22315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316
(eval "$ac_try") 2>&5
22318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319
(exit $ac_status); }; }; then
22322
cat >conftest.$ac_ext <<_ACEOF
22325
cat confdefs.h >>conftest.$ac_ext
22326
cat >>conftest.$ac_ext <<_ACEOF
22327
/* end confdefs.h. */
22328
$ac_includes_default
22329
typedef long double ac__type_sizeof_;
22333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22340
rm -f conftest.$ac_objext
22341
if { (ac_try="$ac_compile"
22342
case "(($ac_try" in
22343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344
*) ac_try_echo=$ac_try;;
22346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347
(eval "$ac_compile") 2>conftest.er1
22349
grep -v '^ *+' conftest.er1 >conftest.err
22351
cat conftest.err >&5
22352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353
(exit $ac_status); } &&
22354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22355
{ (case "(($ac_try" in
22356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357
*) ac_try_echo=$ac_try;;
22359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360
(eval "$ac_try") 2>&5
22362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363
(exit $ac_status); }; } &&
22364
{ ac_try='test -s conftest.$ac_objext'
22365
{ (case "(($ac_try" in
22366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367
*) ac_try_echo=$ac_try;;
22369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370
(eval "$ac_try") 2>&5
22372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373
(exit $ac_status); }; }; then
22374
ac_lo=$ac_mid; break
22376
echo "$as_me: failed program was:" >&5
22377
sed 's/^/| /' conftest.$ac_ext >&5
22379
ac_hi=`expr '(' $ac_mid ')' - 1`
22380
if test $ac_mid -le $ac_hi; then
22384
ac_mid=`expr 2 '*' $ac_mid`
22387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390
echo "$as_me: failed program was:" >&5
22391
sed 's/^/| /' conftest.$ac_ext >&5
22396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400
# Binary search between lo and hi bounds.
22401
while test "x$ac_lo" != "x$ac_hi"; do
22402
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22403
cat >conftest.$ac_ext <<_ACEOF
22406
cat confdefs.h >>conftest.$ac_ext
22407
cat >>conftest.$ac_ext <<_ACEOF
22408
/* end confdefs.h. */
22409
$ac_includes_default
22410
typedef long double ac__type_sizeof_;
22414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22421
rm -f conftest.$ac_objext
22422
if { (ac_try="$ac_compile"
22423
case "(($ac_try" in
22424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425
*) ac_try_echo=$ac_try;;
22427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428
(eval "$ac_compile") 2>conftest.er1
22430
grep -v '^ *+' conftest.er1 >conftest.err
22432
cat conftest.err >&5
22433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434
(exit $ac_status); } &&
22435
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22436
{ (case "(($ac_try" in
22437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438
*) ac_try_echo=$ac_try;;
22440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441
(eval "$ac_try") 2>&5
22443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444
(exit $ac_status); }; } &&
22445
{ ac_try='test -s conftest.$ac_objext'
22446
{ (case "(($ac_try" in
22447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448
*) ac_try_echo=$ac_try;;
22450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451
(eval "$ac_try") 2>&5
22453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454
(exit $ac_status); }; }; then
22457
echo "$as_me: failed program was:" >&5
22458
sed 's/^/| /' conftest.$ac_ext >&5
22460
ac_lo=`expr '(' $ac_mid ')' + 1`
22463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22466
?*) ac_cv_sizeof_long_double=$ac_lo;;
22467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
22468
See \`config.log' for more details." >&5
22469
echo "$as_me: error: cannot compute sizeof (long double)
22470
See \`config.log' for more details." >&2;}
22471
{ (exit 77); exit 77; }; } ;;
22474
cat >conftest.$ac_ext <<_ACEOF
22477
cat confdefs.h >>conftest.$ac_ext
22478
cat >>conftest.$ac_ext <<_ACEOF
22479
/* end confdefs.h. */
22480
$ac_includes_default
22481
typedef long double ac__type_sizeof_;
22482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22485
#include <stdlib.h>
22490
FILE *f = fopen ("conftest.val", "w");
22493
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22495
long int i = longval ();
22496
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22498
fprintf (f, "%ld\n", i);
22502
unsigned long int i = ulongval ();
22503
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22505
fprintf (f, "%lu\n", i);
22507
return ferror (f) || fclose (f) != 0;
22513
rm -f conftest$ac_exeext
22514
if { (ac_try="$ac_link"
22515
case "(($ac_try" in
22516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517
*) ac_try_echo=$ac_try;;
22519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520
(eval "$ac_link") 2>&5
22522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22524
{ (case "(($ac_try" in
22525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526
*) ac_try_echo=$ac_try;;
22528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529
(eval "$ac_try") 2>&5
22531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532
(exit $ac_status); }; }; then
22533
ac_cv_sizeof_long_double=`cat conftest.val`
22535
echo "$as_me: program exited with status $ac_status" >&5
22536
echo "$as_me: failed program was:" >&5
22537
sed 's/^/| /' conftest.$ac_ext >&5
22539
( exit $ac_status )
22540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
22541
See \`config.log' for more details." >&5
22542
echo "$as_me: error: cannot compute sizeof (long double)
22543
See \`config.log' for more details." >&2;}
22544
{ (exit 77); exit 77; }; }
22546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22550
ac_cv_sizeof_long_double=0
22553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
22554
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
22555
cat >>confdefs.h <<_ACEOF
22556
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
22560
{ echo "$as_me:$LINENO: checking for long long" >&5
22561
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22562
if test "${ac_cv_type_long_long+set}" = set; then
22563
echo $ECHO_N "(cached) $ECHO_C" >&6
22565
cat >conftest.$ac_ext <<_ACEOF
22568
cat confdefs.h >>conftest.$ac_ext
22569
cat >>conftest.$ac_ext <<_ACEOF
22570
/* end confdefs.h. */
22571
$ac_includes_default
22572
typedef long long ac__type_new_;
22576
if ((ac__type_new_ *) 0)
22578
if (sizeof (ac__type_new_))
22584
rm -f conftest.$ac_objext
22585
if { (ac_try="$ac_compile"
22586
case "(($ac_try" in
22587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588
*) ac_try_echo=$ac_try;;
22590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591
(eval "$ac_compile") 2>conftest.er1
22593
grep -v '^ *+' conftest.er1 >conftest.err
22595
cat conftest.err >&5
22596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597
(exit $ac_status); } &&
22598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22599
{ (case "(($ac_try" in
22600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601
*) ac_try_echo=$ac_try;;
22603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604
(eval "$ac_try") 2>&5
22606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607
(exit $ac_status); }; } &&
22608
{ ac_try='test -s conftest.$ac_objext'
22609
{ (case "(($ac_try" in
22610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611
*) ac_try_echo=$ac_try;;
22613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22614
(eval "$ac_try") 2>&5
22616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
(exit $ac_status); }; }; then
22618
ac_cv_type_long_long=yes
22620
echo "$as_me: failed program was:" >&5
22621
sed 's/^/| /' conftest.$ac_ext >&5
22623
ac_cv_type_long_long=no
22626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22629
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22631
{ echo "$as_me:$LINENO: checking size of long long" >&5
22632
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22633
if test "${ac_cv_sizeof_long_long+set}" = set; then
22634
echo $ECHO_N "(cached) $ECHO_C" >&6
22636
if test "$ac_cv_type_long_long" = yes; then
22637
# The cast to long int works around a bug in the HP C Compiler
22638
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22639
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22640
# This bug is HP SR number 8606223364.
22641
if test "$cross_compiling" = yes; then
22642
# Depending upon the size, compute the lo and hi bounds.
22643
cat >conftest.$ac_ext <<_ACEOF
22646
cat confdefs.h >>conftest.$ac_ext
22647
cat >>conftest.$ac_ext <<_ACEOF
22648
/* end confdefs.h. */
22649
$ac_includes_default
22650
typedef long long ac__type_sizeof_;
22654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22661
rm -f conftest.$ac_objext
22662
if { (ac_try="$ac_compile"
22663
case "(($ac_try" in
22664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665
*) ac_try_echo=$ac_try;;
22667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668
(eval "$ac_compile") 2>conftest.er1
22670
grep -v '^ *+' conftest.er1 >conftest.err
22672
cat conftest.err >&5
22673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674
(exit $ac_status); } &&
22675
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22676
{ (case "(($ac_try" in
22677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678
*) ac_try_echo=$ac_try;;
22680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681
(eval "$ac_try") 2>&5
22683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684
(exit $ac_status); }; } &&
22685
{ ac_try='test -s conftest.$ac_objext'
22686
{ (case "(($ac_try" in
22687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688
*) ac_try_echo=$ac_try;;
22690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691
(eval "$ac_try") 2>&5
22693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694
(exit $ac_status); }; }; then
22697
cat >conftest.$ac_ext <<_ACEOF
22700
cat confdefs.h >>conftest.$ac_ext
22701
cat >>conftest.$ac_ext <<_ACEOF
22702
/* end confdefs.h. */
22703
$ac_includes_default
22704
typedef long long ac__type_sizeof_;
22708
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22715
rm -f conftest.$ac_objext
22716
if { (ac_try="$ac_compile"
22717
case "(($ac_try" in
22718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719
*) ac_try_echo=$ac_try;;
22721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722
(eval "$ac_compile") 2>conftest.er1
22724
grep -v '^ *+' conftest.er1 >conftest.err
22726
cat conftest.err >&5
22727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728
(exit $ac_status); } &&
22729
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22730
{ (case "(($ac_try" in
22731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732
*) ac_try_echo=$ac_try;;
22734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735
(eval "$ac_try") 2>&5
22737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738
(exit $ac_status); }; } &&
22739
{ ac_try='test -s conftest.$ac_objext'
22740
{ (case "(($ac_try" in
22741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742
*) ac_try_echo=$ac_try;;
22744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745
(eval "$ac_try") 2>&5
22747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748
(exit $ac_status); }; }; then
22749
ac_hi=$ac_mid; break
22751
echo "$as_me: failed program was:" >&5
22752
sed 's/^/| /' conftest.$ac_ext >&5
22754
ac_lo=`expr $ac_mid + 1`
22755
if test $ac_lo -le $ac_mid; then
22759
ac_mid=`expr 2 '*' $ac_mid + 1`
22762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765
echo "$as_me: failed program was:" >&5
22766
sed 's/^/| /' conftest.$ac_ext >&5
22768
cat >conftest.$ac_ext <<_ACEOF
22771
cat confdefs.h >>conftest.$ac_ext
22772
cat >>conftest.$ac_ext <<_ACEOF
22773
/* end confdefs.h. */
22774
$ac_includes_default
22775
typedef long long ac__type_sizeof_;
22779
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22786
rm -f conftest.$ac_objext
22787
if { (ac_try="$ac_compile"
22788
case "(($ac_try" in
22789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790
*) ac_try_echo=$ac_try;;
22792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793
(eval "$ac_compile") 2>conftest.er1
22795
grep -v '^ *+' conftest.er1 >conftest.err
22797
cat conftest.err >&5
22798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799
(exit $ac_status); } &&
22800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22801
{ (case "(($ac_try" in
22802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803
*) ac_try_echo=$ac_try;;
22805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806
(eval "$ac_try") 2>&5
22808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809
(exit $ac_status); }; } &&
22810
{ ac_try='test -s conftest.$ac_objext'
22811
{ (case "(($ac_try" in
22812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813
*) ac_try_echo=$ac_try;;
22815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816
(eval "$ac_try") 2>&5
22818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819
(exit $ac_status); }; }; then
22822
cat >conftest.$ac_ext <<_ACEOF
22825
cat confdefs.h >>conftest.$ac_ext
22826
cat >>conftest.$ac_ext <<_ACEOF
22827
/* end confdefs.h. */
22828
$ac_includes_default
22829
typedef long long ac__type_sizeof_;
22833
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22840
rm -f conftest.$ac_objext
22841
if { (ac_try="$ac_compile"
22842
case "(($ac_try" in
22843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844
*) ac_try_echo=$ac_try;;
22846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847
(eval "$ac_compile") 2>conftest.er1
22849
grep -v '^ *+' conftest.er1 >conftest.err
22851
cat conftest.err >&5
22852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853
(exit $ac_status); } &&
22854
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22855
{ (case "(($ac_try" in
22856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857
*) ac_try_echo=$ac_try;;
22859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860
(eval "$ac_try") 2>&5
22862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863
(exit $ac_status); }; } &&
22864
{ ac_try='test -s conftest.$ac_objext'
22865
{ (case "(($ac_try" in
22866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867
*) ac_try_echo=$ac_try;;
22869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870
(eval "$ac_try") 2>&5
22872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873
(exit $ac_status); }; }; then
22874
ac_lo=$ac_mid; break
22876
echo "$as_me: failed program was:" >&5
22877
sed 's/^/| /' conftest.$ac_ext >&5
22879
ac_hi=`expr '(' $ac_mid ')' - 1`
22880
if test $ac_mid -le $ac_hi; then
22884
ac_mid=`expr 2 '*' $ac_mid`
22887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22890
echo "$as_me: failed program was:" >&5
22891
sed 's/^/| /' conftest.$ac_ext >&5
22896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900
# Binary search between lo and hi bounds.
22901
while test "x$ac_lo" != "x$ac_hi"; do
22902
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22903
cat >conftest.$ac_ext <<_ACEOF
22906
cat confdefs.h >>conftest.$ac_ext
22907
cat >>conftest.$ac_ext <<_ACEOF
22908
/* end confdefs.h. */
22909
$ac_includes_default
22910
typedef long long ac__type_sizeof_;
22914
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22921
rm -f conftest.$ac_objext
22922
if { (ac_try="$ac_compile"
22923
case "(($ac_try" in
22924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925
*) ac_try_echo=$ac_try;;
22927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928
(eval "$ac_compile") 2>conftest.er1
22930
grep -v '^ *+' conftest.er1 >conftest.err
22932
cat conftest.err >&5
22933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934
(exit $ac_status); } &&
22935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22936
{ (case "(($ac_try" in
22937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938
*) ac_try_echo=$ac_try;;
22940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941
(eval "$ac_try") 2>&5
22943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944
(exit $ac_status); }; } &&
22945
{ ac_try='test -s conftest.$ac_objext'
22946
{ (case "(($ac_try" in
22947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948
*) ac_try_echo=$ac_try;;
22950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951
(eval "$ac_try") 2>&5
22953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954
(exit $ac_status); }; }; then
22957
echo "$as_me: failed program was:" >&5
22958
sed 's/^/| /' conftest.$ac_ext >&5
22960
ac_lo=`expr '(' $ac_mid ')' + 1`
22963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966
?*) ac_cv_sizeof_long_long=$ac_lo;;
22967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22968
See \`config.log' for more details." >&5
22969
echo "$as_me: error: cannot compute sizeof (long long)
22970
See \`config.log' for more details." >&2;}
22971
{ (exit 77); exit 77; }; } ;;
22974
cat >conftest.$ac_ext <<_ACEOF
22977
cat confdefs.h >>conftest.$ac_ext
22978
cat >>conftest.$ac_ext <<_ACEOF
22979
/* end confdefs.h. */
22980
$ac_includes_default
22981
typedef long long ac__type_sizeof_;
22982
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22983
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22985
#include <stdlib.h>
22990
FILE *f = fopen ("conftest.val", "w");
22993
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22995
long int i = longval ();
22996
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22998
fprintf (f, "%ld\n", i);
23002
unsigned long int i = ulongval ();
23003
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23005
fprintf (f, "%lu\n", i);
23007
return ferror (f) || fclose (f) != 0;
23013
rm -f conftest$ac_exeext
23014
if { (ac_try="$ac_link"
23015
case "(($ac_try" in
23016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017
*) ac_try_echo=$ac_try;;
23019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020
(eval "$ac_link") 2>&5
23022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024
{ (case "(($ac_try" in
23025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026
*) ac_try_echo=$ac_try;;
23028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029
(eval "$ac_try") 2>&5
23031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032
(exit $ac_status); }; }; then
23033
ac_cv_sizeof_long_long=`cat conftest.val`
23035
echo "$as_me: program exited with status $ac_status" >&5
23036
echo "$as_me: failed program was:" >&5
23037
sed 's/^/| /' conftest.$ac_ext >&5
23039
( exit $ac_status )
23040
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23041
See \`config.log' for more details." >&5
23042
echo "$as_me: error: cannot compute sizeof (long long)
23043
See \`config.log' for more details." >&2;}
23044
{ (exit 77); exit 77; }; }
23046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23050
ac_cv_sizeof_long_long=0
23053
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23054
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23055
cat >>confdefs.h <<_ACEOF
23056
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23060
{ echo "$as_me:$LINENO: checking for longlong" >&5
23061
echo $ECHO_N "checking for longlong... $ECHO_C" >&6; }
23062
if test "${ac_cv_type_longlong+set}" = set; then
23063
echo $ECHO_N "(cached) $ECHO_C" >&6
23065
cat >conftest.$ac_ext <<_ACEOF
23068
cat confdefs.h >>conftest.$ac_ext
23069
cat >>conftest.$ac_ext <<_ACEOF
23070
/* end confdefs.h. */
23071
$ac_includes_default
23072
typedef longlong ac__type_new_;
23076
if ((ac__type_new_ *) 0)
23078
if (sizeof (ac__type_new_))
23084
rm -f conftest.$ac_objext
23085
if { (ac_try="$ac_compile"
23086
case "(($ac_try" in
23087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088
*) ac_try_echo=$ac_try;;
23090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091
(eval "$ac_compile") 2>conftest.er1
23093
grep -v '^ *+' conftest.er1 >conftest.err
23095
cat conftest.err >&5
23096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097
(exit $ac_status); } &&
23098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23099
{ (case "(($ac_try" in
23100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101
*) ac_try_echo=$ac_try;;
23103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104
(eval "$ac_try") 2>&5
23106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107
(exit $ac_status); }; } &&
23108
{ ac_try='test -s conftest.$ac_objext'
23109
{ (case "(($ac_try" in
23110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111
*) ac_try_echo=$ac_try;;
23113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114
(eval "$ac_try") 2>&5
23116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117
(exit $ac_status); }; }; then
23118
ac_cv_type_longlong=yes
23120
echo "$as_me: failed program was:" >&5
23121
sed 's/^/| /' conftest.$ac_ext >&5
23123
ac_cv_type_longlong=no
23126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128
{ echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
23129
echo "${ECHO_T}$ac_cv_type_longlong" >&6; }
23131
{ echo "$as_me:$LINENO: checking size of longlong" >&5
23132
echo $ECHO_N "checking size of longlong... $ECHO_C" >&6; }
23133
if test "${ac_cv_sizeof_longlong+set}" = set; then
23134
echo $ECHO_N "(cached) $ECHO_C" >&6
23136
if test "$ac_cv_type_longlong" = yes; then
23137
# The cast to long int works around a bug in the HP C Compiler
23138
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23139
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23140
# This bug is HP SR number 8606223364.
23141
if test "$cross_compiling" = yes; then
23142
# Depending upon the size, compute the lo and hi bounds.
23143
cat >conftest.$ac_ext <<_ACEOF
23146
cat confdefs.h >>conftest.$ac_ext
23147
cat >>conftest.$ac_ext <<_ACEOF
23148
/* end confdefs.h. */
23149
$ac_includes_default
23150
typedef longlong ac__type_sizeof_;
23154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23161
rm -f conftest.$ac_objext
23162
if { (ac_try="$ac_compile"
23163
case "(($ac_try" in
23164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165
*) ac_try_echo=$ac_try;;
23167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168
(eval "$ac_compile") 2>conftest.er1
23170
grep -v '^ *+' conftest.er1 >conftest.err
23172
cat conftest.err >&5
23173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174
(exit $ac_status); } &&
23175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23176
{ (case "(($ac_try" in
23177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178
*) ac_try_echo=$ac_try;;
23180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181
(eval "$ac_try") 2>&5
23183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184
(exit $ac_status); }; } &&
23185
{ ac_try='test -s conftest.$ac_objext'
23186
{ (case "(($ac_try" in
23187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188
*) ac_try_echo=$ac_try;;
23190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191
(eval "$ac_try") 2>&5
23193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194
(exit $ac_status); }; }; then
23197
cat >conftest.$ac_ext <<_ACEOF
23200
cat confdefs.h >>conftest.$ac_ext
23201
cat >>conftest.$ac_ext <<_ACEOF
23202
/* end confdefs.h. */
23203
$ac_includes_default
23204
typedef longlong ac__type_sizeof_;
23208
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23215
rm -f conftest.$ac_objext
23216
if { (ac_try="$ac_compile"
23217
case "(($ac_try" in
23218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219
*) ac_try_echo=$ac_try;;
23221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222
(eval "$ac_compile") 2>conftest.er1
23224
grep -v '^ *+' conftest.er1 >conftest.err
23226
cat conftest.err >&5
23227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228
(exit $ac_status); } &&
23229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23230
{ (case "(($ac_try" in
23231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232
*) ac_try_echo=$ac_try;;
23234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235
(eval "$ac_try") 2>&5
23237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238
(exit $ac_status); }; } &&
23239
{ ac_try='test -s conftest.$ac_objext'
23240
{ (case "(($ac_try" in
23241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242
*) ac_try_echo=$ac_try;;
23244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245
(eval "$ac_try") 2>&5
23247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248
(exit $ac_status); }; }; then
23249
ac_hi=$ac_mid; break
23251
echo "$as_me: failed program was:" >&5
23252
sed 's/^/| /' conftest.$ac_ext >&5
23254
ac_lo=`expr $ac_mid + 1`
23255
if test $ac_lo -le $ac_mid; then
23259
ac_mid=`expr 2 '*' $ac_mid + 1`
23262
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265
echo "$as_me: failed program was:" >&5
23266
sed 's/^/| /' conftest.$ac_ext >&5
23268
cat >conftest.$ac_ext <<_ACEOF
23271
cat confdefs.h >>conftest.$ac_ext
23272
cat >>conftest.$ac_ext <<_ACEOF
23273
/* end confdefs.h. */
23274
$ac_includes_default
23275
typedef longlong ac__type_sizeof_;
23279
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23286
rm -f conftest.$ac_objext
23287
if { (ac_try="$ac_compile"
23288
case "(($ac_try" in
23289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290
*) ac_try_echo=$ac_try;;
23292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293
(eval "$ac_compile") 2>conftest.er1
23295
grep -v '^ *+' conftest.er1 >conftest.err
23297
cat conftest.err >&5
23298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299
(exit $ac_status); } &&
23300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23301
{ (case "(($ac_try" in
23302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303
*) ac_try_echo=$ac_try;;
23305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306
(eval "$ac_try") 2>&5
23308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309
(exit $ac_status); }; } &&
23310
{ ac_try='test -s conftest.$ac_objext'
23311
{ (case "(($ac_try" in
23312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313
*) ac_try_echo=$ac_try;;
23315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316
(eval "$ac_try") 2>&5
23318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319
(exit $ac_status); }; }; then
23322
cat >conftest.$ac_ext <<_ACEOF
23325
cat confdefs.h >>conftest.$ac_ext
23326
cat >>conftest.$ac_ext <<_ACEOF
23327
/* end confdefs.h. */
23328
$ac_includes_default
23329
typedef longlong ac__type_sizeof_;
23333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23340
rm -f conftest.$ac_objext
23341
if { (ac_try="$ac_compile"
23342
case "(($ac_try" in
23343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344
*) ac_try_echo=$ac_try;;
23346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347
(eval "$ac_compile") 2>conftest.er1
23349
grep -v '^ *+' conftest.er1 >conftest.err
23351
cat conftest.err >&5
23352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353
(exit $ac_status); } &&
23354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23355
{ (case "(($ac_try" in
23356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357
*) ac_try_echo=$ac_try;;
23359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360
(eval "$ac_try") 2>&5
23362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363
(exit $ac_status); }; } &&
23364
{ ac_try='test -s conftest.$ac_objext'
23365
{ (case "(($ac_try" in
23366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23367
*) ac_try_echo=$ac_try;;
23369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23370
(eval "$ac_try") 2>&5
23372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373
(exit $ac_status); }; }; then
23374
ac_lo=$ac_mid; break
23376
echo "$as_me: failed program was:" >&5
23377
sed 's/^/| /' conftest.$ac_ext >&5
23379
ac_hi=`expr '(' $ac_mid ')' - 1`
23380
if test $ac_mid -le $ac_hi; then
23384
ac_mid=`expr 2 '*' $ac_mid`
23387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390
echo "$as_me: failed program was:" >&5
23391
sed 's/^/| /' conftest.$ac_ext >&5
23396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400
# Binary search between lo and hi bounds.
23401
while test "x$ac_lo" != "x$ac_hi"; do
23402
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23403
cat >conftest.$ac_ext <<_ACEOF
23406
cat confdefs.h >>conftest.$ac_ext
23407
cat >>conftest.$ac_ext <<_ACEOF
23408
/* end confdefs.h. */
23409
$ac_includes_default
23410
typedef longlong ac__type_sizeof_;
23414
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23421
rm -f conftest.$ac_objext
23422
if { (ac_try="$ac_compile"
23423
case "(($ac_try" in
23424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425
*) ac_try_echo=$ac_try;;
23427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23428
(eval "$ac_compile") 2>conftest.er1
23430
grep -v '^ *+' conftest.er1 >conftest.err
23432
cat conftest.err >&5
23433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434
(exit $ac_status); } &&
23435
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23436
{ (case "(($ac_try" in
23437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438
*) ac_try_echo=$ac_try;;
23440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441
(eval "$ac_try") 2>&5
23443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444
(exit $ac_status); }; } &&
23445
{ ac_try='test -s conftest.$ac_objext'
23446
{ (case "(($ac_try" in
23447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448
*) ac_try_echo=$ac_try;;
23450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451
(eval "$ac_try") 2>&5
23453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454
(exit $ac_status); }; }; then
23457
echo "$as_me: failed program was:" >&5
23458
sed 's/^/| /' conftest.$ac_ext >&5
23460
ac_lo=`expr '(' $ac_mid ')' + 1`
23463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466
?*) ac_cv_sizeof_longlong=$ac_lo;;
23467
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong)
23468
See \`config.log' for more details." >&5
23469
echo "$as_me: error: cannot compute sizeof (longlong)
23470
See \`config.log' for more details." >&2;}
23471
{ (exit 77); exit 77; }; } ;;
23474
cat >conftest.$ac_ext <<_ACEOF
23477
cat confdefs.h >>conftest.$ac_ext
23478
cat >>conftest.$ac_ext <<_ACEOF
23479
/* end confdefs.h. */
23480
$ac_includes_default
23481
typedef longlong ac__type_sizeof_;
23482
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23483
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23485
#include <stdlib.h>
23490
FILE *f = fopen ("conftest.val", "w");
23493
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23495
long int i = longval ();
23496
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23498
fprintf (f, "%ld\n", i);
23502
unsigned long int i = ulongval ();
23503
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23505
fprintf (f, "%lu\n", i);
23507
return ferror (f) || fclose (f) != 0;
23513
rm -f conftest$ac_exeext
23514
if { (ac_try="$ac_link"
23515
case "(($ac_try" in
23516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517
*) ac_try_echo=$ac_try;;
23519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520
(eval "$ac_link") 2>&5
23522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23524
{ (case "(($ac_try" in
23525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526
*) ac_try_echo=$ac_try;;
23528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529
(eval "$ac_try") 2>&5
23531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532
(exit $ac_status); }; }; then
23533
ac_cv_sizeof_longlong=`cat conftest.val`
23535
echo "$as_me: program exited with status $ac_status" >&5
23536
echo "$as_me: failed program was:" >&5
23537
sed 's/^/| /' conftest.$ac_ext >&5
23539
( exit $ac_status )
23540
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong)
23541
See \`config.log' for more details." >&5
23542
echo "$as_me: error: cannot compute sizeof (longlong)
23543
See \`config.log' for more details." >&2;}
23544
{ (exit 77); exit 77; }; }
23546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23550
ac_cv_sizeof_longlong=0
23553
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_longlong" >&5
23554
echo "${ECHO_T}$ac_cv_sizeof_longlong" >&6; }
23555
cat >>confdefs.h <<_ACEOF
23556
#define SIZEOF_LONGLONG $ac_cv_sizeof_longlong
23561
# Now we need to find what jk_uint32_t (sizeof == 4) will be.
23562
# The first match is our preference.
23563
if test "$ac_cv_sizeof_int" = "4"; then
23564
int32_t_fmt='#define JK_INT32_T_FMT "d"'
23565
uint32_t_fmt='#define JK_UINT32_T_FMT "u"'
23566
uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "x"'
23568
elif test "$ac_cv_sizeof_long" = "4"; then
23569
int32_t_fmt='#define JK_INT32_T_FMT "ld"'
23570
uint32_t_fmt='#define JK_UINT32_T_FMT "lu"'
23571
uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "lx"'
23574
int32_t_fmt='#error could not detect a 32-bit integer type'
23575
uint32_t_fmt='#error could not detect a 32-bit integer type'
23576
uint32_t_hex_fmt='#error could not detect a 32-bit integer type'
23577
{ { echo "$as_me:$LINENO: error: could not detect a 32-bit integer type" >&5
23578
echo "$as_me: error: could not detect a 32-bit integer type" >&2;}
23579
{ (exit 1); exit 1; }; }
23582
# Now we need to find what jk_uint64_t (sizeof == 8) will be.
23583
# The first match is our preference.
23584
if test "$ac_cv_sizeof_int" = "8"; then
23585
int64_t_fmt='#define JK_INT64_T_FMT "d"'
23586
uint64_t_fmt='#define JK_UINT64_T_FMT "u"'
23587
uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "x"'
23589
elif test "$ac_cv_sizeof_long" = "8"; then
23590
int64_t_fmt='#define JK_INT64_T_FMT "ld"'
23591
uint64_t_fmt='#define JK_UINT64_T_FMT "lu"'
23592
uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "lx"'
23594
elif test "$ac_cv_sizeof_long_long" = "8"; then
23595
# Linux, Solaris, FreeBSD all support ll with printf.
23596
# BSD 4.4 originated 'q'. Solaris is more popular and
23597
# doesn't support 'q'. Solaris wins. Exceptions can
23598
# go to the OS-dependent section.
23599
int64_t_fmt='#define JK_INT64_T_FMT "lld"'
23600
uint64_t_fmt='#define JK_UINT64_T_FMT "llu"'
23601
uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "llx"'
23602
int64_value="long long"
23603
elif test "$ac_cv_sizeof_long_double" = "8"; then
23604
int64_t_fmt='#define JK_INT64_T_FMT "Ld"'
23605
uint64_t_fmt='#define JK_UINT64_T_FMT "Lu"'
23606
uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "Lx"'
23607
int64_value="long double"
23608
elif test "$ac_cv_sizeof_longlong" = "8"; then
23609
int64_t_fmt='#define JK_INT64_T_FMT "qd"'
23610
uint64_t_fmt='#define JK_UINT64_T_FMT "qu"'
23611
uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "qx"'
23612
int64_value="__int64"
23614
int64_t_fmt='#error could not detect a 64-bit integer type'
23615
uint64_t_fmt='#error could not detect a 64-bit integer type'
23616
uint64_t_hex_fmt='#error could not detect a 64-bit integer type'
23617
{ { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
23618
echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
23619
{ (exit 1); exit 1; }; }
23631
{ echo "$as_me:$LINENO: checking for snprintf" >&5
23632
echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
23633
if test "${ac_cv_func_snprintf+set}" = set; then
23634
echo $ECHO_N "(cached) $ECHO_C" >&6
23636
cat >conftest.$ac_ext <<_ACEOF
23639
cat confdefs.h >>conftest.$ac_ext
23640
cat >>conftest.$ac_ext <<_ACEOF
23641
/* end confdefs.h. */
23642
/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
23643
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23644
#define snprintf innocuous_snprintf
23646
/* System header to define __stub macros and hopefully few prototypes,
23647
which can conflict with char snprintf (); below.
23648
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23649
<limits.h> exists even on freestanding compilers. */
23652
# include <limits.h>
23654
# include <assert.h>
23659
/* Override any GCC internal prototype to avoid an error.
23660
Use char because int might match the return type of a GCC
23661
builtin and then its argument prototype would still apply. */
23666
/* The GNU C library defines this for functions which it implements
23667
to always fail with ENOSYS. Some functions are actually named
23668
something starting with __ and the normal name is an alias. */
23669
#if defined __stub_snprintf || defined __stub___snprintf
23676
return snprintf ();
23681
rm -f conftest.$ac_objext conftest$ac_exeext
23682
if { (ac_try="$ac_link"
23683
case "(($ac_try" in
23684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685
*) ac_try_echo=$ac_try;;
23687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688
(eval "$ac_link") 2>conftest.er1
23690
grep -v '^ *+' conftest.er1 >conftest.err
23692
cat conftest.err >&5
23693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694
(exit $ac_status); } &&
23695
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23696
{ (case "(($ac_try" in
23697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698
*) ac_try_echo=$ac_try;;
23700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701
(eval "$ac_try") 2>&5
23703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704
(exit $ac_status); }; } &&
23705
{ ac_try='test -s conftest$ac_exeext'
23706
{ (case "(($ac_try" in
23707
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708
*) ac_try_echo=$ac_try;;
23710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711
(eval "$ac_try") 2>&5
23713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714
(exit $ac_status); }; }; then
23715
ac_cv_func_snprintf=yes
23717
echo "$as_me: failed program was:" >&5
23718
sed 's/^/| /' conftest.$ac_ext >&5
23720
ac_cv_func_snprintf=no
23723
rm -f core conftest.err conftest.$ac_objext \
23724
conftest$ac_exeext conftest.$ac_ext
23726
{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
23727
echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
23728
if test $ac_cv_func_snprintf = yes; then
23730
cat >>confdefs.h <<\_ACEOF
23731
#define HAVE_SNPRINTF 1
23736
{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
23737
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
23738
if test "${ac_cv_func_vsnprintf+set}" = set; then
23739
echo $ECHO_N "(cached) $ECHO_C" >&6
23741
cat >conftest.$ac_ext <<_ACEOF
23744
cat confdefs.h >>conftest.$ac_ext
23745
cat >>conftest.$ac_ext <<_ACEOF
23746
/* end confdefs.h. */
23747
/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
23748
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23749
#define vsnprintf innocuous_vsnprintf
23751
/* System header to define __stub macros and hopefully few prototypes,
23752
which can conflict with char vsnprintf (); below.
23753
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23754
<limits.h> exists even on freestanding compilers. */
23757
# include <limits.h>
23759
# include <assert.h>
23764
/* Override any GCC internal prototype to avoid an error.
23765
Use char because int might match the return type of a GCC
23766
builtin and then its argument prototype would still apply. */
23771
/* The GNU C library defines this for functions which it implements
23772
to always fail with ENOSYS. Some functions are actually named
23773
something starting with __ and the normal name is an alias. */
23774
#if defined __stub_vsnprintf || defined __stub___vsnprintf
23781
return vsnprintf ();
23786
rm -f conftest.$ac_objext conftest$ac_exeext
23787
if { (ac_try="$ac_link"
23788
case "(($ac_try" in
23789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790
*) ac_try_echo=$ac_try;;
23792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793
(eval "$ac_link") 2>conftest.er1
23795
grep -v '^ *+' conftest.er1 >conftest.err
23797
cat conftest.err >&5
23798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799
(exit $ac_status); } &&
23800
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23801
{ (case "(($ac_try" in
23802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803
*) ac_try_echo=$ac_try;;
23805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806
(eval "$ac_try") 2>&5
23808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809
(exit $ac_status); }; } &&
23810
{ ac_try='test -s conftest$ac_exeext'
23811
{ (case "(($ac_try" in
23812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813
*) ac_try_echo=$ac_try;;
23815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816
(eval "$ac_try") 2>&5
23818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819
(exit $ac_status); }; }; then
23820
ac_cv_func_vsnprintf=yes
23822
echo "$as_me: failed program was:" >&5
23823
sed 's/^/| /' conftest.$ac_ext >&5
23825
ac_cv_func_vsnprintf=no
23828
rm -f core conftest.err conftest.$ac_objext \
23829
conftest$ac_exeext conftest.$ac_ext
23831
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
23832
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
23833
if test $ac_cv_func_vsnprintf = yes; then
23835
cat >>confdefs.h <<\_ACEOF
23836
#define HAVE_VSNPRINTF 1
23841
{ echo "$as_me:$LINENO: checking for flock" >&5
23842
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
23843
if test "${ac_cv_func_flock+set}" = set; then
23844
echo $ECHO_N "(cached) $ECHO_C" >&6
23846
cat >conftest.$ac_ext <<_ACEOF
23849
cat confdefs.h >>conftest.$ac_ext
23850
cat >>conftest.$ac_ext <<_ACEOF
23851
/* end confdefs.h. */
23852
/* Define flock to an innocuous variant, in case <limits.h> declares flock.
23853
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23854
#define flock innocuous_flock
23856
/* System header to define __stub macros and hopefully few prototypes,
23857
which can conflict with char flock (); below.
23858
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23859
<limits.h> exists even on freestanding compilers. */
23862
# include <limits.h>
23864
# include <assert.h>
23869
/* Override any GCC internal prototype to avoid an error.
23870
Use char because int might match the return type of a GCC
23871
builtin and then its argument prototype would still apply. */
23876
/* The GNU C library defines this for functions which it implements
23877
to always fail with ENOSYS. Some functions are actually named
23878
something starting with __ and the normal name is an alias. */
23879
#if defined __stub_flock || defined __stub___flock
23891
rm -f conftest.$ac_objext conftest$ac_exeext
23892
if { (ac_try="$ac_link"
23893
case "(($ac_try" in
23894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895
*) ac_try_echo=$ac_try;;
23897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898
(eval "$ac_link") 2>conftest.er1
23900
grep -v '^ *+' conftest.er1 >conftest.err
23902
cat conftest.err >&5
23903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904
(exit $ac_status); } &&
23905
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23906
{ (case "(($ac_try" in
23907
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908
*) ac_try_echo=$ac_try;;
23910
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911
(eval "$ac_try") 2>&5
23913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914
(exit $ac_status); }; } &&
23915
{ ac_try='test -s conftest$ac_exeext'
23916
{ (case "(($ac_try" in
23917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918
*) ac_try_echo=$ac_try;;
23920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921
(eval "$ac_try") 2>&5
23923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924
(exit $ac_status); }; }; then
23925
ac_cv_func_flock=yes
23927
echo "$as_me: failed program was:" >&5
23928
sed 's/^/| /' conftest.$ac_ext >&5
23930
ac_cv_func_flock=no
23933
rm -f core conftest.err conftest.$ac_objext \
23934
conftest$ac_exeext conftest.$ac_ext
23936
{ echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
23937
echo "${ECHO_T}$ac_cv_func_flock" >&6; }
23938
if test $ac_cv_func_flock = yes; then
23940
cat >>confdefs.h <<\_ACEOF
23941
#define HAVE_FLOCK 1
23946
{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
23947
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
23948
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
23949
echo $ECHO_N "(cached) $ECHO_C" >&6
23951
ac_check_lib_save_LIBS=$LIBS
23952
LIBS="-lsocket $LIBS"
23953
cat >conftest.$ac_ext <<_ACEOF
23956
cat confdefs.h >>conftest.$ac_ext
23957
cat >>conftest.$ac_ext <<_ACEOF
23958
/* end confdefs.h. */
23960
/* Override any GCC internal prototype to avoid an error.
23961
Use char because int might match the return type of a GCC
23962
builtin and then its argument prototype would still apply. */
23966
char setsockopt ();
23970
return setsockopt ();
23975
rm -f conftest.$ac_objext conftest$ac_exeext
23976
if { (ac_try="$ac_link"
23977
case "(($ac_try" in
23978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979
*) ac_try_echo=$ac_try;;
23981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982
(eval "$ac_link") 2>conftest.er1
23984
grep -v '^ *+' conftest.er1 >conftest.err
23986
cat conftest.err >&5
23987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988
(exit $ac_status); } &&
23989
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23990
{ (case "(($ac_try" in
23991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992
*) ac_try_echo=$ac_try;;
23994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995
(eval "$ac_try") 2>&5
23997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998
(exit $ac_status); }; } &&
23999
{ ac_try='test -s conftest$ac_exeext'
24000
{ (case "(($ac_try" in
24001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002
*) ac_try_echo=$ac_try;;
24004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005
(eval "$ac_try") 2>&5
24007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008
(exit $ac_status); }; }; then
24009
ac_cv_lib_socket_setsockopt=yes
24011
echo "$as_me: failed program was:" >&5
24012
sed 's/^/| /' conftest.$ac_ext >&5
24014
ac_cv_lib_socket_setsockopt=no
24017
rm -f core conftest.err conftest.$ac_objext \
24018
conftest$ac_exeext conftest.$ac_ext
24019
LIBS=$ac_check_lib_save_LIBS
24021
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
24022
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
24023
if test $ac_cv_lib_socket_setsockopt = yes; then
24024
LIBS="$LIBS -lsocket"
24030
{ echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt()" >&5
24031
echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt()... $ECHO_C" >&6; }
24032
if test "$cross_compiling" = yes; then
24033
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24034
See \`config.log' for more details." >&5
24035
echo "$as_me: error: cannot run test program while cross compiling
24036
See \`config.log' for more details." >&2;}
24037
{ (exit 1); exit 1; }; }
24039
cat >conftest.$ac_ext <<_ACEOF
24042
cat confdefs.h >>conftest.$ac_ext
24043
cat >>conftest.$ac_ext <<_ACEOF
24044
/* end confdefs.h. */
24046
#include <sys/types.h>
24047
#include <sys/socket.h>
24048
#include <sys/time.h>
24057
#ifndef SO_RCVTIMEO
24060
if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
24063
/* fails on Solaris 2.6,8,9,10 and some Linuxes because
24064
SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
24065
if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *)&tv, sizeof(tv)) == -1)
24074
rm -f conftest$ac_exeext
24075
if { (ac_try="$ac_link"
24076
case "(($ac_try" in
24077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078
*) ac_try_echo=$ac_try;;
24080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081
(eval "$ac_link") 2>&5
24083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085
{ (case "(($ac_try" in
24086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087
*) ac_try_echo=$ac_try;;
24089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090
(eval "$ac_try") 2>&5
24092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093
(exit $ac_status); }; }; then
24094
{ echo "$as_me:$LINENO: result: yes" >&5
24095
echo "${ECHO_T}yes" >&6; }
24096
cat >>confdefs.h <<\_ACEOF
24097
#define USE_SO_RCVTIMEO 1
24102
echo "$as_me: program exited with status $ac_status" >&5
24103
echo "$as_me: failed program was:" >&5
24104
sed 's/^/| /' conftest.$ac_ext >&5
24106
( exit $ac_status )
24107
{ echo "$as_me:$LINENO: result: no" >&5
24108
echo "${ECHO_T}no" >&6; }
24111
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24117
{ echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt()" >&5
24118
echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt()... $ECHO_C" >&6; }
24119
if test "$cross_compiling" = yes; then
24120
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24121
See \`config.log' for more details." >&5
24122
echo "$as_me: error: cannot run test program while cross compiling
24123
See \`config.log' for more details." >&2;}
24124
{ (exit 1); exit 1; }; }
24126
cat >conftest.$ac_ext <<_ACEOF
24129
cat confdefs.h >>conftest.$ac_ext
24130
cat >>conftest.$ac_ext <<_ACEOF
24131
/* end confdefs.h. */
24133
#include <sys/types.h>
24134
#include <sys/socket.h>
24135
#include <sys/time.h>
24144
#ifndef SO_SNDTIMEO
24147
if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
24150
/* fails on Solaris 2.6,8,9,10 and some Linuxes because
24151
SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
24152
if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const void *)&tv, sizeof(tv)) == -1)
24161
rm -f conftest$ac_exeext
24162
if { (ac_try="$ac_link"
24163
case "(($ac_try" in
24164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165
*) ac_try_echo=$ac_try;;
24167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168
(eval "$ac_link") 2>&5
24170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24172
{ (case "(($ac_try" in
24173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174
*) ac_try_echo=$ac_try;;
24176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177
(eval "$ac_try") 2>&5
24179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180
(exit $ac_status); }; }; then
24181
{ echo "$as_me:$LINENO: result: yes" >&5
24182
echo "${ECHO_T}yes" >&6; }
24183
cat >>confdefs.h <<\_ACEOF
24184
#define USE_SO_SNDTIMEO 1
24189
echo "$as_me: program exited with status $ac_status" >&5
24190
echo "$as_me: failed program was:" >&5
24191
sed 's/^/| /' conftest.$ac_ext >&5
24193
( exit $ac_status )
24194
{ echo "$as_me:$LINENO: result: no" >&5
24195
echo "${ECHO_T}no" >&6; }
24198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24204
APACHE_CONFIG_VARS=`pwd`/scripts/build/config_vars.mk
24210
# Check whether --with-apxs was given.
24211
if test "${with_apxs+set}" = set; then
24212
withval=$with_apxs;
24213
case "${withval}" in
24214
y | yes | true) find_apxs=true ;;
24215
n | no | false) find_apxs=false ;;
24216
*) find_apxs=false ;;
24219
if ${TEST} ${find_apxs} ; then
24220
{ echo "$as_me:$LINENO: result: need to check for Perl first, apxs depends on it..." >&5
24221
echo "${ECHO_T}need to check for Perl first, apxs depends on it..." >&6; }
24222
# Extract the first word of "perl", so it can be a program name with args.
24223
set dummy perl; ac_word=$2
24224
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24226
if test "${ac_cv_path_PERL+set}" = set; then
24227
echo $ECHO_N "(cached) $ECHO_C" >&6
24231
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
24234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24235
for as_dir in $PATH
24238
test -z "$as_dir" && as_dir=.
24239
for ac_exec_ext in '' $ac_executable_extensions; do
24240
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24241
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
24242
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24249
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$PATH"
24253
PERL=$ac_cv_path_PERL
24254
if test -n "$PERL"; then
24255
{ echo "$as_me:$LINENO: result: $PERL" >&5
24256
echo "${ECHO_T}$PERL" >&6; }
24258
{ echo "$as_me:$LINENO: result: no" >&5
24259
echo "${ECHO_T}no" >&6; }
24263
if ${TEST} ${find_apxs} ; then
24266
# Extract the first word of "apxs", so it can be a program name with args.
24267
set dummy apxs; ac_word=$2
24268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24270
if test "${ac_cv_path_APXS+set}" = set; then
24271
echo $ECHO_N "(cached) $ECHO_C" >&6
24275
ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
24278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279
for as_dir in $PATH
24282
test -z "$as_dir" && as_dir=.
24283
for ac_exec_ext in '' $ac_executable_extensions; do
24284
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24285
ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
24286
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24293
test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="$PATH"
24297
APXS=$ac_cv_path_APXS
24298
if test -n "$APXS"; then
24299
{ echo "$as_me:$LINENO: result: $APXS" >&5
24300
echo "${ECHO_T}$APXS" >&6; }
24302
{ echo "$as_me:$LINENO: result: no" >&5
24303
echo "${ECHO_T}no" >&6; }
24308
if ${TEST} -n "${APXS}" ; then
24309
if ${TEST} ! -x "${APXS}" ; then
24310
{ { echo "$as_me:$LINENO: error: Invalid location for apxs: '${APXS}'" >&5
24311
echo "$as_me: error: Invalid location for apxs: '${APXS}'" >&2;}
24312
{ (exit 1); exit 1; }; }
24315
${APXS} -q PREFIX >/dev/null 2>/dev/null || apxs_support=false
24317
if ${TEST} "${apxs_support}" = "false" ; then
24318
{ echo "$as_me:$LINENO: result: could not find ${APXS}" >&5
24319
echo "${ECHO_T}could not find ${APXS}" >&6; }
24320
{ { echo "$as_me:$LINENO: error: You must specify a valid --with-apxs path" >&5
24321
echo "$as_me: error: You must specify a valid --with-apxs path" >&2;}
24322
{ (exit 1); exit 1; }; }
24325
apache_dir=`$APXS -q PREFIX`
24326
apache_include="-I`$APXS -q INCLUDEDIR`"
24328
APA=`${GREP} STANDARD20 ${APXS}`
24329
if ${TEST} -z "$APA" ; then
24330
WEBSERVER="apache-1.3"
24331
APXSCFLAGS="`$APXS -q CFLAGS` -DJK_PREFORK"
24334
WEBSERVER="apache-2.0"
24336
INCTEMP="`$APXS -q APR_INCLUDEDIR` `$APXS -q APU_INCLUDEDIR`"
24337
for INC in ${INCTEMP}; do
24338
APRINCLUDEDIR="${APRINCLUDEDIR} -I${INC}"
24340
{ echo "$as_me:$LINENO: result: APRINCLUDEDIR is $APRINCLUDEDIR" >&5
24341
echo "${ECHO_T}APRINCLUDEDIR is $APRINCLUDEDIR" >&6; }
24342
APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS` -DHAVE_APR ${APRINCLUDEDIR}"
24343
APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
24344
APACHE_CONFIG_VARS="`${APXS} -q exp_installbuilddir`/config_vars.mk"
24345
LIBTOOL=`$APXS -q LIBTOOL`
24347
{ echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
24348
echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6; }
24356
{ echo "$as_me:$LINENO: result: no apxs given" >&5
24357
echo "${ECHO_T}no apxs given" >&6; }
24364
{ echo "$as_me:$LINENO: checking for target platform" >&5
24365
echo $ECHO_N "checking for target platform... $ECHO_C" >&6; }
24367
#PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
24370
case "$PLATFORM" in
24373
OS_APACHE_DIR=$OS_APACHE
24377
OS_APACHE_DIR=$OS_APACHE
24381
OS_APACHE_DIR=bs2000 # only the OS_APACHE_DIR is platform specific.
24385
OS_APACHE_DIR=$OS_APACHE;;
24388
{ echo "$as_me:$LINENO: result: $OS_APACHE" >&5
24389
echo "${ECHO_T}$OS_APACHE" >&6; }
24393
apache_dir_is_src="false"
24395
# Check whether --with-apache was given.
24396
if test "${with_apache+set}" = set; then
24397
withval=$with_apache;
24398
if ${TEST} ! -z "$WEBSERVER" ; then
24399
{ { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} togother, please choose one of both" >&5
24400
echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} togother, please choose one of both" >&2;}
24401
{ (exit 1); exit 1; }; }
24404
{ echo "$as_me:$LINENO: checking for Apache source directory (assume static build)" >&5
24405
echo $ECHO_N "checking for Apache source directory (assume static build)... $ECHO_C" >&6; }
24407
if ${TEST} -n "${withval}" && ${TEST} -d "${withval}" ; then
24408
if ${TEST} -d "${withval}/src" ; then
24409
# handle the case where people use relative paths to
24410
# the apache source directory by pre-pending the current
24411
# build directory to the path. there are probably
24412
# errors with this if configure is run while in a
24413
# different directory than what you are in at the time
24414
if ${TEST} -n "`${ECHO} ${withval}|${GREP} \"^\.\.\"`" ; then
24415
withval=`pwd`/${withval}
24418
apache_dir=${withval}
24419
apache_dir_is_src="true"
24420
{ echo "$as_me:$LINENO: result: ${apache_dir}" >&5
24421
echo "${ECHO_T}${apache_dir}" >&6; }
24423
{ echo "$as_me:$LINENO: checking for Apache include directory" >&5
24424
echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6; }
24426
if ${TEST} -d "${withval}/src/include" ; then
24427
# read osdir from the existing apache.
24428
osdir=`${GREP} '^OSDIR=' ${withval}/src/Makefile.config | ${SED} -e 's:^OSDIR=.*/os:os:'`
24429
if ${TEST} -z "${osdir}" ; then
24432
apache_include="-I${withval}/src/include \
24433
-I${withval}/src/${osdir}"
24434
WEBSERVER="apache-1.3"
24435
LIB_JK_TYPE=mod_jk.a
24436
CFLAGS="${CFLAGS} -DJK_PREFORK"
24437
{ echo "$as_me:$LINENO: result: ${apache_include}, version 1.3" >&5
24438
echo "${ECHO_T}${apache_include}, version 1.3" >&6; }
24440
{ { echo "$as_me:$LINENO: error: Sorry Apache 1.2.x is no longer supported." >&5
24441
echo "$as_me: error: Sorry Apache 1.2.x is no longer supported." >&2;}
24442
{ (exit 1); exit 1; }; }
24445
if ${TEST} -d "${withval}/include" ; then
24446
# osdir for Apache20.
24447
WEBSERVER="apache-2.0"
24448
apache_dir=${withval}
24449
apache_dir_is_src="true"
24450
LIB_JK_TYPE=lib_jk.la
24451
apache_include="-I${withval}/include -I${withval}/srclib/apr/include -I${withval}/os/${OS_APACHE_DIR} -I${withval}/srclib/apr-util/include"
24452
{ echo "$as_me:$LINENO: result: ${apache_dir}" >&5
24453
echo "${ECHO_T}${apache_dir}" >&6; }
24458
if ${TEST} -z "$WEBSERVER" ; then
24459
{ { echo "$as_me:$LINENO: error: Directory $apache_dir is not a valid Apache source distribution" >&5
24460
echo "$as_me: error: Directory $apache_dir is not a valid Apache source distribution" >&2;}
24461
{ (exit 1); exit 1; }; }
24464
# VT: Now, which one I'm supposed to use? Let's figure it out later
24466
configure_apache=true
24469
{ echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
24470
echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6; }
24474
{ echo "$as_me:$LINENO: result: no apache given" >&5
24475
echo "${ECHO_T}no apache given" >&6; }
24480
APACHE_DIR=${apache_dir}
24484
# Check whether --enable-jni was given.
24485
if test "${enable_jni+set}" = set; then
24486
enableval=$enable_jni;
24487
{ echo "$as_me:$LINENO: result: jni enable (need JDK)" >&5
24488
echo "${ECHO_T}jni enable (need JDK)" >&6; }
24489
CFLAGS="${CFLAGS} -DHAVE_JNI"
24490
JK_JNI_WORKER="\${JK}jk_jni_worker\${OEXT}"
24496
# Check whether --enable-EAPI was given.
24497
if test "${enable_EAPI+set}" = set; then
24498
enableval=$enable_EAPI;
24499
case "${enableval}" in
24500
y | Y | YES | yes | TRUE | true )
24501
CFLAGS="${CFLAGS} -DEAPI"
24502
{ echo "$as_me:$LINENO: result: ...Enabling EAPI Support..." >&5
24503
echo "${ECHO_T}...Enabling EAPI Support..." >&6; }
24512
# Check whether --enable-maintainer-mode was given.
24513
if test "${enable_maintainer_mode+set}" = set; then
24514
enableval=$enable_maintainer_mode;
24515
case "${enableval}" in
24516
y | Y | YES | yes | TRUE | true )
24517
CFLAGS="${CFLAGS} -DDEBUG -Wall"
24518
{ echo "$as_me:$LINENO: result: ...Enabling Maintainer mode..." >&5
24519
echo "${ECHO_T}...Enabling Maintainer mode..." >&6; }
24528
# Check whether --enable-prefork was given.
24529
if test "${enable_prefork+set}" = set; then
24530
enableval=$enable_prefork;
24531
case "${enableval}" in
24532
y | Y | YES | yes | TRUE | true )
24533
CFLAGS="${CFLAGS} -DJK_PREFORK"
24534
{ echo "$as_me:$LINENO: result: ...Enabling Prefork mode..." >&5
24535
echo "${ECHO_T}...Enabling Prefork mode..." >&6; }
24543
if ${TEST} -n "${CFLAGS}" ; then
24544
APXSCFLAGS="${APXSCFLAGS} ${CFLAGS}"
24546
if ${TEST} -n "${LDFLAGS}" ; then
24547
APXSLDFLAGS="-Wl,${LDFLAGS}"
24553
if ${TEST} -n "${JK_JNI_WORKER}" ; then
24555
WEBSERVER="jni ${WEBSERVER}"
24558
{ echo "$as_me:$LINENO: checking for JDK location (please wait)" >&5
24559
echo $ECHO_N "checking for JDK location (please wait)... $ECHO_C" >&6; }
24563
if ${TEST} -n "${JAVA_HOME}" ; then
24564
JAVA_HOME_ENV="${JAVA_HOME}"
24572
# Check whether --with-java-home was given.
24573
if test "${with_java_home+set}" = set; then
24574
withval=$with_java_home;
24576
# This stuff works if the command line parameter --with-java-home was
24577
# specified, so it takes priority rightfully.
24579
JAVA_HOME=${withval}
24581
if ${TEST} ! -d "${JAVA_HOME}" ; then
24582
{ { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}" >&5
24583
echo "$as_me: error: Not a directory: ${JAVA_HOME}" >&2;}
24584
{ (exit 1); exit 1; }; }
24587
{ echo "$as_me:$LINENO: result: ${JAVA_HOME}" >&5
24588
echo "${ECHO_T}${JAVA_HOME}" >&6; }
24593
# This works if the parameter was NOT specified, so it's a good time
24594
# to see what the enviroment says.
24596
# Since Sun uses JAVA_HOME a lot, we check it first and ignore the
24597
# JAVA_HOME, otherwise just use whatever JAVA_HOME was specified.
24599
if ${TEST} -n "${JAVA_HOME_ENV}" ; then
24601
JAVA_HOME=${JAVA_HOME_ENV}
24602
{ echo "$as_me:$LINENO: result: ${JAVA_HOME_ENV} from environment" >&5
24603
echo "${ECHO_T}${JAVA_HOME_ENV} from environment" >&6; }
24609
if ${TEST} -z "${JAVA_HOME}" ; then
24611
# Oh well, nobody set neither JAVA_HOME nor JAVA_HOME, have to guess
24613
# The following code is based on the code submitted by Henner Zeller
24614
# for ${srcdir}/src/scripts/package/rpm/ApacheJServ.spec
24616
# Two variables will be set as a result:
24620
{ echo "$as_me:$LINENO: checking Try to guess JDK location" >&5
24621
echo $ECHO_N "checking Try to guess JDK location... $ECHO_C" >&6; }
24624
for JAVA_PREFIX in \
24632
for JAVA_PLATFORM in 3 2 1 ;
24635
for subversion in .9 .8 .7 .6 .5 .4 .3 .2 .1 "" ;
24637
for VARIANT in IBMJava2- java java- jdk jdk-;
24639
GUESS="${JAVA_PREFIX}/${VARIANT}1.${JAVA_PLATFORM}${subversion}"
24640
if ${TEST} -d "${GUESS}/bin" \
24641
&& ${TEST} -d "${GUESS}/include" ; then
24643
JAVA_HOME="${GUESS}"
24644
{ echo "$as_me:$LINENO: result: ${GUESS}" >&5
24645
echo "${ECHO_T}${GUESS}" >&6; }
24651
if ${TEST} -n "${JAVA_HOME}" ; then
24657
if ${TEST} -n "${JAVA_HOME}" ; then
24663
if ${TEST} -n "${JAVA_HOME}" ; then
24669
if ${TEST} -n "${JAVA_HOME}" ; then
24672
{ echo "$as_me:$LINENO: checking Java platform" >&5
24673
echo $ECHO_N "checking Java platform... $ECHO_C" >&6; }
24674
{ echo "$as_me:$LINENO: result: guess ${JAVA_PLATFORM}" >&5
24675
echo "${ECHO_T}guess ${JAVA_PLATFORM}" >&6; }
24681
{ echo "$as_me:$LINENO: checking Java platform" >&5
24682
echo $ECHO_N "checking Java platform... $ECHO_C" >&6; }
24685
# Check whether --with-java-platform was given.
24686
if test "${with_java_platform+set}" = set; then
24687
withval=$with_java_platform;
24694
{ echo "$as_me:$LINENO: result: forced Java ${JAVA_PLATFORM}" >&5
24695
echo "${ECHO_T}forced Java ${JAVA_PLATFORM}" >&6; }
24699
if ${TEST} -z "${JAVA_HOME}" ; then
24700
{ { echo "$as_me:$LINENO: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&5
24701
echo "$as_me: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&2;}
24702
{ (exit 1); exit 1; }; }
24707
# Check whether --with-os-type was given.
24708
if test "${with_os_type+set}" = set; then
24709
withval=$with_os_type;
24712
if ${TEST} ! -d "${JAVA_HOME}/${OS}" ; then
24713
{ { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}/${OS}" >&5
24714
echo "$as_me: error: Not a directory: ${JAVA_HOME}/${OS}" >&2;}
24715
{ (exit 1); exit 1; }; }
24720
{ echo "$as_me:$LINENO: checking os_type directory" >&5
24721
echo $ECHO_N "checking os_type directory... $ECHO_C" >&6; }
24722
if ${TEST} -f ${JAVA_HOME}/include/jni_md.h; then
24725
for f in ${JAVA_HOME}/include/*/jni_md.h; do
24726
if ${TEST} -f $f; then
24728
OS=`basename ${OS}`
24732
if ${TEST} -z "${OS}"; then
24733
{ echo "$as_me:$LINENO: result: Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&5
24734
echo "${ECHO_T}Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&6; }
24735
{ { echo "$as_me:$LINENO: error: You should retry --with-os-type=SUBDIR" >&5
24736
echo "$as_me: error: You should retry --with-os-type=SUBDIR" >&2;}
24737
{ (exit 1); exit 1; }; }
24748
if ${TEST} -z "$WEBSERVER" ; then
24749
{ { echo "$as_me:$LINENO: error: Cannot find the WebServer" >&5
24750
echo "$as_me: error: Cannot find the WebServer" >&2;}
24751
{ (exit 1); exit 1; }; }
24754
WEBSERVER="common ${WEBSERVER}"
24760
if ${TEST} "${apache_dir_is_src}" = "false"; then
24761
MAKE_DYNAMIC_APACHE_TRUE=
24762
MAKE_DYNAMIC_APACHE_FALSE='#'
24764
MAKE_DYNAMIC_APACHE_TRUE='#'
24765
MAKE_DYNAMIC_APACHE_FALSE=
24769
if ${TEST} "${apache_dir_is_src}" = "false" ; then
24771
LIB_JK_TYPE=mod_jk.so
24772
INSTALL_TYPE=install_dynamic
24775
INSTALL_TYPE=install_static
24781
ac_config_files="$ac_config_files Makefile apache-1.3/Makefile apache-1.3/Makefile.apxs apache-2.0/Makefile apache-2.0/Makefile.apxs common/Makefile common/list.mk common/jk_types.h jni/Makefile"
24783
cat >confcache <<\_ACEOF
24784
# This file is a shell script that caches the results of configure
24785
# tests run on this system so they can be shared between configure
24786
# scripts and configure runs, see configure's option --config-cache.
24787
# It is not useful on other systems. If it contains results you don't
24788
# want to keep, you may remove or edit it.
24790
# config.status only pays attention to the cache file if you give it
24791
# the --recheck option to rerun configure.
24793
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24794
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24795
# following values.
24799
# The following way of writing the cache mishandles newlines in values,
24800
# but we know of no workaround that is simple, portable, and efficient.
24801
# So, we kill variables containing newlines.
24802
# Ultrix sh set writes to stderr and can't be redirected directly,
24803
# and sets the high bit in the cache file unless we assign to the vars.
24805
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24806
eval ac_val=\$$ac_var
24810
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24811
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24814
_ | IFS | as_nl) ;; #(
24815
*) $as_unset $ac_var ;;
24821
case $as_nl`(ac_space=' '; set) 2>&1` in #(
24822
*${as_nl}ac_space=\ *)
24823
# `set' does not quote correctly, so add quotes (double-quote
24824
# substitution turns \\\\ into \\, and sed turns \\ into \).
24827
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24830
# `set' quotes correctly as required by POSIX, so do not add quotes.
24831
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24840
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24842
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24844
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24845
if test -w "$cache_file"; then
24846
test "x$cache_file" != "x/dev/null" &&
24847
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
24848
echo "$as_me: updating cache $cache_file" >&6;}
24849
cat confcache >$cache_file
24851
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24852
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24857
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24858
# Let make expand exec_prefix.
24859
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24861
DEFS=-DHAVE_CONFIG_H
24865
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24866
# 1. Remove the extension, and $U if already installed.
24867
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24868
ac_i=`echo "$ac_i" | sed "$ac_script"`
24869
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24870
# will be set to the directory where LIBOBJS objects are built.
24871
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24872
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24874
LIBOBJS=$ac_libobjs
24876
LTLIBOBJS=$ac_ltlibobjs
24879
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24880
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24881
Usually this means the macro was only invoked conditionally." >&5
24882
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24883
Usually this means the macro was only invoked conditionally." >&2;}
24884
{ (exit 1); exit 1; }; }
24886
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24887
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24888
Usually this means the macro was only invoked conditionally." >&5
24889
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24890
Usually this means the macro was only invoked conditionally." >&2;}
24891
{ (exit 1); exit 1; }; }
24893
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24894
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24895
Usually this means the macro was only invoked conditionally." >&5
24896
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24897
Usually this means the macro was only invoked conditionally." >&2;}
24898
{ (exit 1); exit 1; }; }
24900
if test -z "${MAKE_DYNAMIC_APACHE_TRUE}" && test -z "${MAKE_DYNAMIC_APACHE_FALSE}"; then
24901
{ { echo "$as_me:$LINENO: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24902
Usually this means the macro was only invoked conditionally." >&5
24903
echo "$as_me: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24904
Usually this means the macro was only invoked conditionally." >&2;}
24905
{ (exit 1); exit 1; }; }
24908
: ${CONFIG_STATUS=./config.status}
24909
ac_clean_files_save=$ac_clean_files
24910
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24911
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24912
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24913
cat >$CONFIG_STATUS <<_ACEOF
24915
# Generated by $as_me.
24916
# Run this file to recreate the current configuration.
24917
# Compiler output produced by configure, useful for debugging
24918
# configure, is in config.log if it exists.
24921
ac_cs_recheck=false
24923
SHELL=\${CONFIG_SHELL-$SHELL}
24926
cat >>$CONFIG_STATUS <<\_ACEOF
24927
## --------------------- ##
24928
## M4sh Initialization. ##
24929
## --------------------- ##
24931
# Be Bourne compatible
24932
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24935
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24936
# is contrary to our usage. Disable this feature.
24937
alias -g '${1+"$@"}'='"$@"'
24938
setopt NO_GLOB_SUBST
24940
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24942
BIN_SH=xpg4; export BIN_SH # for Tru64
24943
DUALCASE=1; export DUALCASE # for MKS sh
24947
# Avoid depending upon Character Ranges.
24948
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24949
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24950
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24951
as_cr_digits='0123456789'
24952
as_cr_alnum=$as_cr_Letters$as_cr_digits
24954
# The user is always right.
24955
if test "${PATH_SEPARATOR+set}" != set; then
24956
echo "#! /bin/sh" >conf$$.sh
24957
echo "exit 0" >>conf$$.sh
24959
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24967
# Support unset when possible.
24968
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24976
# We need space, tab and new line, in precisely that order. Quoting is
24977
# there to prevent editors from complaining about space-tab.
24978
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24979
# splitting by setting IFS to empty value.)
24984
# Find who we are. Look in the path if we contain no directory separator.
24986
*[\\/]* ) as_myself=$0 ;;
24987
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24988
for as_dir in $PATH
24991
test -z "$as_dir" && as_dir=.
24992
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24998
# We did not find ourselves, most probably we were run as `sh COMMAND'
24999
# in which case we are not to be found in the path.
25000
if test "x$as_myself" = x; then
25003
if test ! -f "$as_myself"; then
25004
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25005
{ (exit 1); exit 1; }
25008
# Work around bugs in pre-3.0 UWIN ksh.
25009
for as_var in ENV MAIL MAILPATH
25010
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25018
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25019
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25020
LC_TELEPHONE LC_TIME
25022
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25023
eval $as_var=C; export $as_var
25025
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25029
# Required to use basename.
25030
if expr a : '\(a\)' >/dev/null 2>&1 &&
25031
test "X`expr 00001 : '.*\(...\)'`" = X001; then
25037
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25038
as_basename=basename
25044
# Name of the executable.
25045
as_me=`$as_basename -- "$0" ||
25046
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25047
X"$0" : 'X\(//\)$' \| \
25048
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25050
sed '/^.*\/\([^/][^/]*\)\/*$/{
25069
as_lineno_1=$LINENO
25070
as_lineno_2=$LINENO
25071
test "x$as_lineno_1" != "x$as_lineno_2" &&
25072
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25074
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25075
# uniformly replaced by the line number. The first 'sed' inserts a
25076
# line-number line after each line using $LINENO; the second 'sed'
25077
# does the real work. The second script uses 'N' to pair each
25078
# line-number line with the line containing $LINENO, and appends
25079
# trailing '-' during substitution so that $LINENO is not a special
25080
# case at line end.
25081
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25082
# scripts with optimization help from Paolo Bonzini. Blame Lee
25083
# E. McMahon (1931-1989) for sed's syntax. :-)
25095
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25098
' >$as_me.lineno &&
25099
chmod +x "$as_me.lineno" ||
25100
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25101
{ (exit 1); exit 1; }; }
25103
# Don't try to exec as it changes $[0], causing all sort of problems
25104
# (the dirname of $[0] is not the place where we might find the
25105
# original and so on. Autoconf is especially sensitive to this).
25106
. "./$as_me.lineno"
25107
# Exit status is that of the last command.
25112
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25118
ECHO_C= ECHO_N= ECHO_T=
25119
case `echo -n x` in
25121
case `echo 'x\c'` in
25122
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
25129
if expr a : '\(a\)' >/dev/null 2>&1 &&
25130
test "X`expr 00001 : '.*\(...\)'`" = X001; then
25136
rm -f conf$$ conf$$.exe conf$$.file
25137
if test -d conf$$.dir; then
25138
rm -f conf$$.dir/conf$$.file
25144
if ln -s conf$$.file conf$$ 2>/dev/null; then
25146
# ... but there are two gotchas:
25147
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25148
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25149
# In both cases, we have to default to `cp -p'.
25150
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25152
elif ln conf$$.file conf$$ 2>/dev/null; then
25157
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25158
rmdir conf$$.dir 2>/dev/null
25160
if mkdir -p . 2>/dev/null; then
25163
test -d ./-p && rmdir ./-p
25167
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
25168
# systems may use methods other than mode bits to determine executability.
25169
cat >conf$$.file <<_ASEOF
25173
chmod +x conf$$.file
25174
if test -x conf$$.file >/dev/null 2>&1; then
25175
as_executable_p="test -x"
25181
# Sed expression to map a string onto a valid CPP name.
25182
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25184
# Sed expression to map a string onto a valid variable name.
25185
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25190
# Save the log message, to keep $[0] and so on meaningful, and to
25191
# report actual input values of CONFIG_FILES etc. instead of their
25192
# values after options handling.
25194
This file was extended by $as_me, which was
25195
generated by GNU Autoconf 2.60. Invocation command line was
25197
CONFIG_FILES = $CONFIG_FILES
25198
CONFIG_HEADERS = $CONFIG_HEADERS
25199
CONFIG_LINKS = $CONFIG_LINKS
25200
CONFIG_COMMANDS = $CONFIG_COMMANDS
25203
on `(hostname || uname -n) 2>/dev/null | sed 1q`
25208
cat >>$CONFIG_STATUS <<_ACEOF
25209
# Files that config.status was made for.
25210
config_files="$ac_config_files"
25211
config_headers="$ac_config_headers"
25212
config_commands="$ac_config_commands"
25216
cat >>$CONFIG_STATUS <<\_ACEOF
25218
\`$as_me' instantiates files from templates according to the
25219
current configuration.
25221
Usage: $0 [OPTIONS] [FILE]...
25223
-h, --help print this help, then exit
25224
-V, --version print version number, then exit
25225
-q, --quiet do not print progress messages
25226
-d, --debug don't remove temporary files
25227
--recheck update $as_me by reconfiguring in the same conditions
25228
--file=FILE[:TEMPLATE]
25229
instantiate the configuration file FILE
25230
--header=FILE[:TEMPLATE]
25231
instantiate the configuration header FILE
25233
Configuration files:
25236
Configuration headers:
25239
Configuration commands:
25242
Report bugs to <bug-autoconf@gnu.org>."
25245
cat >>$CONFIG_STATUS <<_ACEOF
25248
configured by $0, generated by GNU Autoconf 2.60,
25249
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25251
Copyright (C) 2006 Free Software Foundation, Inc.
25252
This config.status script is free software; the Free Software Foundation
25253
gives unlimited permission to copy, distribute and modify it."
25260
cat >>$CONFIG_STATUS <<\_ACEOF
25261
# If no file are specified by the user, then we need to provide default
25262
# value. By we need to know if files were specified by the user.
25268
ac_option=`expr "X$1" : 'X\([^=]*\)='`
25269
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25280
# Handling of the options.
25281
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25283
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25284
echo "$ac_cs_version"; exit ;;
25285
--debug | --debu | --deb | --de | --d | -d )
25287
--file | --fil | --fi | --f )
25289
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25290
ac_need_defaults=false;;
25291
--header | --heade | --head | --hea )
25293
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25294
ac_need_defaults=false;;
25296
# Conflict between --help and --header
25297
{ echo "$as_me: error: ambiguous option: $1
25298
Try \`$0 --help' for more information." >&2
25299
{ (exit 1); exit 1; }; };;
25300
--help | --hel | -h )
25301
echo "$ac_cs_usage"; exit ;;
25302
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25303
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25306
# This is an error.
25307
-*) { echo "$as_me: error: unrecognized option: $1
25308
Try \`$0 --help' for more information." >&2
25309
{ (exit 1); exit 1; }; } ;;
25311
*) ac_config_targets="$ac_config_targets $1"
25312
ac_need_defaults=false ;;
25318
ac_configure_extra_args=
25320
if $ac_cs_silent; then
25322
ac_configure_extra_args="$ac_configure_extra_args --silent"
25326
cat >>$CONFIG_STATUS <<_ACEOF
25327
if \$ac_cs_recheck; then
25328
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25329
CONFIG_SHELL=$SHELL
25330
export CONFIG_SHELL
25331
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25335
cat >>$CONFIG_STATUS <<\_ACEOF
25339
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25340
## Running $as_me. ##
25346
cat >>$CONFIG_STATUS <<_ACEOF
25350
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25354
cat >>$CONFIG_STATUS <<\_ACEOF
25356
# Handling of arguments.
25357
for ac_config_target in $ac_config_targets
25359
case $ac_config_target in
25360
"common/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS common/portable.h" ;;
25361
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25362
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25363
"apache-1.3/Makefile") CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile" ;;
25364
"apache-1.3/Makefile.apxs") CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile.apxs" ;;
25365
"apache-2.0/Makefile") CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile" ;;
25366
"apache-2.0/Makefile.apxs") CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile.apxs" ;;
25367
"common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
25368
"common/list.mk") CONFIG_FILES="$CONFIG_FILES common/list.mk" ;;
25369
"common/jk_types.h") CONFIG_FILES="$CONFIG_FILES common/jk_types.h" ;;
25370
"jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
25372
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25373
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25374
{ (exit 1); exit 1; }; };;
25379
# If the user did not use the arguments to specify the items to instantiate,
25380
# then the envvar interface is used. Set only those that are not.
25381
# We use the long form for the default assignment because of an extremely
25382
# bizarre bug on SunOS 4.1.3.
25383
if $ac_need_defaults; then
25384
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25385
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25386
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25389
# Have a temporary directory for convenience. Make it in the build tree
25390
# simply because there is no reason against having it here, and in addition,
25391
# creating and moving files from /tmp can sometimes cause problems.
25392
# Hook for its removal unless debugging.
25393
# Note that there is a small window in which the directory will not be cleaned:
25394
# after its creation but before its name has been assigned to `$tmp'.
25398
trap 'exit_status=$?
25399
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25401
trap '{ (exit 1); exit 1; }' 1 2 13 15
25403
# Create a (secure) tmp directory for tmp files.
25406
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25407
test -n "$tmp" && test -d "$tmp"
25410
tmp=./conf$$-$RANDOM
25411
(umask 077 && mkdir "$tmp")
25414
echo "$me: cannot create a temporary directory in ." >&2
25415
{ (exit 1); exit 1; }
25419
# Set up the sed scripts for CONFIG_FILES section.
25422
# No need to generate the scripts if there are no CONFIG_FILES.
25423
# This happens for instance when ./config.status config.h
25424
if test -n "$CONFIG_FILES"; then
25431
for ac_last_try in false false false false false :; do
25432
cat >conf$$subs.sed <<_ACEOF
25433
SHELL!$SHELL$ac_delim
25434
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25435
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25436
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25437
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25438
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25439
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25440
exec_prefix!$exec_prefix$ac_delim
25441
prefix!$prefix$ac_delim
25442
program_transform_name!$program_transform_name$ac_delim
25443
bindir!$bindir$ac_delim
25444
sbindir!$sbindir$ac_delim
25445
libexecdir!$libexecdir$ac_delim
25446
datarootdir!$datarootdir$ac_delim
25447
datadir!$datadir$ac_delim
25448
sysconfdir!$sysconfdir$ac_delim
25449
sharedstatedir!$sharedstatedir$ac_delim
25450
localstatedir!$localstatedir$ac_delim
25451
includedir!$includedir$ac_delim
25452
oldincludedir!$oldincludedir$ac_delim
25453
docdir!$docdir$ac_delim
25454
infodir!$infodir$ac_delim
25455
htmldir!$htmldir$ac_delim
25456
dvidir!$dvidir$ac_delim
25457
pdfdir!$pdfdir$ac_delim
25458
psdir!$psdir$ac_delim
25459
libdir!$libdir$ac_delim
25460
localedir!$localedir$ac_delim
25461
mandir!$mandir$ac_delim
25462
DEFS!$DEFS$ac_delim
25463
ECHO_C!$ECHO_C$ac_delim
25464
ECHO_N!$ECHO_N$ac_delim
25465
ECHO_T!$ECHO_T$ac_delim
25466
LIBS!$LIBS$ac_delim
25467
build_alias!$build_alias$ac_delim
25468
host_alias!$host_alias$ac_delim
25469
target_alias!$target_alias$ac_delim
25470
build!$build$ac_delim
25471
build_cpu!$build_cpu$ac_delim
25472
build_vendor!$build_vendor$ac_delim
25473
build_os!$build_os$ac_delim
25474
host!$host$ac_delim
25475
host_cpu!$host_cpu$ac_delim
25476
host_vendor!$host_vendor$ac_delim
25477
host_os!$host_os$ac_delim
25478
target!$target$ac_delim
25479
target_cpu!$target_cpu$ac_delim
25480
target_vendor!$target_vendor$ac_delim
25481
target_os!$target_os$ac_delim
25482
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25483
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25484
INSTALL_DATA!$INSTALL_DATA$ac_delim
25485
CYGPATH_W!$CYGPATH_W$ac_delim
25486
PACKAGE!$PACKAGE$ac_delim
25487
VERSION!$VERSION$ac_delim
25488
ACLOCAL!$ACLOCAL$ac_delim
25489
AUTOCONF!$AUTOCONF$ac_delim
25490
AUTOMAKE!$AUTOMAKE$ac_delim
25491
AUTOHEADER!$AUTOHEADER$ac_delim
25492
MAKEINFO!$MAKEINFO$ac_delim
25493
install_sh!$install_sh$ac_delim
25494
STRIP!$STRIP$ac_delim
25495
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25496
mkdir_p!$mkdir_p$ac_delim
25498
SET_MAKE!$SET_MAKE$ac_delim
25499
am__leading_dot!$am__leading_dot$ac_delim
25500
AMTAR!$AMTAR$ac_delim
25501
am__tar!$am__tar$ac_delim
25502
am__untar!$am__untar$ac_delim
25504
CFLAGS!$CFLAGS$ac_delim
25505
LDFLAGS!$LDFLAGS$ac_delim
25506
CPPFLAGS!$CPPFLAGS$ac_delim
25507
ac_ct_CC!$ac_ct_CC$ac_delim
25508
EXEEXT!$EXEEXT$ac_delim
25509
OBJEXT!$OBJEXT$ac_delim
25510
DEPDIR!$DEPDIR$ac_delim
25511
am__include!$am__include$ac_delim
25512
am__quote!$am__quote$ac_delim
25513
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25514
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25515
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25516
CCDEPMODE!$CCDEPMODE$ac_delim
25517
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25518
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25519
GREP!$GREP$ac_delim
25520
EGREP!$EGREP$ac_delim
25521
LN_S!$LN_S$ac_delim
25522
ECHO!$ECHO$ac_delim
25524
RANLIB!$RANLIB$ac_delim
25527
CXXFLAGS!$CXXFLAGS$ac_delim
25528
ac_ct_CXX!$ac_ct_CXX$ac_delim
25529
CXXDEPMODE!$CXXDEPMODE$ac_delim
25532
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25534
elif $ac_last_try; then
25535
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25536
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25537
{ (exit 1); exit 1; }; }
25539
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25543
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25544
if test -n "$ac_eof"; then
25545
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25546
ac_eof=`expr $ac_eof + 1`
25549
cat >>$CONFIG_STATUS <<_ACEOF
25550
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25551
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25554
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25555
s/^/s,@/; s/!/@,|#_!!_#|/
25558
s/'"$ac_delim"'$/,g/; t
25560
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25561
' >>$CONFIG_STATUS <conf$$subs.sed
25562
rm -f conf$$subs.sed
25563
cat >>$CONFIG_STATUS <<_ACEOF
25569
for ac_last_try in false false false false false :; do
25570
cat >conf$$subs.sed <<_ACEOF
25571
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25572
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25573
CXXCPP!$CXXCPP$ac_delim
25575
FFLAGS!$FFLAGS$ac_delim
25576
ac_ct_F77!$ac_ct_F77$ac_delim
25577
LIBTOOL!$LIBTOOL$ac_delim
25578
TEST!$TEST$ac_delim
25582
MKDIR!$MKDIR$ac_delim
25583
int32_value!$int32_value$ac_delim
25584
int32_t_fmt!$int32_t_fmt$ac_delim
25585
uint32_t_fmt!$uint32_t_fmt$ac_delim
25586
uint32_t_hex_fmt!$uint32_t_hex_fmt$ac_delim
25587
int64_value!$int64_value$ac_delim
25588
int64_t_fmt!$int64_t_fmt$ac_delim
25589
uint64_t_fmt!$uint64_t_fmt$ac_delim
25590
uint64_t_hex_fmt!$uint64_t_hex_fmt$ac_delim
25591
PERL!$PERL$ac_delim
25592
APXS!$APXS$ac_delim
25593
APACHE_CONFIG_VARS!$APACHE_CONFIG_VARS$ac_delim
25594
apache_include!$apache_include$ac_delim
25595
APACHE_DIR!$APACHE_DIR$ac_delim
25596
JK_JNI_WORKER!$JK_JNI_WORKER$ac_delim
25597
APXSCFLAGS!$APXSCFLAGS$ac_delim
25598
APXSCPPFLAGS!$APXSCPPFLAGS$ac_delim
25599
APXSLDFLAGS!$APXSLDFLAGS$ac_delim
25600
JAVA_HOME!$JAVA_HOME$ac_delim
25602
WEBSERVER!$WEBSERVER$ac_delim
25603
MAKE_DYNAMIC_APACHE_TRUE!$MAKE_DYNAMIC_APACHE_TRUE$ac_delim
25604
MAKE_DYNAMIC_APACHE_FALSE!$MAKE_DYNAMIC_APACHE_FALSE$ac_delim
25605
APACHE20_OEXT!$APACHE20_OEXT$ac_delim
25606
LIB_JK_TYPE!$LIB_JK_TYPE$ac_delim
25607
INSTALL_TYPE!$INSTALL_TYPE$ac_delim
25608
LIBOBJS!$LIBOBJS$ac_delim
25609
LTLIBOBJS!$LTLIBOBJS$ac_delim
25612
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
25614
elif $ac_last_try; then
25615
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25616
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25617
{ (exit 1); exit 1; }; }
25619
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25623
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25624
if test -n "$ac_eof"; then
25625
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25626
ac_eof=`expr $ac_eof + 1`
25629
cat >>$CONFIG_STATUS <<_ACEOF
25630
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25631
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25634
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25635
s/^/s,@/; s/!/@,|#_!!_#|/
25638
s/'"$ac_delim"'$/,g/; t
25640
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25641
' >>$CONFIG_STATUS <conf$$subs.sed
25642
rm -f conf$$subs.sed
25643
cat >>$CONFIG_STATUS <<_ACEOF
25650
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25651
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25652
# trailing colons and then remove the whole line if VPATH becomes empty
25653
# (actually we leave an empty line to preserve line numbers).
25654
if test "x$srcdir" = x.; then
25655
ac_vpsub='/^[ ]*VPATH[ ]*=/{
25656
s/:*\$(srcdir):*/:/
25657
s/:*\${srcdir}:*/:/
25659
s/^\([^=]*=[ ]*\):*/\1/
25665
cat >>$CONFIG_STATUS <<\_ACEOF
25666
fi # test -n "$CONFIG_FILES"
25669
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25672
:[FHLC]) ac_mode=$ac_tag; continue;;
25674
case $ac_mode$ac_tag in
25676
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25677
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25678
{ (exit 1); exit 1; }; };;
25679
:[FH]-) ac_tag=-:-;;
25680
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25697
-) ac_f="$tmp/stdin";;
25698
*) # Look for the file first in the build tree, then in the source tree
25699
# (if the path is not absolute). The absolute path cannot be DOS-style,
25700
# because $ac_f cannot contain `:'.
25704
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25706
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25707
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25708
{ (exit 1); exit 1; }; };;
25710
ac_file_inputs="$ac_file_inputs $ac_f"
25713
# Let's still pretend it is `configure' which instantiates (i.e., don't
25714
# use $as_me), people would be surprised to read:
25715
# /* config.h. Generated by config.status. */
25716
configure_input="Generated from "`IFS=:
25717
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25718
if test x"$ac_file" != x-; then
25719
configure_input="$ac_file. $configure_input"
25720
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25721
echo "$as_me: creating $ac_file" >&6;}
25725
*:-:* | *:-) cat >"$tmp/stdin";;
25730
ac_dir=`$as_dirname -- "$ac_file" ||
25731
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25732
X"$ac_file" : 'X\(//\)[^/]' \| \
25733
X"$ac_file" : 'X\(//\)$' \| \
25734
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25736
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25740
/^X\(\/\/\)[^/].*/{
25755
-*) as_dir=./$as_dir;;
25757
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25761
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25762
*) as_qdir=$as_dir;;
25764
as_dirs="'$as_qdir' $as_dirs"
25765
as_dir=`$as_dirname -- "$as_dir" ||
25766
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25767
X"$as_dir" : 'X\(//\)[^/]' \| \
25768
X"$as_dir" : 'X\(//\)$' \| \
25769
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25771
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25775
/^X\(\/\/\)[^/].*/{
25788
test -d "$as_dir" && break
25790
test -z "$as_dirs" || eval "mkdir $as_dirs"
25791
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25792
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25793
{ (exit 1); exit 1; }; }; }
25797
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25799
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25800
# A ".." for each directory in $ac_dir_suffix.
25801
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25802
case $ac_top_builddir_sub in
25803
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25804
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25807
ac_abs_top_builddir=$ac_pwd
25808
ac_abs_builddir=$ac_pwd$ac_dir_suffix
25809
# for backward compatibility:
25810
ac_top_builddir=$ac_top_build_prefix
25813
.) # We are building in place.
25815
ac_top_srcdir=$ac_top_builddir_sub
25816
ac_abs_top_srcdir=$ac_pwd ;;
25817
[\\/]* | ?:[\\/]* ) # Absolute name.
25818
ac_srcdir=$srcdir$ac_dir_suffix;
25819
ac_top_srcdir=$srcdir
25820
ac_abs_top_srcdir=$srcdir ;;
25821
*) # Relative name.
25822
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25823
ac_top_srcdir=$ac_top_build_prefix$srcdir
25824
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25826
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25836
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25837
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25841
cat >>$CONFIG_STATUS <<\_ACEOF
25842
# If the template does not know about datarootdir, expand it.
25843
# FIXME: This hack should be removed a few years after 2.60.
25844
ac_datarootdir_hack=; ac_datarootdir_seen=
25846
case `sed -n '/datarootdir/ {
25855
' $ac_file_inputs` in
25856
*datarootdir*) ac_datarootdir_seen=yes;;
25857
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25858
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25859
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25861
cat >>$CONFIG_STATUS <<_ACEOF
25862
ac_datarootdir_hack='
25863
s&@datadir@&$datadir&g
25864
s&@docdir@&$docdir&g
25865
s&@infodir@&$infodir&g
25866
s&@localedir@&$localedir&g
25867
s&@mandir@&$mandir&g
25868
s&\\\${datarootdir}&$datarootdir&g' ;;
25872
# Neutralize VPATH when `$srcdir' = `.'.
25873
# Shell code in configure.ac might set extrasub.
25874
# FIXME: do we really want to maintain this feature?
25875
cat >>$CONFIG_STATUS <<_ACEOF
25879
cat >>$CONFIG_STATUS <<\_ACEOF
25881
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25882
s&@configure_input@&$configure_input&;t t
25883
s&@top_builddir@&$ac_top_builddir_sub&;t t
25884
s&@srcdir@&$ac_srcdir&;t t
25885
s&@abs_srcdir@&$ac_abs_srcdir&;t t
25886
s&@top_srcdir@&$ac_top_srcdir&;t t
25887
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25888
s&@builddir@&$ac_builddir&;t t
25889
s&@abs_builddir@&$ac_abs_builddir&;t t
25890
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25891
s&@INSTALL@&$ac_INSTALL&;t t
25892
$ac_datarootdir_hack
25893
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25895
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25896
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25897
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25898
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25899
which seems to be undefined. Please make sure it is defined." >&5
25900
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25901
which seems to be undefined. Please make sure it is defined." >&2;}
25905
-) cat "$tmp/out"; rm -f "$tmp/out";;
25906
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25915
# Transform confdefs.h into a sed script `conftest.defines', that
25916
# substitutes the proper values into config.h.in to produce config.h.
25917
rm -f conftest.defines conftest.tail
25918
# First, append a space to every undef/define line, to ease matching.
25919
echo 's/$/ /' >conftest.defines
25920
# Then, protect against being on the right side of a sed subst, or in
25921
# an unquoted here document, in config.status. If some macros were
25922
# called several times there might be several #defines for the same
25923
# symbol, which is useless. But do not sort them, since the last
25924
# AC_DEFINE must be honored.
25925
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25926
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25927
# NAME is the cpp macro being defined, VALUE is the value it is being given.
25928
# PARAMS is the parameter list in the macro definition--in most cases, it's
25929
# just an empty string.
25930
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25931
ac_dB='\\)[ (].*,\\1define\\2'
25939
s/^[ ]*#[ ]*define[ ][ ]*//
25944
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25945
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25946
' >>conftest.defines
25948
# Remove the space that was appended to ease matching.
25949
# Then replace #undef with comments. This is necessary, for
25950
# example, in the case of _POSIX_SOURCE, which is predefined and required
25951
# on some systems where configure will not decide to define it.
25952
# (The regexp can be short, since the line contains either #define or #undef.)
25954
s,^[ #]*u.*,/* & */,' >>conftest.defines
25956
# Break up conftest.defines:
25957
ac_max_sed_lines=50
25959
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25960
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25961
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25963
ac_in='$ac_file_inputs'
25964
ac_out='"$tmp/out1"'
25965
ac_nxt='"$tmp/out2"'
25969
# Write a here document:
25970
cat >>$CONFIG_STATUS <<_ACEOF
25971
# First, check the format of the line:
25972
cat >"\$tmp/defines.sed" <<\\CEOF
25973
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25974
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25978
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25980
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25981
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25982
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25983
grep . conftest.tail >/dev/null || break
25984
rm -f conftest.defines
25985
mv conftest.tail conftest.defines
25987
rm -f conftest.defines conftest.tail
25989
echo "ac_result=$ac_in" >>$CONFIG_STATUS
25990
cat >>$CONFIG_STATUS <<\_ACEOF
25991
if test x"$ac_file" != x-; then
25992
echo "/* $configure_input */" >"$tmp/config.h"
25993
cat "$ac_result" >>"$tmp/config.h"
25994
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25995
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25996
echo "$as_me: $ac_file is unchanged" >&6;}
25999
mv "$tmp/config.h" $ac_file
26002
echo "/* $configure_input */"
26006
# Compute $ac_file's index in $config_headers.
26008
for _am_header in $config_headers :; do
26009
case $_am_header in
26010
$ac_file | $ac_file:* )
26013
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
26016
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
26017
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26018
X$ac_file : 'X\(//\)[^/]' \| \
26019
X$ac_file : 'X\(//\)$' \| \
26020
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
26022
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26026
/^X\(\/\/\)[^/].*/{
26038
s/.*/./; q'`/stamp-h$_am_stamp_count
26041
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26042
echo "$as_me: executing $ac_file commands" >&6;}
26047
case $ac_file$ac_mode in
26048
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26049
# Strip MF so we end up with the name of the file.
26050
mf=`echo "$mf" | sed -e 's/:.*$//'`
26051
# Check whether this is an Automake generated Makefile or not.
26052
# We used to match only the files named `Makefile.in', but
26053
# some people rename them; so instead we look at the file content.
26054
# Grep'ing the first line is not enough: some people post-process
26055
# each Makefile.in and add a new line on top of each file to say so.
26056
# So let's grep whole file.
26057
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26058
dirpart=`$as_dirname -- "$mf" ||
26059
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26060
X"$mf" : 'X\(//\)[^/]' \| \
26061
X"$mf" : 'X\(//\)$' \| \
26062
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26064
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26068
/^X\(\/\/\)[^/].*/{
26084
# Extract the definition of DEPDIR, am__include, and am__quote
26085
# from the Makefile without running `make'.
26086
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26087
test -z "$DEPDIR" && continue
26088
am__include=`sed -n 's/^am__include = //p' < "$mf"`
26089
test -z "am__include" && continue
26090
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26091
# When using ansi2knr, U may be empty or an underscore; expand it
26092
U=`sed -n 's/^U = //p' < "$mf"`
26093
# Find all dependency output files, they are included files with
26094
# $(DEPDIR) in their names. We invoke sed twice because it is the
26095
# simplest approach to changing $(DEPDIR) to its actual value in the
26097
for file in `sed -n "
26098
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26099
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26100
# Make sure the directory exists.
26101
test -f "$dirpart/$file" && continue
26102
fdir=`$as_dirname -- "$file" ||
26103
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26104
X"$file" : 'X\(//\)[^/]' \| \
26105
X"$file" : 'X\(//\)$' \| \
26106
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26108
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26112
/^X\(\/\/\)[^/].*/{
26125
{ as_dir=$dirpart/$fdir
26127
-*) as_dir=./$as_dir;;
26129
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26133
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26134
*) as_qdir=$as_dir;;
26136
as_dirs="'$as_qdir' $as_dirs"
26137
as_dir=`$as_dirname -- "$as_dir" ||
26138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26139
X"$as_dir" : 'X\(//\)[^/]' \| \
26140
X"$as_dir" : 'X\(//\)$' \| \
26141
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26143
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26147
/^X\(\/\/\)[^/].*/{
26160
test -d "$as_dir" && break
26162
test -z "$as_dirs" || eval "mkdir $as_dirs"
26163
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26164
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26165
{ (exit 1); exit 1; }; }; }
26166
# echo "creating $dirpart/$file"
26167
echo '# dummy' > "$dirpart/$file"
26176
{ (exit 0); exit 0; }
26178
chmod +x $CONFIG_STATUS
26179
ac_clean_files=$ac_clean_files_save
26182
# configure is writing to config.log, and then calls config.status.
26183
# config.status does its own redirection, appending to config.log.
26184
# Unfortunately, on DOS this fails, as config.log is still kept open
26185
# by configure, so config.status won't be able to write to it; its
26186
# output is simply discarded. So we exec the FD to /dev/null,
26187
# effectively closing config.log, so it can be properly (re)opened and
26188
# appended to by config.status. When coming back to configure, we
26189
# need to make the FD available again.
26190
if test "$no_create" != yes; then
26192
ac_config_status_args=
26193
test "$silent" = yes &&
26194
ac_config_status_args="$ac_config_status_args --quiet"
26196
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26198
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26199
# would make configure fail if this is the last instruction.
26200
$ac_cs_success || { (exit 1); exit 1; }