2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59e for linux nfs-utils 1.0.9-pre1.
5
@%:@ Report bugs to <nfs@lists.sf.net>.
7
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
@%:@ This configure script is free software; the Free Software Foundation
10
@%:@ gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
# is contrary to our usage. Disable this feature.
21
alias -g '${1+"$@"}'='"$@"'
24
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26
BIN_SH=xpg4; export BIN_SH # for Tru64
27
DUALCASE=1; export DUALCASE # for MKS sh
31
# Avoid depending upon Character Ranges.
32
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35
as_cr_digits='0123456789'
36
as_cr_alnum=$as_cr_Letters$as_cr_digits
38
# The user is always right.
39
if test "${PATH_SEPARATOR+set}" != set; then
40
echo "#! /bin/sh" >conf$$.sh
41
echo "exit 0" >>conf$$.sh
43
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51
# Support unset when possible.
52
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60
# We need space, tab and new line, in precisely that order. Quoting is
61
# there to prevent editors from complaining about space-tab.
62
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63
# splitting by setting IFS to empty value.)
68
# Find who we are. Look in the path if we contain no directory separator.
70
*[\\/]* ) as_myself=$0 ;;
71
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75
test -z "$as_dir" && as_dir=.
76
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82
# We did not find ourselves, most probably we were run as `sh COMMAND'
83
# in which case we are not to be found in the path.
84
if test "x$as_myself" = x; then
87
if test ! -f "$as_myself"; then
88
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92
# Work around bugs in pre-3.0 UWIN ksh.
93
for as_var in ENV MAIL MAILPATH
94
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107
eval $as_var=C; export $as_var
109
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113
# Required to use basename.
114
if expr a : '\(a\)' >/dev/null 2>&1 &&
115
test "X`expr 00001 : '.*\(...\)'`" = X001; then
121
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128
# Name of the executable.
129
as_me=`$as_basename -- "$0" ||
130
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131
X"$0" : 'X\(//\)$' \| \
132
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134
sed '/^.*\/\([^/][^/]*\)\/*$/{
152
if test "x$CONFIG_SHELL" = x; then
153
if (eval ":") 2>/dev/null; then
159
if test $as_have_required = yes && (eval ":
169
as_func_ret_success () {
172
as_func_ret_failure () {
177
if as_func_success; then
181
echo as_func_success failed.
184
if as_func_failure; then
186
echo as_func_failure succeeded.
189
if as_func_ret_success; then
193
echo as_func_ret_success failed.
196
if as_func_ret_failure; then
198
echo as_func_ret_failure succeeded.
201
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205
echo positional parameters were not saved.
208
test \$exitcode = 0) || { (exit 1); exit 1; }
213
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215
") 2> /dev/null; then
219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
226
for as_base in sh bash ksh sh5; do
227
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234
for as_shell in $as_candidate_shells $SHELL; do
235
# Try only shells which exist, to save several forks.
236
if test -f "$as_shell" &&
237
{ ("$as_shell") 2> /dev/null <<\_ASEOF
238
# Be Bourne compatible
239
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243
# is contrary to our usage. Disable this feature.
244
alias -g '${1+"$@"}'='"$@"'
247
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249
BIN_SH=xpg4; export BIN_SH # for Tru64
250
DUALCASE=1; export DUALCASE # for MKS sh
255
CONFIG_SHELL=$as_shell
257
if { "$as_shell" 2> /dev/null <<\_ASEOF
258
# Be Bourne compatible
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269
BIN_SH=xpg4; export BIN_SH # for Tru64
270
DUALCASE=1; export DUALCASE # for MKS sh
282
as_func_ret_success () {
285
as_func_ret_failure () {
290
if as_func_success; then
294
echo as_func_success failed.
297
if as_func_failure; then
299
echo as_func_failure succeeded.
302
if as_func_ret_success; then
306
echo as_func_ret_success failed.
309
if as_func_ret_failure; then
311
echo as_func_ret_failure succeeded.
314
if ( set x; as_func_ret_success y && test x = "$1" ); then
318
echo positional parameters were not saved.
321
test $exitcode = 0) || { (exit 1); exit 1; }
326
test "x$as_lineno_1" != "x$as_lineno_2" &&
327
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338
if test "x$CONFIG_SHELL" != x; then
339
for as_var in BASH_ENV ENV
340
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347
if test $as_have_required = no; then
348
echo This script requires a shell more modern than all the
349
echo shells that I found on your system. Please install a
350
echo modern shell, or manually run the script under such a
351
echo shell if you do have one.
352
{ (exit 1); exit 1; }
362
(eval "as_func_return () {
371
as_func_ret_success () {
374
as_func_ret_failure () {
379
if as_func_success; then
383
echo as_func_success failed.
386
if as_func_failure; then
388
echo as_func_failure succeeded.
391
if as_func_ret_success; then
395
echo as_func_ret_success failed.
398
if as_func_ret_failure; then
400
echo as_func_ret_failure succeeded.
403
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407
echo positional parameters were not saved.
410
test \$exitcode = 0") || {
411
echo No shell found that supports shell functions.
412
echo Please tell autoconf@gnu.org about your system,
413
echo including any error possibly output before this
421
test "x$as_lineno_1" != "x$as_lineno_2" &&
422
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425
# uniformly replaced by the line number. The first 'sed' inserts a
426
# line-number line after each line using $LINENO; the second 'sed'
427
# does the real work. The second script uses 'N' to pair each
428
# line-number line with the line containing $LINENO, and appends
429
# trailing '-' during substitution so that $LINENO is not a special
431
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432
# scripts with optimization help from Paolo Bonzini. Blame Lee
433
# E. McMahon (1931-1989) for sed's syntax. :-)
445
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449
chmod +x "$as_me.lineno" ||
450
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451
{ (exit 1); exit 1; }; }
453
# Don't try to exec as it changes $[0], causing all sort of problems
454
# (the dirname of $[0] is not the place where we might find the
455
# original and so on. Autoconf is especially sensitive to this).
457
# Exit status is that of the last command.
462
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468
ECHO_C= ECHO_N= ECHO_T=
472
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
479
if expr a : '\(a\)' >/dev/null 2>&1 &&
480
test "X`expr 00001 : '.*\(...\)'`" = X001; then
486
rm -f conf$$ conf$$.exe conf$$.file
487
if test -d conf$$.dir; then
488
rm -f conf$$.dir/conf$$.file
494
if ln -s conf$$.file conf$$ 2>/dev/null; then
496
# ... but there are two gotchas:
497
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499
# In both cases, we have to default to `cp -p'.
500
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502
elif ln conf$$.file conf$$ 2>/dev/null; then
507
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508
rmdir conf$$.dir 2>/dev/null
510
if mkdir -p . 2>/dev/null; then
513
test -d ./-p && rmdir ./-p
517
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518
# systems may use methods other than mode bits to determine executability.
519
cat >conf$$.file <<_ASEOF
524
if test -x conf$$.file >/dev/null 2>&1; then
525
as_executable_p="test -x"
531
# Sed expression to map a string onto a valid CPP name.
532
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
# Sed expression to map a string onto a valid variable name.
535
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540
# Check that we are running under the correct shell.
541
SHELL=${CONFIG_SHELL-/bin/sh}
545
# Remove one level of quotation (which was required for Make).
546
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
551
if test "X$1" = X--no-reexec; then
552
# Discard the --no-reexec flag, and continue.
554
elif test "X$1" = X--fallback-echo; then
555
# Avoid inline document here, it may be left over
557
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558
# Yippee, $echo works!
561
# Restart under the correct shell.
562
exec $SHELL "$0" --no-reexec ${1+"$@"}
565
if test "X$1" = X--fallback-echo; then
566
# used as fallback echo
574
# The HP-UX ksh and POSIX shell print the target directory to stdout
576
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
if test -z "$ECHO"; then
579
if test "X${echo_test_string+set}" != Xset; then
580
# find a string as large as possible, as long as the shell can cope with it
581
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584
echo_test_string=`eval $cmd` &&
585
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
592
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594
test "X$echo_testing_string" = "X$echo_test_string"; then
597
# The Solaris, AIX, and Digital Unix default echo programs unquote
598
# backslashes. This makes it impossible to quote backslashes using
599
# echo "$something" | sed 's/\\/\\\\/g'
601
# So, first we look for a working echo in the user's PATH.
603
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604
for dir in $PATH /usr/ucb; do
606
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
616
if test "X$echo" = Xecho; then
617
# We didn't find a better echo, so look for alternatives.
618
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620
test "X$echo_testing_string" = "X$echo_test_string"; then
621
# This shell has a builtin print -r that does the trick.
623
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624
test "X$CONFIG_SHELL" != X/bin/ksh; then
625
# If we have ksh, try running configure again with it.
626
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627
export ORIGINAL_CONFIG_SHELL
628
CONFIG_SHELL=/bin/ksh
630
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636
test "X$echo_testing_string" = "X$echo_test_string"; then
639
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640
test "X$echo_testing_string" = 'X\t' &&
641
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642
test "X$echo_testing_string" = "X$echo_test_string"; then
643
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645
SHELL="$CONFIG_SHELL"
647
echo="$CONFIG_SHELL $0 --fallback-echo"
648
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649
test "X$echo_testing_string" = 'X\t' &&
650
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
652
echo="$CONFIG_SHELL $0 --fallback-echo"
654
# maybe with a smaller string...
657
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
665
if test "$prev" != 'sed 50q "$0"'; then
666
echo_test_string=`eval $prev`
667
export echo_test_string
668
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670
# Oops. We lost completely, so just stick with echo.
679
# Copy echo and quote the copy suitably for passing to libtool from
680
# the Makefile, instead of quoting the original, which is used later.
682
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689
tagnames=${tagnames+${tagnames},}CXX
691
tagnames=${tagnames+${tagnames},}F77
693
exec 7<&0 </dev/null 6>&1
696
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697
# so uname gets run too.
698
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703
ac_default_prefix=/usr/local
705
ac_config_libobj_dir=.
711
SHELL=${CONFIG_SHELL-/bin/sh}
713
# Identity of this package.
714
PACKAGE_NAME='linux nfs-utils'
715
PACKAGE_TARNAME='nfs-utils'
716
PACKAGE_VERSION='1.0.9-pre1'
717
PACKAGE_STRING='linux nfs-utils 1.0.9-pre1'
718
PACKAGE_BUGREPORT='nfs@lists.sf.net'
720
ac_unique_file="tools/getiversion/getiversion.c"
721
ac_default_prefix=/usr
722
ac_unique_file="support/include/config.h.in"
723
# Factoring default headers for most tests.
724
ac_includes_default="\
727
# include <sys/types.h>
730
# include <sys/stat.h>
741
# if !STDC_HEADERS && HAVE_MEMORY_H
747
# include <strings.h>
750
# include <inttypes.h>
768
program_transform_name
817
INSTALL_STRIP_PROGRAM
907
ac_precious_vars='build_alias
928
# Initialize some variables set by options.
930
ac_init_version=false
931
# The variables have the same names as the options, with
932
# dashes changed to underlines.
940
program_transform_name=s,x,x,
948
# Installation directory options.
949
# These are left unexpanded so users can "make install exec_prefix=/foo"
950
# and all the variables that are supposed to be based on exec_prefix
951
# by default will actually change.
952
# Use braces instead of parens because sh, perl, etc. also accept them.
953
# (The list follows the same order as the GNU Coding Standards.)
954
bindir='${exec_prefix}/bin'
955
sbindir='${exec_prefix}/sbin'
956
libexecdir='${exec_prefix}/libexec'
957
datarootdir='${prefix}/share'
958
datadir='${datarootdir}'
959
sysconfdir='${prefix}/etc'
960
sharedstatedir='${prefix}/com'
961
localstatedir='${prefix}/var'
962
includedir='${prefix}/include'
963
oldincludedir='/usr/include'
964
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965
infodir='${datarootdir}/info'
970
libdir='${exec_prefix}/lib'
971
localedir='${datarootdir}/locale'
972
mandir='${datarootdir}/man'
978
# If the previous option needs an argument, assign it.
979
if test -n "$ac_prev"; then
980
eval $ac_prev=\$ac_option
986
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990
# Accept the important Cygnus configure options, so we can diagnose typos.
992
case $ac_dashdash$ac_option in
996
-bindir | --bindir | --bindi | --bind | --bin | --bi)
998
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001
-build | --build | --buil | --bui | --bu)
1002
ac_prev=build_alias ;;
1003
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004
build_alias=$ac_optarg ;;
1006
-cache-file | --cache-file | --cache-fil | --cache-fi \
1007
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008
ac_prev=cache_file ;;
1009
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011
cache_file=$ac_optarg ;;
1013
--config-cache | -C)
1014
cache_file=config.cache ;;
1016
-datadir | --datadir | --datadi | --datad)
1018
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1019
datadir=$ac_optarg ;;
1021
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022
| --dataroo | --dataro | --datar)
1023
ac_prev=datarootdir ;;
1024
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026
datarootdir=$ac_optarg ;;
1028
-disable-* | --disable-*)
1029
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1037
-docdir | --docdir | --docdi | --doc | --do)
1039
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040
docdir=$ac_optarg ;;
1042
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045
dvidir=$ac_optarg ;;
1047
-enable-* | --enable-*)
1048
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049
# Reject names that are not valid shell variable names.
1050
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052
{ (exit 1); exit 1; }; }
1053
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054
eval enable_$ac_feature=\$ac_optarg ;;
1056
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058
| --exec | --exe | --ex)
1059
ac_prev=exec_prefix ;;
1060
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062
| --exec=* | --exe=* | --ex=*)
1063
exec_prefix=$ac_optarg ;;
1065
-gas | --gas | --ga | --g)
1066
# Obsolete; use --with-gas.
1069
-help | --help | --hel | --he | -h)
1070
ac_init_help=long ;;
1071
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072
ac_init_help=recursive ;;
1073
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074
ac_init_help=short ;;
1076
-host | --host | --hos | --ho)
1077
ac_prev=host_alias ;;
1078
-host=* | --host=* | --hos=* | --ho=*)
1079
host_alias=$ac_optarg ;;
1081
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085
htmldir=$ac_optarg ;;
1087
-includedir | --includedir | --includedi | --included | --include \
1088
| --includ | --inclu | --incl | --inc)
1089
ac_prev=includedir ;;
1090
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091
| --includ=* | --inclu=* | --incl=* | --inc=*)
1092
includedir=$ac_optarg ;;
1094
-infodir | --infodir | --infodi | --infod | --info | --inf)
1096
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097
infodir=$ac_optarg ;;
1099
-libdir | --libdir | --libdi | --libd)
1101
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1102
libdir=$ac_optarg ;;
1104
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105
| --libexe | --libex | --libe)
1106
ac_prev=libexecdir ;;
1107
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108
| --libexe=* | --libex=* | --libe=*)
1109
libexecdir=$ac_optarg ;;
1111
-localedir | --localedir | --localedi | --localed | --locale)
1112
ac_prev=localedir ;;
1113
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114
localedir=$ac_optarg ;;
1116
-localstatedir | --localstatedir | --localstatedi | --localstated \
1117
| --localstate | --localstat | --localsta | --localst | --locals)
1118
ac_prev=localstatedir ;;
1119
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121
localstatedir=$ac_optarg ;;
1123
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126
mandir=$ac_optarg ;;
1128
-nfp | --nfp | --nf)
1129
# Obsolete; use --without-fp.
1132
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133
| --no-cr | --no-c | -n)
1136
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142
| --oldin | --oldi | --old | --ol | --o)
1143
ac_prev=oldincludedir ;;
1144
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147
oldincludedir=$ac_optarg ;;
1149
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152
prefix=$ac_optarg ;;
1154
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1155
| --program-pre | --program-pr | --program-p)
1156
ac_prev=program_prefix ;;
1157
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1158
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159
program_prefix=$ac_optarg ;;
1161
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1162
| --program-suf | --program-su | --program-s)
1163
ac_prev=program_suffix ;;
1164
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1165
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166
program_suffix=$ac_optarg ;;
1168
-program-transform-name | --program-transform-name \
1169
| --program-transform-nam | --program-transform-na \
1170
| --program-transform-n | --program-transform- \
1171
| --program-transform | --program-transfor \
1172
| --program-transfo | --program-transf \
1173
| --program-trans | --program-tran \
1174
| --progr-tra | --program-tr | --program-t)
1175
ac_prev=program_transform_name ;;
1176
-program-transform-name=* | --program-transform-name=* \
1177
| --program-transform-nam=* | --program-transform-na=* \
1178
| --program-transform-n=* | --program-transform-=* \
1179
| --program-transform=* | --program-transfor=* \
1180
| --program-transfo=* | --program-transf=* \
1181
| --program-trans=* | --program-tran=* \
1182
| --progr-tra=* | --program-tr=* | --program-t=*)
1183
program_transform_name=$ac_optarg ;;
1185
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188
pdfdir=$ac_optarg ;;
1190
-psdir | --psdir | --psdi | --psd | --ps)
1192
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196
| -silent | --silent | --silen | --sile | --sil)
1199
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203
sbindir=$ac_optarg ;;
1205
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1206
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207
| --sharedst | --shareds | --shared | --share | --shar \
1209
ac_prev=sharedstatedir ;;
1210
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214
sharedstatedir=$ac_optarg ;;
1216
-site | --site | --sit)
1218
-site=* | --site=* | --sit=*)
1221
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224
srcdir=$ac_optarg ;;
1226
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227
| --syscon | --sysco | --sysc | --sys | --sy)
1228
ac_prev=sysconfdir ;;
1229
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231
sysconfdir=$ac_optarg ;;
1233
-target | --target | --targe | --targ | --tar | --ta | --t)
1234
ac_prev=target_alias ;;
1235
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236
target_alias=$ac_optarg ;;
1238
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1241
-version | --version | --versio | --versi | --vers | -V)
1242
ac_init_version=: ;;
1245
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246
# Reject names that are not valid shell variable names.
1247
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1248
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1249
{ (exit 1); exit 1; }; }
1250
ac_package=`echo $ac_package| sed 's/-/_/g'`
1251
eval with_$ac_package=\$ac_optarg ;;
1253
-without-* | --without-*)
1254
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255
# Reject names that are not valid shell variable names.
1256
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1257
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1258
{ (exit 1); exit 1; }; }
1259
ac_package=`echo $ac_package | sed 's/-/_/g'`
1260
eval with_$ac_package=no ;;
1263
# Obsolete; use --with-x.
1266
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267
| --x-incl | --x-inc | --x-in | --x-i)
1268
ac_prev=x_includes ;;
1269
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271
x_includes=$ac_optarg ;;
1273
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1274
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275
ac_prev=x_libraries ;;
1276
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278
x_libraries=$ac_optarg ;;
1280
-*) { echo "$as_me: error: unrecognized option: $ac_option
1281
Try \`$0 --help' for more information." >&2
1282
{ (exit 1); exit 1; }; }
1286
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287
# Reject names that are not valid shell variable names.
1288
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290
{ (exit 1); exit 1; }; }
1291
eval $ac_envvar=\$ac_optarg
1292
export $ac_envvar ;;
1295
# FIXME: should be removed in autoconf 3.0.
1296
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305
if test -n "$ac_prev"; then
1306
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307
{ echo "$as_me: error: missing argument to $ac_option" >&2
1308
{ (exit 1); exit 1; }; }
1311
# Be sure to have absolute directory names.
1312
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313
datadir sysconfdir sharedstatedir localstatedir includedir \
1314
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315
libdir localedir mandir
1317
eval ac_val=\$$ac_var
1319
[\\/$]* | ?:[\\/]* ) continue;;
1320
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323
{ (exit 1); exit 1; }; }
1326
# There might be people who depend on the old broken behavior: `$host'
1327
# used to hold the argument of --host etc.
1328
# FIXME: To remove some day.
1331
target=$target_alias
1333
# FIXME: To remove some day.
1334
if test "x$host_alias" != x; then
1335
if test "x$build_alias" = x; then
1336
cross_compiling=maybe
1337
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338
If a cross compiler is detected then cross compile mode will be used." >&2
1339
elif test "x$build_alias" != "x$host_alias"; then
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
test "$silent" = yes && exec 6>/dev/null
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
ac_ls_di=`ls -di .` &&
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353
{ echo "$as_me: error: Working directory cannot be determined" >&2
1354
{ (exit 1); exit 1; }; }
1355
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1357
{ (exit 1); exit 1; }; }
1360
# Find the source files, if location was not specified.
1361
if test -z "$srcdir"; then
1362
ac_srcdir_defaulted=yes
1363
# Try the directory containing this script, then the parent directory.
1364
ac_confdir=`$as_dirname -- "$0" ||
1365
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366
X"$0" : 'X\(//\)[^/]' \| \
1367
X"$0" : 'X\(//\)$' \| \
1368
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388
if test ! -r "$srcdir/$ac_unique_file"; then
1392
ac_srcdir_defaulted=no
1394
if test ! -r "$srcdir/$ac_unique_file"; then
1395
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397
{ (exit 1); exit 1; }; }
1399
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402
{ (exit 1); exit 1; }; }
1404
# When building in place, set srcdir=.
1405
if test "$ac_abs_confdir" = "$ac_pwd"; then
1408
# Remove unnecessary trailing slashes from srcdir.
1409
# Double slashes in file names in object file debugging info
1410
# mess up M-x gdb in Emacs.
1412
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414
for ac_var in $ac_precious_vars; do
1415
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416
eval ac_env_${ac_var}_value=\$${ac_var}
1417
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422
# Report the --help message.
1424
if test "$ac_init_help" = "long"; then
1425
# Omit some internal or obsolete options to make the list less imposing.
1426
# This message is too long to be a string in the A/UX 3.1 sh.
1428
\`configure' configures linux nfs-utils 1.0.9-pre1 to adapt to many kinds of systems.
1430
Usage: $0 [OPTION]... [VAR=VALUE]...
1432
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433
VAR=VALUE. See below for descriptions of some of the useful variables.
1435
Defaults for the options are specified in brackets.
1438
-h, --help display this help and exit
1439
--help=short display options specific to this package
1440
--help=recursive display the short help of all the included packages
1441
-V, --version display version information and exit
1442
-q, --quiet, --silent do not print \`checking...' messages
1443
--cache-file=FILE cache test results in FILE [disabled]
1444
-C, --config-cache alias for \`--cache-file=config.cache'
1445
-n, --no-create do not create output files
1446
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
Installation directories:
1449
--prefix=PREFIX install architecture-independent files in PREFIX
1450
[$ac_default_prefix]
1451
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454
By default, \`make install' will install all the files in
1455
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457
for instance \`--prefix=\$HOME'.
1459
For better control, use the options below.
1461
Fine tuning of the installation directories:
1462
--bindir=DIR user executables [EPREFIX/bin]
1463
--sbindir=DIR system admin executables [EPREFIX/sbin]
1464
--libexecdir=DIR program executables [EPREFIX/libexec]
1465
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468
--libdir=DIR object code libraries [EPREFIX/lib]
1469
--includedir=DIR C header files [PREFIX/include]
1470
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1471
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473
--infodir=DIR info documentation [DATAROOTDIR/info]
1474
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475
--mandir=DIR man documentation [DATAROOTDIR/man]
1476
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1477
--htmldir=DIR html documentation [DOCDIR]
1478
--dvidir=DIR dvi documentation [DOCDIR]
1479
--pdfdir=DIR pdf documentation [DOCDIR]
1480
--psdir=DIR ps documentation [DOCDIR]
1486
--program-prefix=PREFIX prepend PREFIX to installed program names
1487
--program-suffix=SUFFIX append SUFFIX to installed program names
1488
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
--build=BUILD configure for building on BUILD [guessed]
1492
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1496
if test -n "$ac_init_help"; then
1497
case $ac_init_help in
1498
short | recursive ) echo "Configuration of linux nfs-utils 1.0.9-pre1:";;
1503
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505
--enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1506
--enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1507
--enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1508
--enable-kprefix install progs as rpc.knfsd etc
1509
--enable-secure-statd Only lockd can use statd (security)
1510
--enable-rquotad enable rquotad @<:@default=yes@:>@
1511
--enable-mount Create mount.nfs and don't use the util-linux
1512
mount(8) functionality. @<:@default=yes@:>@
1513
--disable-dependency-tracking speeds up one-time build
1514
--enable-dependency-tracking do not reject slow dependency extractors
1515
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1516
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1517
--enable-fast-install@<:@=PKGS@:>@
1518
optimize for fast installation @<:@default=yes@:>@
1519
--disable-libtool-lock avoid locking (might break parallel builds)
1522
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524
--with-release=XXX set release to XXX [1]
1525
--with-statedir=/foo use state dir /foo /var/lib/nfs
1526
--with-statduser=rpcuser
1527
statd to run under @<:@rpcuser or nobody@:>@
1528
--with-tcp-wrappers[=PATH] Enable tcpwrappers support
1529
(optionally in PATH)
1530
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1531
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1533
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1534
--with-krb5=DIR use Kerberos v5 installation in DIR
1536
Some influential environment variables:
1537
CC C compiler command
1538
CFLAGS C compiler flags
1539
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540
nonstandard directory <lib dir>
1541
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542
you have headers in a nonstandard directory <include dir>
1543
CXX C++ compiler command
1544
CXXFLAGS C++ compiler flags
1546
CXXCPP C++ preprocessor
1547
F77 Fortran 77 compiler command
1548
FFLAGS Fortran 77 compiler flags
1549
PKG_CONFIG path to pkg-config utility
1551
C compiler flags for RPCSECGSS, overriding pkg-config
1553
linker flags for RPCSECGSS, overriding pkg-config
1555
C compiler flags for GSSAPI, overriding pkg-config
1556
GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1558
Use these variables to override the choices made by `configure' or to help
1559
it to find libraries and programs with nonstandard names/locations.
1561
Report bugs to <nfs@lists.sf.net>.
1566
if test "$ac_init_help" = "recursive"; then
1567
# If there are subdirs, report their specific --help.
1568
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569
test -d "$ac_dir" || continue
1573
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576
# A ".." for each directory in $ac_dir_suffix.
1577
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578
case $ac_top_builddir_sub in
1579
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583
ac_abs_top_builddir=$ac_pwd
1584
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585
# for backward compatibility:
1586
ac_top_builddir=$ac_top_build_prefix
1589
.) # We are building in place.
1591
ac_top_srcdir=$ac_top_builddir_sub
1592
ac_abs_top_srcdir=$ac_pwd ;;
1593
[\\/]* | ?:[\\/]* ) # Absolute name.
1594
ac_srcdir=$srcdir$ac_dir_suffix;
1595
ac_top_srcdir=$srcdir
1596
ac_abs_top_srcdir=$srcdir ;;
1598
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599
ac_top_srcdir=$ac_top_build_prefix$srcdir
1600
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
cd "$ac_dir" || { ac_status=$?; continue; }
1605
# Check for guested configure.
1606
if test -f "$ac_srcdir/configure.gnu"; then
1608
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609
elif test -f "$ac_srcdir/configure"; then
1611
$SHELL "$ac_srcdir/configure" --help=recursive
1613
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615
cd "$ac_pwd" || { ac_status=$?; break; }
1619
test -n "$ac_init_help" && exit $ac_status
1620
if $ac_init_version; then
1622
linux nfs-utils configure 1.0.9-pre1
1623
generated by GNU Autoconf 2.59e
1625
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627
This configure script is free software; the Free Software Foundation
1628
gives unlimited permission to copy, distribute and modify it.
1632
cat >config.log <<_ACEOF
1633
This file contains any messages produced by compilers while
1634
running configure, to aid debugging if configure makes a mistake.
1636
It was created by linux nfs-utils $as_me 1.0.9-pre1, which was
1637
generated by GNU Autoconf 2.59e. Invocation command line was
1645
@%:@@%:@ --------- @%:@@%:@
1646
@%:@@%:@ Platform. @%:@@%:@
1647
@%:@@%:@ --------- @%:@@%:@
1649
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1659
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1660
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1662
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1663
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1664
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672
test -z "$as_dir" && as_dir=.
1673
echo "PATH: $as_dir"
1682
@%:@@%:@ ----------- @%:@@%:@
1683
@%:@@%:@ Core tests. @%:@@%:@
1684
@%:@@%:@ ----------- @%:@@%:@
1689
# Keep a trace of the command line.
1690
# Strip out --no-create and --no-recursion so they do not pile up.
1691
# Strip out --silent because we don't want to record it for future runs.
1692
# Also quote any args containing shell meta-characters.
1693
# Make two passes to allow for proper duplicate-argument suppression.
1697
ac_must_keep_next=false
1703
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705
| -silent | --silent | --silen | --sile | --sil)
1708
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714
if test $ac_must_keep_next = true; then
1715
ac_must_keep_next=false # Got value, back to normal.
1718
*=* | --config-cache | -C | -disable-* | --disable-* \
1719
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721
| -with-* | --with-* | -without-* | --without-* | --x)
1722
case "$ac_configure_args0 " in
1723
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726
-* ) ac_must_keep_next=true ;;
1729
ac_configure_args="$ac_configure_args '$ac_arg'"
1734
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737
# When interrupted or exit'd, cleanup temporary files, and complete
1738
# config.log. We remove comments because anyway the quotes in there
1739
# would cause problems or look ugly.
1740
# WARNING: Use '\'' to represent an apostrophe within the trap.
1741
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742
trap 'exit_status=$?
1743
# Save into config.log some information that might help in debugging.
1748
@%:@@%:@ ---------------- @%:@@%:@
1749
@%:@@%:@ Cache variables. @%:@@%:@
1750
@%:@@%:@ ---------------- @%:@@%:@
1753
# The following way of writing the cache mishandles newlines in values,
1755
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756
eval ac_val=\$$ac_var
1760
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764
_ | IFS | as_nl) ;; #(
1765
*) $as_unset $ac_var ;;
1770
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771
*${as_nl}ac_space=\ *)
1773
"s/'\''/'\''\\\\'\'''\''/g;
1774
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785
@%:@@%:@ ----------------- @%:@@%:@
1786
@%:@@%:@ Output variables. @%:@@%:@
1787
@%:@@%:@ ----------------- @%:@@%:@
1790
for ac_var in $ac_subst_vars
1792
eval ac_val=\$$ac_var
1794
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796
echo "$ac_var='\''$ac_val'\''"
1800
if test -n "$ac_subst_files"; then
1802
@%:@@%:@ ------------------- @%:@@%:@
1803
@%:@@%:@ File substitutions. @%:@@%:@
1804
@%:@@%:@ ------------------- @%:@@%:@
1807
for ac_var in $ac_subst_files
1809
eval ac_val=\$$ac_var
1811
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813
echo "$ac_var='\''$ac_val'\''"
1818
if test -s confdefs.h; then
1820
@%:@@%:@ ----------- @%:@@%:@
1821
@%:@@%:@ confdefs.h. @%:@@%:@
1822
@%:@@%:@ ----------- @%:@@%:@
1828
test "$ac_signal" != 0 &&
1829
echo "$as_me: caught signal $ac_signal"
1830
echo "$as_me: exit $exit_status"
1832
rm -f core *.core core.conftest.* &&
1833
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836
for ac_signal in 1 2 13 15; do
1837
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1842
rm -f -r conftest* confdefs.h
1844
# Predefined preprocessor variables.
1846
cat >>confdefs.h <<_ACEOF
1847
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1851
cat >>confdefs.h <<_ACEOF
1852
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856
cat >>confdefs.h <<_ACEOF
1857
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1861
cat >>confdefs.h <<_ACEOF
1862
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1866
cat >>confdefs.h <<_ACEOF
1867
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871
# Let the site file select an alternate cache file if it wants to.
1872
# Prefer explicitly selected file to automatically selected ones.
1873
if test -n "$CONFIG_SITE"; then
1874
set x "$CONFIG_SITE"
1875
elif test "x$prefix" != xNONE; then
1876
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878
set x "$ac_default_prefix/share/config.site" \
1879
"$ac_default_prefix/etc/config.site"
1884
if test -r "$ac_site_file"; then
1885
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1886
echo "$as_me: loading site script $ac_site_file" >&6;}
1887
sed 's/^/| /' "$ac_site_file" >&5
1892
if test -r "$cache_file"; then
1893
# Some versions of bash will fail to source /dev/null (special
1894
# files actually), so we avoid doing that.
1895
if test -f "$cache_file"; then
1896
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1897
echo "$as_me: loading cache $cache_file" >&6;}
1899
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1900
*) . "./$cache_file";;
1904
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1905
echo "$as_me: creating cache $cache_file" >&6;}
1909
# Check that the precious variables saved in the cache have kept the same
1911
ac_cache_corrupted=false
1912
for ac_var in $ac_precious_vars; do
1913
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914
eval ac_new_set=\$ac_env_${ac_var}_set
1915
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916
eval ac_new_val=\$ac_env_${ac_var}_value
1917
case $ac_old_set,$ac_new_set in
1919
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921
ac_cache_corrupted=: ;;
1923
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925
ac_cache_corrupted=: ;;
1928
if test "x$ac_old_val" != "x$ac_new_val"; then
1929
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1930
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1931
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1932
echo "$as_me: former value: $ac_old_val" >&2;}
1933
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1934
echo "$as_me: current value: $ac_new_val" >&2;}
1935
ac_cache_corrupted=:
1938
# Pass precious variables to config.status.
1939
if test "$ac_new_set" = set; then
1941
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942
*) ac_arg=$ac_var=$ac_new_val ;;
1944
case " $ac_configure_args " in
1945
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1946
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1950
if $ac_cache_corrupted; then
1951
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1955
{ (exit 1); exit 1; }; }
1983
ac_cpp='$CPP $CPPFLAGS'
1984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991
if test -f "$ac_dir/install-sh"; then
1993
ac_install_sh="$ac_aux_dir/install-sh -c"
1995
elif test -f "$ac_dir/install.sh"; then
1997
ac_install_sh="$ac_aux_dir/install.sh -c"
1999
elif test -f "$ac_dir/shtool"; then
2001
ac_install_sh="$ac_aux_dir/shtool install -c"
2005
if test -z "$ac_aux_dir"; then
2006
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008
{ (exit 1); exit 1; }; }
2011
# These three variables are undocumented and unsupported,
2012
# and are intended to be withdrawn in a future Autoconf release.
2013
# They can cause serious problems if a builder's source tree is in a directory
2014
# whose full name contains unusual characters.
2015
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020
# Make sure we can run config.sub.
2021
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024
{ (exit 1); exit 1; }; }
2026
{ echo "$as_me:$LINENO: checking build system type" >&5
2027
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028
if test "${ac_cv_build+set}" = set; then
2029
echo $ECHO_N "(cached) $ECHO_C" >&6
2031
ac_build_alias=$build_alias
2032
test "x$ac_build_alias" = x &&
2033
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034
test "x$ac_build_alias" = x &&
2035
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037
{ (exit 1); exit 1; }; }
2038
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041
{ (exit 1); exit 1; }; }
2044
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045
echo "${ECHO_T}$ac_cv_build" >&6; }
2046
case $ac_cv_build in
2048
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049
echo "$as_me: error: invalid value of canonical build" >&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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2066
{ echo "$as_me:$LINENO: checking host system type" >&5
2067
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068
if test "${ac_cv_host+set}" = set; then
2069
echo $ECHO_N "(cached) $ECHO_C" >&6
2071
if test "x$host_alias" = x; then
2072
ac_cv_host=$ac_cv_build
2074
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077
{ (exit 1); exit 1; }; }
2081
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082
echo "${ECHO_T}$ac_cv_host" >&6; }
2085
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086
echo "$as_me: error: invalid value of canonical host" >&2;}
2087
{ (exit 1); exit 1; }; };;
2090
ac_save_IFS=$IFS; IFS='-'
2096
# Remember, the first character of IFS is used to create $*,
2097
# except with old shells:
2100
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105
[\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
2106
*) ac_macro_dir=$srcdir/aclocal ;;
2108
test -d "$ac_macro_dir" ||
2109
{ { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2110
echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2111
{ (exit 1); exit 1; }; }
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.
2399
VERSION='1.0.9-pre1'
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 -'
2549
# Check whether --with-release was given.
2550
if test "${with_release+set}" = set; then
2551
withval=$with_release; RELEASE=$withval
2558
# Check whether --with-statedir was given.
2559
if test "${with_statedir+set}" = set; then
2560
withval=$with_statedir; statedir=$withval
2562
statedir=/var/lib/nfs
2567
# Check whether --with-statduser was given.
2568
if test "${with_statduser+set}" = set; then
2569
withval=$with_statduser; statduser=$withval
2571
if test "x$cross_compiling" = "xno"; then
2572
if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2583
# Check whether --enable-nfsv3 was given.
2584
if test "${enable_nfsv3+set}" = set; then
2585
enableval=$enable_nfsv3; enable_nfsv3=$enableval
2590
if test "$enable_nfsv3" = yes; then
2592
cat >>confdefs.h <<\_ACEOF
2593
@%:@define NFS3_SUPPORTED 1
2600
# Check whether --enable-nfsv4 was given.
2601
if test "${enable_nfsv4+set}" = set; then
2602
enableval=$enable_nfsv4; enable_nfsv4=$enableval
2607
if test "$enable_nfsv4" = yes; then
2609
cat >>confdefs.h <<\_ACEOF
2610
@%:@define NFS4_SUPPORTED 1
2622
if test "$enable_nfsv4" = "yes"; then
2624
CONFIG_NFSV4_FALSE='#'
2626
CONFIG_NFSV4_TRUE='#'
2630
# Check whether --enable-gss was given.
2631
if test "${enable_gss+set}" = set; then
2632
enableval=$enable_gss; enable_gss=$enableval
2637
if test "$enable_gss" = yes; then
2639
cat >>confdefs.h <<\_ACEOF
2640
@%:@define GSS_SUPPORTED 1
2655
if test "$enable_gss" = "yes"; then
2657
CONFIG_GSS_FALSE='#'
2663
# Check whether --enable-kprefix was given.
2664
if test "${enable_kprefix+set}" = set; then
2665
enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2671
# Check whether --enable-secure-statd was given.
2672
if test "${enable_secure_statd+set}" = set; then
2673
enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2678
if test "$secure_statd" = yes; then
2680
cat >>confdefs.h <<\_ACEOF
2681
@%:@define RESTRICTED_STATD 1
2686
# Check whether --enable-rquotad was given.
2687
if test "${enable_rquotad+set}" = set; then
2688
enableval=$enable_rquotad; enable_rquotad=$enableval
2693
if test "$enable_rquotad" = yes; then
2700
if test "$enable_rquotad" = "yes"; then
2701
CONFIG_RQUOTAD_TRUE=
2702
CONFIG_RQUOTAD_FALSE='#'
2704
CONFIG_RQUOTAD_TRUE='#'
2705
CONFIG_RQUOTAD_FALSE=
2709
# Check whether --enable-mount was given.
2710
if test "${enable_mount+set}" = set; then
2711
enableval=$enable_mount; enable_mount=$enableval
2718
if test "$enable_mount" = "yes"; then
2720
CONFIG_MOUNT_FALSE='#'
2722
CONFIG_MOUNT_TRUE='#'
2727
# Check whether user wants TCP wrappers support
2728
DEPDIR="${am__leading_dot}deps"
2730
ac_config_commands="$ac_config_commands depfiles"
2733
am_make=${MAKE-make}
2734
cat > confinc << 'END'
2739
# If we don't find an include directive, just comment out the code.
2740
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2741
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2745
# First try GNU make style include.
2746
echo "include confinc" > confmf
2747
# We grep out `Entering directory' and `Leaving directory'
2748
# messages which can occur if `w' ends up in MAKEFLAGS.
2749
# In particular we don't look at `^make:' because GNU make might
2750
# be invoked under some other name (usually "gmake"), in which
2751
# case it prints its new name instead of `make'.
2752
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2757
# Now try BSD make style include.
2758
if test "$am__include" = "#"; then
2759
echo '.include "confinc"' > confmf
2760
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2761
am__include=.include
2768
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2769
echo "${ECHO_T}$_am_result" >&6; }
2770
rm -f confinc confmf
2772
# Check whether --enable-dependency-tracking was given.
2773
if test "${enable_dependency_tracking+set}" = set; then
2774
enableval=$enable_dependency_tracking;
2777
if test "x$enable_dependency_tracking" != xno; then
2778
am_depcomp="$ac_aux_dir/depcomp"
2783
if test "x$enable_dependency_tracking" != xno; then
2794
ac_cpp='$CPP $CPPFLAGS'
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
if test -n "$ac_tool_prefix"; then
2799
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803
if test "${ac_cv_prog_CC+set}" = set; then
2804
echo $ECHO_N "(cached) $ECHO_C" >&6
2806
if test -n "$CC"; then
2807
ac_cv_prog_CC="$CC" # Let the user override the test.
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
test -z "$as_dir" && as_dir=.
2814
for ac_exec_ext in '' $ac_executable_extensions; do
2815
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827
if test -n "$CC"; then
2828
{ echo "$as_me:$LINENO: result: $CC" >&5
2829
echo "${ECHO_T}$CC" >&6; }
2831
{ echo "$as_me:$LINENO: result: no" >&5
2832
echo "${ECHO_T}no" >&6; }
2837
if test -z "$ac_cv_prog_CC"; then
2839
# Extract the first word of "gcc", so it can be a program name with args.
2840
set dummy gcc; ac_word=$2
2841
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844
echo $ECHO_N "(cached) $ECHO_C" >&6
2846
if test -n "$ac_ct_CC"; then
2847
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
test -z "$as_dir" && as_dir=.
2854
for ac_exec_ext in '' $ac_executable_extensions; do
2855
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856
ac_cv_prog_ac_ct_CC="gcc"
2857
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867
if test -n "$ac_ct_CC"; then
2868
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869
echo "${ECHO_T}$ac_ct_CC" >&6; }
2871
{ echo "$as_me:$LINENO: result: no" >&5
2872
echo "${ECHO_T}no" >&6; }
2875
if test "x$ac_ct_CC" = x; then
2878
case $cross_compiling:$ac_tool_warned in
2880
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881
whose name does not start with the host triplet. If you think this
2882
configuration is useful to you, please write to autoconf@gnu.org." >&5
2883
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884
whose name does not start with the host triplet. If you think this
2885
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886
ac_tool_warned=yes ;;
2894
if test -z "$CC"; then
2895
if test -n "$ac_tool_prefix"; then
2896
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897
set dummy ${ac_tool_prefix}cc; ac_word=$2
2898
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900
if test "${ac_cv_prog_CC+set}" = set; then
2901
echo $ECHO_N "(cached) $ECHO_C" >&6
2903
if test -n "$CC"; then
2904
ac_cv_prog_CC="$CC" # Let the user override the test.
2906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910
test -z "$as_dir" && as_dir=.
2911
for ac_exec_ext in '' $ac_executable_extensions; do
2912
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913
ac_cv_prog_CC="${ac_tool_prefix}cc"
2914
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924
if test -n "$CC"; then
2925
{ echo "$as_me:$LINENO: result: $CC" >&5
2926
echo "${ECHO_T}$CC" >&6; }
2928
{ echo "$as_me:$LINENO: result: no" >&5
2929
echo "${ECHO_T}no" >&6; }
2935
if test -z "$CC"; then
2936
# Extract the first word of "cc", so it can be a program name with args.
2937
set dummy cc; ac_word=$2
2938
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940
if test "${ac_cv_prog_CC+set}" = set; then
2941
echo $ECHO_N "(cached) $ECHO_C" >&6
2943
if test -n "$CC"; then
2944
ac_cv_prog_CC="$CC" # Let the user override the test.
2947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951
test -z "$as_dir" && as_dir=.
2952
for ac_exec_ext in '' $ac_executable_extensions; do
2953
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2954
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955
ac_prog_rejected=yes
2959
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966
if test $ac_prog_rejected = yes; then
2967
# We found a bogon in the path, so make sure we never use it.
2968
set dummy $ac_cv_prog_CC
2970
if test $@%:@ != 0; then
2971
# We chose a different compiler from the bogus one.
2972
# However, it has the same basename, so the bogon will be chosen
2973
# first if we set CC to just the basename; use the full file name.
2975
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2981
if test -n "$CC"; then
2982
{ echo "$as_me:$LINENO: result: $CC" >&5
2983
echo "${ECHO_T}$CC" >&6; }
2985
{ echo "$as_me:$LINENO: result: no" >&5
2986
echo "${ECHO_T}no" >&6; }
2991
if test -z "$CC"; then
2992
if test -n "$ac_tool_prefix"; then
2993
for ac_prog in cl.exe
2995
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999
if test "${ac_cv_prog_CC+set}" = set; then
3000
echo $ECHO_N "(cached) $ECHO_C" >&6
3002
if test -n "$CC"; then
3003
ac_cv_prog_CC="$CC" # Let the user override the test.
3005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
test -z "$as_dir" && as_dir=.
3010
for ac_exec_ext in '' $ac_executable_extensions; do
3011
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3012
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023
if test -n "$CC"; then
3024
{ echo "$as_me:$LINENO: result: $CC" >&5
3025
echo "${ECHO_T}$CC" >&6; }
3027
{ echo "$as_me:$LINENO: result: no" >&5
3028
echo "${ECHO_T}no" >&6; }
3032
test -n "$CC" && break
3035
if test -z "$CC"; then
3037
for ac_prog in cl.exe
3039
# Extract the first word of "$ac_prog", so it can be a program name with args.
3040
set dummy $ac_prog; ac_word=$2
3041
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044
echo $ECHO_N "(cached) $ECHO_C" >&6
3046
if test -n "$ac_ct_CC"; then
3047
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053
test -z "$as_dir" && as_dir=.
3054
for ac_exec_ext in '' $ac_executable_extensions; do
3055
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3056
ac_cv_prog_ac_ct_CC="$ac_prog"
3057
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067
if test -n "$ac_ct_CC"; then
3068
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069
echo "${ECHO_T}$ac_ct_CC" >&6; }
3071
{ echo "$as_me:$LINENO: result: no" >&5
3072
echo "${ECHO_T}no" >&6; }
3076
test -n "$ac_ct_CC" && break
3079
if test "x$ac_ct_CC" = x; then
3082
case $cross_compiling:$ac_tool_warned in
3084
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085
whose name does not start with the host triplet. If you think this
3086
configuration is useful to you, please write to autoconf@gnu.org." >&5
3087
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088
whose name does not start with the host triplet. If you think this
3089
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090
ac_tool_warned=yes ;;
3099
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100
See \`config.log' for more details." >&5
3101
echo "$as_me: error: no acceptable C compiler found in \$PATH
3102
See \`config.log' for more details." >&2;}
3103
{ (exit 1); exit 1; }; }
3105
# Provide some information about the compiler.
3106
echo "$as_me:$LINENO: checking for C compiler version" >&5
3107
ac_compiler=`set X $ac_compile; echo $2`
3108
{ (ac_try="$ac_compiler --version >&5"
3110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111
*) ac_try_echo=$ac_try;;
3113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114
(eval "$ac_compiler --version >&5") 2>&5
3116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117
(exit $ac_status); }
3118
{ (ac_try="$ac_compiler -v >&5"
3120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121
*) ac_try_echo=$ac_try;;
3123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124
(eval "$ac_compiler -v >&5") 2>&5
3126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127
(exit $ac_status); }
3128
{ (ac_try="$ac_compiler -V >&5"
3130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131
*) ac_try_echo=$ac_try;;
3133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134
(eval "$ac_compiler -V >&5") 2>&5
3136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137
(exit $ac_status); }
3139
cat >conftest.$ac_ext <<_ACEOF
3142
cat confdefs.h >>conftest.$ac_ext
3143
cat >>conftest.$ac_ext <<_ACEOF
3144
/* end confdefs.h. */
3154
ac_clean_files_save=$ac_clean_files
3155
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156
# Try to create an executable without -o first, disregard a.out.
3157
# It will help us diagnose broken compilers, and finding out an intuition
3159
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163
# List of possible output files, starting from the most likely.
3164
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165
# only as a last resort. b.out is created by i960 compilers.
3166
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168
# The IRIX 6 linker writes into existing files which may not be
3169
# executable, retaining their permissions. Remove them first so a
3170
# subsequent execution test works.
3172
for ac_file in $ac_files
3175
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181
if { (ac_try="$ac_link_default"
3183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184
*) ac_try_echo=$ac_try;;
3186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187
(eval "$ac_link_default") 2>&5
3189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190
(exit $ac_status); }; then
3191
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3194
# so that the user can short-circuit this test for compilers unknown to
3196
for ac_file in $ac_files
3198
test -f "$ac_file" || continue
3200
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3203
# We found the default executable, but exeext='' is most
3207
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211
# We set ac_cv_exeext here because the later test for it is not
3212
# safe: cross compilers may not add the suffix if given an `-o'
3213
# argument, so we may need to know it at that point already.
3214
# Even if this section looks crufty: it has the advantage of
3221
test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
echo "$as_me: failed program was:" >&5
3225
sed 's/^/| /' conftest.$ac_ext >&5
3227
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3228
See \`config.log' for more details." >&5
3229
echo "$as_me: error: C compiler cannot create executables
3230
See \`config.log' for more details." >&2;}
3231
{ (exit 77); exit 77; }; }
3234
ac_exeext=$ac_cv_exeext
3235
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3236
echo "${ECHO_T}$ac_file" >&6; }
3238
# Check that the compiler produces executables we can run. If not, either
3239
# the compiler is broken, or we cross compile.
3240
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243
# If not cross compiling, check that we can run a simple program.
3244
if test "$cross_compiling" != yes; then
3245
if { ac_try='./$ac_file'
3246
{ (case "(($ac_try" in
3247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248
*) ac_try_echo=$ac_try;;
3250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251
(eval "$ac_try") 2>&5
3253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
(exit $ac_status); }; }; then
3257
if test "$cross_compiling" = maybe; then
3260
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261
If you meant to cross compile, use \`--host'.
3262
See \`config.log' for more details." >&5
3263
echo "$as_me: error: cannot run C compiled programs.
3264
If you meant to cross compile, use \`--host'.
3265
See \`config.log' for more details." >&2;}
3266
{ (exit 1); exit 1; }; }
3270
{ echo "$as_me:$LINENO: result: yes" >&5
3271
echo "${ECHO_T}yes" >&6; }
3273
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274
ac_clean_files=$ac_clean_files_save
3275
# Check that the compiler produces executables we can run. If not, either
3276
# the compiler is broken, or we cross compile.
3277
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280
echo "${ECHO_T}$cross_compiling" >&6; }
3282
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284
if { (ac_try="$ac_link"
3286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287
*) ac_try_echo=$ac_try;;
3289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290
(eval "$ac_link") 2>&5
3292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293
(exit $ac_status); }; then
3294
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3295
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3296
# work properly (i.e., refer to `conftest.exe'), while it won't with
3298
for ac_file in conftest.exe conftest conftest.*; do
3299
test -f "$ac_file" || continue
3301
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309
See \`config.log' for more details." >&5
3310
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311
See \`config.log' for more details." >&2;}
3312
{ (exit 1); exit 1; }; }
3315
rm -f conftest$ac_cv_exeext
3316
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319
rm -f conftest.$ac_ext
3320
EXEEXT=$ac_cv_exeext
3322
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324
if test "${ac_cv_objext+set}" = set; then
3325
echo $ECHO_N "(cached) $ECHO_C" >&6
3327
cat >conftest.$ac_ext <<_ACEOF
3330
cat confdefs.h >>conftest.$ac_ext
3331
cat >>conftest.$ac_ext <<_ACEOF
3332
/* end confdefs.h. */
3342
rm -f conftest.o conftest.obj
3343
if { (ac_try="$ac_compile"
3345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346
*) ac_try_echo=$ac_try;;
3348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349
(eval "$ac_compile") 2>&5
3351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352
(exit $ac_status); }; then
3353
for ac_file in conftest.o conftest.obj conftest.*; do
3354
test -f "$ac_file" || continue;
3356
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362
echo "$as_me: failed program was:" >&5
3363
sed 's/^/| /' conftest.$ac_ext >&5
3365
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366
See \`config.log' for more details." >&5
3367
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368
See \`config.log' for more details." >&2;}
3369
{ (exit 1); exit 1; }; }
3372
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375
echo "${ECHO_T}$ac_cv_objext" >&6; }
3376
OBJEXT=$ac_cv_objext
3378
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381
echo $ECHO_N "(cached) $ECHO_C" >&6
3383
cat >conftest.$ac_ext <<_ACEOF
3386
cat confdefs.h >>conftest.$ac_ext
3387
cat >>conftest.$ac_ext <<_ACEOF
3388
/* end confdefs.h. */
3401
rm -f conftest.$ac_objext
3402
if { (ac_try="$ac_compile"
3404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405
*) ac_try_echo=$ac_try;;
3407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408
(eval "$ac_compile") 2>conftest.er1
3410
grep -v '^ *+' conftest.er1 >conftest.err
3412
cat conftest.err >&5
3413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
(exit $ac_status); } &&
3415
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416
{ (case "(($ac_try" in
3417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418
*) ac_try_echo=$ac_try;;
3420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421
(eval "$ac_try") 2>&5
3423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
(exit $ac_status); }; } &&
3425
{ ac_try='test -s conftest.$ac_objext'
3426
{ (case "(($ac_try" in
3427
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428
*) ac_try_echo=$ac_try;;
3430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431
(eval "$ac_try") 2>&5
3433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434
(exit $ac_status); }; }; then
3437
echo "$as_me: failed program was:" >&5
3438
sed 's/^/| /' conftest.$ac_ext >&5
3443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3448
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449
GCC=`test $ac_compiler_gnu = yes && echo yes`
3450
ac_test_CFLAGS=${CFLAGS+set}
3451
ac_save_CFLAGS=$CFLAGS
3452
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3454
if test "${ac_cv_prog_cc_g+set}" = set; then
3455
echo $ECHO_N "(cached) $ECHO_C" >&6
3457
ac_save_c_werror_flag=$ac_c_werror_flag
3458
ac_c_werror_flag=yes
3461
cat >conftest.$ac_ext <<_ACEOF
3464
cat confdefs.h >>conftest.$ac_ext
3465
cat >>conftest.$ac_ext <<_ACEOF
3466
/* end confdefs.h. */
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
3512
echo "$as_me: failed program was:" >&5
3513
sed 's/^/| /' conftest.$ac_ext >&5
3516
cat >conftest.$ac_ext <<_ACEOF
3519
cat confdefs.h >>conftest.$ac_ext
3520
cat >>conftest.$ac_ext <<_ACEOF
3521
/* end confdefs.h. */
3531
rm -f conftest.$ac_objext
3532
if { (ac_try="$ac_compile"
3534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535
*) ac_try_echo=$ac_try;;
3537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538
(eval "$ac_compile") 2>conftest.er1
3540
grep -v '^ *+' conftest.er1 >conftest.err
3542
cat conftest.err >&5
3543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544
(exit $ac_status); } &&
3545
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546
{ (case "(($ac_try" in
3547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548
*) ac_try_echo=$ac_try;;
3550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551
(eval "$ac_try") 2>&5
3553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554
(exit $ac_status); }; } &&
3555
{ ac_try='test -s conftest.$ac_objext'
3556
{ (case "(($ac_try" in
3557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558
*) ac_try_echo=$ac_try;;
3560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561
(eval "$ac_try") 2>&5
3563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564
(exit $ac_status); }; }; then
3567
echo "$as_me: failed program was:" >&5
3568
sed 's/^/| /' conftest.$ac_ext >&5
3570
ac_c_werror_flag=$ac_save_c_werror_flag
3572
cat >conftest.$ac_ext <<_ACEOF
3575
cat confdefs.h >>conftest.$ac_ext
3576
cat >>conftest.$ac_ext <<_ACEOF
3577
/* end confdefs.h. */
3587
rm -f conftest.$ac_objext
3588
if { (ac_try="$ac_compile"
3590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591
*) ac_try_echo=$ac_try;;
3593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594
(eval "$ac_compile") 2>conftest.er1
3596
grep -v '^ *+' conftest.er1 >conftest.err
3598
cat conftest.err >&5
3599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
(exit $ac_status); } &&
3601
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602
{ (case "(($ac_try" in
3603
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604
*) ac_try_echo=$ac_try;;
3606
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607
(eval "$ac_try") 2>&5
3609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610
(exit $ac_status); }; } &&
3611
{ ac_try='test -s conftest.$ac_objext'
3612
{ (case "(($ac_try" in
3613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614
*) ac_try_echo=$ac_try;;
3616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617
(eval "$ac_try") 2>&5
3619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
(exit $ac_status); }; }; then
3623
echo "$as_me: failed program was:" >&5
3624
sed 's/^/| /' conftest.$ac_ext >&5
3629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636
ac_c_werror_flag=$ac_save_c_werror_flag
3638
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3640
if test "$ac_test_CFLAGS" = set; then
3641
CFLAGS=$ac_save_CFLAGS
3642
elif test $ac_cv_prog_cc_g = yes; then
3643
if test "$GCC" = yes; then
3649
if test "$GCC" = yes; then
3655
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3656
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3657
if test "${ac_cv_prog_cc_c89+set}" = set; then
3658
echo $ECHO_N "(cached) $ECHO_C" >&6
3660
ac_cv_prog_cc_c89=no
3662
cat >conftest.$ac_ext <<_ACEOF
3665
cat confdefs.h >>conftest.$ac_ext
3666
cat >>conftest.$ac_ext <<_ACEOF
3667
/* end confdefs.h. */
3670
#include <sys/types.h>
3671
#include <sys/stat.h>
3672
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673
struct buf { int x; };
3674
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675
static char *e (p, i)
3681
static char *f (char * (*g) (char **, int), char **p, ...)
3686
s = g (p, va_arg (v,int));
3691
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692
function prototypes and stuff, but not '\xHH' hex character constants.
3693
These don't provoke an error unfortunately, instead are silently treated
3694
as 'x'. The following induces an error, until -std is added to get
3695
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696
array size at least. It's necessary to write '\x00'==0 to get something
3697
that's true only with -std. */
3698
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
int test (int i, double x);
3701
struct s1 {int (*f) (int a);};
3702
struct s2 {int (*f) (double a);};
3703
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717
CC="$ac_save_CC $ac_arg"
3718
rm -f conftest.$ac_objext
3719
if { (ac_try="$ac_compile"
3721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
*) ac_try_echo=$ac_try;;
3724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725
(eval "$ac_compile") 2>conftest.er1
3727
grep -v '^ *+' conftest.er1 >conftest.err
3729
cat conftest.err >&5
3730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
(exit $ac_status); } &&
3732
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733
{ (case "(($ac_try" in
3734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735
*) ac_try_echo=$ac_try;;
3737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738
(eval "$ac_try") 2>&5
3740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
(exit $ac_status); }; } &&
3742
{ ac_try='test -s conftest.$ac_objext'
3743
{ (case "(($ac_try" in
3744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745
*) ac_try_echo=$ac_try;;
3747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748
(eval "$ac_try") 2>&5
3750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
(exit $ac_status); }; }; then
3752
ac_cv_prog_cc_c89=$ac_arg
3754
echo "$as_me: failed program was:" >&5
3755
sed 's/^/| /' conftest.$ac_ext >&5
3760
rm -f conftest.err conftest.$ac_objext
3761
test "x$ac_cv_prog_cc_c89" != "xno" && break
3763
rm -f conftest.$ac_ext
3768
case "x$ac_cv_prog_cc_c89" in
3770
{ echo "$as_me:$LINENO: result: none needed" >&5
3771
echo "${ECHO_T}none needed" >&6; } ;;
3773
{ echo "$as_me:$LINENO: result: unsupported" >&5
3774
echo "${ECHO_T}unsupported" >&6; } ;;
3776
CC="$CC $ac_cv_prog_cc_c89"
3777
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3778
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3783
ac_cpp='$CPP $CPPFLAGS'
3784
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
depcc="$CC" am_compiler_list=
3790
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3791
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3792
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3793
echo $ECHO_N "(cached) $ECHO_C" >&6
3795
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796
# We make a subdir and do the tests there. Otherwise we can end up
3797
# making bogus files that we don't know about and never remove. For
3798
# instance it was reported that on HP-UX the gcc test will end up
3799
# making a dummy file named `D' -- because `-MD' means `put the output
3802
# Copy depcomp to subdir because otherwise we won't find it if we're
3803
# using a relative directory.
3804
cp "$am_depcomp" conftest.dir
3806
# We will build objects and dependencies in a subdirectory because
3807
# it helps to detect inapplicable dependency modes. For instance
3808
# both Tru64's cc and ICC support -MD to output dependencies as a
3809
# side effect of compilation, but ICC will put the dependencies in
3810
# the current directory while Tru64 will put them in the object
3814
am_cv_CC_dependencies_compiler_type=none
3815
if test "$am_compiler_list" = ""; then
3816
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818
for depmode in $am_compiler_list; do
3819
# Setup a source with many dependencies, because some compilers
3820
# like to wrap large dependency lists on column 80 (with \), and
3821
# we should not choose a depcomp mode which is confused by this.
3823
# We need to recreate these files for each test, as the compiler may
3824
# overwrite some of them when testing with obscure command lines.
3825
# This happens at least with the AIX C compiler.
3827
for i in 1 2 3 4 5 6; do
3828
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830
# Solaris 8's {/usr,}/bin/sh.
3831
touch sub/conftst$i.h
3833
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
# after this tag, mechanisms are not by side-effect, so they'll
3838
# only be used when explicitly requested
3839
if test "x$enable_dependency_tracking" = xyes; then
3847
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3848
# mode. It turns out that the SunPro C++ compiler does not properly
3849
# handle `-M -o', and we need to detect this.
3850
if depmode=$depmode \
3851
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3852
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3854
>/dev/null 2>conftest.err &&
3855
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858
# icc doesn't choke on unknown options, it will just issue warnings
3859
# or remarks (even with -Werror). So we grep stderr for any message
3860
# that says an option was ignored or not supported.
3861
# When given -MP, icc 7.0 and 7.1 complain thusly:
3862
# icc: Command line warning: ignoring option '-M'; no argument required
3863
# The diagnosis changed in icc 8.0:
3864
# icc: Command line remark: option '-MP' not supported
3865
if (grep 'ignoring option' conftest.err ||
3866
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867
am_cv_CC_dependencies_compiler_type=$depmode
3876
am_cv_CC_dependencies_compiler_type=none
3880
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3882
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887
test "x$enable_dependency_tracking" != xno \
3888
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3890
am__fastdepCC_FALSE='#'
3892
am__fastdepCC_TRUE='#'
3893
am__fastdepCC_FALSE=
3901
# Check whether --with-tcp-wrappers was given.
3902
if test "${with_tcp_wrappers+set}" = set; then
3903
withval=$with_tcp_wrappers;
3904
if test "x$withval" != "xno" ; then
3906
saved_LDFLAGS="$LDFLAGS"
3907
saved_CPPFLAGS="$CPPFLAGS"
3908
if test -n "${withval}" -a "${withval}" != "yes"; then
3909
if test -d "${withval}/lib"; then
3910
if test -n "${need_dash_r}"; then
3911
LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3913
LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3916
if test -n "${need_dash_r}"; then
3917
LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3919
LDFLAGS="-L${withval} ${LDFLAGS}"
3922
if test -d "${withval}/include"; then
3923
CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3925
CPPFLAGS="-I${withval} ${CPPFLAGS}"
3929
LIBS="$LIBWRAP $LIBS"
3930
{ echo "$as_me:$LINENO: checking for libwrap" >&5
3931
echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932
cat >conftest.$ac_ext <<_ACEOF
3935
cat confdefs.h >>conftest.$ac_ext
3936
cat >>conftest.$ac_ext <<_ACEOF
3937
/* end confdefs.h. */
3940
int deny_severity = 0, allow_severity = 0;
3950
rm -f conftest.$ac_objext conftest$ac_exeext
3951
if { (ac_try="$ac_link"
3953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954
*) ac_try_echo=$ac_try;;
3956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957
(eval "$ac_link") 2>conftest.er1
3959
grep -v '^ *+' conftest.er1 >conftest.err
3961
cat conftest.err >&5
3962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
(exit $ac_status); } &&
3964
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3965
{ (case "(($ac_try" in
3966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967
*) ac_try_echo=$ac_try;;
3969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970
(eval "$ac_try") 2>&5
3972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
(exit $ac_status); }; } &&
3974
{ ac_try='test -s conftest$ac_exeext'
3975
{ (case "(($ac_try" in
3976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977
*) ac_try_echo=$ac_try;;
3979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980
(eval "$ac_try") 2>&5
3982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983
(exit $ac_status); }; }; then
3985
{ echo "$as_me:$LINENO: result: yes" >&5
3986
echo "${ECHO_T}yes" >&6; }
3989
cat >>confdefs.h <<\_ACEOF
3990
@%:@define LIBWRAP 1
3994
cat >>confdefs.h <<\_ACEOF
3995
@%:@define HAVE_LIBWRAP 1
3999
cat >>confdefs.h <<\_ACEOF
4000
@%:@define HAVE_TCP_WRAPPER 1
4006
echo "$as_me: failed program was:" >&5
4007
sed 's/^/| /' conftest.$ac_ext >&5
4010
{ { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4011
echo "$as_me: error: *** libwrap missing" >&2;}
4012
{ (exit 1); exit 1; }; }
4017
rm -f conftest.err conftest.$ac_objext \
4018
conftest$ac_exeext conftest.$ac_ext
4031
ac_config_headers="$ac_config_headers support/include/config.h"
4034
# Checks for programs.
4036
ac_cpp='$CXXCPP $CPPFLAGS'
4037
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4040
if test -z "$CXX"; then
4041
if test -n "$CCC"; then
4044
if test -n "$ac_tool_prefix"; then
4045
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4047
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051
if test "${ac_cv_prog_CXX+set}" = set; then
4052
echo $ECHO_N "(cached) $ECHO_C" >&6
4054
if test -n "$CXX"; then
4055
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061
test -z "$as_dir" && as_dir=.
4062
for ac_exec_ext in '' $ac_executable_extensions; do
4063
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4064
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4065
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075
if test -n "$CXX"; then
4076
{ echo "$as_me:$LINENO: result: $CXX" >&5
4077
echo "${ECHO_T}$CXX" >&6; }
4079
{ echo "$as_me:$LINENO: result: no" >&5
4080
echo "${ECHO_T}no" >&6; }
4084
test -n "$CXX" && break
4087
if test -z "$CXX"; then
4089
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091
# Extract the first word of "$ac_prog", so it can be a program name with args.
4092
set dummy $ac_prog; ac_word=$2
4093
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4096
echo $ECHO_N "(cached) $ECHO_C" >&6
4098
if test -n "$ac_ct_CXX"; then
4099
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
test -z "$as_dir" && as_dir=.
4106
for ac_exec_ext in '' $ac_executable_extensions; do
4107
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4108
ac_cv_prog_ac_ct_CXX="$ac_prog"
4109
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4119
if test -n "$ac_ct_CXX"; then
4120
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4121
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4123
{ echo "$as_me:$LINENO: result: no" >&5
4124
echo "${ECHO_T}no" >&6; }
4128
test -n "$ac_ct_CXX" && break
4131
if test "x$ac_ct_CXX" = x; then
4134
case $cross_compiling:$ac_tool_warned in
4136
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4137
whose name does not start with the host triplet. If you think this
4138
configuration is useful to you, please write to autoconf@gnu.org." >&5
4139
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4140
whose name does not start with the host triplet. If you think this
4141
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4142
ac_tool_warned=yes ;;
4150
# Provide some information about the compiler.
4151
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4152
ac_compiler=`set X $ac_compile; echo $2`
4153
{ (ac_try="$ac_compiler --version >&5"
4155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156
*) ac_try_echo=$ac_try;;
4158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159
(eval "$ac_compiler --version >&5") 2>&5
4161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
(exit $ac_status); }
4163
{ (ac_try="$ac_compiler -v >&5"
4165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166
*) ac_try_echo=$ac_try;;
4168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169
(eval "$ac_compiler -v >&5") 2>&5
4171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
(exit $ac_status); }
4173
{ (ac_try="$ac_compiler -V >&5"
4175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176
*) ac_try_echo=$ac_try;;
4178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179
(eval "$ac_compiler -V >&5") 2>&5
4181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
(exit $ac_status); }
4184
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4185
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4186
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4187
echo $ECHO_N "(cached) $ECHO_C" >&6
4189
cat >conftest.$ac_ext <<_ACEOF
4192
cat confdefs.h >>conftest.$ac_ext
4193
cat >>conftest.$ac_ext <<_ACEOF
4194
/* end confdefs.h. */
4207
rm -f conftest.$ac_objext
4208
if { (ac_try="$ac_compile"
4210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211
*) ac_try_echo=$ac_try;;
4213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214
(eval "$ac_compile") 2>conftest.er1
4216
grep -v '^ *+' conftest.er1 >conftest.err
4218
cat conftest.err >&5
4219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
(exit $ac_status); } &&
4221
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4222
{ (case "(($ac_try" in
4223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224
*) ac_try_echo=$ac_try;;
4226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227
(eval "$ac_try") 2>&5
4229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230
(exit $ac_status); }; } &&
4231
{ ac_try='test -s conftest.$ac_objext'
4232
{ (case "(($ac_try" in
4233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234
*) ac_try_echo=$ac_try;;
4236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237
(eval "$ac_try") 2>&5
4239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240
(exit $ac_status); }; }; then
4243
echo "$as_me: failed program was:" >&5
4244
sed 's/^/| /' conftest.$ac_ext >&5
4249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4253
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4254
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4255
GXX=`test $ac_compiler_gnu = yes && echo yes`
4256
ac_test_CXXFLAGS=${CXXFLAGS+set}
4257
ac_save_CXXFLAGS=$CXXFLAGS
4258
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4259
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4260
if test "${ac_cv_prog_cxx_g+set}" = set; then
4261
echo $ECHO_N "(cached) $ECHO_C" >&6
4263
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264
ac_cxx_werror_flag=yes
4267
cat >conftest.$ac_ext <<_ACEOF
4270
cat confdefs.h >>conftest.$ac_ext
4271
cat >>conftest.$ac_ext <<_ACEOF
4272
/* end confdefs.h. */
4282
rm -f conftest.$ac_objext
4283
if { (ac_try="$ac_compile"
4285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286
*) ac_try_echo=$ac_try;;
4288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289
(eval "$ac_compile") 2>conftest.er1
4291
grep -v '^ *+' conftest.er1 >conftest.err
4293
cat conftest.err >&5
4294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
(exit $ac_status); } &&
4296
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4297
{ (case "(($ac_try" in
4298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299
*) ac_try_echo=$ac_try;;
4301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302
(eval "$ac_try") 2>&5
4304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305
(exit $ac_status); }; } &&
4306
{ ac_try='test -s conftest.$ac_objext'
4307
{ (case "(($ac_try" in
4308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309
*) ac_try_echo=$ac_try;;
4311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312
(eval "$ac_try") 2>&5
4314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315
(exit $ac_status); }; }; then
4316
ac_cv_prog_cxx_g=yes
4318
echo "$as_me: failed program was:" >&5
4319
sed 's/^/| /' conftest.$ac_ext >&5
4322
cat >conftest.$ac_ext <<_ACEOF
4325
cat confdefs.h >>conftest.$ac_ext
4326
cat >>conftest.$ac_ext <<_ACEOF
4327
/* end confdefs.h. */
4337
rm -f conftest.$ac_objext
4338
if { (ac_try="$ac_compile"
4340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341
*) ac_try_echo=$ac_try;;
4343
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344
(eval "$ac_compile") 2>conftest.er1
4346
grep -v '^ *+' conftest.er1 >conftest.err
4348
cat conftest.err >&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); } &&
4351
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4352
{ (case "(($ac_try" in
4353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354
*) ac_try_echo=$ac_try;;
4356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357
(eval "$ac_try") 2>&5
4359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
(exit $ac_status); }; } &&
4361
{ ac_try='test -s conftest.$ac_objext'
4362
{ (case "(($ac_try" in
4363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364
*) ac_try_echo=$ac_try;;
4366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367
(eval "$ac_try") 2>&5
4369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
(exit $ac_status); }; }; then
4373
echo "$as_me: failed program was:" >&5
4374
sed 's/^/| /' conftest.$ac_ext >&5
4376
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4378
cat >conftest.$ac_ext <<_ACEOF
4381
cat confdefs.h >>conftest.$ac_ext
4382
cat >>conftest.$ac_ext <<_ACEOF
4383
/* end confdefs.h. */
4393
rm -f conftest.$ac_objext
4394
if { (ac_try="$ac_compile"
4396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397
*) ac_try_echo=$ac_try;;
4399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400
(eval "$ac_compile") 2>conftest.er1
4402
grep -v '^ *+' conftest.er1 >conftest.err
4404
cat conftest.err >&5
4405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406
(exit $ac_status); } &&
4407
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4408
{ (case "(($ac_try" in
4409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410
*) ac_try_echo=$ac_try;;
4412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413
(eval "$ac_try") 2>&5
4415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
(exit $ac_status); }; } &&
4417
{ ac_try='test -s conftest.$ac_objext'
4418
{ (case "(($ac_try" in
4419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420
*) ac_try_echo=$ac_try;;
4422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423
(eval "$ac_try") 2>&5
4425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
(exit $ac_status); }; }; then
4427
ac_cv_prog_cxx_g=yes
4429
echo "$as_me: failed program was:" >&5
4430
sed 's/^/| /' conftest.$ac_ext >&5
4435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4445
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4446
if test "$ac_test_CXXFLAGS" = set; then
4447
CXXFLAGS=$ac_save_CXXFLAGS
4448
elif test $ac_cv_prog_cxx_g = yes; then
4449
if test "$GXX" = yes; then
4455
if test "$GXX" = yes; then
4462
ac_cpp='$CPP $CPPFLAGS'
4463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467
depcc="$CXX" am_compiler_list=
4469
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4470
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4471
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4472
echo $ECHO_N "(cached) $ECHO_C" >&6
4474
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4475
# We make a subdir and do the tests there. Otherwise we can end up
4476
# making bogus files that we don't know about and never remove. For
4477
# instance it was reported that on HP-UX the gcc test will end up
4478
# making a dummy file named `D' -- because `-MD' means `put the output
4481
# Copy depcomp to subdir because otherwise we won't find it if we're
4482
# using a relative directory.
4483
cp "$am_depcomp" conftest.dir
4485
# We will build objects and dependencies in a subdirectory because
4486
# it helps to detect inapplicable dependency modes. For instance
4487
# both Tru64's cc and ICC support -MD to output dependencies as a
4488
# side effect of compilation, but ICC will put the dependencies in
4489
# the current directory while Tru64 will put them in the object
4493
am_cv_CXX_dependencies_compiler_type=none
4494
if test "$am_compiler_list" = ""; then
4495
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497
for depmode in $am_compiler_list; do
4498
# Setup a source with many dependencies, because some compilers
4499
# like to wrap large dependency lists on column 80 (with \), and
4500
# we should not choose a depcomp mode which is confused by this.
4502
# We need to recreate these files for each test, as the compiler may
4503
# overwrite some of them when testing with obscure command lines.
4504
# This happens at least with the AIX C compiler.
4506
for i in 1 2 3 4 5 6; do
4507
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4509
# Solaris 8's {/usr,}/bin/sh.
4510
touch sub/conftst$i.h
4512
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
# after this tag, mechanisms are not by side-effect, so they'll
4517
# only be used when explicitly requested
4518
if test "x$enable_dependency_tracking" = xyes; then
4526
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4527
# mode. It turns out that the SunPro C++ compiler does not properly
4528
# handle `-M -o', and we need to detect this.
4529
if depmode=$depmode \
4530
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4531
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4533
>/dev/null 2>conftest.err &&
4534
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4536
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537
# icc doesn't choke on unknown options, it will just issue warnings
4538
# or remarks (even with -Werror). So we grep stderr for any message
4539
# that says an option was ignored or not supported.
4540
# When given -MP, icc 7.0 and 7.1 complain thusly:
4541
# icc: Command line warning: ignoring option '-M'; no argument required
4542
# The diagnosis changed in icc 8.0:
4543
# icc: Command line remark: option '-MP' not supported
4544
if (grep 'ignoring option' conftest.err ||
4545
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546
am_cv_CXX_dependencies_compiler_type=$depmode
4555
am_cv_CXX_dependencies_compiler_type=none
4559
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4560
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4561
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4566
test "x$enable_dependency_tracking" != xno \
4567
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4568
am__fastdepCXX_TRUE=
4569
am__fastdepCXX_FALSE='#'
4571
am__fastdepCXX_TRUE='#'
4572
am__fastdepCXX_FALSE=
4577
ac_cpp='$CPP $CPPFLAGS'
4578
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
if test -n "$ac_tool_prefix"; then
4582
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4583
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4584
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586
if test "${ac_cv_prog_CC+set}" = set; then
4587
echo $ECHO_N "(cached) $ECHO_C" >&6
4589
if test -n "$CC"; then
4590
ac_cv_prog_CC="$CC" # Let the user override the test.
4592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596
test -z "$as_dir" && as_dir=.
4597
for ac_exec_ext in '' $ac_executable_extensions; do
4598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4600
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610
if test -n "$CC"; then
4611
{ echo "$as_me:$LINENO: result: $CC" >&5
4612
echo "${ECHO_T}$CC" >&6; }
4614
{ echo "$as_me:$LINENO: result: no" >&5
4615
echo "${ECHO_T}no" >&6; }
4620
if test -z "$ac_cv_prog_CC"; then
4622
# Extract the first word of "gcc", so it can be a program name with args.
4623
set dummy gcc; ac_word=$2
4624
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4625
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4627
echo $ECHO_N "(cached) $ECHO_C" >&6
4629
if test -n "$ac_ct_CC"; then
4630
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636
test -z "$as_dir" && as_dir=.
4637
for ac_exec_ext in '' $ac_executable_extensions; do
4638
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639
ac_cv_prog_ac_ct_CC="gcc"
4640
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650
if test -n "$ac_ct_CC"; then
4651
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4652
echo "${ECHO_T}$ac_ct_CC" >&6; }
4654
{ echo "$as_me:$LINENO: result: no" >&5
4655
echo "${ECHO_T}no" >&6; }
4658
if test "x$ac_ct_CC" = x; then
4661
case $cross_compiling:$ac_tool_warned in
4663
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4664
whose name does not start with the host triplet. If you think this
4665
configuration is useful to you, please write to autoconf@gnu.org." >&5
4666
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4667
whose name does not start with the host triplet. If you think this
4668
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4669
ac_tool_warned=yes ;;
4677
if test -z "$CC"; then
4678
if test -n "$ac_tool_prefix"; then
4679
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680
set dummy ${ac_tool_prefix}cc; ac_word=$2
4681
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683
if test "${ac_cv_prog_CC+set}" = set; then
4684
echo $ECHO_N "(cached) $ECHO_C" >&6
4686
if test -n "$CC"; then
4687
ac_cv_prog_CC="$CC" # Let the user override the test.
4689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693
test -z "$as_dir" && as_dir=.
4694
for ac_exec_ext in '' $ac_executable_extensions; do
4695
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4696
ac_cv_prog_CC="${ac_tool_prefix}cc"
4697
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707
if test -n "$CC"; then
4708
{ echo "$as_me:$LINENO: result: $CC" >&5
4709
echo "${ECHO_T}$CC" >&6; }
4711
{ echo "$as_me:$LINENO: result: no" >&5
4712
echo "${ECHO_T}no" >&6; }
4718
if test -z "$CC"; then
4719
# Extract the first word of "cc", so it can be a program name with args.
4720
set dummy cc; ac_word=$2
4721
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4722
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723
if test "${ac_cv_prog_CC+set}" = set; then
4724
echo $ECHO_N "(cached) $ECHO_C" >&6
4726
if test -n "$CC"; then
4727
ac_cv_prog_CC="$CC" # Let the user override the test.
4730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734
test -z "$as_dir" && as_dir=.
4735
for ac_exec_ext in '' $ac_executable_extensions; do
4736
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4738
ac_prog_rejected=yes
4742
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749
if test $ac_prog_rejected = yes; then
4750
# We found a bogon in the path, so make sure we never use it.
4751
set dummy $ac_cv_prog_CC
4753
if test $@%:@ != 0; then
4754
# We chose a different compiler from the bogus one.
4755
# However, it has the same basename, so the bogon will be chosen
4756
# first if we set CC to just the basename; use the full file name.
4758
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4764
if test -n "$CC"; then
4765
{ echo "$as_me:$LINENO: result: $CC" >&5
4766
echo "${ECHO_T}$CC" >&6; }
4768
{ echo "$as_me:$LINENO: result: no" >&5
4769
echo "${ECHO_T}no" >&6; }
4774
if test -z "$CC"; then
4775
if test -n "$ac_tool_prefix"; then
4776
for ac_prog in cl.exe
4778
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4779
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4780
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782
if test "${ac_cv_prog_CC+set}" = set; then
4783
echo $ECHO_N "(cached) $ECHO_C" >&6
4785
if test -n "$CC"; then
4786
ac_cv_prog_CC="$CC" # Let the user override the test.
4788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792
test -z "$as_dir" && as_dir=.
4793
for ac_exec_ext in '' $ac_executable_extensions; do
4794
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806
if test -n "$CC"; then
4807
{ echo "$as_me:$LINENO: result: $CC" >&5
4808
echo "${ECHO_T}$CC" >&6; }
4810
{ echo "$as_me:$LINENO: result: no" >&5
4811
echo "${ECHO_T}no" >&6; }
4815
test -n "$CC" && break
4818
if test -z "$CC"; then
4820
for ac_prog in cl.exe
4822
# Extract the first word of "$ac_prog", so it can be a program name with args.
4823
set dummy $ac_prog; ac_word=$2
4824
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4825
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4827
echo $ECHO_N "(cached) $ECHO_C" >&6
4829
if test -n "$ac_ct_CC"; then
4830
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836
test -z "$as_dir" && as_dir=.
4837
for ac_exec_ext in '' $ac_executable_extensions; do
4838
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839
ac_cv_prog_ac_ct_CC="$ac_prog"
4840
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850
if test -n "$ac_ct_CC"; then
4851
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4852
echo "${ECHO_T}$ac_ct_CC" >&6; }
4854
{ echo "$as_me:$LINENO: result: no" >&5
4855
echo "${ECHO_T}no" >&6; }
4859
test -n "$ac_ct_CC" && break
4862
if test "x$ac_ct_CC" = x; then
4865
case $cross_compiling:$ac_tool_warned in
4867
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4868
whose name does not start with the host triplet. If you think this
4869
configuration is useful to you, please write to autoconf@gnu.org." >&5
4870
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4871
whose name does not start with the host triplet. If you think this
4872
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4873
ac_tool_warned=yes ;;
4882
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4883
See \`config.log' for more details." >&5
4884
echo "$as_me: error: no acceptable C compiler found in \$PATH
4885
See \`config.log' for more details." >&2;}
4886
{ (exit 1); exit 1; }; }
4888
# Provide some information about the compiler.
4889
echo "$as_me:$LINENO: checking for C compiler version" >&5
4890
ac_compiler=`set X $ac_compile; echo $2`
4891
{ (ac_try="$ac_compiler --version >&5"
4893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894
*) ac_try_echo=$ac_try;;
4896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897
(eval "$ac_compiler --version >&5") 2>&5
4899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900
(exit $ac_status); }
4901
{ (ac_try="$ac_compiler -v >&5"
4903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
*) ac_try_echo=$ac_try;;
4906
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907
(eval "$ac_compiler -v >&5") 2>&5
4909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910
(exit $ac_status); }
4911
{ (ac_try="$ac_compiler -V >&5"
4913
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914
*) ac_try_echo=$ac_try;;
4916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917
(eval "$ac_compiler -V >&5") 2>&5
4919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920
(exit $ac_status); }
4922
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4923
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4924
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4925
echo $ECHO_N "(cached) $ECHO_C" >&6
4927
cat >conftest.$ac_ext <<_ACEOF
4930
cat confdefs.h >>conftest.$ac_ext
4931
cat >>conftest.$ac_ext <<_ACEOF
4932
/* end confdefs.h. */
4945
rm -f conftest.$ac_objext
4946
if { (ac_try="$ac_compile"
4948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949
*) ac_try_echo=$ac_try;;
4951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952
(eval "$ac_compile") 2>conftest.er1
4954
grep -v '^ *+' conftest.er1 >conftest.err
4956
cat conftest.err >&5
4957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
(exit $ac_status); } &&
4959
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960
{ (case "(($ac_try" in
4961
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962
*) ac_try_echo=$ac_try;;
4964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965
(eval "$ac_try") 2>&5
4967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
(exit $ac_status); }; } &&
4969
{ ac_try='test -s conftest.$ac_objext'
4970
{ (case "(($ac_try" in
4971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972
*) ac_try_echo=$ac_try;;
4974
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975
(eval "$ac_try") 2>&5
4977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978
(exit $ac_status); }; }; then
4981
echo "$as_me: failed program was:" >&5
4982
sed 's/^/| /' conftest.$ac_ext >&5
4987
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4991
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4993
GCC=`test $ac_compiler_gnu = yes && echo yes`
4994
ac_test_CFLAGS=${CFLAGS+set}
4995
ac_save_CFLAGS=$CFLAGS
4996
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4997
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4998
if test "${ac_cv_prog_cc_g+set}" = set; then
4999
echo $ECHO_N "(cached) $ECHO_C" >&6
5001
ac_save_c_werror_flag=$ac_c_werror_flag
5002
ac_c_werror_flag=yes
5005
cat >conftest.$ac_ext <<_ACEOF
5008
cat confdefs.h >>conftest.$ac_ext
5009
cat >>conftest.$ac_ext <<_ACEOF
5010
/* end confdefs.h. */
5020
rm -f conftest.$ac_objext
5021
if { (ac_try="$ac_compile"
5023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024
*) ac_try_echo=$ac_try;;
5026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027
(eval "$ac_compile") 2>conftest.er1
5029
grep -v '^ *+' conftest.er1 >conftest.err
5031
cat conftest.err >&5
5032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033
(exit $ac_status); } &&
5034
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5035
{ (case "(($ac_try" in
5036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037
*) ac_try_echo=$ac_try;;
5039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040
(eval "$ac_try") 2>&5
5042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043
(exit $ac_status); }; } &&
5044
{ ac_try='test -s conftest.$ac_objext'
5045
{ (case "(($ac_try" in
5046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047
*) ac_try_echo=$ac_try;;
5049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050
(eval "$ac_try") 2>&5
5052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053
(exit $ac_status); }; }; then
5056
echo "$as_me: failed program was:" >&5
5057
sed 's/^/| /' conftest.$ac_ext >&5
5060
cat >conftest.$ac_ext <<_ACEOF
5063
cat confdefs.h >>conftest.$ac_ext
5064
cat >>conftest.$ac_ext <<_ACEOF
5065
/* end confdefs.h. */
5075
rm -f conftest.$ac_objext
5076
if { (ac_try="$ac_compile"
5078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079
*) ac_try_echo=$ac_try;;
5081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082
(eval "$ac_compile") 2>conftest.er1
5084
grep -v '^ *+' conftest.er1 >conftest.err
5086
cat conftest.err >&5
5087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
(exit $ac_status); } &&
5089
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5090
{ (case "(($ac_try" in
5091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092
*) ac_try_echo=$ac_try;;
5094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095
(eval "$ac_try") 2>&5
5097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
(exit $ac_status); }; } &&
5099
{ ac_try='test -s conftest.$ac_objext'
5100
{ (case "(($ac_try" in
5101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102
*) ac_try_echo=$ac_try;;
5104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105
(eval "$ac_try") 2>&5
5107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
(exit $ac_status); }; }; then
5111
echo "$as_me: failed program was:" >&5
5112
sed 's/^/| /' conftest.$ac_ext >&5
5114
ac_c_werror_flag=$ac_save_c_werror_flag
5116
cat >conftest.$ac_ext <<_ACEOF
5119
cat confdefs.h >>conftest.$ac_ext
5120
cat >>conftest.$ac_ext <<_ACEOF
5121
/* end confdefs.h. */
5131
rm -f conftest.$ac_objext
5132
if { (ac_try="$ac_compile"
5134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135
*) ac_try_echo=$ac_try;;
5137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138
(eval "$ac_compile") 2>conftest.er1
5140
grep -v '^ *+' conftest.er1 >conftest.err
5142
cat conftest.err >&5
5143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
(exit $ac_status); } &&
5145
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5146
{ (case "(($ac_try" in
5147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148
*) ac_try_echo=$ac_try;;
5150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151
(eval "$ac_try") 2>&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); }; } &&
5155
{ ac_try='test -s conftest.$ac_objext'
5156
{ (case "(($ac_try" in
5157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158
*) ac_try_echo=$ac_try;;
5160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161
(eval "$ac_try") 2>&5
5163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164
(exit $ac_status); }; }; then
5167
echo "$as_me: failed program was:" >&5
5168
sed 's/^/| /' conftest.$ac_ext >&5
5173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180
ac_c_werror_flag=$ac_save_c_werror_flag
5182
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5183
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5184
if test "$ac_test_CFLAGS" = set; then
5185
CFLAGS=$ac_save_CFLAGS
5186
elif test $ac_cv_prog_cc_g = yes; then
5187
if test "$GCC" = yes; then
5193
if test "$GCC" = yes; then
5199
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5200
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5201
if test "${ac_cv_prog_cc_c89+set}" = set; then
5202
echo $ECHO_N "(cached) $ECHO_C" >&6
5204
ac_cv_prog_cc_c89=no
5206
cat >conftest.$ac_ext <<_ACEOF
5209
cat confdefs.h >>conftest.$ac_ext
5210
cat >>conftest.$ac_ext <<_ACEOF
5211
/* end confdefs.h. */
5214
#include <sys/types.h>
5215
#include <sys/stat.h>
5216
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5217
struct buf { int x; };
5218
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5219
static char *e (p, i)
5225
static char *f (char * (*g) (char **, int), char **p, ...)
5230
s = g (p, va_arg (v,int));
5235
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5236
function prototypes and stuff, but not '\xHH' hex character constants.
5237
These don't provoke an error unfortunately, instead are silently treated
5238
as 'x'. The following induces an error, until -std is added to get
5239
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5240
array size at least. It's necessary to write '\x00'==0 to get something
5241
that's true only with -std. */
5242
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5244
int test (int i, double x);
5245
struct s1 {int (*f) (int a);};
5246
struct s2 {int (*f) (double a);};
5247
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5253
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5258
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5261
CC="$ac_save_CC $ac_arg"
5262
rm -f conftest.$ac_objext
5263
if { (ac_try="$ac_compile"
5265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266
*) ac_try_echo=$ac_try;;
5268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269
(eval "$ac_compile") 2>conftest.er1
5271
grep -v '^ *+' conftest.er1 >conftest.err
5273
cat conftest.err >&5
5274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
(exit $ac_status); } &&
5276
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5277
{ (case "(($ac_try" in
5278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279
*) ac_try_echo=$ac_try;;
5281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282
(eval "$ac_try") 2>&5
5284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
(exit $ac_status); }; } &&
5286
{ ac_try='test -s conftest.$ac_objext'
5287
{ (case "(($ac_try" in
5288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289
*) ac_try_echo=$ac_try;;
5291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292
(eval "$ac_try") 2>&5
5294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); }; }; then
5296
ac_cv_prog_cc_c89=$ac_arg
5298
echo "$as_me: failed program was:" >&5
5299
sed 's/^/| /' conftest.$ac_ext >&5
5304
rm -f conftest.err conftest.$ac_objext
5305
test "x$ac_cv_prog_cc_c89" != "xno" && break
5307
rm -f conftest.$ac_ext
5312
case "x$ac_cv_prog_cc_c89" in
5314
{ echo "$as_me:$LINENO: result: none needed" >&5
5315
echo "${ECHO_T}none needed" >&6; } ;;
5317
{ echo "$as_me:$LINENO: result: unsupported" >&5
5318
echo "${ECHO_T}unsupported" >&6; } ;;
5320
CC="$CC $ac_cv_prog_cc_c89"
5321
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5322
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5327
ac_cpp='$CPP $CPPFLAGS'
5328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
depcc="$CC" am_compiler_list=
5334
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5336
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5337
echo $ECHO_N "(cached) $ECHO_C" >&6
5339
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340
# We make a subdir and do the tests there. Otherwise we can end up
5341
# making bogus files that we don't know about and never remove. For
5342
# instance it was reported that on HP-UX the gcc test will end up
5343
# making a dummy file named `D' -- because `-MD' means `put the output
5346
# Copy depcomp to subdir because otherwise we won't find it if we're
5347
# using a relative directory.
5348
cp "$am_depcomp" conftest.dir
5350
# We will build objects and dependencies in a subdirectory because
5351
# it helps to detect inapplicable dependency modes. For instance
5352
# both Tru64's cc and ICC support -MD to output dependencies as a
5353
# side effect of compilation, but ICC will put the dependencies in
5354
# the current directory while Tru64 will put them in the object
5358
am_cv_CC_dependencies_compiler_type=none
5359
if test "$am_compiler_list" = ""; then
5360
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5362
for depmode in $am_compiler_list; do
5363
# Setup a source with many dependencies, because some compilers
5364
# like to wrap large dependency lists on column 80 (with \), and
5365
# we should not choose a depcomp mode which is confused by this.
5367
# We need to recreate these files for each test, as the compiler may
5368
# overwrite some of them when testing with obscure command lines.
5369
# This happens at least with the AIX C compiler.
5371
for i in 1 2 3 4 5 6; do
5372
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374
# Solaris 8's {/usr,}/bin/sh.
5375
touch sub/conftst$i.h
5377
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5381
# after this tag, mechanisms are not by side-effect, so they'll
5382
# only be used when explicitly requested
5383
if test "x$enable_dependency_tracking" = xyes; then
5391
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5392
# mode. It turns out that the SunPro C++ compiler does not properly
5393
# handle `-M -o', and we need to detect this.
5394
if depmode=$depmode \
5395
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398
>/dev/null 2>conftest.err &&
5399
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402
# icc doesn't choke on unknown options, it will just issue warnings
5403
# or remarks (even with -Werror). So we grep stderr for any message
5404
# that says an option was ignored or not supported.
5405
# When given -MP, icc 7.0 and 7.1 complain thusly:
5406
# icc: Command line warning: ignoring option '-M'; no argument required
5407
# The diagnosis changed in icc 8.0:
5408
# icc: Command line remark: option '-MP' not supported
5409
if (grep 'ignoring option' conftest.err ||
5410
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411
am_cv_CC_dependencies_compiler_type=$depmode
5420
am_cv_CC_dependencies_compiler_type=none
5424
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5426
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5431
test "x$enable_dependency_tracking" != xno \
5432
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5434
am__fastdepCC_FALSE='#'
5436
am__fastdepCC_TRUE='#'
5437
am__fastdepCC_FALSE=
5442
ac_cpp='$CPP $CPPFLAGS'
5443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5447
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5448
# On Suns, sometimes $CPP names a directory.
5449
if test -n "$CPP" && test -d "$CPP"; then
5452
if test -z "$CPP"; then
5453
if test "${ac_cv_prog_CPP+set}" = set; then
5454
echo $ECHO_N "(cached) $ECHO_C" >&6
5456
# Double quotes because CPP needs to be expanded
5457
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460
for ac_c_preproc_warn_flag in '' yes
5462
# Use a header file that comes with gcc, so configuring glibc
5463
# with a fresh cross-compiler works.
5464
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465
# <limits.h> exists even on freestanding compilers.
5466
# On the NeXT, cc -E runs the code through the compiler's parser,
5467
# not just through cpp. "Syntax error" is here to catch this case.
5468
cat >conftest.$ac_ext <<_ACEOF
5471
cat confdefs.h >>conftest.$ac_ext
5472
cat >>conftest.$ac_ext <<_ACEOF
5473
/* end confdefs.h. */
5475
@%:@ include <limits.h>
5477
@%:@ include <assert.h>
5481
if { (ac_try="$ac_cpp conftest.$ac_ext"
5483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484
*) ac_try_echo=$ac_try;;
5486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489
grep -v '^ *+' conftest.er1 >conftest.err
5491
cat conftest.err >&5
5492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493
(exit $ac_status); } >/dev/null; then
5494
if test -s conftest.err; then
5495
ac_cpp_err=$ac_c_preproc_warn_flag
5496
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5503
if test -z "$ac_cpp_err"; then
5506
echo "$as_me: failed program was:" >&5
5507
sed 's/^/| /' conftest.$ac_ext >&5
5509
# Broken: fails on valid input.
5513
rm -f conftest.err conftest.$ac_ext
5515
# OK, works on sane cases. Now check whether nonexistent headers
5516
# can be detected and how.
5517
cat >conftest.$ac_ext <<_ACEOF
5520
cat confdefs.h >>conftest.$ac_ext
5521
cat >>conftest.$ac_ext <<_ACEOF
5522
/* end confdefs.h. */
5523
@%:@include <ac_nonexistent.h>
5525
if { (ac_try="$ac_cpp conftest.$ac_ext"
5527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528
*) ac_try_echo=$ac_try;;
5530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533
grep -v '^ *+' conftest.er1 >conftest.err
5535
cat conftest.err >&5
5536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537
(exit $ac_status); } >/dev/null; then
5538
if test -s conftest.err; then
5539
ac_cpp_err=$ac_c_preproc_warn_flag
5540
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5547
if test -z "$ac_cpp_err"; then
5548
# Broken: success on invalid input.
5551
echo "$as_me: failed program was:" >&5
5552
sed 's/^/| /' conftest.$ac_ext >&5
5554
# Passes both tests.
5559
rm -f conftest.err conftest.$ac_ext
5562
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5563
rm -f conftest.err conftest.$ac_ext
5564
if $ac_preproc_ok; then
5576
{ echo "$as_me:$LINENO: result: $CPP" >&5
5577
echo "${ECHO_T}$CPP" >&6; }
5579
for ac_c_preproc_warn_flag in '' yes
5581
# Use a header file that comes with gcc, so configuring glibc
5582
# with a fresh cross-compiler works.
5583
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584
# <limits.h> exists even on freestanding compilers.
5585
# On the NeXT, cc -E runs the code through the compiler's parser,
5586
# not just through cpp. "Syntax error" is here to catch this case.
5587
cat >conftest.$ac_ext <<_ACEOF
5590
cat confdefs.h >>conftest.$ac_ext
5591
cat >>conftest.$ac_ext <<_ACEOF
5592
/* end confdefs.h. */
5594
@%:@ include <limits.h>
5596
@%:@ include <assert.h>
5600
if { (ac_try="$ac_cpp conftest.$ac_ext"
5602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603
*) ac_try_echo=$ac_try;;
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608
grep -v '^ *+' conftest.er1 >conftest.err
5610
cat conftest.err >&5
5611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612
(exit $ac_status); } >/dev/null; then
5613
if test -s conftest.err; then
5614
ac_cpp_err=$ac_c_preproc_warn_flag
5615
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5622
if test -z "$ac_cpp_err"; then
5625
echo "$as_me: failed program was:" >&5
5626
sed 's/^/| /' conftest.$ac_ext >&5
5628
# Broken: fails on valid input.
5632
rm -f conftest.err conftest.$ac_ext
5634
# OK, works on sane cases. Now check whether nonexistent headers
5635
# can be detected and how.
5636
cat >conftest.$ac_ext <<_ACEOF
5639
cat confdefs.h >>conftest.$ac_ext
5640
cat >>conftest.$ac_ext <<_ACEOF
5641
/* end confdefs.h. */
5642
@%:@include <ac_nonexistent.h>
5644
if { (ac_try="$ac_cpp conftest.$ac_ext"
5646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647
*) ac_try_echo=$ac_try;;
5649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652
grep -v '^ *+' conftest.er1 >conftest.err
5654
cat conftest.err >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); } >/dev/null; then
5657
if test -s conftest.err; then
5658
ac_cpp_err=$ac_c_preproc_warn_flag
5659
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666
if test -z "$ac_cpp_err"; then
5667
# Broken: success on invalid input.
5670
echo "$as_me: failed program was:" >&5
5671
sed 's/^/| /' conftest.$ac_ext >&5
5673
# Passes both tests.
5678
rm -f conftest.err conftest.$ac_ext
5681
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682
rm -f conftest.err conftest.$ac_ext
5683
if $ac_preproc_ok; then
5686
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5687
See \`config.log' for more details." >&5
5688
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5689
See \`config.log' for more details." >&2;}
5690
{ (exit 1); exit 1; }; }
5694
ac_cpp='$CPP $CPPFLAGS'
5695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
# Find a good install program. We prefer a C program (faster),
5700
# so one script is as good as another. But avoid the broken or
5701
# incompatible versions:
5702
# SysV /etc/install, /usr/sbin/install
5703
# SunOS /usr/etc/install
5704
# IRIX /sbin/install
5706
# AmigaOS /C/install, which installs bootblocks on floppy discs
5707
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5708
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5709
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5710
# OS/2's system install, which has a completely different semantic
5711
# ./install, which can be erroneously created by make from ./install.sh.
5712
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5713
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5714
if test -z "$INSTALL"; then
5715
if test "${ac_cv_path_install+set}" = set; then
5716
echo $ECHO_N "(cached) $ECHO_C" >&6
5718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722
test -z "$as_dir" && as_dir=.
5723
# Account for people who put trailing slashes in PATH elements.
5725
./ | .// | /cC/* | \
5726
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5727
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5730
# OSF1 and SCO ODT 3.0 have their own names for install.
5731
# Don't use installbsd from OSF since it installs stuff as root
5733
for ac_prog in ginstall scoinst install; do
5734
for ac_exec_ext in '' $ac_executable_extensions; do
5735
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5736
if test $ac_prog = install &&
5737
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5738
# AIX install. It has an incompatible calling convention.
5740
elif test $ac_prog = install &&
5741
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5742
# program-specific install script used by HP pwplus--don't use.
5745
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5758
if test "${ac_cv_path_install+set}" = set; then
5759
INSTALL=$ac_cv_path_install
5761
# As a last resort, use the slow shell script. Don't cache a
5762
# value for INSTALL within a source directory, because that will
5763
# break other packages using the cache if that directory is
5764
# removed, or if the value is a relative name.
5765
INSTALL=$ac_install_sh
5768
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5769
echo "${ECHO_T}$INSTALL" >&6; }
5771
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5772
# It thinks the first close brace ends the variable substitution.
5773
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5775
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5777
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5779
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5782
if test "$LN_S" = "ln -s"; then
5783
{ echo "$as_me:$LINENO: result: yes" >&5
5784
echo "${ECHO_T}yes" >&6; }
5786
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787
echo "${ECHO_T}no, using $LN_S" >&6; }
5790
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5791
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5792
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5793
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794
echo $ECHO_N "(cached) $ECHO_C" >&6
5796
cat >conftest.make <<\_ACEOF
5799
@echo '@@@%%%=$(MAKE)=@@@%%%'
5801
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5804
eval ac_cv_prog_make_${ac_make}_set=yes;;
5806
eval ac_cv_prog_make_${ac_make}_set=no;;
5810
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811
{ echo "$as_me:$LINENO: result: yes" >&5
5812
echo "${ECHO_T}yes" >&6; }
5815
{ echo "$as_me:$LINENO: result: no" >&5
5816
echo "${ECHO_T}no" >&6; }
5817
SET_MAKE="MAKE=${MAKE-make}"
5820
# Check whether --enable-shared was given.
5821
if test "${enable_shared+set}" = set; then
5822
enableval=$enable_shared; p=${PACKAGE-default}
5824
yes) enable_shared=yes ;;
5825
no) enable_shared=no ;;
5828
# Look at the argument we got. We use all the common list separators.
5829
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5830
for pkg in $enableval; do
5832
if test "X$pkg" = "X$p"; then
5844
# Check whether --enable-static was given.
5845
if test "${enable_static+set}" = set; then
5846
enableval=$enable_static; p=${PACKAGE-default}
5848
yes) enable_static=yes ;;
5849
no) enable_static=no ;;
5852
# Look at the argument we got. We use all the common list separators.
5853
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5854
for pkg in $enableval; do
5856
if test "X$pkg" = "X$p"; then
5868
# Check whether --enable-fast-install was given.
5869
if test "${enable_fast_install+set}" = set; then
5870
enableval=$enable_fast_install; p=${PACKAGE-default}
5872
yes) enable_fast_install=yes ;;
5873
no) enable_fast_install=no ;;
5875
enable_fast_install=no
5876
# Look at the argument we got. We use all the common list separators.
5877
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5878
for pkg in $enableval; do
5880
if test "X$pkg" = "X$p"; then
5881
enable_fast_install=yes
5888
enable_fast_install=yes
5892
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5893
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5894
if test "${lt_cv_path_SED+set}" = set; then
5895
echo $ECHO_N "(cached) $ECHO_C" >&6
5897
# Loop through the user's path and test for sed and gsed.
5898
# Then use that list of sed's as ones to test for truncation.
5899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
test -z "$as_dir" && as_dir=.
5904
for lt_ac_prog in sed gsed; do
5905
for ac_exec_ext in '' $ac_executable_extensions; do
5906
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5907
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5914
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5915
# along with /bin/sed that truncates output.
5916
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5917
test ! -f $lt_ac_sed && continue
5918
cat /dev/null > conftest.in
5920
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5921
# Check for GNU sed and select it if it is found.
5922
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5923
lt_cv_path_SED=$lt_ac_sed
5927
cat conftest.in conftest.in >conftest.tmp
5928
mv conftest.tmp conftest.in
5929
cp conftest.in conftest.nl
5931
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5932
cmp -s conftest.out conftest.nl || break
5933
# 10000 chars as input seems more than enough
5934
test $lt_ac_count -gt 10 && break
5935
lt_ac_count=`expr $lt_ac_count + 1`
5936
if test $lt_ac_count -gt $lt_ac_max; then
5937
lt_ac_max=$lt_ac_count
5938
lt_cv_path_SED=$lt_ac_sed
5946
{ echo "$as_me:$LINENO: result: $SED" >&5
5947
echo "${ECHO_T}$SED" >&6; }
5949
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5950
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5951
if test "${ac_cv_path_GREP+set}" = set; then
5952
echo $ECHO_N "(cached) $ECHO_C" >&6
5954
# Extract the first word of "grep ggrep" to use in msg output
5955
if test -z "$GREP"; then
5956
set dummy grep ggrep; ac_prog_name=$2
5957
if test "${ac_cv_path_GREP+set}" = set; then
5958
echo $ECHO_N "(cached) $ECHO_C" >&6
5960
ac_path_GREP_found=false
5961
# Loop through the user's path and test for each of PROGNAME-LIST
5962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5966
test -z "$as_dir" && as_dir=.
5967
for ac_prog in grep ggrep; do
5968
for ac_exec_ext in '' $ac_executable_extensions; do
5969
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5970
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5971
# Check for GNU ac_path_GREP and select it if it is found.
5972
# Check for GNU $ac_path_GREP
5973
case `"$ac_path_GREP" --version 2>&1` in
5975
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5978
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5981
cat "conftest.in" "conftest.in" >"conftest.tmp"
5982
mv "conftest.tmp" "conftest.in"
5983
cp "conftest.in" "conftest.nl"
5984
echo 'GREP' >> "conftest.nl"
5985
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5986
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5987
ac_count=`expr $ac_count + 1`
5988
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5989
# Best one so far, save it but keep looking for a better one
5990
ac_cv_path_GREP="$ac_path_GREP"
5991
ac_path_GREP_max=$ac_count
5993
# 10*(2^10) chars as input seems more than enough
5994
test $ac_count -gt 10 && break
5996
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000
$ac_path_GREP_found && break 3
6010
GREP="$ac_cv_path_GREP"
6011
if test -z "$GREP"; then
6012
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6013
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6014
{ (exit 1); exit 1; }; }
6018
ac_cv_path_GREP=$GREP
6023
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6024
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6025
GREP="$ac_cv_path_GREP"
6028
{ echo "$as_me:$LINENO: checking for egrep" >&5
6029
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6030
if test "${ac_cv_path_EGREP+set}" = set; then
6031
echo $ECHO_N "(cached) $ECHO_C" >&6
6033
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034
then ac_cv_path_EGREP="$GREP -E"
6036
# Extract the first word of "egrep" to use in msg output
6037
if test -z "$EGREP"; then
6038
set dummy egrep; ac_prog_name=$2
6039
if test "${ac_cv_path_EGREP+set}" = set; then
6040
echo $ECHO_N "(cached) $ECHO_C" >&6
6042
ac_path_EGREP_found=false
6043
# Loop through the user's path and test for each of PROGNAME-LIST
6044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6048
test -z "$as_dir" && as_dir=.
6049
for ac_prog in egrep; do
6050
for ac_exec_ext in '' $ac_executable_extensions; do
6051
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6052
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6053
# Check for GNU ac_path_EGREP and select it if it is found.
6054
# Check for GNU $ac_path_EGREP
6055
case `"$ac_path_EGREP" --version 2>&1` in
6057
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6060
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6063
cat "conftest.in" "conftest.in" >"conftest.tmp"
6064
mv "conftest.tmp" "conftest.in"
6065
cp "conftest.in" "conftest.nl"
6066
echo 'EGREP' >> "conftest.nl"
6067
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069
ac_count=`expr $ac_count + 1`
6070
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6071
# Best one so far, save it but keep looking for a better one
6072
ac_cv_path_EGREP="$ac_path_EGREP"
6073
ac_path_EGREP_max=$ac_count
6075
# 10*(2^10) chars as input seems more than enough
6076
test $ac_count -gt 10 && break
6078
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6082
$ac_path_EGREP_found && break 3
6092
EGREP="$ac_cv_path_EGREP"
6093
if test -z "$EGREP"; then
6094
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6095
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6096
{ (exit 1); exit 1; }; }
6100
ac_cv_path_EGREP=$EGREP
6106
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6107
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6108
EGREP="$ac_cv_path_EGREP"
6112
# Check whether --with-gnu-ld was given.
6113
if test "${with_gnu_ld+set}" = set; then
6114
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6120
if test "$GCC" = yes; then
6121
# Check if gcc -print-prog-name=ld gives a path.
6122
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6123
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6126
# gcc leaves a trailing carriage return which upsets mingw
6127
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6129
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6132
# Accept absolute paths.
6134
re_direlt='/[^/][^/]*/\.\./'
6135
# Canonicalize the pathname of ld
6136
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6137
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6138
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6140
test -z "$LD" && LD="$ac_prog"
6143
# If it fails, then pretend we aren't using GCC.
6147
# If it is relative, then search for the first ld in PATH.
6151
elif test "$with_gnu_ld" = yes; then
6152
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
6153
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6155
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6156
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6158
if test "${lt_cv_path_LD+set}" = set; then
6159
echo $ECHO_N "(cached) $ECHO_C" >&6
6161
if test -z "$LD"; then
6162
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6163
for ac_dir in $PATH; do
6165
test -z "$ac_dir" && ac_dir=.
6166
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6167
lt_cv_path_LD="$ac_dir/$ac_prog"
6168
# Check to see if the program is GNU ld. I'd rather use --version,
6169
# but apparently some variants of GNU ld only accept -v.
6170
# Break only if it was the GNU/non-GNU ld that we prefer.
6171
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6172
*GNU* | *'with BFD'*)
6173
test "$with_gnu_ld" != no && break
6176
test "$with_gnu_ld" != yes && break
6183
lt_cv_path_LD="$LD" # Let the user override the test with a path.
6188
if test -n "$LD"; then
6189
{ echo "$as_me:$LINENO: result: $LD" >&5
6190
echo "${ECHO_T}$LD" >&6; }
6192
{ echo "$as_me:$LINENO: result: no" >&5
6193
echo "${ECHO_T}no" >&6; }
6195
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6196
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6197
{ (exit 1); exit 1; }; }
6198
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6199
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6200
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6201
echo $ECHO_N "(cached) $ECHO_C" >&6
6203
# I'd rather use --version here, but apparently some GNU lds only accept -v.
6204
case `$LD -v 2>&1 </dev/null` in
6205
*GNU* | *'with BFD'*)
6206
lt_cv_prog_gnu_ld=yes
6209
lt_cv_prog_gnu_ld=no
6213
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6214
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6215
with_gnu_ld=$lt_cv_prog_gnu_ld
6218
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220
if test "${lt_cv_ld_reload_flag+set}" = set; then
6221
echo $ECHO_N "(cached) $ECHO_C" >&6
6223
lt_cv_ld_reload_flag='-r'
6225
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227
reload_flag=$lt_cv_ld_reload_flag
6228
case $reload_flag in
6230
*) reload_flag=" $reload_flag" ;;
6232
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235
if test "$GCC" = yes; then
6236
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6238
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6244
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6245
if test "${lt_cv_path_NM+set}" = set; then
6246
echo $ECHO_N "(cached) $ECHO_C" >&6
6248
if test -n "$NM"; then
6249
# Let the user override the test.
6252
lt_nm_to_check="${ac_tool_prefix}nm"
6253
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6254
lt_nm_to_check="$lt_nm_to_check nm"
6256
for lt_tmp_nm in $lt_nm_to_check; do
6257
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6258
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6260
test -z "$ac_dir" && ac_dir=.
6261
tmp_nm="$ac_dir/$lt_tmp_nm"
6262
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6263
# Check to see if the nm accepts a BSD-compat flag.
6264
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6265
# nm: unknown option "B" ignored
6266
# Tru64's nm complains that /dev/null is an invalid object file
6267
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6268
*/dev/null* | *'Invalid file or object type'*)
6269
lt_cv_path_NM="$tmp_nm -B"
6273
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6275
lt_cv_path_NM="$tmp_nm -p"
6279
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6280
continue # so that we can try to find one that supports BSD flags
6289
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6292
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6293
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6296
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6297
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6298
if test "${lt_cv_deplibs_check_method+set}" = set; then
6299
echo $ECHO_N "(cached) $ECHO_C" >&6
6301
lt_cv_file_magic_cmd='$MAGIC_CMD'
6302
lt_cv_file_magic_test_file=
6303
lt_cv_deplibs_check_method='unknown'
6304
# Need to set the preceding variable on all platforms that support
6305
# interlibrary dependencies.
6306
# 'none' -- dependencies not supported.
6307
# `unknown' -- same as none, but documents that we really don't know.
6308
# 'pass_all' -- all dependencies passed with no checks.
6309
# 'test_compile' -- check by making test program.
6310
# 'file_magic [[regex]]' -- check by looking for files in library path
6311
# which responds to the $file_magic_cmd with a given extended regex.
6312
# If you have `file' or equivalent on your system and you're not sure
6313
# whether `pass_all' will *always* work, you probably want this one.
6317
lt_cv_deplibs_check_method=pass_all
6321
lt_cv_deplibs_check_method=pass_all
6325
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326
lt_cv_file_magic_cmd='/usr/bin/file -L'
6327
lt_cv_file_magic_test_file=/shlib/libc.so
6331
# func_win32_libid is a shell function defined in ltmain.sh
6332
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333
lt_cv_file_magic_cmd='func_win32_libid'
6337
# Base MSYS/MinGW do not provide the 'file' command needed by
6338
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
6339
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6340
lt_cv_file_magic_cmd='$OBJDUMP -f'
6343
darwin* | rhapsody*)
6344
lt_cv_deplibs_check_method=pass_all
6347
freebsd* | dragonfly*)
6348
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6351
# Not sure whether the presence of OpenBSD here was a mistake.
6352
# Let's accept both of them until this is cleared up.
6353
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354
lt_cv_file_magic_cmd=/usr/bin/file
6355
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6359
lt_cv_deplibs_check_method=pass_all
6364
lt_cv_deplibs_check_method=pass_all
6367
hpux10.20* | hpux11*)
6368
lt_cv_file_magic_cmd=/usr/bin/file
6371
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6375
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]'
6376
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6379
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6386
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6390
irix5* | irix6* | nonstopux*)
6392
*-32|*"-32 ") libmagic=32-bit;;
6393
*-n32|*"-n32 ") libmagic=N32;;
6394
*-64|*"-64 ") libmagic=64-bit;;
6395
*) libmagic=never-match;;
6397
lt_cv_deplibs_check_method=pass_all
6400
# This must be Linux ELF.
6401
linux* | k*bsd*-gnu)
6402
lt_cv_deplibs_check_method=pass_all
6405
netbsd* | netbsdelf*-gnu)
6406
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6407
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6414
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415
lt_cv_file_magic_cmd=/usr/bin/file
6416
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6420
lt_cv_deplibs_check_method=unknown
6424
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6431
osf3* | osf4* | osf5*)
6432
lt_cv_deplibs_check_method=pass_all
6436
lt_cv_deplibs_check_method=pass_all
6440
case $host_vendor in
6442
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]'
6443
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6446
lt_cv_deplibs_check_method=pass_all
6449
lt_cv_file_magic_cmd='/bin/file'
6450
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6453
lt_cv_file_magic_cmd='/bin/file'
6454
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6455
lt_cv_file_magic_test_file=/lib/libc.so
6458
lt_cv_deplibs_check_method=pass_all
6461
lt_cv_deplibs_check_method=pass_all
6466
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6467
lt_cv_deplibs_check_method=pass_all
6472
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6473
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6474
file_magic_cmd=$lt_cv_file_magic_cmd
6475
deplibs_check_method=$lt_cv_deplibs_check_method
6476
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6481
# If no C compiler was specified, use CC.
6484
# If no C compiler flags were specified, use CFLAGS.
6485
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6487
# Allow CC to be a program name with arguments.
6490
# Check whether --enable-libtool-lock was given.
6491
if test "${enable_libtool_lock+set}" = set; then
6492
enableval=$enable_libtool_lock;
6495
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6497
# Some flags need to be propagated to the compiler or linker for good
6501
# Find out which ABI we are using.
6502
echo 'int i;' > conftest.$ac_ext
6503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504
(eval $ac_compile) 2>&5
6506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
(exit $ac_status); }; then
6508
case `/usr/bin/file conftest.$ac_objext` in
6520
# Find out which ABI we are using.
6521
echo '#line __oline__ "configure"' > conftest.$ac_ext
6522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523
(eval $ac_compile) 2>&5
6525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
(exit $ac_status); }; then
6527
if test "$lt_cv_prog_gnu_ld" = yes; then
6528
case `/usr/bin/file conftest.$ac_objext` in
6530
LD="${LD-ld} -melf32bsmip"
6533
LD="${LD-ld} -melf32bmipn32"
6536
LD="${LD-ld} -melf64bmip"
6540
case `/usr/bin/file conftest.$ac_objext` in
6556
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6557
# Find out which ABI we are using.
6558
echo 'int i;' > conftest.$ac_ext
6559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560
(eval $ac_compile) 2>&5
6562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563
(exit $ac_status); }; then
6564
case `/usr/bin/file conftest.o` in
6568
LD="${LD-ld} -m elf_i386"
6570
ppc64-*linux*|powerpc64-*linux*)
6571
LD="${LD-ld} -m elf32ppclinux"
6574
LD="${LD-ld} -m elf_s390"
6577
LD="${LD-ld} -m elf32_sparc"
6584
LD="${LD-ld} -m elf_x86_64"
6586
ppc*-*linux*|powerpc*-*linux*)
6587
LD="${LD-ld} -m elf64ppc"
6590
LD="${LD-ld} -m elf64_s390"
6593
LD="${LD-ld} -m elf64_sparc"
6603
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604
SAVE_CFLAGS="$CFLAGS"
6605
CFLAGS="$CFLAGS -belf"
6606
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6607
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6608
if test "${lt_cv_cc_needs_belf+set}" = set; then
6609
echo $ECHO_N "(cached) $ECHO_C" >&6
6612
ac_cpp='$CPP $CPPFLAGS'
6613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
cat >conftest.$ac_ext <<_ACEOF
6620
cat confdefs.h >>conftest.$ac_ext
6621
cat >>conftest.$ac_ext <<_ACEOF
6622
/* end confdefs.h. */
6632
rm -f conftest.$ac_objext conftest$ac_exeext
6633
if { (ac_try="$ac_link"
6635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636
*) ac_try_echo=$ac_try;;
6638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639
(eval "$ac_link") 2>conftest.er1
6641
grep -v '^ *+' conftest.er1 >conftest.err
6643
cat conftest.err >&5
6644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645
(exit $ac_status); } &&
6646
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647
{ (case "(($ac_try" in
6648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649
*) ac_try_echo=$ac_try;;
6651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652
(eval "$ac_try") 2>&5
6654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655
(exit $ac_status); }; } &&
6656
{ ac_try='test -s conftest$ac_exeext'
6657
{ (case "(($ac_try" in
6658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659
*) ac_try_echo=$ac_try;;
6661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662
(eval "$ac_try") 2>&5
6664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665
(exit $ac_status); }; }; then
6666
lt_cv_cc_needs_belf=yes
6668
echo "$as_me: failed program was:" >&5
6669
sed 's/^/| /' conftest.$ac_ext >&5
6671
lt_cv_cc_needs_belf=no
6674
rm -f conftest.err conftest.$ac_objext \
6675
conftest$ac_exeext conftest.$ac_ext
6677
ac_cpp='$CPP $CPPFLAGS'
6678
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6684
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6685
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687
CFLAGS="$SAVE_CFLAGS"
6691
# Find out which ABI we are using.
6692
echo 'int i;' > conftest.$ac_ext
6693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694
(eval $ac_compile) 2>&5
6696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697
(exit $ac_status); }; then
6698
case `/usr/bin/file conftest.o` in
6700
case $lt_cv_prog_gnu_ld in
6701
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6702
*) LD="${LD-ld} -64" ;;
6713
need_locks="$enable_libtool_lock"
6717
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719
if test "${ac_cv_header_stdc+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
cat >conftest.$ac_ext <<_ACEOF
6725
cat confdefs.h >>conftest.$ac_ext
6726
cat >>conftest.$ac_ext <<_ACEOF
6727
/* end confdefs.h. */
6741
rm -f conftest.$ac_objext
6742
if { (ac_try="$ac_compile"
6744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745
*) ac_try_echo=$ac_try;;
6747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748
(eval "$ac_compile") 2>conftest.er1
6750
grep -v '^ *+' conftest.er1 >conftest.err
6752
cat conftest.err >&5
6753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754
(exit $ac_status); } &&
6755
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6756
{ (case "(($ac_try" in
6757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758
*) ac_try_echo=$ac_try;;
6760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761
(eval "$ac_try") 2>&5
6763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
(exit $ac_status); }; } &&
6765
{ ac_try='test -s conftest.$ac_objext'
6766
{ (case "(($ac_try" in
6767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768
*) ac_try_echo=$ac_try;;
6770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771
(eval "$ac_try") 2>&5
6773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
(exit $ac_status); }; }; then
6775
ac_cv_header_stdc=yes
6777
echo "$as_me: failed program was:" >&5
6778
sed 's/^/| /' conftest.$ac_ext >&5
6780
ac_cv_header_stdc=no
6783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785
if test $ac_cv_header_stdc = yes; then
6786
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787
cat >conftest.$ac_ext <<_ACEOF
6790
cat confdefs.h >>conftest.$ac_ext
6791
cat >>conftest.$ac_ext <<_ACEOF
6792
/* end confdefs.h. */
6796
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797
$EGREP "memchr" >/dev/null 2>&1; then
6800
ac_cv_header_stdc=no
6806
if test $ac_cv_header_stdc = yes; then
6807
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6808
cat >conftest.$ac_ext <<_ACEOF
6811
cat confdefs.h >>conftest.$ac_ext
6812
cat >>conftest.$ac_ext <<_ACEOF
6813
/* end confdefs.h. */
6817
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818
$EGREP "free" >/dev/null 2>&1; then
6821
ac_cv_header_stdc=no
6827
if test $ac_cv_header_stdc = yes; then
6828
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829
if test "$cross_compiling" = yes; then
6832
cat >conftest.$ac_ext <<_ACEOF
6835
cat confdefs.h >>conftest.$ac_ext
6836
cat >>conftest.$ac_ext <<_ACEOF
6837
/* end confdefs.h. */
6840
#if ((' ' & 0x0FF) == 0x020)
6841
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6842
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6844
# define ISLOWER(c) \
6845
(('a' <= (c) && (c) <= 'i') \
6846
|| ('j' <= (c) && (c) <= 'r') \
6847
|| ('s' <= (c) && (c) <= 'z'))
6848
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6856
for (i = 0; i < 256; i++)
6857
if (XOR (islower (i), ISLOWER (i))
6858
|| toupper (i) != TOUPPER (i))
6863
rm -f conftest$ac_exeext
6864
if { (ac_try="$ac_link"
6866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867
*) ac_try_echo=$ac_try;;
6869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870
(eval "$ac_link") 2>&5
6872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6874
{ (case "(($ac_try" in
6875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876
*) ac_try_echo=$ac_try;;
6878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879
(eval "$ac_try") 2>&5
6881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882
(exit $ac_status); }; }; then
6885
echo "$as_me: program exited with status $ac_status" >&5
6886
echo "$as_me: failed program was:" >&5
6887
sed 's/^/| /' conftest.$ac_ext >&5
6890
ac_cv_header_stdc=no
6892
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6898
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6899
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6900
if test $ac_cv_header_stdc = yes; then
6902
cat >>confdefs.h <<\_ACEOF
6903
@%:@define STDC_HEADERS 1
6908
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6918
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919
inttypes.h stdint.h unistd.h
6921
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6923
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6924
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6925
echo $ECHO_N "(cached) $ECHO_C" >&6
6927
cat >conftest.$ac_ext <<_ACEOF
6930
cat confdefs.h >>conftest.$ac_ext
6931
cat >>conftest.$ac_ext <<_ACEOF
6932
/* end confdefs.h. */
6933
$ac_includes_default
6935
@%:@include <$ac_header>
6937
rm -f conftest.$ac_objext
6938
if { (ac_try="$ac_compile"
6940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941
*) ac_try_echo=$ac_try;;
6943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944
(eval "$ac_compile") 2>conftest.er1
6946
grep -v '^ *+' conftest.er1 >conftest.err
6948
cat conftest.err >&5
6949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950
(exit $ac_status); } &&
6951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6952
{ (case "(($ac_try" in
6953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954
*) ac_try_echo=$ac_try;;
6956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957
(eval "$ac_try") 2>&5
6959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960
(exit $ac_status); }; } &&
6961
{ ac_try='test -s conftest.$ac_objext'
6962
{ (case "(($ac_try" in
6963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964
*) ac_try_echo=$ac_try;;
6966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967
(eval "$ac_try") 2>&5
6969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970
(exit $ac_status); }; }; then
6971
eval "$as_ac_Header=yes"
6973
echo "$as_me: failed program was:" >&5
6974
sed 's/^/| /' conftest.$ac_ext >&5
6976
eval "$as_ac_Header=no"
6979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981
ac_res=`eval echo '${'$as_ac_Header'}'`
6982
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6983
echo "${ECHO_T}$ac_res" >&6; }
6984
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6985
cat >>confdefs.h <<_ACEOF
6986
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995
for ac_header in dlfcn.h
6997
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7001
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7002
echo $ECHO_N "(cached) $ECHO_C" >&6
7004
ac_res=`eval echo '${'$as_ac_Header'}'`
7005
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7006
echo "${ECHO_T}$ac_res" >&6; }
7008
# Is the header compilable?
7009
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7010
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7011
cat >conftest.$ac_ext <<_ACEOF
7014
cat confdefs.h >>conftest.$ac_ext
7015
cat >>conftest.$ac_ext <<_ACEOF
7016
/* end confdefs.h. */
7017
$ac_includes_default
7018
@%:@include <$ac_header>
7020
rm -f conftest.$ac_objext
7021
if { (ac_try="$ac_compile"
7023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024
*) ac_try_echo=$ac_try;;
7026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027
(eval "$ac_compile") 2>conftest.er1
7029
grep -v '^ *+' conftest.er1 >conftest.err
7031
cat conftest.err >&5
7032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033
(exit $ac_status); } &&
7034
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7035
{ (case "(($ac_try" in
7036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037
*) ac_try_echo=$ac_try;;
7039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040
(eval "$ac_try") 2>&5
7042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
(exit $ac_status); }; } &&
7044
{ ac_try='test -s conftest.$ac_objext'
7045
{ (case "(($ac_try" in
7046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047
*) ac_try_echo=$ac_try;;
7049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050
(eval "$ac_try") 2>&5
7052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053
(exit $ac_status); }; }; then
7054
ac_header_compiler=yes
7056
echo "$as_me: failed program was:" >&5
7057
sed 's/^/| /' conftest.$ac_ext >&5
7059
ac_header_compiler=no
7062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064
echo "${ECHO_T}$ac_header_compiler" >&6; }
7066
# Is the header present?
7067
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7069
cat >conftest.$ac_ext <<_ACEOF
7072
cat confdefs.h >>conftest.$ac_ext
7073
cat >>conftest.$ac_ext <<_ACEOF
7074
/* end confdefs.h. */
7075
@%:@include <$ac_header>
7077
if { (ac_try="$ac_cpp conftest.$ac_ext"
7079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080
*) ac_try_echo=$ac_try;;
7082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7085
grep -v '^ *+' conftest.er1 >conftest.err
7087
cat conftest.err >&5
7088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089
(exit $ac_status); } >/dev/null; then
7090
if test -s conftest.err; then
7091
ac_cpp_err=$ac_c_preproc_warn_flag
7092
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7099
if test -z "$ac_cpp_err"; then
7100
ac_header_preproc=yes
7102
echo "$as_me: failed program was:" >&5
7103
sed 's/^/| /' conftest.$ac_ext >&5
7105
ac_header_preproc=no
7108
rm -f conftest.err conftest.$ac_ext
7109
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110
echo "${ECHO_T}$ac_header_preproc" >&6; }
7112
# So? What about this header?
7113
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7115
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119
ac_header_preproc=yes
7122
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7125
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7126
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7129
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7130
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7135
@%:@@%:@ ------------------------------- @%:@@%:@
7136
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7137
@%:@@%:@ ------------------------------- @%:@@%:@
7139
) | sed "s/^/$as_me: WARNING: /" >&2
7142
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7143
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145
echo $ECHO_N "(cached) $ECHO_C" >&6
7147
eval "$as_ac_Header=\$ac_header_preproc"
7149
ac_res=`eval echo '${'$as_ac_Header'}'`
7150
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7151
echo "${ECHO_T}$ac_res" >&6; }
7154
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7155
cat >>confdefs.h <<_ACEOF
7156
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7166
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7167
(test "X$CXX" != "Xg++"))) ; then
7169
ac_cpp='$CXXCPP $CPPFLAGS'
7170
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7174
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7175
if test -z "$CXXCPP"; then
7176
if test "${ac_cv_prog_CXXCPP+set}" = set; then
7177
echo $ECHO_N "(cached) $ECHO_C" >&6
7179
# Double quotes because CXXCPP needs to be expanded
7180
for CXXCPP in "$CXX -E" "/lib/cpp"
7183
for ac_cxx_preproc_warn_flag in '' yes
7185
# Use a header file that comes with gcc, so configuring glibc
7186
# with a fresh cross-compiler works.
7187
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188
# <limits.h> exists even on freestanding compilers.
7189
# On the NeXT, cc -E runs the code through the compiler's parser,
7190
# not just through cpp. "Syntax error" is here to catch this case.
7191
cat >conftest.$ac_ext <<_ACEOF
7194
cat confdefs.h >>conftest.$ac_ext
7195
cat >>conftest.$ac_ext <<_ACEOF
7196
/* end confdefs.h. */
7198
@%:@ include <limits.h>
7200
@%:@ include <assert.h>
7204
if { (ac_try="$ac_cpp conftest.$ac_ext"
7206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207
*) ac_try_echo=$ac_try;;
7209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212
grep -v '^ *+' conftest.er1 >conftest.err
7214
cat conftest.err >&5
7215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216
(exit $ac_status); } >/dev/null; then
7217
if test -s conftest.err; then
7218
ac_cpp_err=$ac_cxx_preproc_warn_flag
7219
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7226
if test -z "$ac_cpp_err"; then
7229
echo "$as_me: failed program was:" >&5
7230
sed 's/^/| /' conftest.$ac_ext >&5
7232
# Broken: fails on valid input.
7236
rm -f conftest.err conftest.$ac_ext
7238
# OK, works on sane cases. Now check whether nonexistent headers
7239
# can be detected and how.
7240
cat >conftest.$ac_ext <<_ACEOF
7243
cat confdefs.h >>conftest.$ac_ext
7244
cat >>conftest.$ac_ext <<_ACEOF
7245
/* end confdefs.h. */
7246
@%:@include <ac_nonexistent.h>
7248
if { (ac_try="$ac_cpp conftest.$ac_ext"
7250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251
*) ac_try_echo=$ac_try;;
7253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7256
grep -v '^ *+' conftest.er1 >conftest.err
7258
cat conftest.err >&5
7259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260
(exit $ac_status); } >/dev/null; then
7261
if test -s conftest.err; then
7262
ac_cpp_err=$ac_cxx_preproc_warn_flag
7263
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7270
if test -z "$ac_cpp_err"; then
7271
# Broken: success on invalid input.
7274
echo "$as_me: failed program was:" >&5
7275
sed 's/^/| /' conftest.$ac_ext >&5
7277
# Passes both tests.
7282
rm -f conftest.err conftest.$ac_ext
7285
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286
rm -f conftest.err conftest.$ac_ext
7287
if $ac_preproc_ok; then
7292
ac_cv_prog_CXXCPP=$CXXCPP
7295
CXXCPP=$ac_cv_prog_CXXCPP
7297
ac_cv_prog_CXXCPP=$CXXCPP
7299
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7300
echo "${ECHO_T}$CXXCPP" >&6; }
7302
for ac_cxx_preproc_warn_flag in '' yes
7304
# Use a header file that comes with gcc, so configuring glibc
7305
# with a fresh cross-compiler works.
7306
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307
# <limits.h> exists even on freestanding compilers.
7308
# On the NeXT, cc -E runs the code through the compiler's parser,
7309
# not just through cpp. "Syntax error" is here to catch this case.
7310
cat >conftest.$ac_ext <<_ACEOF
7313
cat confdefs.h >>conftest.$ac_ext
7314
cat >>conftest.$ac_ext <<_ACEOF
7315
/* end confdefs.h. */
7317
@%:@ include <limits.h>
7319
@%:@ include <assert.h>
7323
if { (ac_try="$ac_cpp conftest.$ac_ext"
7325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326
*) ac_try_echo=$ac_try;;
7328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7331
grep -v '^ *+' conftest.er1 >conftest.err
7333
cat conftest.err >&5
7334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335
(exit $ac_status); } >/dev/null; then
7336
if test -s conftest.err; then
7337
ac_cpp_err=$ac_cxx_preproc_warn_flag
7338
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7345
if test -z "$ac_cpp_err"; then
7348
echo "$as_me: failed program was:" >&5
7349
sed 's/^/| /' conftest.$ac_ext >&5
7351
# Broken: fails on valid input.
7355
rm -f conftest.err conftest.$ac_ext
7357
# OK, works on sane cases. Now check whether nonexistent headers
7358
# can be detected and how.
7359
cat >conftest.$ac_ext <<_ACEOF
7362
cat confdefs.h >>conftest.$ac_ext
7363
cat >>conftest.$ac_ext <<_ACEOF
7364
/* end confdefs.h. */
7365
@%:@include <ac_nonexistent.h>
7367
if { (ac_try="$ac_cpp conftest.$ac_ext"
7369
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370
*) ac_try_echo=$ac_try;;
7372
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7375
grep -v '^ *+' conftest.er1 >conftest.err
7377
cat conftest.err >&5
7378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379
(exit $ac_status); } >/dev/null; then
7380
if test -s conftest.err; then
7381
ac_cpp_err=$ac_cxx_preproc_warn_flag
7382
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7389
if test -z "$ac_cpp_err"; then
7390
# Broken: success on invalid input.
7393
echo "$as_me: failed program was:" >&5
7394
sed 's/^/| /' conftest.$ac_ext >&5
7396
# Passes both tests.
7401
rm -f conftest.err conftest.$ac_ext
7404
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405
rm -f conftest.err conftest.$ac_ext
7406
if $ac_preproc_ok; then
7409
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7410
See \`config.log' for more details." >&5
7411
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7412
See \`config.log' for more details." >&2;}
7413
{ (exit 1); exit 1; }; }
7417
ac_cpp='$CXXCPP $CPPFLAGS'
7418
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7426
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7427
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7429
if test -n "$ac_tool_prefix"; then
7430
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
7432
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436
if test "${ac_cv_prog_F77+set}" = set; then
7437
echo $ECHO_N "(cached) $ECHO_C" >&6
7439
if test -n "$F77"; then
7440
ac_cv_prog_F77="$F77" # Let the user override the test.
7442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446
test -z "$as_dir" && as_dir=.
7447
for ac_exec_ext in '' $ac_executable_extensions; do
7448
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7450
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460
if test -n "$F77"; then
7461
{ echo "$as_me:$LINENO: result: $F77" >&5
7462
echo "${ECHO_T}$F77" >&6; }
7464
{ echo "$as_me:$LINENO: result: no" >&5
7465
echo "${ECHO_T}no" >&6; }
7469
test -n "$F77" && break
7472
if test -z "$F77"; then
7474
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
7476
# Extract the first word of "$ac_prog", so it can be a program name with args.
7477
set dummy $ac_prog; ac_word=$2
7478
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7481
echo $ECHO_N "(cached) $ECHO_C" >&6
7483
if test -n "$ac_ct_F77"; then
7484
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490
test -z "$as_dir" && as_dir=.
7491
for ac_exec_ext in '' $ac_executable_extensions; do
7492
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493
ac_cv_prog_ac_ct_F77="$ac_prog"
7494
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7504
if test -n "$ac_ct_F77"; then
7505
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7506
echo "${ECHO_T}$ac_ct_F77" >&6; }
7508
{ echo "$as_me:$LINENO: result: no" >&5
7509
echo "${ECHO_T}no" >&6; }
7513
test -n "$ac_ct_F77" && break
7516
if test "x$ac_ct_F77" = x; then
7519
case $cross_compiling:$ac_tool_warned in
7521
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522
whose name does not start with the host triplet. If you think this
7523
configuration is useful to you, please write to autoconf@gnu.org." >&5
7524
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525
whose name does not start with the host triplet. If you think this
7526
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527
ac_tool_warned=yes ;;
7534
# Provide some information about the compiler.
7535
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7536
ac_compiler=`set X $ac_compile; echo $2`
7537
{ (ac_try="$ac_compiler --version >&5"
7539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540
*) ac_try_echo=$ac_try;;
7542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543
(eval "$ac_compiler --version >&5") 2>&5
7545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546
(exit $ac_status); }
7547
{ (ac_try="$ac_compiler -v >&5"
7549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550
*) ac_try_echo=$ac_try;;
7552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553
(eval "$ac_compiler -v >&5") 2>&5
7555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556
(exit $ac_status); }
7557
{ (ac_try="$ac_compiler -V >&5"
7559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560
*) ac_try_echo=$ac_try;;
7562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563
(eval "$ac_compiler -V >&5") 2>&5
7565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566
(exit $ac_status); }
7569
# If we don't use `.F' as extension, the preprocessor is not run on the
7570
# input file. (Note that this only needs to work for GNU compilers.)
7573
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7574
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7575
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7576
echo $ECHO_N "(cached) $ECHO_C" >&6
7578
cat >conftest.$ac_ext <<_ACEOF
7586
rm -f conftest.$ac_objext
7587
if { (ac_try="$ac_compile"
7589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590
*) ac_try_echo=$ac_try;;
7592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593
(eval "$ac_compile") 2>conftest.er1
7595
grep -v '^ *+' conftest.er1 >conftest.err
7597
cat conftest.err >&5
7598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599
(exit $ac_status); } &&
7600
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7601
{ (case "(($ac_try" in
7602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603
*) ac_try_echo=$ac_try;;
7605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606
(eval "$ac_try") 2>&5
7608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609
(exit $ac_status); }; } &&
7610
{ ac_try='test -s conftest.$ac_objext'
7611
{ (case "(($ac_try" in
7612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613
*) ac_try_echo=$ac_try;;
7615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616
(eval "$ac_try") 2>&5
7618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619
(exit $ac_status); }; }; then
7622
echo "$as_me: failed program was:" >&5
7623
sed 's/^/| /' conftest.$ac_ext >&5
7628
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7632
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7633
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7635
ac_test_FFLAGS=${FFLAGS+set}
7636
ac_save_FFLAGS=$FFLAGS
7638
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7639
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7640
if test "${ac_cv_prog_f77_g+set}" = set; then
7641
echo $ECHO_N "(cached) $ECHO_C" >&6
7644
cat >conftest.$ac_ext <<_ACEOF
7649
rm -f conftest.$ac_objext
7650
if { (ac_try="$ac_compile"
7652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653
*) ac_try_echo=$ac_try;;
7655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656
(eval "$ac_compile") 2>conftest.er1
7658
grep -v '^ *+' conftest.er1 >conftest.err
7660
cat conftest.err >&5
7661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662
(exit $ac_status); } &&
7663
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7664
{ (case "(($ac_try" in
7665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666
*) ac_try_echo=$ac_try;;
7668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669
(eval "$ac_try") 2>&5
7671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672
(exit $ac_status); }; } &&
7673
{ ac_try='test -s conftest.$ac_objext'
7674
{ (case "(($ac_try" in
7675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676
*) ac_try_echo=$ac_try;;
7678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679
(eval "$ac_try") 2>&5
7681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682
(exit $ac_status); }; }; then
7683
ac_cv_prog_f77_g=yes
7685
echo "$as_me: failed program was:" >&5
7686
sed 's/^/| /' conftest.$ac_ext >&5
7691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7695
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7696
if test "$ac_test_FFLAGS" = set; then
7697
FFLAGS=$ac_save_FFLAGS
7698
elif test $ac_cv_prog_f77_g = yes; then
7699
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7705
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7712
G77=`test $ac_compiler_gnu = yes && echo yes`
7714
ac_cpp='$CPP $CPPFLAGS'
7715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7723
# find the maximum length of command line arguments
7724
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7725
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7726
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7727
echo $ECHO_N "(cached) $ECHO_C" >&6
7734
# On DJGPP, this test can blow up pretty badly due to problems in libc
7735
# (any single argument exceeding 2000 bytes causes a buffer overrun
7736
# during glob expansion). Even if it were fixed, the result of this
7737
# check would be larger than it should be.
7738
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7742
# Under GNU Hurd, this test is not required because there is
7743
# no limit to the length of command line arguments.
7744
# Libtool will interpret -1 as no limit whatsoever
7745
lt_cv_sys_max_cmd_len=-1;
7749
# On Win9x/ME, this test blows up -- it succeeds, but takes
7750
# about 5 minutes as the teststring grows exponentially.
7751
# Worse, since 9x/ME are not pre-emptively multitasking,
7752
# you end up with a "frozen" computer, even though with patience
7753
# the test eventually succeeds (with a max line length of 256k).
7754
# Instead, let's just punt: use the minimum linelength reported by
7755
# all of the supported platforms: 8192 (on NT/2K/XP).
7756
lt_cv_sys_max_cmd_len=8192;
7760
# On AmigaOS with pdksh, this test takes hours, literally.
7761
# So we just punt and use a minimum line length of 8192.
7762
lt_cv_sys_max_cmd_len=8192;
7765
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7766
# This has been around since 386BSD, at least. Likely further.
7767
if test -x /sbin/sysctl; then
7768
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7769
elif test -x /usr/sbin/sysctl; then
7770
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7772
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7774
# And add a safety zone
7775
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7776
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7780
# We know the value 262144 and hardcode it with a safety zone (like BSD)
7781
lt_cv_sys_max_cmd_len=196608
7785
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7786
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7787
# nice to cause kernel panics so lets avoid the loop below.
7788
# First set a reasonable default.
7789
lt_cv_sys_max_cmd_len=16384
7791
if test -x /sbin/sysconfig; then
7792
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7793
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7798
lt_cv_sys_max_cmd_len=102400
7800
sysv5* | sco5v6* | sysv4.2uw2*)
7801
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7802
if test -n "$kargmax"; then
7803
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7805
lt_cv_sys_max_cmd_len=32768
7809
# If test is not a shell built-in, we'll probably end up computing a
7810
# maximum length that is only half of the actual maximum length, but
7812
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7813
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7814
= "XX$teststring") >/dev/null 2>&1 &&
7815
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7816
lt_cv_sys_max_cmd_len=$new_result &&
7817
test $i != 17 # 1/2 MB should be enough
7820
teststring=$teststring$teststring
7823
# Add a significant safety factor because C++ compilers can tack on massive
7824
# amounts of additional arguments before passing them to the linker.
7825
# It appears as though 1/2 is a usable value.
7826
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7832
if test -n $lt_cv_sys_max_cmd_len ; then
7833
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7834
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7836
{ echo "$as_me:$LINENO: result: none" >&5
7837
echo "${ECHO_T}none" >&6; }
7843
# Check for command to grab the raw symbol name followed by C symbol from nm.
7844
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7845
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7846
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7847
echo $ECHO_N "(cached) $ECHO_C" >&6
7850
# These are sane defaults that work on at least a few old systems.
7851
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7853
# Character class describing NM global symbol codes.
7854
symcode='[BCDEGRST]'
7856
# Regexp to match symbols that can be accessed directly from C.
7857
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7859
# Transform an extracted symbol line into a proper C declaration
7860
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7862
# Transform an extracted symbol line into symbol name and symbol address
7863
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'"
7865
# Define system-specific variables.
7870
cygwin* | mingw* | pw32*)
7871
symcode='[ABCDGISTW]'
7873
hpux*) # Its linker distinguishes data from code symbols
7874
if test "$host_cpu" = ia64; then
7875
symcode='[ABCDEGRST]'
7877
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7878
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'"
7880
linux* | k*bsd*-gnu)
7881
if test "$host_cpu" = ia64; then
7882
symcode='[ABCDGIRSTW]'
7883
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7884
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'"
7888
symcode='[BCDEGRST]'
7891
symcode='[BCDEGQRST]'
7902
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7910
# Handle CRLF in mingw tool chain
7914
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7918
# If we're using GNU nm, then use its standard symbol codes.
7919
case `$NM -V 2>&1` in
7920
*GNU* | *'with BFD'*)
7921
symcode='[ABCDGIRSTW]' ;;
7924
# Try without a prefix undercore, then with it.
7925
for ac_symprfx in "" "_"; do
7927
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7928
symxfrm="\\1 $ac_symprfx\\2 \\2"
7930
# Write the raw and C identifiers.
7931
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7933
# Check to see that the pipe works correctly.
7937
cat > conftest.$ac_ext <<EOF
7942
void nm_test_func(){}
7946
int main(){nm_test_var='a';nm_test_func();return(0);}
7949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950
(eval $ac_compile) 2>&5
7952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953
(exit $ac_status); }; then
7954
# Now try to grab the symbols.
7956
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7957
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960
(exit $ac_status); } && test -s "$nlist"; then
7961
# Try sorting and uniquifying the output.
7962
if sort "$nlist" | uniq > "$nlist"T; then
7963
mv -f "$nlist"T "$nlist"
7968
# Make sure that we snagged all the symbols we need.
7969
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7970
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7971
cat <<EOF > conftest.$ac_ext
7977
# Now generate the symbol file.
7978
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7980
cat <<EOF >> conftest.$ac_ext
7981
#if defined (__STDC__) && __STDC__
7982
# define lt_ptr_t void *
7984
# define lt_ptr_t char *
7988
/* The mapping between symbol names and symbols. */
7993
lt_preloaded_symbols[] =
7996
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7997
cat <<\EOF >> conftest.$ac_ext
8005
# Now try linking the two files.
8006
mv conftest.$ac_objext conftstm.$ac_objext
8007
lt_save_LIBS="$LIBS"
8008
lt_save_CFLAGS="$CFLAGS"
8009
LIBS="conftstm.$ac_objext"
8010
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012
(eval $ac_link) 2>&5
8014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015
(exit $ac_status); } && test -s conftest${ac_exeext}; then
8018
LIBS="$lt_save_LIBS"
8019
CFLAGS="$lt_save_CFLAGS"
8021
echo "cannot find nm_test_func in $nlist" >&5
8024
echo "cannot find nm_test_var in $nlist" >&5
8027
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8030
echo "$progname: failed program was:" >&5
8031
cat conftest.$ac_ext >&5
8033
rm -f conftest* conftst*
8035
# Do not use the global_symbol_pipe unless it works.
8036
if test "$pipe_works" = yes; then
8039
lt_cv_sys_global_symbol_pipe=
8045
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8046
lt_cv_sys_global_symbol_to_cdecl=
8048
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8049
{ echo "$as_me:$LINENO: result: failed" >&5
8050
echo "${ECHO_T}failed" >&6; }
8052
{ echo "$as_me:$LINENO: result: ok" >&5
8053
echo "${ECHO_T}ok" >&6; }
8056
{ echo "$as_me:$LINENO: checking for objdir" >&5
8057
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8058
if test "${lt_cv_objdir+set}" = set; then
8059
echo $ECHO_N "(cached) $ECHO_C" >&6
8061
rm -f .libs 2>/dev/null
8062
mkdir .libs 2>/dev/null
8063
if test -d .libs; then
8066
# MS-DOS does not allow filenames that begin with a dot.
8069
rmdir .libs 2>/dev/null
8071
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8072
echo "${ECHO_T}$lt_cv_objdir" >&6; }
8073
objdir=$lt_cv_objdir
8081
# AIX sometimes has problems with the GCC collect2 program. For some
8082
# reason, if we set the COLLECT_NAMES environment variable, the problems
8083
# vanish in a puff of smoke.
8084
if test "X${COLLECT_NAMES+set}" != Xset; then
8086
export COLLECT_NAMES
8091
# Sed substitution that helps us do robust quoting. It backslashifies
8092
# metacharacters that are still active within double-quoted strings.
8093
Xsed='sed -e 1s/^X//'
8094
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8096
# Same as above, but do not quote variable references.
8097
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8099
# Sed substitution to delay expansion of an escaped shell variable in a
8100
# double_quote_subst'ed string.
8101
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8103
# Sed substitution to avoid accidental globbing in evaled expressions
8104
no_glob_subst='s/\*/\\\*/g'
8110
default_ofile=libtool
8111
can_build_shared=yes
8113
# All known linkers require a `.a' archive for static linking (except MSVC,
8114
# which needs '.lib').
8116
ltmain="$ac_aux_dir/ltmain.sh"
8117
ofile="$default_ofile"
8118
with_gnu_ld="$lt_cv_prog_gnu_ld"
8120
if test -n "$ac_tool_prefix"; then
8121
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8122
set dummy ${ac_tool_prefix}ar; ac_word=$2
8123
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125
if test "${ac_cv_prog_AR+set}" = set; then
8126
echo $ECHO_N "(cached) $ECHO_C" >&6
8128
if test -n "$AR"; then
8129
ac_cv_prog_AR="$AR" # Let the user override the test.
8131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135
test -z "$as_dir" && as_dir=.
8136
for ac_exec_ext in '' $ac_executable_extensions; do
8137
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8138
ac_cv_prog_AR="${ac_tool_prefix}ar"
8139
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149
if test -n "$AR"; then
8150
{ echo "$as_me:$LINENO: result: $AR" >&5
8151
echo "${ECHO_T}$AR" >&6; }
8153
{ echo "$as_me:$LINENO: result: no" >&5
8154
echo "${ECHO_T}no" >&6; }
8159
if test -z "$ac_cv_prog_AR"; then
8161
# Extract the first word of "ar", so it can be a program name with args.
8162
set dummy ar; ac_word=$2
8163
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8166
echo $ECHO_N "(cached) $ECHO_C" >&6
8168
if test -n "$ac_ct_AR"; then
8169
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175
test -z "$as_dir" && as_dir=.
8176
for ac_exec_ext in '' $ac_executable_extensions; do
8177
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8178
ac_cv_prog_ac_ct_AR="ar"
8179
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8189
if test -n "$ac_ct_AR"; then
8190
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8191
echo "${ECHO_T}$ac_ct_AR" >&6; }
8193
{ echo "$as_me:$LINENO: result: no" >&5
8194
echo "${ECHO_T}no" >&6; }
8197
if test "x$ac_ct_AR" = x; then
8200
case $cross_compiling:$ac_tool_warned in
8202
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8203
whose name does not start with the host triplet. If you think this
8204
configuration is useful to you, please write to autoconf@gnu.org." >&5
8205
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8206
whose name does not start with the host triplet. If you think this
8207
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8208
ac_tool_warned=yes ;;
8216
if test -n "$ac_tool_prefix"; then
8217
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8218
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8219
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221
if test "${ac_cv_prog_RANLIB+set}" = set; then
8222
echo $ECHO_N "(cached) $ECHO_C" >&6
8224
if test -n "$RANLIB"; then
8225
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231
test -z "$as_dir" && as_dir=.
8232
for ac_exec_ext in '' $ac_executable_extensions; do
8233
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8235
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244
RANLIB=$ac_cv_prog_RANLIB
8245
if test -n "$RANLIB"; then
8246
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
8247
echo "${ECHO_T}$RANLIB" >&6; }
8249
{ echo "$as_me:$LINENO: result: no" >&5
8250
echo "${ECHO_T}no" >&6; }
8255
if test -z "$ac_cv_prog_RANLIB"; then
8256
ac_ct_RANLIB=$RANLIB
8257
# Extract the first word of "ranlib", so it can be a program name with args.
8258
set dummy ranlib; ac_word=$2
8259
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8260
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8262
echo $ECHO_N "(cached) $ECHO_C" >&6
8264
if test -n "$ac_ct_RANLIB"; then
8265
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271
test -z "$as_dir" && as_dir=.
8272
for ac_exec_ext in '' $ac_executable_extensions; do
8273
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274
ac_cv_prog_ac_ct_RANLIB="ranlib"
8275
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8285
if test -n "$ac_ct_RANLIB"; then
8286
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8287
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8289
{ echo "$as_me:$LINENO: result: no" >&5
8290
echo "${ECHO_T}no" >&6; }
8293
if test "x$ac_ct_RANLIB" = x; then
8296
case $cross_compiling:$ac_tool_warned in
8298
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8299
whose name does not start with the host triplet. If you think this
8300
configuration is useful to you, please write to autoconf@gnu.org." >&5
8301
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8302
whose name does not start with the host triplet. If you think this
8303
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8304
ac_tool_warned=yes ;;
8306
RANLIB=$ac_ct_RANLIB
8309
RANLIB="$ac_cv_prog_RANLIB"
8312
if test -n "$ac_tool_prefix"; then
8313
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314
set dummy ${ac_tool_prefix}strip; ac_word=$2
8315
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317
if test "${ac_cv_prog_STRIP+set}" = set; then
8318
echo $ECHO_N "(cached) $ECHO_C" >&6
8320
if test -n "$STRIP"; then
8321
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327
test -z "$as_dir" && as_dir=.
8328
for ac_exec_ext in '' $ac_executable_extensions; do
8329
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340
STRIP=$ac_cv_prog_STRIP
8341
if test -n "$STRIP"; then
8342
{ echo "$as_me:$LINENO: result: $STRIP" >&5
8343
echo "${ECHO_T}$STRIP" >&6; }
8345
{ echo "$as_me:$LINENO: result: no" >&5
8346
echo "${ECHO_T}no" >&6; }
8351
if test -z "$ac_cv_prog_STRIP"; then
8353
# Extract the first word of "strip", so it can be a program name with args.
8354
set dummy strip; ac_word=$2
8355
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8358
echo $ECHO_N "(cached) $ECHO_C" >&6
8360
if test -n "$ac_ct_STRIP"; then
8361
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367
test -z "$as_dir" && as_dir=.
8368
for ac_exec_ext in '' $ac_executable_extensions; do
8369
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8370
ac_cv_prog_ac_ct_STRIP="strip"
8371
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381
if test -n "$ac_ct_STRIP"; then
8382
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8383
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8385
{ echo "$as_me:$LINENO: result: no" >&5
8386
echo "${ECHO_T}no" >&6; }
8389
if test "x$ac_ct_STRIP" = x; then
8392
case $cross_compiling:$ac_tool_warned in
8394
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8395
whose name does not start with the host triplet. If you think this
8396
configuration is useful to you, please write to autoconf@gnu.org." >&5
8397
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8398
whose name does not start with the host triplet. If you think this
8399
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8400
ac_tool_warned=yes ;;
8405
STRIP="$ac_cv_prog_STRIP"
8410
old_CFLAGS="$CFLAGS"
8412
# Set sane defaults for various variables
8413
test -z "$AR" && AR=ar
8414
test -z "$AR_FLAGS" && AR_FLAGS=cru
8415
test -z "$AS" && AS=as
8416
test -z "$CC" && CC=cc
8417
test -z "$LTCC" && LTCC=$CC
8418
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419
test -z "$DLLTOOL" && DLLTOOL=dlltool
8420
test -z "$LD" && LD=ld
8421
test -z "$LN_S" && LN_S="ln -s"
8422
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423
test -z "$NM" && NM=nm
8424
test -z "$SED" && SED=sed
8425
test -z "$OBJDUMP" && OBJDUMP=objdump
8426
test -z "$RANLIB" && RANLIB=:
8427
test -z "$STRIP" && STRIP=:
8428
test -z "$ac_objext" && ac_objext=o
8430
# Determine commands to create old-style static archives.
8431
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8432
old_postinstall_cmds='chmod 644 $oldlib'
8433
old_postuninstall_cmds=
8435
if test -n "$RANLIB"; then
8438
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8441
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8444
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8447
for cc_temp in $compiler""; do
8449
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8455
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8458
# Only perform the check for file, if the check method requires it
8459
case $deplibs_check_method in
8461
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8464
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8465
echo $ECHO_N "(cached) $ECHO_C" >&6
8469
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472
lt_save_MAGIC_CMD="$MAGIC_CMD"
8473
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475
for ac_dir in $ac_dummy; do
8477
test -z "$ac_dir" && ac_dir=.
8478
if test -f $ac_dir/${ac_tool_prefix}file; then
8479
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480
if test -n "$file_magic_test_file"; then
8481
case $deplibs_check_method in
8483
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486
$EGREP "$file_magic_regex" > /dev/null; then
8491
*** Warning: the command libtool uses to detect shared libraries,
8492
*** $file_magic_cmd, produces output that libtool cannot recognize.
8493
*** The result is that libtool may fail to recognize shared libraries
8494
*** as such. This will affect the creation of libtool libraries that
8495
*** depend on shared libraries, but programs linked with such libtool
8496
*** libraries will work regardless of this problem. Nevertheless, you
8497
*** may want to report the problem to your system manager and/or to
8498
*** bug-libtool@gnu.org
8508
MAGIC_CMD="$lt_save_MAGIC_CMD"
8513
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514
if test -n "$MAGIC_CMD"; then
8515
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8518
{ echo "$as_me:$LINENO: result: no" >&5
8519
echo "${ECHO_T}no" >&6; }
8522
if test -z "$lt_cv_path_MAGIC_CMD"; then
8523
if test -n "$ac_tool_prefix"; then
8524
{ echo "$as_me:$LINENO: checking for file" >&5
8525
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8526
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527
echo $ECHO_N "(cached) $ECHO_C" >&6
8531
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8534
lt_save_MAGIC_CMD="$MAGIC_CMD"
8535
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537
for ac_dir in $ac_dummy; do
8539
test -z "$ac_dir" && ac_dir=.
8540
if test -f $ac_dir/file; then
8541
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542
if test -n "$file_magic_test_file"; then
8543
case $deplibs_check_method in
8545
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548
$EGREP "$file_magic_regex" > /dev/null; then
8553
*** Warning: the command libtool uses to detect shared libraries,
8554
*** $file_magic_cmd, produces output that libtool cannot recognize.
8555
*** The result is that libtool may fail to recognize shared libraries
8556
*** as such. This will affect the creation of libtool libraries that
8557
*** depend on shared libraries, but programs linked with such libtool
8558
*** libraries will work regardless of this problem. Nevertheless, you
8559
*** may want to report the problem to your system manager and/or to
8560
*** bug-libtool@gnu.org
8570
MAGIC_CMD="$lt_save_MAGIC_CMD"
8575
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576
if test -n "$MAGIC_CMD"; then
8577
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8580
{ echo "$as_me:$LINENO: result: no" >&5
8581
echo "${ECHO_T}no" >&6; }
8596
# Check whether --enable-libtool-lock was given.
8597
if test "${enable_libtool_lock+set}" = set; then
8598
enableval=$enable_libtool_lock;
8601
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8604
# Check whether --with-pic was given.
8605
if test "${with_pic+set}" = set; then
8606
withval=$with_pic; pic_mode="$withval"
8611
test -z "$pic_mode" && pic_mode=default
8613
# Use C for the default configuration in the libtool script
8617
ac_cpp='$CPP $CPPFLAGS'
8618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8623
# Source file extension for C test sources.
8626
# Object file extension for compiled C test sources.
8630
# Code to be used in simple compile tests
8631
lt_simple_compile_test_code="int some_variable = 0;\n"
8633
# Code to be used in simple link tests
8634
lt_simple_link_test_code='int main(){return(0);}\n'
8637
# If no C compiler was specified, use CC.
8640
# If no C compiler flags were specified, use CFLAGS.
8641
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8643
# Allow CC to be a program name with arguments.
8647
# save warnings/boilerplate of simple test code
8648
ac_outfile=conftest.$ac_objext
8649
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8650
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651
_lt_compiler_boilerplate=`cat conftest.err`
8654
ac_outfile=conftest.$ac_objext
8655
printf "$lt_simple_link_test_code" >conftest.$ac_ext
8656
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657
_lt_linker_boilerplate=`cat conftest.err`
8662
## There is no encapsulation within the following macros, do not change
8663
## the running order or otherwise move them around unless you know exactly
8664
## what you are doing...
8666
lt_prog_compiler_no_builtin_flag=
8668
if test "$GCC" = yes; then
8669
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8672
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8673
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8674
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8675
echo $ECHO_N "(cached) $ECHO_C" >&6
8677
lt_cv_prog_compiler_rtti_exceptions=no
8678
ac_outfile=conftest.$ac_objext
8679
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
lt_compiler_flag="-fno-rtti -fno-exceptions"
8681
# Insert the option either (1) after the last *FLAGS variable, or
8682
# (2) before a word containing "conftest.", or (3) at the end.
8683
# Note that $ac_compile itself does not contain backslashes and begins
8684
# with a dollar sign (not a hyphen), so the echo should work correctly.
8685
# The option is referenced via a variable to avoid confusing sed.
8686
lt_compile=`echo "$ac_compile" | $SED \
8687
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689
-e 's:$: $lt_compiler_flag:'`
8690
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8691
(eval "$lt_compile" 2>conftest.err)
8693
cat conftest.err >&5
8694
echo "$as_me:__oline__: \$? = $ac_status" >&5
8695
if (exit $ac_status) && test -s "$ac_outfile"; then
8696
# The compiler can only warn and ignore the option if not recognized
8697
# So say no if there are warnings other than the usual output.
8698
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8699
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8700
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8701
lt_cv_prog_compiler_rtti_exceptions=yes
8707
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8708
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8710
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8711
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8718
lt_prog_compiler_wl=
8719
lt_prog_compiler_pic=
8720
lt_prog_compiler_static=
8722
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8723
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8725
if test "$GCC" = yes; then
8726
lt_prog_compiler_wl='-Wl,'
8727
lt_prog_compiler_static='-static'
8731
# All AIX code is PIC.
8732
if test "$host_cpu" = ia64; then
8733
# AIX 5 now supports IA64 processor
8734
lt_prog_compiler_static='-Bstatic'
8739
# FIXME: we need at least 68020 code to build shared libraries, but
8740
# adding the `-m68020' flag to GCC prevents building anything better,
8742
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8745
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8746
# PIC is the default for these OSes.
8749
mingw* | pw32* | os2*)
8750
# This hack is so that the source file can tell whether it is being
8751
# built for inclusion in a dll (and should export symbols for example).
8752
lt_prog_compiler_pic='-DDLL_EXPORT'
8755
darwin* | rhapsody*)
8756
# PIC is the default on this platform
8757
# Common symbols not allowed in MH_DYLIB files
8758
lt_prog_compiler_pic='-fno-common'
8762
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8763
# Instead, we relocate shared libraries at runtime.
8767
# Just because we use GCC doesn't mean we suddenly get shared libraries
8768
# on systems that don't support them.
8769
lt_prog_compiler_can_build_shared=no
8774
if test -d /usr/nec; then
8775
lt_prog_compiler_pic=-Kconform_pic
8780
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8787
lt_prog_compiler_pic='-fPIC'
8793
lt_prog_compiler_pic='-fPIC'
8797
# PORTME Check for flag to pass linker flags through the system compiler.
8800
lt_prog_compiler_wl='-Wl,'
8801
if test "$host_cpu" = ia64; then
8802
# AIX 5 now supports IA64 processor
8803
lt_prog_compiler_static='-Bstatic'
8805
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8809
# PIC is the default on this platform
8810
# Common symbols not allowed in MH_DYLIB files
8811
case $cc_basename in
8813
lt_prog_compiler_pic='-qnocommon'
8814
lt_prog_compiler_wl='-Wl,'
8819
mingw* | pw32* | os2*)
8820
# This hack is so that the source file can tell whether it is being
8821
# built for inclusion in a dll (and should export symbols for example).
8822
lt_prog_compiler_pic='-DDLL_EXPORT'
8825
hpux9* | hpux10* | hpux11*)
8826
lt_prog_compiler_wl='-Wl,'
8827
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8834
lt_prog_compiler_pic='+Z'
8837
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8838
lt_prog_compiler_static='${wl}-a ${wl}archive'
8841
irix5* | irix6* | nonstopux*)
8842
lt_prog_compiler_wl='-Wl,'
8843
# PIC (with -KPIC) is the default.
8844
lt_prog_compiler_static='-non_shared'
8848
lt_prog_compiler_pic='-KPIC'
8849
lt_prog_compiler_static='-Bstatic'
8852
linux* | k*bsd*-gnu)
8853
case $cc_basename in
8855
lt_prog_compiler_wl='-Wl,'
8856
lt_prog_compiler_pic='-KPIC'
8857
lt_prog_compiler_static='-static'
8859
pgcc* | pgf77* | pgf90* | pgf95*)
8860
# Portland Group compilers (*not* the Pentium gcc compiler,
8861
# which looks to be a dead project)
8862
lt_prog_compiler_wl='-Wl,'
8863
lt_prog_compiler_pic='-fpic'
8864
lt_prog_compiler_static='-Bstatic'
8867
lt_prog_compiler_wl='-Wl,'
8868
# All Alpha code is PIC.
8869
lt_prog_compiler_static='-non_shared'
8874
osf3* | osf4* | osf5*)
8875
lt_prog_compiler_wl='-Wl,'
8876
# All OSF/1 code is PIC.
8877
lt_prog_compiler_static='-non_shared'
8881
lt_prog_compiler_pic='-KPIC'
8882
lt_prog_compiler_static='-Bstatic'
8883
case $cc_basename in
8885
lt_prog_compiler_wl='-Qoption ld ';;
8887
lt_prog_compiler_wl='-Wl,';;
8892
lt_prog_compiler_wl='-Qoption ld '
8893
lt_prog_compiler_pic='-PIC'
8894
lt_prog_compiler_static='-Bstatic'
8897
sysv4 | sysv4.2uw2* | sysv4.3*)
8898
lt_prog_compiler_wl='-Wl,'
8899
lt_prog_compiler_pic='-KPIC'
8900
lt_prog_compiler_static='-Bstatic'
8904
if test -d /usr/nec ;then
8905
lt_prog_compiler_pic='-Kconform_pic'
8906
lt_prog_compiler_static='-Bstatic'
8910
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8911
lt_prog_compiler_wl='-Wl,'
8912
lt_prog_compiler_pic='-KPIC'
8913
lt_prog_compiler_static='-Bstatic'
8917
lt_prog_compiler_wl='-Wl,'
8918
lt_prog_compiler_can_build_shared=no
8922
lt_prog_compiler_pic='-pic'
8923
lt_prog_compiler_static='-Bstatic'
8927
lt_prog_compiler_can_build_shared=no
8932
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8933
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8936
# Check to make sure the PIC flag actually works.
8938
if test -n "$lt_prog_compiler_pic"; then
8940
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8941
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8942
if test "${lt_prog_compiler_pic_works+set}" = set; then
8943
echo $ECHO_N "(cached) $ECHO_C" >&6
8945
lt_prog_compiler_pic_works=no
8946
ac_outfile=conftest.$ac_objext
8947
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8949
# Insert the option either (1) after the last *FLAGS variable, or
8950
# (2) before a word containing "conftest.", or (3) at the end.
8951
# Note that $ac_compile itself does not contain backslashes and begins
8952
# with a dollar sign (not a hyphen), so the echo should work correctly.
8953
# The option is referenced via a variable to avoid confusing sed.
8954
lt_compile=`echo "$ac_compile" | $SED \
8955
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957
-e 's:$: $lt_compiler_flag:'`
8958
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8959
(eval "$lt_compile" 2>conftest.err)
8961
cat conftest.err >&5
8962
echo "$as_me:__oline__: \$? = $ac_status" >&5
8963
if (exit $ac_status) && test -s "$ac_outfile"; then
8964
# The compiler can only warn and ignore the option if not recognized
8965
# So say no if there are warnings other than the usual output.
8966
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8967
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8969
lt_prog_compiler_pic_works=yes
8975
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8976
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8978
if test x"$lt_prog_compiler_pic_works" = xyes; then
8979
case $lt_prog_compiler_pic in
8981
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8984
lt_prog_compiler_pic=
8985
lt_prog_compiler_can_build_shared=no
8990
# For platforms which do not support PIC, -DPIC is meaningless:
8992
lt_prog_compiler_pic=
8995
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9000
# Check to make sure the static flag actually works.
9002
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9003
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9004
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9005
if test "${lt_prog_compiler_static_works+set}" = set; then
9006
echo $ECHO_N "(cached) $ECHO_C" >&6
9008
lt_prog_compiler_static_works=no
9009
save_LDFLAGS="$LDFLAGS"
9010
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9011
printf "$lt_simple_link_test_code" > conftest.$ac_ext
9012
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9013
# The linker can only warn and ignore the option if not recognized
9014
# So say no if there are warnings
9015
if test -s conftest.err; then
9016
# Append any errors to the config.log.
9017
cat conftest.err 1>&5
9018
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9019
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9020
if diff conftest.exp conftest.er2 >/dev/null; then
9021
lt_prog_compiler_static_works=yes
9024
lt_prog_compiler_static_works=yes
9028
LDFLAGS="$save_LDFLAGS"
9031
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9032
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9034
if test x"$lt_prog_compiler_static_works" = xyes; then
9037
lt_prog_compiler_static=
9041
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9042
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9043
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9044
echo $ECHO_N "(cached) $ECHO_C" >&6
9046
lt_cv_prog_compiler_c_o=no
9047
$rm -r conftest 2>/dev/null
9051
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9053
lt_compiler_flag="-o out/conftest2.$ac_objext"
9054
# Insert the option either (1) after the last *FLAGS variable, or
9055
# (2) before a word containing "conftest.", or (3) at the end.
9056
# Note that $ac_compile itself does not contain backslashes and begins
9057
# with a dollar sign (not a hyphen), so the echo should work correctly.
9058
lt_compile=`echo "$ac_compile" | $SED \
9059
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061
-e 's:$: $lt_compiler_flag:'`
9062
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9063
(eval "$lt_compile" 2>out/conftest.err)
9065
cat out/conftest.err >&5
9066
echo "$as_me:__oline__: \$? = $ac_status" >&5
9067
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9069
# The compiler can only warn and ignore the option if not recognized
9070
# So say no if there are warnings
9071
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9072
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074
lt_cv_prog_compiler_c_o=yes
9079
# SGI C++ compiler will create directory out/ii_files/ for
9080
# template instantiation
9081
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9082
$rm out/* && rmdir out
9088
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9089
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9092
hard_links="nottested"
9093
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9094
# do not overwrite the value of need_locks provided by the user
9095
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9096
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9099
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9101
ln conftest.a conftest.b 2>&5 || hard_links=no
9102
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9103
{ echo "$as_me:$LINENO: result: $hard_links" >&5
9104
echo "${ECHO_T}$hard_links" >&6; }
9105
if test "$hard_links" = no; then
9106
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9107
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9114
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9115
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9118
allow_undefined_flag=
9119
enable_shared_with_static_runtimes=no
9121
archive_expsym_cmds=
9122
old_archive_From_new_cmds=
9123
old_archive_from_expsyms_cmds=
9124
export_dynamic_flag_spec=
9125
whole_archive_flag_spec=
9126
thread_safe_flag_spec=
9127
hardcode_libdir_flag_spec=
9128
hardcode_libdir_flag_spec_ld=
9129
hardcode_libdir_separator=
9132
hardcode_shlibpath_var=unsupported
9133
link_all_deplibs=unknown
9134
hardcode_automatic=no
9137
always_export_symbols=no
9138
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9139
# include_expsyms should be a list of space-separated symbols to be *always*
9140
# included in the symbol list
9142
# exclude_expsyms can be an extended regexp of symbols to exclude
9143
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9144
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9145
# as well as any symbol that contains `d'.
9146
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9147
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9148
# platforms (ab)use it in PIC code, but their linkers get confused if
9149
# the symbol is explicitly referenced. Since portable code cannot
9150
# rely on this symbol name, it's probably fine to never include it in
9151
# preloaded symbol tables.
9152
extract_expsyms_cmds=
9153
# Just being paranoid about ensuring that cc_basename is set.
9154
for cc_temp in $compiler""; do
9156
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9157
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9162
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9165
cygwin* | mingw* | pw32*)
9166
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9167
# When not using gcc, we currently assume that we are using
9168
# Microsoft Visual C++.
9169
if test "$GCC" != yes; then
9174
# we just hope/assume this is gcc and not c89 (= MSVC++)
9183
if test "$with_gnu_ld" = yes; then
9184
# If archive_cmds runs LD, not CC, wlarc should be empty
9187
# Set some defaults for GNU ld with shared library support. These
9188
# are reset later if shared libraries are not supported. Putting them
9189
# here allows them to be overridden if necessary.
9190
runpath_var=LD_RUN_PATH
9191
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9192
export_dynamic_flag_spec='${wl}--export-dynamic'
9193
# ancient GNU ld didn't support --whole-archive et. al.
9194
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9195
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9197
whole_archive_flag_spec=
9199
supports_anon_versioning=no
9200
case `$LD -v 2>/dev/null` in
9201
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9202
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9203
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9204
*\ 2.11.*) ;; # other 2.11 versions
9205
*) supports_anon_versioning=yes ;;
9208
# See if GNU ld supports shared libraries.
9210
aix3* | aix4* | aix5*)
9211
# On AIX/PPC, the GNU linker is very broken
9212
if test "$host_cpu" != ia64; then
9216
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9217
*** to be unable to reliably create shared libraries on AIX.
9218
*** Therefore, libtool is disabling shared libraries support. If you
9219
*** really care for shared libraries, you may want to modify your PATH
9220
*** so that a non-GNU linker is found, and then restart.
9227
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)'
9228
hardcode_libdir_flag_spec='-L$libdir'
9229
hardcode_minus_L=yes
9231
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9232
# that the semantics of dynamic libraries on AmigaOS, at least up
9233
# to version 4, is to share data among multiple programs linked
9234
# with the same dynamic library. Since this doesn't match the
9235
# behavior of shared libraries on other platforms, we can't use
9241
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9242
allow_undefined_flag=unsupported
9243
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9244
# support --undefined. This deserves some investigation. FIXME
9245
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251
cygwin* | mingw* | pw32*)
9252
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253
# as there is no search path for DLLs.
9254
hardcode_libdir_flag_spec='-L$libdir'
9255
allow_undefined_flag=unsupported
9256
always_export_symbols=no
9257
enable_shared_with_static_runtimes=yes
9258
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9260
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9261
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9262
# If the export-symbols file already is a .def file (1st line
9263
# is EXPORTS), use it as is; otherwise, prepend...
9264
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9265
cp $export_symbols $output_objdir/$soname.def;
9267
echo EXPORTS > $output_objdir/$soname.def;
9268
cat $export_symbols >> $output_objdir/$soname.def;
9270
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9278
hardcode_shlibpath_var=no
9279
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280
export_dynamic_flag_spec='${wl}-E'
9281
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9282
# Instead, shared libraries are loaded at an image base (0x10000000 by
9283
# default) and relocated if they conflict, which is a slow very memory
9284
# consuming and fragmenting process. To avoid this, we pick a random,
9285
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9286
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9287
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9288
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'
9291
linux* | k*bsd*-gnu)
9292
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9294
case $cc_basename,$host_cpu in
9295
pgcc*) # Portland Group C compiler
9296
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'
9297
tmp_addflag=' $pic_flag'
9299
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9300
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'
9301
tmp_addflag=' $pic_flag -Mnomain' ;;
9302
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9303
tmp_addflag=' -i_dynamic' ;;
9304
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9305
tmp_addflag=' -i_dynamic -nofor_main' ;;
9306
ifc* | ifort*) # Intel Fortran compiler
9307
tmp_addflag=' -nofor_main' ;;
9309
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311
if test $supports_anon_versioning = yes; then
9312
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9313
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314
$echo "local: *; };" >> $output_objdir/$libname.ver~
9315
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323
netbsd* | netbsdelf*-gnu)
9324
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9325
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9328
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9338
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9339
*** create shared libraries on Solaris systems. Therefore, libtool
9340
*** is disabling shared libraries support. We urge you to upgrade GNU
9341
*** binutils to release 2.9.1 or newer. Another option is to modify
9342
*** your PATH or compiler configuration so that the native linker is
9343
*** used, and then restart.
9346
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9347
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9355
case `$LD -v 2>&1` in
9356
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9360
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9361
*** reliably create shared libraries on SCO systems. Therefore, libtool
9362
*** is disabling shared libraries support. We urge you to upgrade GNU
9363
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9364
*** your PATH or compiler configuration so that the native linker is
9365
*** used, and then restart.
9370
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9371
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9372
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9373
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9382
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385
hardcode_shlibpath_var=no
9389
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9390
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398
if test "$ld_shlibs" = no; then
9400
hardcode_libdir_flag_spec=
9401
export_dynamic_flag_spec=
9402
whole_archive_flag_spec=
9405
# PORTME fill in a description of your system's linker (not GNU ld)
9408
allow_undefined_flag=unsupported
9409
always_export_symbols=yes
9410
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'
9411
# Note: this linker hardcodes the directories in LIBPATH if there
9412
# are no directories specified by -L.
9413
hardcode_minus_L=yes
9414
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9415
# Neither direct hardcoding nor static linking is supported with a
9417
hardcode_direct=unsupported
9422
if test "$host_cpu" = ia64; then
9423
# On IA64, the linker does run time linking by default, so we don't
9424
# have to do anything special.
9425
aix_use_runtimelinking=no
9426
exp_sym_flag='-Bexport'
9429
# If we're using GNU nm, then we don't want the "-C" option.
9430
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9431
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9432
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'
9434
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'
9436
aix_use_runtimelinking=no
9438
# Test if we are trying to use run time linking or normal
9439
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9440
# need to do runtime linking.
9441
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9442
for ld_flag in $LDFLAGS; do
9443
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9444
aix_use_runtimelinking=yes
9451
exp_sym_flag='-bexport'
9452
no_entry_flag='-bnoentry'
9455
# When large executables or shared objects are built, AIX ld can
9456
# have problems creating the table of contents. If linking a library
9457
# or program results in "error TOC overflow" add -mminimal-toc to
9458
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9459
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9463
hardcode_libdir_separator=':'
9464
link_all_deplibs=yes
9466
if test "$GCC" = yes; then
9467
case $host_os in aix4.[012]|aix4.[012].*)
9468
# We only want to do this on AIX 4.2 and lower, the check
9469
# below for broken collect2 doesn't work under 4.3+
9470
collect2name=`${CC} -print-prog-name=collect2`
9471
if test -f "$collect2name" && \
9472
strings "$collect2name" | grep resolve_lib_name >/dev/null
9474
# We have reworked collect2
9477
# We have old collect2
9478
hardcode_direct=unsupported
9479
# It fails to find uninstalled libraries when the uninstalled
9480
# path is not listed in the libpath. Setting hardcode_minus_L
9481
# to unsupported forces relinking
9482
hardcode_minus_L=yes
9483
hardcode_libdir_flag_spec='-L$libdir'
9484
hardcode_libdir_separator=
9488
shared_flag='-shared'
9489
if test "$aix_use_runtimelinking" = yes; then
9490
shared_flag="$shared_flag "'${wl}-G'
9494
if test "$host_cpu" = ia64; then
9495
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9496
# chokes on -Wl,-G. The following line is correct:
9499
if test "$aix_use_runtimelinking" = yes; then
9500
shared_flag='${wl}-G'
9502
shared_flag='${wl}-bM:SRE'
9507
# It seems that -bexpall does not export symbols beginning with
9508
# underscore (_), so it is better to generate a list of symbols to export.
9509
always_export_symbols=yes
9510
if test "$aix_use_runtimelinking" = yes; then
9511
# Warning - without using the other runtime loading flags (-brtl),
9512
# -berok will link without error, but may produce a broken library.
9513
allow_undefined_flag='-berok'
9514
# Determine the default libpath from the value encoded in an empty executable.
9515
cat >conftest.$ac_ext <<_ACEOF
9518
cat confdefs.h >>conftest.$ac_ext
9519
cat >>conftest.$ac_ext <<_ACEOF
9520
/* end confdefs.h. */
9530
rm -f conftest.$ac_objext conftest$ac_exeext
9531
if { (ac_try="$ac_link"
9533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534
*) ac_try_echo=$ac_try;;
9536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537
(eval "$ac_link") 2>conftest.er1
9539
grep -v '^ *+' conftest.er1 >conftest.err
9541
cat conftest.err >&5
9542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543
(exit $ac_status); } &&
9544
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9545
{ (case "(($ac_try" in
9546
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547
*) ac_try_echo=$ac_try;;
9549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550
(eval "$ac_try") 2>&5
9552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553
(exit $ac_status); }; } &&
9554
{ ac_try='test -s conftest$ac_exeext'
9555
{ (case "(($ac_try" in
9556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557
*) ac_try_echo=$ac_try;;
9559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560
(eval "$ac_try") 2>&5
9562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563
(exit $ac_status); }; }; then
9565
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9567
# Check for a 64-bit object if we didn't find anything.
9568
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; }
9571
echo "$as_me: failed program was:" >&5
9572
sed 's/^/| /' conftest.$ac_ext >&5
9577
rm -f conftest.err conftest.$ac_objext \
9578
conftest$ac_exeext conftest.$ac_ext
9579
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9581
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9582
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"
9584
if test "$host_cpu" = ia64; then
9585
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9586
allow_undefined_flag="-z nodefs"
9587
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"
9589
# Determine the default libpath from the value encoded in an empty executable.
9590
cat >conftest.$ac_ext <<_ACEOF
9593
cat confdefs.h >>conftest.$ac_ext
9594
cat >>conftest.$ac_ext <<_ACEOF
9595
/* end confdefs.h. */
9605
rm -f conftest.$ac_objext conftest$ac_exeext
9606
if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9614
grep -v '^ *+' conftest.er1 >conftest.err
9616
cat conftest.err >&5
9617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618
(exit $ac_status); } &&
9619
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620
{ (case "(($ac_try" in
9621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622
*) ac_try_echo=$ac_try;;
9624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625
(eval "$ac_try") 2>&5
9627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628
(exit $ac_status); }; } &&
9629
{ ac_try='test -s conftest$ac_exeext'
9630
{ (case "(($ac_try" in
9631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632
*) ac_try_echo=$ac_try;;
9634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635
(eval "$ac_try") 2>&5
9637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638
(exit $ac_status); }; }; then
9640
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9642
# Check for a 64-bit object if we didn't find anything.
9643
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; }
9646
echo "$as_me: failed program was:" >&5
9647
sed 's/^/| /' conftest.$ac_ext >&5
9652
rm -f conftest.err conftest.$ac_objext \
9653
conftest$ac_exeext conftest.$ac_ext
9654
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9656
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9657
# Warning - without using the other run time loading flags,
9658
# -berok will link without error, but may produce a broken library.
9659
no_undefined_flag=' ${wl}-bernotok'
9660
allow_undefined_flag=' ${wl}-berok'
9661
# Exported symbols can be pulled into shared objects from archives
9662
whole_archive_flag_spec='$convenience'
9663
archive_cmds_need_lc=yes
9664
# This is similar to how AIX traditionally builds its shared libraries.
9665
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'
9671
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)'
9672
hardcode_libdir_flag_spec='-L$libdir'
9673
hardcode_minus_L=yes
9674
# see comment about different semantics on the GNU ld section
9679
export_dynamic_flag_spec=-rdynamic
9682
cygwin* | mingw* | pw32*)
9683
# When not using gcc, we currently assume that we are using
9684
# Microsoft Visual C++.
9685
# hardcode_libdir_flag_spec is actually meaningless, as there is
9686
# no search path for DLLs.
9687
hardcode_libdir_flag_spec=' '
9688
allow_undefined_flag=unsupported
9689
# Tell ltmain to make .lib files, not .a files.
9691
# Tell ltmain to make .dll files, not .so files.
9693
# FIXME: Setting linknames here is a bad hack.
9694
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9695
# The linker will automatically build a .lib file if we build a DLL.
9696
old_archive_From_new_cmds='true'
9697
# FIXME: Should let the user specify the lib program.
9698
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9699
fix_srcfile_path='`cygpath -w "$srcfile"`'
9700
enable_shared_with_static_runtimes=yes
9703
darwin* | rhapsody*)
9705
rhapsody* | darwin1.[012])
9706
allow_undefined_flag='${wl}-undefined ${wl}suppress'
9709
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9710
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9712
case ${MACOSX_DEPLOYMENT_TARGET} in
9714
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9717
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9723
archive_cmds_need_lc=no
9725
hardcode_automatic=yes
9726
hardcode_shlibpath_var=unsupported
9727
whole_archive_flag_spec=''
9728
link_all_deplibs=yes
9729
if test "$GCC" = yes ; then
9730
output_verbose_link_cmd='echo'
9731
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9732
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9733
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9734
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}'
9735
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}'
9737
case $cc_basename in
9739
output_verbose_link_cmd='echo'
9740
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9741
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9742
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9743
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}'
9744
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}'
9754
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755
hardcode_libdir_flag_spec='-L$libdir'
9756
hardcode_shlibpath_var=no
9763
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9764
# support. Future versions do this automatically, but an explicit c++rt0.o
9765
# does not break anything, and helps significantly (at the cost of a little
9768
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9769
hardcode_libdir_flag_spec='-R$libdir'
9771
hardcode_shlibpath_var=no
9774
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9776
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778
hardcode_minus_L=yes
9779
hardcode_shlibpath_var=no
9782
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9783
freebsd* | dragonfly*)
9784
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9785
hardcode_libdir_flag_spec='-R$libdir'
9787
hardcode_shlibpath_var=no
9791
if test "$GCC" = yes; then
9792
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'
9794
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'
9796
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797
hardcode_libdir_separator=:
9800
# hardcode_minus_L: Not really in the search PATH,
9801
# but as the default location of the library.
9802
hardcode_minus_L=yes
9803
export_dynamic_flag_spec='${wl}-E'
9807
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9808
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812
if test "$with_gnu_ld" = no; then
9813
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814
hardcode_libdir_separator=:
9817
export_dynamic_flag_spec='${wl}-E'
9819
# hardcode_minus_L: Not really in the search PATH,
9820
# but as the default location of the library.
9821
hardcode_minus_L=yes
9826
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9829
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9841
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9844
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9847
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851
if test "$with_gnu_ld" = no; then
9852
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853
hardcode_libdir_separator=:
9857
hardcode_libdir_flag_spec_ld='+b $libdir'
9859
hardcode_shlibpath_var=no
9863
export_dynamic_flag_spec='${wl}-E'
9865
# hardcode_minus_L: Not really in the search PATH,
9866
# but as the default location of the library.
9867
hardcode_minus_L=yes
9873
irix5* | irix6* | nonstopux*)
9874
if test "$GCC" = yes; then
9875
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'
9877
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'
9878
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9880
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881
hardcode_libdir_separator=:
9882
link_all_deplibs=yes
9885
netbsd* | netbsdelf*-gnu)
9886
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9887
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9889
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9891
hardcode_libdir_flag_spec='-R$libdir'
9893
hardcode_shlibpath_var=no
9897
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900
hardcode_libdir_separator=:
9901
hardcode_shlibpath_var=no
9906
hardcode_shlibpath_var=no
9907
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9908
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9909
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9910
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9911
export_dynamic_flag_spec='${wl}-E'
9914
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9915
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9916
hardcode_libdir_flag_spec='-R$libdir'
9919
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9927
hardcode_libdir_flag_spec='-L$libdir'
9928
hardcode_minus_L=yes
9929
allow_undefined_flag=unsupported
9930
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'
9931
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9935
if test "$GCC" = yes; then
9936
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937
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'
9939
allow_undefined_flag=' -expect_unresolved \*'
9940
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'
9942
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943
hardcode_libdir_separator=:
9946
osf4* | osf5*) # as osf3* with the addition of -msym flag
9947
if test "$GCC" = yes; then
9948
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9949
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'
9950
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952
allow_undefined_flag=' -expect_unresolved \*'
9953
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'
9954
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9955
$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'
9957
# Both c and cxx compiler support -rpath directly
9958
hardcode_libdir_flag_spec='-rpath $libdir'
9960
hardcode_libdir_separator=:
9964
no_undefined_flag=' -z text'
9965
if test "$GCC" = yes; then
9967
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9968
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9969
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9972
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9974
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9976
hardcode_libdir_flag_spec='-R$libdir'
9977
hardcode_shlibpath_var=no
9979
solaris2.[0-5] | solaris2.[0-5].*) ;;
9981
# The compiler driver will combine linker options so we
9982
# cannot just pass the convience library names through
9983
# without $wl, iff we do not link with $LD.
9984
# Luckily, gcc supports the same syntax we need for Sun Studio.
9985
# Supported since Solaris 2.6 (maybe 2.5.1?)
9988
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9990
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' ;;
9993
link_all_deplibs=yes
9997
if test "x$host_vendor" = xsequent; then
9998
# Use $CC to link under sequent, because it throws in some extra .o
9999
# files that make .init and .fini sections work.
10000
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10004
hardcode_libdir_flag_spec='-L$libdir'
10005
hardcode_direct=yes
10006
hardcode_minus_L=yes
10007
hardcode_shlibpath_var=no
10011
case $host_vendor in
10013
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014
hardcode_direct=yes # is this really true???
10017
## LD is ld it makes a PLAMLIB
10018
## CC just makes a GrossModule.
10019
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10020
reload_cmds='$CC -r -o $output$reload_objs'
10024
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10028
runpath_var='LD_RUN_PATH'
10029
hardcode_shlibpath_var=no
10033
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034
hardcode_shlibpath_var=no
10035
export_dynamic_flag_spec='-Bexport'
10039
if test -d /usr/nec; then
10040
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041
hardcode_shlibpath_var=no
10042
runpath_var=LD_RUN_PATH
10043
hardcode_runpath_var=yes
10048
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10049
no_undefined_flag='${wl}-z,text'
10050
archive_cmds_need_lc=no
10051
hardcode_shlibpath_var=no
10052
runpath_var='LD_RUN_PATH'
10054
if test "$GCC" = yes; then
10055
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063
sysv5* | sco3.2v5* | sco5v6*)
10064
# Note: We can NOT use -z defs as we might desire, because we do not
10065
# link with -lc, and that would cause any symbols used from libc to
10066
# always be unresolved, which means just about no library would
10067
# ever link correctly. If we're not using GNU ld we use -z text
10068
# though, which does catch some bad symbols but isn't as heavy-handed
10070
no_undefined_flag='${wl}-z,text'
10071
allow_undefined_flag='${wl}-z,nodefs'
10072
archive_cmds_need_lc=no
10073
hardcode_shlibpath_var=no
10074
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10075
hardcode_libdir_separator=':'
10076
link_all_deplibs=yes
10077
export_dynamic_flag_spec='${wl}-Bexport'
10078
runpath_var='LD_RUN_PATH'
10080
if test "$GCC" = yes; then
10081
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091
hardcode_libdir_flag_spec='-L$libdir'
10092
hardcode_shlibpath_var=no
10101
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10102
echo "${ECHO_T}$ld_shlibs" >&6; }
10103
test "$ld_shlibs" = no && can_build_shared=no
10106
# Do we need to explicitly link libc?
10108
case "x$archive_cmds_need_lc" in
10110
# Assume -lc should be added
10111
archive_cmds_need_lc=yes
10113
if test "$enable_shared" = yes && test "$GCC" = yes; then
10114
case $archive_cmds in
10116
# FIXME: we may have to deal with multi-command sequences.
10119
# Test whether the compiler implicitly links with -lc since on some
10120
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10121
# to ld, don't add -lc before -lgcc.
10122
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10123
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10125
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128
(eval $ac_compile) 2>&5
10130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131
(exit $ac_status); } 2>conftest.err; then
10134
libobjs=conftest.$ac_objext
10136
wl=$lt_prog_compiler_wl
10137
pic_flag=$lt_prog_compiler_pic
10143
lt_save_allow_undefined_flag=$allow_undefined_flag
10144
allow_undefined_flag=
10145
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10146
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149
(exit $ac_status); }
10151
archive_cmds_need_lc=no
10153
archive_cmds_need_lc=yes
10155
allow_undefined_flag=$lt_save_allow_undefined_flag
10157
cat conftest.err 1>&5
10160
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10161
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10168
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10169
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10170
library_names_spec=
10171
libname_spec='lib$name'
10175
postuninstall_cmds=
10179
shlibpath_overrides_runpath=unknown
10181
dynamic_linker="$host_os ld.so"
10182
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10183
if test "$GCC" = yes; then
10184
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10185
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10186
# if the path contains ";" then we assume it to be the separator
10187
# otherwise default to the standard path separator (i.e. ":") - it is
10188
# assumed that no part of a normal pathname contains ";" but that should
10189
# okay in the real world where ";" in dirpaths is itself problematic.
10190
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10192
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10195
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10197
need_lib_prefix=unknown
10198
hardcode_into_libs=no
10200
# when you set need_version to no, make sure it does not cause -set_version
10201
# flags to be left without arguments
10202
need_version=unknown
10207
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10208
shlibpath_var=LIBPATH
10210
# AIX 3 has no versioning support, so we append a major version to the name.
10211
soname_spec='${libname}${release}${shared_ext}$major'
10218
hardcode_into_libs=yes
10219
if test "$host_cpu" = ia64; then
10220
# AIX 5 supports IA64
10221
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10222
shlibpath_var=LD_LIBRARY_PATH
10224
# With GCC up to 2.95.x, collect2 would create an import file
10225
# for dependence libraries. The import file would start with
10226
# the line `#! .'. This would cause the generated library to
10227
# depend on `.', always an invalid library. This was fixed in
10228
# development snapshots of GCC prior to 3.0.
10230
aix4 | aix4.[01] | aix4.[01].*)
10231
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10233
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10236
can_build_shared=no
10240
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10241
# soname into executable. Probably we can add versioning support to
10242
# collect2, so additional links can be useful in future.
10243
if test "$aix_use_runtimelinking" = yes; then
10244
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10245
# instead of lib<name>.a to let people know that these are not
10246
# typical AIX shared libraries.
10247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249
# We preserve .a as extension for shared libraries through AIX4.2
10250
# and later when we are not doing run time linking.
10251
library_names_spec='${libname}${release}.a $libname.a'
10252
soname_spec='${libname}${release}${shared_ext}$major'
10254
shlibpath_var=LIBPATH
10259
library_names_spec='$libname.ixlibrary $libname.a'
10260
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10261
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'
10265
library_names_spec='${libname}${shared_ext}'
10266
dynamic_linker="$host_os ld.so"
10267
shlibpath_var=LIBRARY_PATH
10273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274
soname_spec='${libname}${release}${shared_ext}$major'
10275
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276
shlibpath_var=LD_LIBRARY_PATH
10277
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279
# the default ld.so.conf also contains /usr/contrib/lib and
10280
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281
# libtool to hard-code these into programs
10284
cygwin* | mingw* | pw32*)
10285
version_type=windows
10290
case $GCC,$host_os in
10291
yes,cygwin* | yes,mingw* | yes,pw32*)
10292
library_names_spec='$libname.dll.a'
10293
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10294
postinstall_cmds='base_file=`basename \${file}`~
10295
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10296
dldir=$destdir/`dirname \$dlpath`~
10297
test -d \$dldir || mkdir -p \$dldir~
10298
$install_prog $dir/$dlname \$dldir/$dlname~
10299
chmod a+x \$dldir/$dlname'
10300
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10301
dlpath=$dir/\$dldll~
10303
shlibpath_overrides_runpath=yes
10307
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10308
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10309
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10312
# MinGW DLLs use traditional 'lib' prefix
10313
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10315
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10316
# It is most probably a Windows format PATH printed by
10317
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10318
# path with ; separators, and with drive letters. We can handle the
10319
# drive letters (cygwin fileutils understands them), so leave them,
10320
# especially as we might pass files found there to a mingw objdump,
10321
# which wouldn't understand a cygwinified path. Ahh.
10322
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10324
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10328
# pw32 DLLs use 'pw' prefix rather than 'lib'
10329
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10338
dynamic_linker='Win32 ld.exe'
10339
# FIXME: first we should search . and the directory the executable is in
10343
darwin* | rhapsody*)
10344
dynamic_linker="$host_os dyld"
10345
version_type=darwin
10348
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10349
soname_spec='${libname}${release}${major}$shared_ext'
10350
shlibpath_overrides_runpath=yes
10351
shlibpath_var=DYLD_LIBRARY_PATH
10352
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10353
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10354
if test "$GCC" = yes; then
10355
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"`
10357
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10359
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10367
soname_spec='${libname}${release}${shared_ext}$major'
10368
shlibpath_var=LD_LIBRARY_PATH
10375
freebsd* | dragonfly*)
10376
# DragonFly does not have aout. When/if they implement a new
10377
# versioning mechanism, adjust this.
10378
if test -x /usr/bin/objformat; then
10379
objformat=`/usr/bin/objformat`
10382
freebsd[123]*) objformat=aout ;;
10383
*) objformat=elf ;;
10386
version_type=freebsd-$objformat
10387
case $version_type in
10389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10398
shlibpath_var=LD_LIBRARY_PATH
10401
shlibpath_overrides_runpath=yes
10403
freebsd3.[01]* | freebsdelf3.[01]*)
10404
shlibpath_overrides_runpath=yes
10405
hardcode_into_libs=yes
10407
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10408
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10409
shlibpath_overrides_runpath=no
10410
hardcode_into_libs=yes
10412
freebsd*) # from 4.6 on
10413
shlibpath_overrides_runpath=yes
10414
hardcode_into_libs=yes
10423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10424
soname_spec='${libname}${release}${shared_ext}$major'
10425
shlibpath_var=LD_LIBRARY_PATH
10426
hardcode_into_libs=yes
10429
hpux9* | hpux10* | hpux11*)
10430
# Give a soname corresponding to the major version so that dld.sl refuses to
10431
# link against other versions.
10438
hardcode_into_libs=yes
10439
dynamic_linker="$host_os dld.so"
10440
shlibpath_var=LD_LIBRARY_PATH
10441
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443
soname_spec='${libname}${release}${shared_ext}$major'
10444
if test "X$HPUX_IA64_MODE" = X32; then
10445
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10447
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10449
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10453
hardcode_into_libs=yes
10454
dynamic_linker="$host_os dld.sl"
10455
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10456
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458
soname_spec='${libname}${release}${shared_ext}$major'
10459
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10460
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10464
dynamic_linker="$host_os dld.sl"
10465
shlibpath_var=SHLIB_PATH
10466
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468
soname_spec='${libname}${release}${shared_ext}$major'
10471
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10472
postinstall_cmds='chmod 555 $lib'
10479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10480
soname_spec='${libname}${release}${shared_ext}$major'
10481
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10482
shlibpath_var=LD_LIBRARY_PATH
10483
shlibpath_overrides_runpath=no
10484
hardcode_into_libs=yes
10487
irix5* | irix6* | nonstopux*)
10489
nonstopux*) version_type=nonstopux ;;
10491
if test "$lt_cv_prog_gnu_ld" = yes; then
10499
soname_spec='${libname}${release}${shared_ext}$major'
10500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10502
irix5* | nonstopux*)
10503
libsuff= shlibsuff=
10506
case $LD in # libtool.m4 will add one of these switches to LD
10507
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10508
libsuff= shlibsuff= libmagic=32-bit;;
10509
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10510
libsuff=32 shlibsuff=N32 libmagic=N32;;
10511
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10512
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10513
*) libsuff= shlibsuff= libmagic=never-match;;
10517
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10518
shlibpath_overrides_runpath=no
10519
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10520
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10521
hardcode_into_libs=yes
10524
# No shared lib support for Linux oldld, aout, or coff.
10525
linux*oldld* | linux*aout* | linux*coff*)
10529
# This must be Linux ELF.
10530
linux* | k*bsd*-gnu)
10534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535
soname_spec='${libname}${release}${shared_ext}$major'
10536
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10537
shlibpath_var=LD_LIBRARY_PATH
10538
shlibpath_overrides_runpath=no
10539
# This implies no fast_install, which is unacceptable.
10540
# Some rework will be needed to allow for fast_install
10541
# before this can be enabled.
10542
hardcode_into_libs=yes
10544
# Append ld.so.conf contents to the search path
10545
if test -f /etc/ld.so.conf; then
10546
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' ' '`
10547
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10550
# We used to test for /lib/ld.so.1 and disable shared libraries on
10551
# powerpc, because MkLinux only supported shared libraries with the
10552
# GNU dynamic linker. Since this was broken with cross compilers,
10553
# most powerpc-linux boxes support dynamic linking these days and
10554
# people can always --disable-shared, the test was removed, and we
10555
# assume the GNU/Linux dynamic linker is in use.
10556
dynamic_linker='GNU/Linux ld.so'
10563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10564
soname_spec='${libname}${release}${shared_ext}$major'
10565
shlibpath_var=LD_LIBRARY_PATH
10566
shlibpath_overrides_runpath=no
10567
hardcode_into_libs=yes
10568
dynamic_linker='NetBSD ld.elf_so'
10575
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10577
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10578
dynamic_linker='NetBSD (a.out) ld.so'
10580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10581
soname_spec='${libname}${release}${shared_ext}$major'
10582
dynamic_linker='NetBSD ld.elf_so'
10584
shlibpath_var=LD_LIBRARY_PATH
10585
shlibpath_overrides_runpath=yes
10586
hardcode_into_libs=yes
10591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592
shlibpath_var=LD_LIBRARY_PATH
10593
shlibpath_overrides_runpath=yes
10600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601
soname_spec='${libname}${release}${shared_ext}$major'
10602
shlibpath_var=LD_LIBRARY_PATH
10603
shlibpath_overrides_runpath=yes
10608
sys_lib_dlsearch_path_spec="/usr/lib"
10610
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10612
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10613
*) need_version=no ;;
10615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10617
shlibpath_var=LD_LIBRARY_PATH
10618
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10620
openbsd2.[89] | openbsd2.[89].*)
10621
shlibpath_overrides_runpath=no
10624
shlibpath_overrides_runpath=yes
10628
shlibpath_overrides_runpath=yes
10633
libname_spec='$name'
10636
library_names_spec='$libname${shared_ext} $libname.a'
10637
dynamic_linker='OS/2 ld.exe'
10638
shlibpath_var=LIBPATH
10641
osf3* | osf4* | osf5*)
10645
soname_spec='${libname}${release}${shared_ext}$major'
10646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647
shlibpath_var=LD_LIBRARY_PATH
10648
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10649
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657
soname_spec='${libname}${release}${shared_ext}$major'
10658
shlibpath_var=LD_LIBRARY_PATH
10659
shlibpath_overrides_runpath=yes
10660
hardcode_into_libs=yes
10661
# ldd complains unless libraries are executable
10662
postinstall_cmds='chmod +x $lib'
10667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10669
shlibpath_var=LD_LIBRARY_PATH
10670
shlibpath_overrides_runpath=yes
10671
if test "$with_gnu_ld" = yes; then
10679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680
soname_spec='${libname}${release}${shared_ext}$major'
10681
shlibpath_var=LD_LIBRARY_PATH
10682
case $host_vendor in
10684
shlibpath_overrides_runpath=no
10686
export_dynamic_flag_spec='${wl}-Blargedynsym'
10687
runpath_var=LD_RUN_PATH
10695
shlibpath_overrides_runpath=no
10696
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10702
if test -d /usr/nec ;then
10704
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10705
soname_spec='$libname${shared_ext}.$major'
10706
shlibpath_var=LD_LIBRARY_PATH
10710
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10711
version_type=freebsd-elf
10714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715
soname_spec='${libname}${release}${shared_ext}$major'
10716
shlibpath_var=LD_LIBRARY_PATH
10717
hardcode_into_libs=yes
10718
if test "$with_gnu_ld" = yes; then
10719
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10720
shlibpath_overrides_runpath=no
10722
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10723
shlibpath_overrides_runpath=yes
10726
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10730
sys_lib_dlsearch_path_spec='/usr/lib'
10735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736
soname_spec='${libname}${release}${shared_ext}$major'
10737
shlibpath_var=LD_LIBRARY_PATH
10744
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10745
echo "${ECHO_T}$dynamic_linker" >&6; }
10746
test "$dynamic_linker" = no && can_build_shared=no
10748
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10749
if test "$GCC" = yes; then
10750
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10753
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10754
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10756
if test -n "$hardcode_libdir_flag_spec" || \
10757
test -n "$runpath_var" || \
10758
test "X$hardcode_automatic" = "Xyes" ; then
10760
# We can hardcode non-existant directories.
10761
if test "$hardcode_direct" != no &&
10762
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10763
# have to relink, otherwise we might link with an installed library
10764
# when we should be linking with a yet-to-be-installed one
10765
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766
test "$hardcode_minus_L" != no; then
10767
# Linking always hardcodes the temporary library directory.
10768
hardcode_action=relink
10770
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10771
hardcode_action=immediate
10774
# We cannot hardcode anything, or else we can only hardcode existing
10776
hardcode_action=unsupported
10778
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10779
echo "${ECHO_T}$hardcode_action" >&6; }
10781
if test "$hardcode_action" = relink; then
10782
# Fast installation is not supported
10783
enable_fast_install=no
10784
elif test "$shlibpath_overrides_runpath" = yes ||
10785
test "$enable_shared" = no; then
10786
# Fast installation is not necessary
10787
enable_fast_install=needless
10792
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10793
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10794
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10795
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10796
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10797
{ echo "$as_me:$LINENO: result: yes" >&5
10798
echo "${ECHO_T}yes" >&6; }
10800
# FIXME - insert some real tests, host_os isn't really good enough
10803
if test -n "$STRIP" ; then
10804
striplib="$STRIP -x"
10805
{ echo "$as_me:$LINENO: result: yes" >&5
10806
echo "${ECHO_T}yes" >&6; }
10808
{ echo "$as_me:$LINENO: result: no" >&5
10809
echo "${ECHO_T}no" >&6; }
10813
{ echo "$as_me:$LINENO: result: no" >&5
10814
echo "${ECHO_T}no" >&6; }
10819
if test "x$enable_dlopen" != xyes; then
10820
enable_dlopen=unknown
10821
enable_dlopen_self=unknown
10822
enable_dlopen_self_static=unknown
10829
lt_cv_dlopen="load_add_on"
10831
lt_cv_dlopen_self=yes
10835
lt_cv_dlopen="LoadLibrary"
10840
lt_cv_dlopen="dlopen"
10845
# if libdl is installed we need to link against it
10846
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10847
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10848
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10849
echo $ECHO_N "(cached) $ECHO_C" >&6
10851
ac_check_lib_save_LIBS=$LIBS
10853
cat >conftest.$ac_ext <<_ACEOF
10856
cat confdefs.h >>conftest.$ac_ext
10857
cat >>conftest.$ac_ext <<_ACEOF
10858
/* end confdefs.h. */
10860
/* Override any GCC internal prototype to avoid an error.
10861
Use char because int might match the return type of a GCC
10862
builtin and then its argument prototype would still apply. */
10875
rm -f conftest.$ac_objext conftest$ac_exeext
10876
if { (ac_try="$ac_link"
10877
case "(($ac_try" in
10878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879
*) ac_try_echo=$ac_try;;
10881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882
(eval "$ac_link") 2>conftest.er1
10884
grep -v '^ *+' conftest.er1 >conftest.err
10886
cat conftest.err >&5
10887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888
(exit $ac_status); } &&
10889
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890
{ (case "(($ac_try" in
10891
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892
*) ac_try_echo=$ac_try;;
10894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895
(eval "$ac_try") 2>&5
10897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898
(exit $ac_status); }; } &&
10899
{ ac_try='test -s conftest$ac_exeext'
10900
{ (case "(($ac_try" in
10901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902
*) ac_try_echo=$ac_try;;
10904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905
(eval "$ac_try") 2>&5
10907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908
(exit $ac_status); }; }; then
10909
ac_cv_lib_dl_dlopen=yes
10911
echo "$as_me: failed program was:" >&5
10912
sed 's/^/| /' conftest.$ac_ext >&5
10914
ac_cv_lib_dl_dlopen=no
10917
rm -f conftest.err conftest.$ac_objext \
10918
conftest$ac_exeext conftest.$ac_ext
10919
LIBS=$ac_check_lib_save_LIBS
10921
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10922
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10923
if test $ac_cv_lib_dl_dlopen = yes; then
10924
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927
lt_cv_dlopen="dyld"
10929
lt_cv_dlopen_self=yes
10936
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10937
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10938
if test "${ac_cv_func_shl_load+set}" = set; then
10939
echo $ECHO_N "(cached) $ECHO_C" >&6
10941
cat >conftest.$ac_ext <<_ACEOF
10944
cat confdefs.h >>conftest.$ac_ext
10945
cat >>conftest.$ac_ext <<_ACEOF
10946
/* end confdefs.h. */
10947
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10948
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949
#define shl_load innocuous_shl_load
10951
/* System header to define __stub macros and hopefully few prototypes,
10952
which can conflict with char shl_load (); below.
10953
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954
<limits.h> exists even on freestanding compilers. */
10957
# include <limits.h>
10959
# include <assert.h>
10964
/* Override any GCC internal prototype to avoid an error.
10965
Use char because int might match the return type of a GCC
10966
builtin and then its argument prototype would still apply. */
10971
/* The GNU C library defines this for functions which it implements
10972
to always fail with ENOSYS. Some functions are actually named
10973
something starting with __ and the normal name is an alias. */
10974
#if defined __stub_shl_load || defined __stub___shl_load
10981
return shl_load ();
10986
rm -f conftest.$ac_objext conftest$ac_exeext
10987
if { (ac_try="$ac_link"
10988
case "(($ac_try" in
10989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990
*) ac_try_echo=$ac_try;;
10992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993
(eval "$ac_link") 2>conftest.er1
10995
grep -v '^ *+' conftest.er1 >conftest.err
10997
cat conftest.err >&5
10998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999
(exit $ac_status); } &&
11000
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001
{ (case "(($ac_try" in
11002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003
*) ac_try_echo=$ac_try;;
11005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006
(eval "$ac_try") 2>&5
11008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009
(exit $ac_status); }; } &&
11010
{ ac_try='test -s conftest$ac_exeext'
11011
{ (case "(($ac_try" in
11012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013
*) ac_try_echo=$ac_try;;
11015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016
(eval "$ac_try") 2>&5
11018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019
(exit $ac_status); }; }; then
11020
ac_cv_func_shl_load=yes
11022
echo "$as_me: failed program was:" >&5
11023
sed 's/^/| /' conftest.$ac_ext >&5
11025
ac_cv_func_shl_load=no
11028
rm -f conftest.err conftest.$ac_objext \
11029
conftest$ac_exeext conftest.$ac_ext
11031
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11032
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11033
if test $ac_cv_func_shl_load = yes; then
11034
lt_cv_dlopen="shl_load"
11036
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11037
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11038
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11039
echo $ECHO_N "(cached) $ECHO_C" >&6
11041
ac_check_lib_save_LIBS=$LIBS
11043
cat >conftest.$ac_ext <<_ACEOF
11046
cat confdefs.h >>conftest.$ac_ext
11047
cat >>conftest.$ac_ext <<_ACEOF
11048
/* end confdefs.h. */
11050
/* Override any GCC internal prototype to avoid an error.
11051
Use char because int might match the return type of a GCC
11052
builtin and then its argument prototype would still apply. */
11060
return shl_load ();
11065
rm -f conftest.$ac_objext conftest$ac_exeext
11066
if { (ac_try="$ac_link"
11067
case "(($ac_try" in
11068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069
*) ac_try_echo=$ac_try;;
11071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072
(eval "$ac_link") 2>conftest.er1
11074
grep -v '^ *+' conftest.er1 >conftest.err
11076
cat conftest.err >&5
11077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078
(exit $ac_status); } &&
11079
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080
{ (case "(($ac_try" in
11081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082
*) ac_try_echo=$ac_try;;
11084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085
(eval "$ac_try") 2>&5
11087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088
(exit $ac_status); }; } &&
11089
{ ac_try='test -s conftest$ac_exeext'
11090
{ (case "(($ac_try" in
11091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092
*) ac_try_echo=$ac_try;;
11094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095
(eval "$ac_try") 2>&5
11097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098
(exit $ac_status); }; }; then
11099
ac_cv_lib_dld_shl_load=yes
11101
echo "$as_me: failed program was:" >&5
11102
sed 's/^/| /' conftest.$ac_ext >&5
11104
ac_cv_lib_dld_shl_load=no
11107
rm -f conftest.err conftest.$ac_objext \
11108
conftest$ac_exeext conftest.$ac_ext
11109
LIBS=$ac_check_lib_save_LIBS
11111
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11112
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11113
if test $ac_cv_lib_dld_shl_load = yes; then
11114
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11116
{ echo "$as_me:$LINENO: checking for dlopen" >&5
11117
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11118
if test "${ac_cv_func_dlopen+set}" = set; then
11119
echo $ECHO_N "(cached) $ECHO_C" >&6
11121
cat >conftest.$ac_ext <<_ACEOF
11124
cat confdefs.h >>conftest.$ac_ext
11125
cat >>conftest.$ac_ext <<_ACEOF
11126
/* end confdefs.h. */
11127
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11128
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11129
#define dlopen innocuous_dlopen
11131
/* System header to define __stub macros and hopefully few prototypes,
11132
which can conflict with char dlopen (); below.
11133
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134
<limits.h> exists even on freestanding compilers. */
11137
# include <limits.h>
11139
# include <assert.h>
11144
/* Override any GCC internal prototype to avoid an error.
11145
Use char because int might match the return type of a GCC
11146
builtin and then its argument prototype would still apply. */
11151
/* The GNU C library defines this for functions which it implements
11152
to always fail with ENOSYS. Some functions are actually named
11153
something starting with __ and the normal name is an alias. */
11154
#if defined __stub_dlopen || defined __stub___dlopen
11166
rm -f conftest.$ac_objext conftest$ac_exeext
11167
if { (ac_try="$ac_link"
11168
case "(($ac_try" in
11169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170
*) ac_try_echo=$ac_try;;
11172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173
(eval "$ac_link") 2>conftest.er1
11175
grep -v '^ *+' conftest.er1 >conftest.err
11177
cat conftest.err >&5
11178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179
(exit $ac_status); } &&
11180
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181
{ (case "(($ac_try" in
11182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183
*) ac_try_echo=$ac_try;;
11185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186
(eval "$ac_try") 2>&5
11188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
(exit $ac_status); }; } &&
11190
{ ac_try='test -s conftest$ac_exeext'
11191
{ (case "(($ac_try" in
11192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193
*) ac_try_echo=$ac_try;;
11195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196
(eval "$ac_try") 2>&5
11198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199
(exit $ac_status); }; }; then
11200
ac_cv_func_dlopen=yes
11202
echo "$as_me: failed program was:" >&5
11203
sed 's/^/| /' conftest.$ac_ext >&5
11205
ac_cv_func_dlopen=no
11208
rm -f conftest.err conftest.$ac_objext \
11209
conftest$ac_exeext conftest.$ac_ext
11211
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11212
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11213
if test $ac_cv_func_dlopen = yes; then
11214
lt_cv_dlopen="dlopen"
11216
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11217
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11218
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11219
echo $ECHO_N "(cached) $ECHO_C" >&6
11221
ac_check_lib_save_LIBS=$LIBS
11223
cat >conftest.$ac_ext <<_ACEOF
11226
cat confdefs.h >>conftest.$ac_ext
11227
cat >>conftest.$ac_ext <<_ACEOF
11228
/* end confdefs.h. */
11230
/* Override any GCC internal prototype to avoid an error.
11231
Use char because int might match the return type of a GCC
11232
builtin and then its argument prototype would still apply. */
11245
rm -f conftest.$ac_objext conftest$ac_exeext
11246
if { (ac_try="$ac_link"
11247
case "(($ac_try" in
11248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249
*) ac_try_echo=$ac_try;;
11251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252
(eval "$ac_link") 2>conftest.er1
11254
grep -v '^ *+' conftest.er1 >conftest.err
11256
cat conftest.err >&5
11257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258
(exit $ac_status); } &&
11259
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11260
{ (case "(($ac_try" in
11261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262
*) ac_try_echo=$ac_try;;
11264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265
(eval "$ac_try") 2>&5
11267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
(exit $ac_status); }; } &&
11269
{ ac_try='test -s conftest$ac_exeext'
11270
{ (case "(($ac_try" in
11271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272
*) ac_try_echo=$ac_try;;
11274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275
(eval "$ac_try") 2>&5
11277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278
(exit $ac_status); }; }; then
11279
ac_cv_lib_dl_dlopen=yes
11281
echo "$as_me: failed program was:" >&5
11282
sed 's/^/| /' conftest.$ac_ext >&5
11284
ac_cv_lib_dl_dlopen=no
11287
rm -f conftest.err conftest.$ac_objext \
11288
conftest$ac_exeext conftest.$ac_ext
11289
LIBS=$ac_check_lib_save_LIBS
11291
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11292
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11293
if test $ac_cv_lib_dl_dlopen = yes; then
11294
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11296
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11297
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11298
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11299
echo $ECHO_N "(cached) $ECHO_C" >&6
11301
ac_check_lib_save_LIBS=$LIBS
11302
LIBS="-lsvld $LIBS"
11303
cat >conftest.$ac_ext <<_ACEOF
11306
cat confdefs.h >>conftest.$ac_ext
11307
cat >>conftest.$ac_ext <<_ACEOF
11308
/* end confdefs.h. */
11310
/* Override any GCC internal prototype to avoid an error.
11311
Use char because int might match the return type of a GCC
11312
builtin and then its argument prototype would still apply. */
11325
rm -f conftest.$ac_objext conftest$ac_exeext
11326
if { (ac_try="$ac_link"
11327
case "(($ac_try" in
11328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329
*) ac_try_echo=$ac_try;;
11331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332
(eval "$ac_link") 2>conftest.er1
11334
grep -v '^ *+' conftest.er1 >conftest.err
11336
cat conftest.err >&5
11337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338
(exit $ac_status); } &&
11339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340
{ (case "(($ac_try" in
11341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342
*) ac_try_echo=$ac_try;;
11344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345
(eval "$ac_try") 2>&5
11347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348
(exit $ac_status); }; } &&
11349
{ ac_try='test -s conftest$ac_exeext'
11350
{ (case "(($ac_try" in
11351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352
*) ac_try_echo=$ac_try;;
11354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355
(eval "$ac_try") 2>&5
11357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358
(exit $ac_status); }; }; then
11359
ac_cv_lib_svld_dlopen=yes
11361
echo "$as_me: failed program was:" >&5
11362
sed 's/^/| /' conftest.$ac_ext >&5
11364
ac_cv_lib_svld_dlopen=no
11367
rm -f conftest.err conftest.$ac_objext \
11368
conftest$ac_exeext conftest.$ac_ext
11369
LIBS=$ac_check_lib_save_LIBS
11371
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11372
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11373
if test $ac_cv_lib_svld_dlopen = yes; then
11374
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11376
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11377
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11378
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11379
echo $ECHO_N "(cached) $ECHO_C" >&6
11381
ac_check_lib_save_LIBS=$LIBS
11383
cat >conftest.$ac_ext <<_ACEOF
11386
cat confdefs.h >>conftest.$ac_ext
11387
cat >>conftest.$ac_ext <<_ACEOF
11388
/* end confdefs.h. */
11390
/* Override any GCC internal prototype to avoid an error.
11391
Use char because int might match the return type of a GCC
11392
builtin and then its argument prototype would still apply. */
11400
return dld_link ();
11405
rm -f conftest.$ac_objext conftest$ac_exeext
11406
if { (ac_try="$ac_link"
11407
case "(($ac_try" in
11408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409
*) ac_try_echo=$ac_try;;
11411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412
(eval "$ac_link") 2>conftest.er1
11414
grep -v '^ *+' conftest.er1 >conftest.err
11416
cat conftest.err >&5
11417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418
(exit $ac_status); } &&
11419
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420
{ (case "(($ac_try" in
11421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422
*) ac_try_echo=$ac_try;;
11424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425
(eval "$ac_try") 2>&5
11427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428
(exit $ac_status); }; } &&
11429
{ ac_try='test -s conftest$ac_exeext'
11430
{ (case "(($ac_try" in
11431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432
*) ac_try_echo=$ac_try;;
11434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435
(eval "$ac_try") 2>&5
11437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438
(exit $ac_status); }; }; then
11439
ac_cv_lib_dld_dld_link=yes
11441
echo "$as_me: failed program was:" >&5
11442
sed 's/^/| /' conftest.$ac_ext >&5
11444
ac_cv_lib_dld_dld_link=no
11447
rm -f conftest.err conftest.$ac_objext \
11448
conftest$ac_exeext conftest.$ac_ext
11449
LIBS=$ac_check_lib_save_LIBS
11451
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11452
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11453
if test $ac_cv_lib_dld_dld_link = yes; then
11454
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11475
if test "x$lt_cv_dlopen" != xno; then
11481
case $lt_cv_dlopen in
11483
save_CPPFLAGS="$CPPFLAGS"
11484
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11486
save_LDFLAGS="$LDFLAGS"
11487
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11490
LIBS="$lt_cv_dlopen_libs $LIBS"
11492
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11493
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11494
if test "${lt_cv_dlopen_self+set}" = set; then
11495
echo $ECHO_N "(cached) $ECHO_C" >&6
11497
if test "$cross_compiling" = yes; then :
11498
lt_cv_dlopen_self=cross
11500
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11501
lt_status=$lt_dlunknown
11502
cat > conftest.$ac_ext <<EOF
11503
#line __oline__ "configure"
11504
#include "confdefs.h"
11513
# define LT_DLGLOBAL RTLD_GLOBAL
11516
# define LT_DLGLOBAL DL_GLOBAL
11518
# define LT_DLGLOBAL 0
11522
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523
find out it does not work in some platform. */
11524
#ifndef LT_DLLAZY_OR_NOW
11526
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11529
# define LT_DLLAZY_OR_NOW DL_LAZY
11532
# define LT_DLLAZY_OR_NOW RTLD_NOW
11535
# define LT_DLLAZY_OR_NOW DL_NOW
11537
# define LT_DLLAZY_OR_NOW 0
11545
extern "C" void exit (int);
11548
void fnord() { int i=42;}
11551
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552
int status = $lt_dlunknown;
11556
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11557
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11558
/* dlclose (self); */
11566
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567
(eval $ac_link) 2>&5
11569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11571
(./conftest; exit; ) >&5 2>/dev/null
11573
case x$lt_status in
11574
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11579
# compilation failed
11580
lt_cv_dlopen_self=no
11587
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11588
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11590
if test "x$lt_cv_dlopen_self" = xyes; then
11591
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11593
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11594
if test "${lt_cv_dlopen_self_static+set}" = set; then
11595
echo $ECHO_N "(cached) $ECHO_C" >&6
11597
if test "$cross_compiling" = yes; then :
11598
lt_cv_dlopen_self_static=cross
11600
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601
lt_status=$lt_dlunknown
11602
cat > conftest.$ac_ext <<EOF
11603
#line __oline__ "configure"
11604
#include "confdefs.h"
11613
# define LT_DLGLOBAL RTLD_GLOBAL
11616
# define LT_DLGLOBAL DL_GLOBAL
11618
# define LT_DLGLOBAL 0
11622
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623
find out it does not work in some platform. */
11624
#ifndef LT_DLLAZY_OR_NOW
11626
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11629
# define LT_DLLAZY_OR_NOW DL_LAZY
11632
# define LT_DLLAZY_OR_NOW RTLD_NOW
11635
# define LT_DLLAZY_OR_NOW DL_NOW
11637
# define LT_DLLAZY_OR_NOW 0
11645
extern "C" void exit (int);
11648
void fnord() { int i=42;}
11651
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652
int status = $lt_dlunknown;
11656
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11657
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658
/* dlclose (self); */
11666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667
(eval $ac_link) 2>&5
11669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11671
(./conftest; exit; ) >&5 2>/dev/null
11673
case x$lt_status in
11674
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11675
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11676
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11679
# compilation failed
11680
lt_cv_dlopen_self_static=no
11687
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11688
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11691
CPPFLAGS="$save_CPPFLAGS"
11692
LDFLAGS="$save_LDFLAGS"
11697
case $lt_cv_dlopen_self in
11698
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11699
*) enable_dlopen_self=unknown ;;
11702
case $lt_cv_dlopen_self_static in
11703
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11704
*) enable_dlopen_self_static=unknown ;;
11709
# Report which library types will actually be built
11710
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11711
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11712
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11713
echo "${ECHO_T}$can_build_shared" >&6; }
11715
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11716
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11717
test "$can_build_shared" = "no" && enable_shared=no
11719
# On AIX, shared libraries and static libraries use the same namespace, and
11720
# are all built from PIC.
11723
test "$enable_shared" = yes && enable_static=no
11724
if test -n "$RANLIB"; then
11725
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11726
postinstall_cmds='$RANLIB $lib'
11731
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11732
test "$enable_shared" = yes && enable_static=no
11736
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11737
echo "${ECHO_T}$enable_shared" >&6; }
11739
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11740
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11741
# Make sure either enable_shared or enable_static is yes.
11742
test "$enable_shared" = yes || enable_static=yes
11743
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11744
echo "${ECHO_T}$enable_static" >&6; }
11746
# The else clause should only fire when bootstrapping the
11747
# libtool distribution, otherwise you forgot to ship ltmain.sh
11748
# with your package, and you will get complaints that there are
11749
# no rules to generate ltmain.sh.
11750
if test -f "$ltmain"; then
11751
# See if we are running on zsh, and set the options which allow our commands through
11752
# without removal of \ escapes.
11753
if test -n "${ZSH_VERSION+set}" ; then
11754
setopt NO_GLOB_SUBST
11756
# Now quote all the things that may contain metacharacters while being
11757
# careful not to overquote the AC_SUBSTed values. We take copies of the
11758
# variables and quote the copies for generation of the libtool script.
11759
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11761
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11762
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11763
deplibs_check_method reload_flag reload_cmds need_locks \
11764
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11765
lt_cv_sys_global_symbol_to_c_name_address \
11766
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11767
old_postinstall_cmds old_postuninstall_cmds \
11771
lt_prog_compiler_wl \
11772
lt_prog_compiler_pic \
11773
lt_prog_compiler_static \
11774
lt_prog_compiler_no_builtin_flag \
11775
export_dynamic_flag_spec \
11776
thread_safe_flag_spec \
11777
whole_archive_flag_spec \
11778
enable_shared_with_static_runtimes \
11780
old_archive_from_new_cmds \
11785
compiler_lib_search_path \
11787
archive_expsym_cmds \
11789
postuninstall_cmds \
11790
old_archive_from_expsyms_cmds \
11791
allow_undefined_flag \
11792
no_undefined_flag \
11793
export_symbols_cmds \
11794
hardcode_libdir_flag_spec \
11795
hardcode_libdir_flag_spec_ld \
11796
hardcode_libdir_separator \
11797
hardcode_automatic \
11799
module_expsym_cmds \
11800
lt_cv_prog_compiler_c_o \
11802
include_expsyms; do
11805
old_archive_cmds | \
11806
old_archive_from_new_cmds | \
11808
archive_expsym_cmds | \
11810
module_expsym_cmds | \
11811
old_archive_from_expsyms_cmds | \
11812
export_symbols_cmds | \
11813
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11814
postinstall_cmds | postuninstall_cmds | \
11815
old_postinstall_cmds | old_postuninstall_cmds | \
11816
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11817
# Double-quote double-evaled strings.
11818
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11821
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11827
*'\$0 --fallback-echo"')
11828
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11832
cfgfile="${ofile}T"
11833
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11835
{ echo "$as_me:$LINENO: creating $ofile" >&5
11836
echo "$as_me: creating $ofile" >&6;}
11838
cat <<__EOF__ >> "$cfgfile"
11841
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11842
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11843
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11845
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11846
# Free Software Foundation, Inc.
11848
# This file is part of GNU Libtool:
11849
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11851
# This program is free software; you can redistribute it and/or modify
11852
# it under the terms of the GNU General Public License as published by
11853
# the Free Software Foundation; either version 2 of the License, or
11854
# (at your option) any later version.
11856
# This program is distributed in the hope that it will be useful, but
11857
# WITHOUT ANY WARRANTY; without even the implied warranty of
11858
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11859
# General Public License for more details.
11861
# You should have received a copy of the GNU General Public License
11862
# along with this program; if not, write to the Free Software
11863
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11865
# As a special exception to the GNU General Public License, if you
11866
# distribute this file as part of a program that contains a
11867
# configuration script generated by Autoconf, you may include it under
11868
# the same distribution terms that you use for the rest of that program.
11870
# A sed program that does not truncate output.
11873
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11874
Xsed="$SED -e 1s/^X//"
11876
# The HP-UX ksh and POSIX shell print the target directory to stdout
11877
# if CDPATH is set.
11878
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11880
# The names of the tagged configurations supported by this script.
11883
# ### BEGIN LIBTOOL CONFIG
11885
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11887
# Shell to use when invoking shell scripts.
11890
# Whether or not to build shared libraries.
11891
build_libtool_libs=$enable_shared
11893
# Whether or not to build static libraries.
11894
build_old_libs=$enable_static
11896
# Whether or not to add -lc for building shared libraries.
11897
build_libtool_need_lc=$archive_cmds_need_lc
11899
# Whether or not to disallow shared libs when runtime libs are static
11900
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11902
# Whether or not to optimize for fast installation.
11903
fast_install=$enable_fast_install
11906
host_alias=$host_alias
11910
# The build system.
11911
build_alias=$build_alias
11915
# An echo program that does not interpret backslashes.
11920
AR_FLAGS=$lt_AR_FLAGS
11925
# LTCC compiler flags.
11926
LTCFLAGS=$lt_LTCFLAGS
11928
# A language-specific compiler.
11931
# Is the compiler the GNU C compiler?
11937
# The linker used to build libraries.
11940
# Whether we need hard or soft links.
11943
# A BSD-compatible nm program.
11946
# A symbol stripping program
11949
# Used to examine libraries when file_magic_cmd begins "file"
11950
MAGIC_CMD=$MAGIC_CMD
11952
# Used on cygwin: DLL creation program.
11955
# Used on cygwin: object dumper.
11958
# Used on cygwin: assembler.
11961
# The name of the directory that contains temporary libtool files.
11964
# How to create reloadable object files.
11965
reload_flag=$lt_reload_flag
11966
reload_cmds=$lt_reload_cmds
11968
# How to pass a linker flag through the compiler.
11969
wl=$lt_lt_prog_compiler_wl
11971
# Object file suffix (normally "o").
11972
objext="$ac_objext"
11974
# Old archive suffix (normally "a").
11977
# Shared library suffix (normally ".so").
11978
shrext_cmds='$shrext_cmds'
11980
# Executable file suffix (normally "").
11983
# Additional compiler flags for building library objects.
11984
pic_flag=$lt_lt_prog_compiler_pic
11987
# What is the maximum length of a command?
11988
max_cmd_len=$lt_cv_sys_max_cmd_len
11990
# Does compiler simultaneously support -c and -o options?
11991
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11993
# Must we lock files when doing compilation?
11994
need_locks=$lt_need_locks
11996
# Do we need the lib prefix for modules?
11997
need_lib_prefix=$need_lib_prefix
11999
# Do we need a version for libraries?
12000
need_version=$need_version
12002
# Whether dlopen is supported.
12003
dlopen_support=$enable_dlopen
12005
# Whether dlopen of programs is supported.
12006
dlopen_self=$enable_dlopen_self
12008
# Whether dlopen of statically linked programs is supported.
12009
dlopen_self_static=$enable_dlopen_self_static
12011
# Compiler flag to prevent dynamic linking.
12012
link_static_flag=$lt_lt_prog_compiler_static
12014
# Compiler flag to turn off builtin functions.
12015
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12017
# Compiler flag to allow reflexive dlopens.
12018
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12020
# Compiler flag to generate shared objects directly from archives.
12021
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12023
# Compiler flag to generate thread-safe objects.
12024
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12026
# Library versioning type.
12027
version_type=$version_type
12029
# Format of library name prefix.
12030
libname_spec=$lt_libname_spec
12032
# List of archive names. First name is the real one, the rest are links.
12033
# The last name is the one that the linker finds with -lNAME.
12034
library_names_spec=$lt_library_names_spec
12036
# The coded name of the library, if different from the real name.
12037
soname_spec=$lt_soname_spec
12039
# Commands used to build and install an old-style archive.
12041
old_archive_cmds=$lt_old_archive_cmds
12042
old_postinstall_cmds=$lt_old_postinstall_cmds
12043
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12045
# Create an old-style archive from a shared archive.
12046
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12048
# Create a temporary old-style archive to link instead of a shared archive.
12049
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12051
# Commands used to build and install a shared archive.
12052
archive_cmds=$lt_archive_cmds
12053
archive_expsym_cmds=$lt_archive_expsym_cmds
12054
postinstall_cmds=$lt_postinstall_cmds
12055
postuninstall_cmds=$lt_postuninstall_cmds
12057
# Commands used to build a loadable module (assumed same as above if empty)
12058
module_cmds=$lt_module_cmds
12059
module_expsym_cmds=$lt_module_expsym_cmds
12061
# Commands to strip libraries.
12062
old_striplib=$lt_old_striplib
12063
striplib=$lt_striplib
12065
# Dependencies to place before the objects being linked to create a
12067
predep_objects=$lt_predep_objects
12069
# Dependencies to place after the objects being linked to create a
12071
postdep_objects=$lt_postdep_objects
12073
# Dependencies to place before the objects being linked to create a
12075
predeps=$lt_predeps
12077
# Dependencies to place after the objects being linked to create a
12079
postdeps=$lt_postdeps
12081
# The library search path used internally by the compiler when linking
12082
# a shared library.
12083
compiler_lib_search_path=$lt_compiler_lib_search_path
12085
# Method to check whether dependent libraries are shared objects.
12086
deplibs_check_method=$lt_deplibs_check_method
12088
# Command to use when deplibs_check_method == file_magic.
12089
file_magic_cmd=$lt_file_magic_cmd
12091
# Flag that allows shared libraries with undefined symbols to be built.
12092
allow_undefined_flag=$lt_allow_undefined_flag
12094
# Flag that forces no undefined symbols.
12095
no_undefined_flag=$lt_no_undefined_flag
12097
# Commands used to finish a libtool library installation in a directory.
12098
finish_cmds=$lt_finish_cmds
12100
# Same as above, but a single script fragment to be evaled but not shown.
12101
finish_eval=$lt_finish_eval
12103
# Take the output of nm and produce a listing of raw symbols and C names.
12104
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12106
# Transform the output of nm in a proper C declaration
12107
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12109
# Transform the output of nm in a C name address pair
12110
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12112
# This is the shared library runtime path variable.
12113
runpath_var=$runpath_var
12115
# This is the shared library path variable.
12116
shlibpath_var=$shlibpath_var
12118
# Is shlibpath searched before the hard-coded library search path?
12119
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12121
# How to hardcode a shared library path into an executable.
12122
hardcode_action=$hardcode_action
12124
# Whether we should hardcode library paths into libraries.
12125
hardcode_into_libs=$hardcode_into_libs
12127
# Flag to hardcode \$libdir into a binary during linking.
12128
# This must work even if \$libdir does not exist.
12129
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12131
# If ld is used when linking, flag to hardcode \$libdir into
12132
# a binary during linking. This must work even if \$libdir does
12134
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12136
# Whether we need a single -rpath flag with a separated argument.
12137
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12139
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12140
# resulting binary.
12141
hardcode_direct=$hardcode_direct
12143
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12144
# resulting binary.
12145
hardcode_minus_L=$hardcode_minus_L
12147
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12148
# the resulting binary.
12149
hardcode_shlibpath_var=$hardcode_shlibpath_var
12151
# Set to yes if building a shared library automatically hardcodes DIR into the library
12152
# and all subsequent libraries and executables linked against it.
12153
hardcode_automatic=$hardcode_automatic
12155
# Variables whose values should be saved in libtool wrapper scripts and
12156
# restored at relink time.
12157
variables_saved_for_relink="$variables_saved_for_relink"
12159
# Whether libtool must link a program against all its dependency libraries.
12160
link_all_deplibs=$link_all_deplibs
12162
# Compile-time system search path for libraries
12163
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12165
# Run-time system search path for libraries
12166
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12168
# Fix the shell variable \$srcfile for the compiler.
12169
fix_srcfile_path="$fix_srcfile_path"
12171
# Set to yes if exported symbols are required.
12172
always_export_symbols=$always_export_symbols
12174
# The commands to list exported symbols.
12175
export_symbols_cmds=$lt_export_symbols_cmds
12177
# The commands to extract the exported symbol list from a shared archive.
12178
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12180
# Symbols that should not be listed in the preloaded symbols.
12181
exclude_expsyms=$lt_exclude_expsyms
12183
# Symbols that must always be exported.
12184
include_expsyms=$lt_include_expsyms
12186
# ### END LIBTOOL CONFIG
12193
cat <<\EOF >> "$cfgfile"
12195
# AIX sometimes has problems with the GCC collect2 program. For some
12196
# reason, if we set the COLLECT_NAMES environment variable, the problems
12197
# vanish in a puff of smoke.
12198
if test "X${COLLECT_NAMES+set}" != Xset; then
12200
export COLLECT_NAMES
12206
# We use sed instead of cat because bash on DJGPP gets confused if
12207
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12208
# text mode, it properly converts lines to CR/LF. This bash problem
12209
# is reportedly fixed, but why not run on old versions too?
12210
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12212
mv -f "$cfgfile" "$ofile" || \
12213
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12217
# If there is no Makefile yet, we rely on a make rule to execute
12218
# `config.status --recheck' to rerun these tests and create the
12219
# libtool script then.
12220
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12221
if test -f "$ltmain_in"; then
12222
test -f Makefile && make "$ltmain"
12228
ac_cpp='$CPP $CPPFLAGS'
12229
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12236
# Check whether --with-tags was given.
12237
if test "${with_tags+set}" = set; then
12238
withval=$with_tags; tagnames="$withval"
12242
if test -f "$ltmain" && test -n "$tagnames"; then
12243
if test ! -f "${ofile}"; then
12244
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12245
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12248
if test -z "$LTCC"; then
12249
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12250
if test -z "$LTCC"; then
12251
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12252
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12254
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12255
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12258
if test -z "$LTCFLAGS"; then
12259
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12262
# Extract list of available tagged configurations in $ofile.
12263
# Note that this assumes the entire list is on one line.
12264
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12266
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12267
for tagname in $tagnames; do
12269
# Check whether tagname contains only valid characters
12270
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12272
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12273
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12274
{ (exit 1); exit 1; }; }
12278
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12280
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12281
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12282
{ (exit 1); exit 1; }; }
12285
# Update the list of available tags.
12286
if test -n "$tagname"; then
12287
echo appending configuration tag \"$tagname\" to $ofile
12291
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12292
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12293
(test "X$CXX" != "Xg++"))) ; then
12295
ac_cpp='$CXXCPP $CPPFLAGS'
12296
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12303
archive_cmds_need_lc_CXX=no
12304
allow_undefined_flag_CXX=
12305
always_export_symbols_CXX=no
12306
archive_expsym_cmds_CXX=
12307
export_dynamic_flag_spec_CXX=
12308
hardcode_direct_CXX=no
12309
hardcode_libdir_flag_spec_CXX=
12310
hardcode_libdir_flag_spec_ld_CXX=
12311
hardcode_libdir_separator_CXX=
12312
hardcode_minus_L_CXX=no
12313
hardcode_shlibpath_var_CXX=unsupported
12314
hardcode_automatic_CXX=no
12316
module_expsym_cmds_CXX=
12317
link_all_deplibs_CXX=unknown
12318
old_archive_cmds_CXX=$old_archive_cmds
12319
no_undefined_flag_CXX=
12320
whole_archive_flag_spec_CXX=
12321
enable_shared_with_static_runtimes_CXX=no
12323
# Dependencies to place before and after the object being linked:
12324
predep_objects_CXX=
12325
postdep_objects_CXX=
12328
compiler_lib_search_path_CXX=
12330
# Source file extension for C++ test sources.
12333
# Object file extension for compiled C++ test sources.
12337
# Code to be used in simple compile tests
12338
lt_simple_compile_test_code="int some_variable = 0;\n"
12340
# Code to be used in simple link tests
12341
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12343
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12345
# If no C compiler was specified, use CC.
12348
# If no C compiler flags were specified, use CFLAGS.
12349
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12351
# Allow CC to be a program name with arguments.
12355
# save warnings/boilerplate of simple test code
12356
ac_outfile=conftest.$ac_objext
12357
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12358
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12359
_lt_compiler_boilerplate=`cat conftest.err`
12362
ac_outfile=conftest.$ac_objext
12363
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12364
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12365
_lt_linker_boilerplate=`cat conftest.err`
12369
# Allow CC to be a program name with arguments.
12374
lt_save_with_gnu_ld=$with_gnu_ld
12375
lt_save_path_LD=$lt_cv_path_LD
12376
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12377
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12379
$as_unset lt_cv_prog_gnu_ld
12381
if test -n "${lt_cv_path_LDCXX+set}"; then
12382
lt_cv_path_LD=$lt_cv_path_LDCXX
12384
$as_unset lt_cv_path_LD
12386
test -z "${LDCXX+set}" || LD=$LDCXX
12390
for cc_temp in $compiler""; do
12392
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12393
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12398
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12401
# We don't want -fno-exception wen compiling C++ code, so set the
12402
# no_builtin_flag separately
12403
if test "$GXX" = yes; then
12404
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12406
lt_prog_compiler_no_builtin_flag_CXX=
12409
if test "$GXX" = yes; then
12410
# Set up default GNU C++ configuration
12413
# Check whether --with-gnu-ld was given.
12414
if test "${with_gnu_ld+set}" = set; then
12415
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12421
if test "$GCC" = yes; then
12422
# Check if gcc -print-prog-name=ld gives a path.
12423
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12424
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12427
# gcc leaves a trailing carriage return which upsets mingw
12428
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12430
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12433
# Accept absolute paths.
12435
re_direlt='/[^/][^/]*/\.\./'
12436
# Canonicalize the pathname of ld
12437
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12438
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12439
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12441
test -z "$LD" && LD="$ac_prog"
12444
# If it fails, then pretend we aren't using GCC.
12448
# If it is relative, then search for the first ld in PATH.
12449
with_gnu_ld=unknown
12452
elif test "$with_gnu_ld" = yes; then
12453
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12454
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12456
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12457
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12459
if test "${lt_cv_path_LD+set}" = set; then
12460
echo $ECHO_N "(cached) $ECHO_C" >&6
12462
if test -z "$LD"; then
12463
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12464
for ac_dir in $PATH; do
12466
test -z "$ac_dir" && ac_dir=.
12467
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12468
lt_cv_path_LD="$ac_dir/$ac_prog"
12469
# Check to see if the program is GNU ld. I'd rather use --version,
12470
# but apparently some variants of GNU ld only accept -v.
12471
# Break only if it was the GNU/non-GNU ld that we prefer.
12472
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12473
*GNU* | *'with BFD'*)
12474
test "$with_gnu_ld" != no && break
12477
test "$with_gnu_ld" != yes && break
12484
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12488
LD="$lt_cv_path_LD"
12489
if test -n "$LD"; then
12490
{ echo "$as_me:$LINENO: result: $LD" >&5
12491
echo "${ECHO_T}$LD" >&6; }
12493
{ echo "$as_me:$LINENO: result: no" >&5
12494
echo "${ECHO_T}no" >&6; }
12496
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12497
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12498
{ (exit 1); exit 1; }; }
12499
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12500
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12501
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12502
echo $ECHO_N "(cached) $ECHO_C" >&6
12504
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12505
case `$LD -v 2>&1 </dev/null` in
12506
*GNU* | *'with BFD'*)
12507
lt_cv_prog_gnu_ld=yes
12510
lt_cv_prog_gnu_ld=no
12514
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12515
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12516
with_gnu_ld=$lt_cv_prog_gnu_ld
12520
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12521
# archiving commands below assume that GNU ld is being used.
12522
if test "$with_gnu_ld" = yes; then
12523
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12524
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'
12526
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12527
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12529
# If archive_cmds runs LD, not CC, wlarc should be empty
12530
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12531
# investigate it a little bit more. (MM)
12534
# ancient GNU ld didn't support --whole-archive et. al.
12535
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12536
grep 'no-whole-archive' > /dev/null; then
12537
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12539
whole_archive_flag_spec_CXX=
12545
# A generic and very simple default shared library creation
12546
# command for GNU C++ for the case where it uses the native
12547
# linker, instead of GNU ld. If possible, this setting should
12548
# overridden to take advantage of the native linker features on
12549
# the platform it is being used on.
12550
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12553
# Commands to make compiler produce verbose output that lists
12554
# what "hidden" libraries, object files and flags are used when
12555
# linking a shared library.
12556
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12564
# PORTME: fill in a description of your system's C++ link characteristics
12565
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12566
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12570
# FIXME: insert proper C++ library support
12574
if test "$host_cpu" = ia64; then
12575
# On IA64, the linker does run time linking by default, so we don't
12576
# have to do anything special.
12577
aix_use_runtimelinking=no
12578
exp_sym_flag='-Bexport'
12581
aix_use_runtimelinking=no
12583
# Test if we are trying to use run time linking or normal
12584
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12585
# need to do runtime linking.
12586
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12587
for ld_flag in $LDFLAGS; do
12590
aix_use_runtimelinking=yes
12598
exp_sym_flag='-bexport'
12599
no_entry_flag='-bnoentry'
12602
# When large executables or shared objects are built, AIX ld can
12603
# have problems creating the table of contents. If linking a library
12604
# or program results in "error TOC overflow" add -mminimal-toc to
12605
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12606
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12608
archive_cmds_CXX=''
12609
hardcode_direct_CXX=yes
12610
hardcode_libdir_separator_CXX=':'
12611
link_all_deplibs_CXX=yes
12613
if test "$GXX" = yes; then
12614
case $host_os in aix4.[012]|aix4.[012].*)
12615
# We only want to do this on AIX 4.2 and lower, the check
12616
# below for broken collect2 doesn't work under 4.3+
12617
collect2name=`${CC} -print-prog-name=collect2`
12618
if test -f "$collect2name" && \
12619
strings "$collect2name" | grep resolve_lib_name >/dev/null
12621
# We have reworked collect2
12622
hardcode_direct_CXX=yes
12624
# We have old collect2
12625
hardcode_direct_CXX=unsupported
12626
# It fails to find uninstalled libraries when the uninstalled
12627
# path is not listed in the libpath. Setting hardcode_minus_L
12628
# to unsupported forces relinking
12629
hardcode_minus_L_CXX=yes
12630
hardcode_libdir_flag_spec_CXX='-L$libdir'
12631
hardcode_libdir_separator_CXX=
12635
shared_flag='-shared'
12636
if test "$aix_use_runtimelinking" = yes; then
12637
shared_flag="$shared_flag "'${wl}-G'
12641
if test "$host_cpu" = ia64; then
12642
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12643
# chokes on -Wl,-G. The following line is correct:
12646
if test "$aix_use_runtimelinking" = yes; then
12647
shared_flag='${wl}-G'
12649
shared_flag='${wl}-bM:SRE'
12654
# It seems that -bexpall does not export symbols beginning with
12655
# underscore (_), so it is better to generate a list of symbols to export.
12656
always_export_symbols_CXX=yes
12657
if test "$aix_use_runtimelinking" = yes; then
12658
# Warning - without using the other runtime loading flags (-brtl),
12659
# -berok will link without error, but may produce a broken library.
12660
allow_undefined_flag_CXX='-berok'
12661
# Determine the default libpath from the value encoded in an empty executable.
12662
cat >conftest.$ac_ext <<_ACEOF
12665
cat confdefs.h >>conftest.$ac_ext
12666
cat >>conftest.$ac_ext <<_ACEOF
12667
/* end confdefs.h. */
12677
rm -f conftest.$ac_objext conftest$ac_exeext
12678
if { (ac_try="$ac_link"
12679
case "(($ac_try" in
12680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681
*) ac_try_echo=$ac_try;;
12683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684
(eval "$ac_link") 2>conftest.er1
12686
grep -v '^ *+' conftest.er1 >conftest.err
12688
cat conftest.err >&5
12689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690
(exit $ac_status); } &&
12691
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12692
{ (case "(($ac_try" in
12693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694
*) ac_try_echo=$ac_try;;
12696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697
(eval "$ac_try") 2>&5
12699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700
(exit $ac_status); }; } &&
12701
{ ac_try='test -s conftest$ac_exeext'
12702
{ (case "(($ac_try" in
12703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704
*) ac_try_echo=$ac_try;;
12706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707
(eval "$ac_try") 2>&5
12709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710
(exit $ac_status); }; }; then
12712
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12714
# Check for a 64-bit object if we didn't find anything.
12715
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; }
12718
echo "$as_me: failed program was:" >&5
12719
sed 's/^/| /' conftest.$ac_ext >&5
12724
rm -f conftest.err conftest.$ac_objext \
12725
conftest$ac_exeext conftest.$ac_ext
12726
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12728
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12730
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"
12732
if test "$host_cpu" = ia64; then
12733
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12734
allow_undefined_flag_CXX="-z nodefs"
12735
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"
12737
# Determine the default libpath from the value encoded in an empty executable.
12738
cat >conftest.$ac_ext <<_ACEOF
12741
cat confdefs.h >>conftest.$ac_ext
12742
cat >>conftest.$ac_ext <<_ACEOF
12743
/* end confdefs.h. */
12753
rm -f conftest.$ac_objext conftest$ac_exeext
12754
if { (ac_try="$ac_link"
12755
case "(($ac_try" in
12756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757
*) ac_try_echo=$ac_try;;
12759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760
(eval "$ac_link") 2>conftest.er1
12762
grep -v '^ *+' conftest.er1 >conftest.err
12764
cat conftest.err >&5
12765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766
(exit $ac_status); } &&
12767
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12768
{ (case "(($ac_try" in
12769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770
*) ac_try_echo=$ac_try;;
12772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773
(eval "$ac_try") 2>&5
12775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776
(exit $ac_status); }; } &&
12777
{ ac_try='test -s conftest$ac_exeext'
12778
{ (case "(($ac_try" in
12779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780
*) ac_try_echo=$ac_try;;
12782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783
(eval "$ac_try") 2>&5
12785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786
(exit $ac_status); }; }; then
12788
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12790
# Check for a 64-bit object if we didn't find anything.
12791
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; }
12794
echo "$as_me: failed program was:" >&5
12795
sed 's/^/| /' conftest.$ac_ext >&5
12800
rm -f conftest.err conftest.$ac_objext \
12801
conftest$ac_exeext conftest.$ac_ext
12802
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12804
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12805
# Warning - without using the other run time loading flags,
12806
# -berok will link without error, but may produce a broken library.
12807
no_undefined_flag_CXX=' ${wl}-bernotok'
12808
allow_undefined_flag_CXX=' ${wl}-berok'
12809
# Exported symbols can be pulled into shared objects from archives
12810
whole_archive_flag_spec_CXX='$convenience'
12811
archive_cmds_need_lc_CXX=yes
12812
# This is similar to how AIX traditionally builds its shared libraries.
12813
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'
12819
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12820
allow_undefined_flag_CXX=unsupported
12821
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12822
# support --undefined. This deserves some investigation. FIXME
12823
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830
case $cc_basename in
12832
# FIXME: insert proper C++ library support
12838
cygwin* | mingw* | pw32*)
12839
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12840
# as there is no search path for DLLs.
12841
hardcode_libdir_flag_spec_CXX='-L$libdir'
12842
allow_undefined_flag_CXX=unsupported
12843
always_export_symbols_CXX=no
12844
enable_shared_with_static_runtimes_CXX=yes
12846
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12847
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'
12848
# If the export-symbols file already is a .def file (1st line
12849
# is EXPORTS), use it as is; otherwise, prepend...
12850
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12851
cp $export_symbols $output_objdir/$soname.def;
12853
echo EXPORTS > $output_objdir/$soname.def;
12854
cat $export_symbols >> $output_objdir/$soname.def;
12856
$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'
12861
darwin* | rhapsody*)
12863
rhapsody* | darwin1.[012])
12864
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12867
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12868
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12870
case ${MACOSX_DEPLOYMENT_TARGET} in
12872
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12875
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12881
archive_cmds_need_lc_CXX=no
12882
hardcode_direct_CXX=no
12883
hardcode_automatic_CXX=yes
12884
hardcode_shlibpath_var_CXX=unsupported
12885
whole_archive_flag_spec_CXX=''
12886
link_all_deplibs_CXX=yes
12888
if test "$GXX" = yes ; then
12889
lt_int_apple_cc_single_mod=no
12890
output_verbose_link_cmd='echo'
12891
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12892
lt_int_apple_cc_single_mod=yes
12894
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12895
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12897
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'
12899
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12900
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12901
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12902
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}'
12904
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}'
12906
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}'
12908
case $cc_basename in
12910
output_verbose_link_cmd='echo'
12911
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'
12912
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12913
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12914
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}'
12915
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}'
12925
case $cc_basename in
12927
# FIXME: insert proper C++ library support
12931
# Green Hills C++ Compiler
12932
# FIXME: insert proper C++ library support
12936
# FIXME: insert proper C++ library support
12942
# C++ shared libraries reported to be fairly broken before switch to ELF
12946
archive_cmds_need_lc_CXX=no
12948
freebsd* | dragonfly*)
12949
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12956
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12957
hardcode_libdir_separator_CXX=:
12958
export_dynamic_flag_spec_CXX='${wl}-E'
12959
hardcode_direct_CXX=yes
12960
hardcode_minus_L_CXX=yes # Not in the search PATH,
12961
# but as the default
12962
# location of the library.
12964
case $cc_basename in
12966
# FIXME: insert proper C++ library support
12970
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'
12971
# Commands to make compiler produce verbose output that lists
12972
# what "hidden" libraries, object files and flags are used when
12973
# linking a shared library.
12975
# There doesn't appear to be a way to prevent this compiler from
12976
# explicitly linking system object files so we need to strip them
12977
# from the output so that they don't get included in the library
12979
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'
12982
if test "$GXX" = yes; then
12983
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'
12985
# FIXME: insert proper C++ library support
12992
if test $with_gnu_ld = no; then
12993
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12994
hardcode_libdir_separator_CXX=:
12998
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13001
export_dynamic_flag_spec_CXX='${wl}-E'
13007
hardcode_direct_CXX=no
13008
hardcode_shlibpath_var_CXX=no
13011
hardcode_direct_CXX=yes
13012
hardcode_minus_L_CXX=yes # Not in the search PATH,
13013
# but as the default
13014
# location of the library.
13018
case $cc_basename in
13020
# FIXME: insert proper C++ library support
13026
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13035
# Commands to make compiler produce verbose output that lists
13036
# what "hidden" libraries, object files and flags are used when
13037
# linking a shared library.
13039
# There doesn't appear to be a way to prevent this compiler from
13040
# explicitly linking system object files so we need to strip them
13041
# from the output so that they don't get included in the library
13043
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'
13046
if test "$GXX" = yes; then
13047
if test $with_gnu_ld = no; then
13050
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056
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'
13061
# FIXME: insert proper C++ library support
13068
hardcode_direct_CXX=no
13069
hardcode_shlibpath_var_CXX=no
13070
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13071
export_dynamic_flag_spec_CXX='${wl}-E'
13072
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13073
# Instead, shared libraries are loaded at an image base (0x10000000 by
13074
# default) and relocated if they conflict, which is a slow very memory
13075
# consuming and fragmenting process. To avoid this, we pick a random,
13076
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13077
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13078
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'
13079
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'
13082
case $cc_basename in
13085
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'
13087
# Archives containing C++ object files must be created using
13088
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13089
# necessary to make sure instantiated templates are included
13091
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13094
if test "$GXX" = yes; then
13095
if test "$with_gnu_ld" = no; then
13096
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'
13098
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'
13101
link_all_deplibs_CXX=yes
13104
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13105
hardcode_libdir_separator_CXX=:
13107
linux* | k*bsd*-gnu)
13108
case $cc_basename in
13110
# Kuck and Associates, Inc. (KAI) C++ Compiler
13112
# KCC will only create a shared library if the output file
13113
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13114
# to its proper name (with version) after linking.
13115
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'
13116
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'
13117
# Commands to make compiler produce verbose output that lists
13118
# what "hidden" libraries, object files and flags are used when
13119
# linking a shared library.
13121
# There doesn't appear to be a way to prevent this compiler from
13122
# explicitly linking system object files so we need to strip them
13123
# from the output so that they don't get included in the library
13125
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'
13127
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13128
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13130
# Archives containing C++ object files must be created using
13131
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13137
# version 8.0 and above of icpc choke on multiply defined symbols
13138
# if we add $predep_objects and $postdep_objects, however 7.1 and
13139
# earlier do not add the objects themselves.
13140
case `$CC -V 2>&1` in
13142
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143
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'
13145
*) # Version 8.0 or newer
13148
ia64*) tmp_idyn=' -i_dynamic';;
13150
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13151
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'
13154
archive_cmds_need_lc_CXX=no
13155
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13156
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13157
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13160
# Portland Group C++ compiler
13161
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13162
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'
13164
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13165
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13166
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'
13170
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171
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'
13173
runpath_var=LD_RUN_PATH
13174
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175
hardcode_libdir_separator_CXX=:
13177
# Commands to make compiler produce verbose output that lists
13178
# what "hidden" libraries, object files and flags are used when
13179
# linking a shared library.
13181
# There doesn't appear to be a way to prevent this compiler from
13182
# explicitly linking system object files so we need to strip them
13183
# from the output so that they don't get included in the library
13185
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'
13190
# FIXME: insert proper C++ library support
13194
# FIXME: insert proper C++ library support
13198
case $cc_basename in
13200
# FIXME: insert proper C++ library support
13204
# FIXME: insert proper C++ library support
13209
netbsd* | netbsdelf*-gnu)
13210
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13211
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13213
hardcode_libdir_flag_spec_CXX='-R$libdir'
13214
hardcode_direct_CXX=yes
13215
hardcode_shlibpath_var_CXX=no
13217
# Workaround some broken pre-1.5 toolchains
13218
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13221
# C++ shared libraries are fairly broken
13225
hardcode_direct_CXX=yes
13226
hardcode_shlibpath_var_CXX=no
13227
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13228
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13229
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13230
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13231
export_dynamic_flag_spec_CXX='${wl}-E'
13232
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13234
output_verbose_link_cmd='echo'
13237
case $cc_basename in
13239
# Kuck and Associates, Inc. (KAI) C++ Compiler
13241
# KCC will only create a shared library if the output file
13242
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13243
# to its proper name (with version) after linking.
13244
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'
13246
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13247
hardcode_libdir_separator_CXX=:
13249
# Archives containing C++ object files must be created using
13250
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13251
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13255
# Rational C++ 2.4.1
13256
# FIXME: insert proper C++ library support
13260
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13261
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'
13263
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13264
hardcode_libdir_separator_CXX=:
13266
# Commands to make compiler produce verbose output that lists
13267
# what "hidden" libraries, object files and flags are used when
13268
# linking a shared library.
13270
# There doesn't appear to be a way to prevent this compiler from
13271
# explicitly linking system object files so we need to strip them
13272
# from the output so that they don't get included in the library
13274
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'
13277
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13278
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13279
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'
13281
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13282
hardcode_libdir_separator_CXX=:
13284
# Commands to make compiler produce verbose output that lists
13285
# what "hidden" libraries, object files and flags are used when
13286
# linking a shared library.
13287
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13290
# FIXME: insert proper C++ library support
13297
case $cc_basename in
13299
# Kuck and Associates, Inc. (KAI) C++ Compiler
13301
# KCC will only create a shared library if the output file
13302
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13303
# to its proper name (with version) after linking.
13304
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'
13306
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13307
hardcode_libdir_separator_CXX=:
13309
# Archives containing C++ object files must be created using
13310
# the KAI C++ compiler.
13311
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13314
# Rational C++ 2.4.1
13315
# FIXME: insert proper C++ library support
13319
allow_undefined_flag_CXX=' -expect_unresolved \*'
13320
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'
13321
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13322
echo "-hidden">> $lib.exp~
13323
$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~
13326
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13327
hardcode_libdir_separator_CXX=:
13329
# Commands to make compiler produce verbose output that lists
13330
# what "hidden" libraries, object files and flags are used when
13331
# linking a shared library.
13333
# There doesn't appear to be a way to prevent this compiler from
13334
# explicitly linking system object files so we need to strip them
13335
# from the output so that they don't get included in the library
13337
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'
13340
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13341
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13342
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'
13344
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13345
hardcode_libdir_separator_CXX=:
13347
# Commands to make compiler produce verbose output that lists
13348
# what "hidden" libraries, object files and flags are used when
13349
# linking a shared library.
13350
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13353
# FIXME: insert proper C++ library support
13360
# FIXME: insert proper C++ library support
13364
case $cc_basename in
13367
# FIXME: insert proper C++ library support
13372
# FIXME: insert proper C++ library support
13376
# FIXME: insert proper C++ library support
13382
case $cc_basename in
13384
# Sun C++ 4.2, 5.x and Centerline C++
13385
archive_cmds_need_lc_CXX=yes
13386
no_undefined_flag_CXX=' -zdefs'
13387
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13388
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13389
$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'
13391
hardcode_libdir_flag_spec_CXX='-R$libdir'
13392
hardcode_shlibpath_var_CXX=no
13394
solaris2.[0-5] | solaris2.[0-5].*) ;;
13396
# The C++ compiler is used as linker so we must use $wl
13397
# flag to pass the commands to the underlying system
13398
# linker. We must also pass each convience library through
13399
# to the system linker between allextract/defaultextract.
13400
# The C++ compiler will combine linker options so we
13401
# cannot just pass the convience library names through
13403
# Supported since Solaris 2.6 (maybe 2.5.1?)
13404
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'
13407
link_all_deplibs_CXX=yes
13409
output_verbose_link_cmd='echo'
13411
# Archives containing C++ object files must be created using
13412
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13413
# necessary to make sure instantiated templates are included
13415
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13418
# Green Hills C++ Compiler
13419
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13421
# The C++ compiler must be used to create the archive.
13422
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13425
# GNU C++ compiler with Solaris linker
13426
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13427
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13428
if $CC --version | grep -v '^2\.7' > /dev/null; then
13429
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13431
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13433
# Commands to make compiler produce verbose output that lists
13434
# what "hidden" libraries, object files and flags are used when
13435
# linking a shared library.
13436
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13438
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13440
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13441
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13444
# Commands to make compiler produce verbose output that lists
13445
# what "hidden" libraries, object files and flags are used when
13446
# linking a shared library.
13447
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13450
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13455
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456
no_undefined_flag_CXX='${wl}-z,text'
13457
archive_cmds_need_lc_CXX=no
13458
hardcode_shlibpath_var_CXX=no
13459
runpath_var='LD_RUN_PATH'
13461
case $cc_basename in
13463
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472
sysv5* | sco3.2v5* | sco5v6*)
13473
# Note: We can NOT use -z defs as we might desire, because we do not
13474
# link with -lc, and that would cause any symbols used from libc to
13475
# always be unresolved, which means just about no library would
13476
# ever link correctly. If we're not using GNU ld we use -z text
13477
# though, which does catch some bad symbols but isn't as heavy-handed
13479
# For security reasons, it is highly recommended that you always
13480
# use absolute paths for naming shared libraries, and exclude the
13481
# DT_RUNPATH tag from executables and libraries. But doing so
13482
# requires that you compile everything twice, which is a pain.
13483
# So that behaviour is only enabled if SCOABSPATH is set to a
13484
# non-empty value in the environment. Most likely only useful for
13485
# creating official distributions of packages.
13486
# This is a hack until libtool officially supports absolute path
13487
# names for shared libraries.
13488
no_undefined_flag_CXX='${wl}-z,text'
13489
allow_undefined_flag_CXX='${wl}-z,nodefs'
13490
archive_cmds_need_lc_CXX=no
13491
hardcode_shlibpath_var_CXX=no
13492
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13493
hardcode_libdir_separator_CXX=':'
13494
link_all_deplibs_CXX=yes
13495
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13496
runpath_var='LD_RUN_PATH'
13498
case $cc_basename in
13500
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13505
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13510
case $cc_basename in
13512
# NonStop-UX NCC 3.20
13513
# FIXME: insert proper C++ library support
13517
# FIXME: insert proper C++ library support
13523
# FIXME: insert proper C++ library support
13527
# FIXME: insert proper C++ library support
13531
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13532
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13533
test "$ld_shlibs_CXX" = no && can_build_shared=no
13539
## There is no encapsulation within the following macros, do not change
13540
## the running order or otherwise move them around unless you know exactly
13541
## what you are doing...
13543
cat > conftest.$ac_ext <<EOF
13547
Foo (void) { a = 0; }
13553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
(eval $ac_compile) 2>&5
13556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
(exit $ac_status); }; then
13558
# Parse the compiler output and extract the necessary
13559
# objects, libraries and library flags.
13561
# Sentinel used to keep track of whether or not we are before
13562
# the conftest object file.
13563
pre_test_object_deps_done=no
13565
# The `*' in the case matches for architectures that use `case' in
13566
# $output_verbose_cmd can trigger glob expansion during the loop
13567
# eval without this substitution.
13568
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13570
for p in `eval $output_verbose_link_cmd`; do
13574
# Some compilers place space between "-{L,R}" and the path.
13575
# Remove the space.
13576
if test $p = "-L" \
13577
|| test $p = "-R"; then
13584
if test "$pre_test_object_deps_done" = no; then
13587
# Internal compiler library paths should come after those
13588
# provided the user. The postdeps already come after the
13589
# user supplied libs so there is no need to process them.
13590
if test -z "$compiler_lib_search_path_CXX"; then
13591
compiler_lib_search_path_CXX="${prev}${p}"
13593
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13596
# The "-l" case would never come before the object being
13597
# linked, so don't bother handling this case.
13600
if test -z "$postdeps_CXX"; then
13601
postdeps_CXX="${prev}${p}"
13603
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13609
# This assumes that the test object file only shows up
13610
# once in the compiler output.
13611
if test "$p" = "conftest.$objext"; then
13612
pre_test_object_deps_done=yes
13616
if test "$pre_test_object_deps_done" = no; then
13617
if test -z "$predep_objects_CXX"; then
13618
predep_objects_CXX="$p"
13620
predep_objects_CXX="$predep_objects_CXX $p"
13623
if test -z "$postdep_objects_CXX"; then
13624
postdep_objects_CXX="$p"
13626
postdep_objects_CXX="$postdep_objects_CXX $p"
13631
*) ;; # Ignore the rest.
13639
echo "libtool.m4: error: problem compiling CXX test program"
13642
$rm -f confest.$objext
13644
# PORTME: override above test on systems where it is broken
13647
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13648
# hack all around it, let's just trust "g++" to DTRT.
13649
predep_objects_CXX=
13650
postdep_objects_CXX=
13655
case $cc_basename in
13657
# Adding this requires a known-good setup of shared libraries for
13658
# Sun compiler versions before 5.6, else PIC objects from an old
13659
# archive will be linked into the output, leading to subtle bugs.
13660
postdeps_CXX='-lCstd -lCrun'
13667
case " $postdeps_CXX " in
13668
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13671
lt_prog_compiler_wl_CXX=
13672
lt_prog_compiler_pic_CXX=
13673
lt_prog_compiler_static_CXX=
13675
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13676
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13678
# C++ specific cases for pic, static, wl, etc.
13679
if test "$GXX" = yes; then
13680
lt_prog_compiler_wl_CXX='-Wl,'
13681
lt_prog_compiler_static_CXX='-static'
13685
# All AIX code is PIC.
13686
if test "$host_cpu" = ia64; then
13687
# AIX 5 now supports IA64 processor
13688
lt_prog_compiler_static_CXX='-Bstatic'
13692
# FIXME: we need at least 68020 code to build shared libraries, but
13693
# adding the `-m68020' flag to GCC prevents building anything better,
13695
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13697
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13698
# PIC is the default for these OSes.
13700
mingw* | os2* | pw32*)
13701
# This hack is so that the source file can tell whether it is being
13702
# built for inclusion in a dll (and should export symbols for example).
13703
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13705
darwin* | rhapsody*)
13706
# PIC is the default on this platform
13707
# Common symbols not allowed in MH_DYLIB files
13708
lt_prog_compiler_pic_CXX='-fno-common'
13711
# DJGPP does not support shared libraries at all
13712
lt_prog_compiler_pic_CXX=
13715
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13716
# Instead, we relocate shared libraries at runtime.
13719
if test -d /usr/nec; then
13720
lt_prog_compiler_pic_CXX=-Kconform_pic
13724
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13725
# not for PA HP-UX.
13730
lt_prog_compiler_pic_CXX='-fPIC'
13735
lt_prog_compiler_pic_CXX='-fPIC'
13741
# All AIX code is PIC.
13742
if test "$host_cpu" = ia64; then
13743
# AIX 5 now supports IA64 processor
13744
lt_prog_compiler_static_CXX='-Bstatic'
13746
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13750
case $cc_basename in
13752
# Green Hills C++ Compiler
13753
# _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"
13758
# PIC is the default on this platform
13759
# Common symbols not allowed in MH_DYLIB files
13760
case $cc_basename in
13762
lt_prog_compiler_pic_CXX='-qnocommon'
13763
lt_prog_compiler_wl_CXX='-Wl,'
13768
case $cc_basename in
13770
lt_prog_compiler_pic_CXX='-KPIC'
13773
# Green Hills C++ Compiler
13774
lt_prog_compiler_pic_CXX='-pic'
13780
freebsd* | dragonfly*)
13781
# FreeBSD uses GNU C++
13783
hpux9* | hpux10* | hpux11*)
13784
case $cc_basename in
13786
lt_prog_compiler_wl_CXX='-Wl,'
13787
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13788
if test "$host_cpu" != ia64; then
13789
lt_prog_compiler_pic_CXX='+Z'
13793
lt_prog_compiler_wl_CXX='-Wl,'
13794
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13800
lt_prog_compiler_pic_CXX='+Z'
13809
# This is c89, which is MS Visual C++ (no shared libs)
13810
# Anyone wants to do a port?
13812
irix5* | irix6* | nonstopux*)
13813
case $cc_basename in
13815
lt_prog_compiler_wl_CXX='-Wl,'
13816
lt_prog_compiler_static_CXX='-non_shared'
13817
# CC pic flag -KPIC is the default.
13823
linux* | k*bsd*-gnu)
13824
case $cc_basename in
13827
lt_prog_compiler_wl_CXX='--backend -Wl,'
13828
lt_prog_compiler_pic_CXX='-fPIC'
13832
lt_prog_compiler_wl_CXX='-Wl,'
13833
lt_prog_compiler_pic_CXX='-KPIC'
13834
lt_prog_compiler_static_CXX='-static'
13837
# Portland Group C++ compiler.
13838
lt_prog_compiler_wl_CXX='-Wl,'
13839
lt_prog_compiler_pic_CXX='-fpic'
13840
lt_prog_compiler_static_CXX='-Bstatic'
13844
# Make sure the PIC flag is empty. It appears that all Alpha
13845
# Linux and Compaq Tru64 Unix objects are PIC.
13846
lt_prog_compiler_pic_CXX=
13847
lt_prog_compiler_static_CXX='-non_shared'
13858
case $cc_basename in
13860
lt_prog_compiler_pic_CXX='-W c,exportall'
13866
netbsd* | netbsdelf*-gnu)
13868
osf3* | osf4* | osf5*)
13869
case $cc_basename in
13871
lt_prog_compiler_wl_CXX='--backend -Wl,'
13874
# Rational C++ 2.4.1
13875
lt_prog_compiler_pic_CXX='-pic'
13878
# Digital/Compaq C++
13879
lt_prog_compiler_wl_CXX='-Wl,'
13880
# Make sure the PIC flag is empty. It appears that all Alpha
13881
# Linux and Compaq Tru64 Unix objects are PIC.
13882
lt_prog_compiler_pic_CXX=
13883
lt_prog_compiler_static_CXX='-non_shared'
13892
case $cc_basename in
13894
# Sun C++ 4.2, 5.x and Centerline C++
13895
lt_prog_compiler_pic_CXX='-KPIC'
13896
lt_prog_compiler_static_CXX='-Bstatic'
13897
lt_prog_compiler_wl_CXX='-Qoption ld '
13900
# Green Hills C++ Compiler
13901
lt_prog_compiler_pic_CXX='-PIC'
13908
case $cc_basename in
13911
lt_prog_compiler_pic_CXX='-pic'
13912
lt_prog_compiler_static_CXX='-Bstatic'
13916
lt_prog_compiler_pic_CXX='-pic'
13923
case $cc_basename in
13925
# NonStop-UX NCC 3.20
13926
lt_prog_compiler_pic_CXX='-KPIC'
13932
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933
case $cc_basename in
13935
lt_prog_compiler_wl_CXX='-Wl,'
13936
lt_prog_compiler_pic_CXX='-KPIC'
13937
lt_prog_compiler_static_CXX='-Bstatic'
13944
lt_prog_compiler_can_build_shared_CXX=no
13949
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13950
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13953
# Check to make sure the PIC flag actually works.
13955
if test -n "$lt_prog_compiler_pic_CXX"; then
13957
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13958
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13959
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13960
echo $ECHO_N "(cached) $ECHO_C" >&6
13962
lt_prog_compiler_pic_works_CXX=no
13963
ac_outfile=conftest.$ac_objext
13964
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13965
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13966
# Insert the option either (1) after the last *FLAGS variable, or
13967
# (2) before a word containing "conftest.", or (3) at the end.
13968
# Note that $ac_compile itself does not contain backslashes and begins
13969
# with a dollar sign (not a hyphen), so the echo should work correctly.
13970
# The option is referenced via a variable to avoid confusing sed.
13971
lt_compile=`echo "$ac_compile" | $SED \
13972
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974
-e 's:$: $lt_compiler_flag:'`
13975
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13976
(eval "$lt_compile" 2>conftest.err)
13978
cat conftest.err >&5
13979
echo "$as_me:__oline__: \$? = $ac_status" >&5
13980
if (exit $ac_status) && test -s "$ac_outfile"; then
13981
# The compiler can only warn and ignore the option if not recognized
13982
# So say no if there are warnings other than the usual output.
13983
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13984
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13985
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13986
lt_prog_compiler_pic_works_CXX=yes
13992
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13993
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13995
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13996
case $lt_prog_compiler_pic_CXX in
13998
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14001
lt_prog_compiler_pic_CXX=
14002
lt_prog_compiler_can_build_shared_CXX=no
14007
# For platforms which do not support PIC, -DPIC is meaningless:
14009
lt_prog_compiler_pic_CXX=
14012
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14017
# Check to make sure the static flag actually works.
14019
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14020
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14021
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14022
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14023
echo $ECHO_N "(cached) $ECHO_C" >&6
14025
lt_prog_compiler_static_works_CXX=no
14026
save_LDFLAGS="$LDFLAGS"
14027
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14028
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14029
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14030
# The linker can only warn and ignore the option if not recognized
14031
# So say no if there are warnings
14032
if test -s conftest.err; then
14033
# Append any errors to the config.log.
14034
cat conftest.err 1>&5
14035
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14036
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14037
if diff conftest.exp conftest.er2 >/dev/null; then
14038
lt_prog_compiler_static_works_CXX=yes
14041
lt_prog_compiler_static_works_CXX=yes
14045
LDFLAGS="$save_LDFLAGS"
14048
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14049
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14051
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14054
lt_prog_compiler_static_CXX=
14058
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14059
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14060
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14061
echo $ECHO_N "(cached) $ECHO_C" >&6
14063
lt_cv_prog_compiler_c_o_CXX=no
14064
$rm -r conftest 2>/dev/null
14068
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14070
lt_compiler_flag="-o out/conftest2.$ac_objext"
14071
# Insert the option either (1) after the last *FLAGS variable, or
14072
# (2) before a word containing "conftest.", or (3) at the end.
14073
# Note that $ac_compile itself does not contain backslashes and begins
14074
# with a dollar sign (not a hyphen), so the echo should work correctly.
14075
lt_compile=`echo "$ac_compile" | $SED \
14076
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078
-e 's:$: $lt_compiler_flag:'`
14079
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14080
(eval "$lt_compile" 2>out/conftest.err)
14082
cat out/conftest.err >&5
14083
echo "$as_me:__oline__: \$? = $ac_status" >&5
14084
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086
# The compiler can only warn and ignore the option if not recognized
14087
# So say no if there are warnings
14088
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14089
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091
lt_cv_prog_compiler_c_o_CXX=yes
14096
# SGI C++ compiler will create directory out/ii_files/ for
14097
# template instantiation
14098
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14099
$rm out/* && rmdir out
14105
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14106
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14109
hard_links="nottested"
14110
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14111
# do not overwrite the value of need_locks provided by the user
14112
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14113
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14116
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118
ln conftest.a conftest.b 2>&5 || hard_links=no
14119
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14120
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14121
echo "${ECHO_T}$hard_links" >&6; }
14122
if test "$hard_links" = no; then
14123
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14124
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14131
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14132
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14134
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14137
# If we're using GNU nm, then we don't want the "-C" option.
14138
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14139
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14140
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'
14142
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'
14146
export_symbols_cmds_CXX="$ltdll_cmds"
14149
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'
14151
linux* | k*bsd*-gnu)
14152
link_all_deplibs_CXX=no
14155
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14159
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14160
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14161
test "$ld_shlibs_CXX" = no && can_build_shared=no
14164
# Do we need to explicitly link libc?
14166
case "x$archive_cmds_need_lc_CXX" in
14168
# Assume -lc should be added
14169
archive_cmds_need_lc_CXX=yes
14171
if test "$enable_shared" = yes && test "$GCC" = yes; then
14172
case $archive_cmds_CXX in
14174
# FIXME: we may have to deal with multi-command sequences.
14177
# Test whether the compiler implicitly links with -lc since on some
14178
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14179
# to ld, don't add -lc before -lgcc.
14180
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14181
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14183
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186
(eval $ac_compile) 2>&5
14188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
(exit $ac_status); } 2>conftest.err; then
14192
libobjs=conftest.$ac_objext
14194
wl=$lt_prog_compiler_wl_CXX
14195
pic_flag=$lt_prog_compiler_pic_CXX
14201
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14202
allow_undefined_flag_CXX=
14203
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14204
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207
(exit $ac_status); }
14209
archive_cmds_need_lc_CXX=no
14211
archive_cmds_need_lc_CXX=yes
14213
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14215
cat conftest.err 1>&5
14218
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14219
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14226
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14227
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14228
library_names_spec=
14229
libname_spec='lib$name'
14233
postuninstall_cmds=
14237
shlibpath_overrides_runpath=unknown
14239
dynamic_linker="$host_os ld.so"
14240
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14241
if test "$GCC" = yes; then
14242
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14243
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14244
# if the path contains ";" then we assume it to be the separator
14245
# otherwise default to the standard path separator (i.e. ":") - it is
14246
# assumed that no part of a normal pathname contains ";" but that should
14247
# okay in the real world where ";" in dirpaths is itself problematic.
14248
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14250
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14253
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14255
need_lib_prefix=unknown
14256
hardcode_into_libs=no
14258
# when you set need_version to no, make sure it does not cause -set_version
14259
# flags to be left without arguments
14260
need_version=unknown
14265
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14266
shlibpath_var=LIBPATH
14268
# AIX 3 has no versioning support, so we append a major version to the name.
14269
soname_spec='${libname}${release}${shared_ext}$major'
14276
hardcode_into_libs=yes
14277
if test "$host_cpu" = ia64; then
14278
# AIX 5 supports IA64
14279
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14280
shlibpath_var=LD_LIBRARY_PATH
14282
# With GCC up to 2.95.x, collect2 would create an import file
14283
# for dependence libraries. The import file would start with
14284
# the line `#! .'. This would cause the generated library to
14285
# depend on `.', always an invalid library. This was fixed in
14286
# development snapshots of GCC prior to 3.0.
14288
aix4 | aix4.[01] | aix4.[01].*)
14289
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14291
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14294
can_build_shared=no
14298
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14299
# soname into executable. Probably we can add versioning support to
14300
# collect2, so additional links can be useful in future.
14301
if test "$aix_use_runtimelinking" = yes; then
14302
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14303
# instead of lib<name>.a to let people know that these are not
14304
# typical AIX shared libraries.
14305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307
# We preserve .a as extension for shared libraries through AIX4.2
14308
# and later when we are not doing run time linking.
14309
library_names_spec='${libname}${release}.a $libname.a'
14310
soname_spec='${libname}${release}${shared_ext}$major'
14312
shlibpath_var=LIBPATH
14317
library_names_spec='$libname.ixlibrary $libname.a'
14318
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14319
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'
14323
library_names_spec='${libname}${shared_ext}'
14324
dynamic_linker="$host_os ld.so"
14325
shlibpath_var=LIBRARY_PATH
14331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332
soname_spec='${libname}${release}${shared_ext}$major'
14333
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14334
shlibpath_var=LD_LIBRARY_PATH
14335
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14336
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14337
# the default ld.so.conf also contains /usr/contrib/lib and
14338
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14339
# libtool to hard-code these into programs
14342
cygwin* | mingw* | pw32*)
14343
version_type=windows
14348
case $GCC,$host_os in
14349
yes,cygwin* | yes,mingw* | yes,pw32*)
14350
library_names_spec='$libname.dll.a'
14351
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14352
postinstall_cmds='base_file=`basename \${file}`~
14353
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14354
dldir=$destdir/`dirname \$dlpath`~
14355
test -d \$dldir || mkdir -p \$dldir~
14356
$install_prog $dir/$dlname \$dldir/$dlname~
14357
chmod a+x \$dldir/$dlname'
14358
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14359
dlpath=$dir/\$dldll~
14361
shlibpath_overrides_runpath=yes
14365
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14366
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14367
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14370
# MinGW DLLs use traditional 'lib' prefix
14371
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14372
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14373
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14374
# It is most probably a Windows format PATH printed by
14375
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14376
# path with ; separators, and with drive letters. We can handle the
14377
# drive letters (cygwin fileutils understands them), so leave them,
14378
# especially as we might pass files found there to a mingw objdump,
14379
# which wouldn't understand a cygwinified path. Ahh.
14380
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14382
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14386
# pw32 DLLs use 'pw' prefix rather than 'lib'
14387
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14393
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14396
dynamic_linker='Win32 ld.exe'
14397
# FIXME: first we should search . and the directory the executable is in
14401
darwin* | rhapsody*)
14402
dynamic_linker="$host_os dyld"
14403
version_type=darwin
14406
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14407
soname_spec='${libname}${release}${major}$shared_ext'
14408
shlibpath_overrides_runpath=yes
14409
shlibpath_var=DYLD_LIBRARY_PATH
14410
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14411
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14412
if test "$GCC" = yes; then
14413
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"`
14415
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14417
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14425
soname_spec='${libname}${release}${shared_ext}$major'
14426
shlibpath_var=LD_LIBRARY_PATH
14433
freebsd* | dragonfly*)
14434
# DragonFly does not have aout. When/if they implement a new
14435
# versioning mechanism, adjust this.
14436
if test -x /usr/bin/objformat; then
14437
objformat=`/usr/bin/objformat`
14440
freebsd[123]*) objformat=aout ;;
14441
*) objformat=elf ;;
14444
version_type=freebsd-$objformat
14445
case $version_type in
14447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14452
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14456
shlibpath_var=LD_LIBRARY_PATH
14459
shlibpath_overrides_runpath=yes
14461
freebsd3.[01]* | freebsdelf3.[01]*)
14462
shlibpath_overrides_runpath=yes
14463
hardcode_into_libs=yes
14465
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14466
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14467
shlibpath_overrides_runpath=no
14468
hardcode_into_libs=yes
14470
freebsd*) # from 4.6 on
14471
shlibpath_overrides_runpath=yes
14472
hardcode_into_libs=yes
14481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14482
soname_spec='${libname}${release}${shared_ext}$major'
14483
shlibpath_var=LD_LIBRARY_PATH
14484
hardcode_into_libs=yes
14487
hpux9* | hpux10* | hpux11*)
14488
# Give a soname corresponding to the major version so that dld.sl refuses to
14489
# link against other versions.
14496
hardcode_into_libs=yes
14497
dynamic_linker="$host_os dld.so"
14498
shlibpath_var=LD_LIBRARY_PATH
14499
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501
soname_spec='${libname}${release}${shared_ext}$major'
14502
if test "X$HPUX_IA64_MODE" = X32; then
14503
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14505
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14507
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14511
hardcode_into_libs=yes
14512
dynamic_linker="$host_os dld.sl"
14513
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14514
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516
soname_spec='${libname}${release}${shared_ext}$major'
14517
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14518
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14522
dynamic_linker="$host_os dld.sl"
14523
shlibpath_var=SHLIB_PATH
14524
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526
soname_spec='${libname}${release}${shared_ext}$major'
14529
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14530
postinstall_cmds='chmod 555 $lib'
14537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14538
soname_spec='${libname}${release}${shared_ext}$major'
14539
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14540
shlibpath_var=LD_LIBRARY_PATH
14541
shlibpath_overrides_runpath=no
14542
hardcode_into_libs=yes
14545
irix5* | irix6* | nonstopux*)
14547
nonstopux*) version_type=nonstopux ;;
14549
if test "$lt_cv_prog_gnu_ld" = yes; then
14557
soname_spec='${libname}${release}${shared_ext}$major'
14558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14560
irix5* | nonstopux*)
14561
libsuff= shlibsuff=
14564
case $LD in # libtool.m4 will add one of these switches to LD
14565
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14566
libsuff= shlibsuff= libmagic=32-bit;;
14567
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14568
libsuff=32 shlibsuff=N32 libmagic=N32;;
14569
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14570
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14571
*) libsuff= shlibsuff= libmagic=never-match;;
14575
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14576
shlibpath_overrides_runpath=no
14577
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14578
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14579
hardcode_into_libs=yes
14582
# No shared lib support for Linux oldld, aout, or coff.
14583
linux*oldld* | linux*aout* | linux*coff*)
14587
# This must be Linux ELF.
14588
linux* | k*bsd*-gnu)
14592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593
soname_spec='${libname}${release}${shared_ext}$major'
14594
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14595
shlibpath_var=LD_LIBRARY_PATH
14596
shlibpath_overrides_runpath=no
14597
# This implies no fast_install, which is unacceptable.
14598
# Some rework will be needed to allow for fast_install
14599
# before this can be enabled.
14600
hardcode_into_libs=yes
14602
# Append ld.so.conf contents to the search path
14603
if test -f /etc/ld.so.conf; then
14604
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' ' '`
14605
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14608
# We used to test for /lib/ld.so.1 and disable shared libraries on
14609
# powerpc, because MkLinux only supported shared libraries with the
14610
# GNU dynamic linker. Since this was broken with cross compilers,
14611
# most powerpc-linux boxes support dynamic linking these days and
14612
# people can always --disable-shared, the test was removed, and we
14613
# assume the GNU/Linux dynamic linker is in use.
14614
dynamic_linker='GNU/Linux ld.so'
14621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14622
soname_spec='${libname}${release}${shared_ext}$major'
14623
shlibpath_var=LD_LIBRARY_PATH
14624
shlibpath_overrides_runpath=no
14625
hardcode_into_libs=yes
14626
dynamic_linker='NetBSD ld.elf_so'
14633
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636
dynamic_linker='NetBSD (a.out) ld.so'
14638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639
soname_spec='${libname}${release}${shared_ext}$major'
14640
dynamic_linker='NetBSD ld.elf_so'
14642
shlibpath_var=LD_LIBRARY_PATH
14643
shlibpath_overrides_runpath=yes
14644
hardcode_into_libs=yes
14649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650
shlibpath_var=LD_LIBRARY_PATH
14651
shlibpath_overrides_runpath=yes
14658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659
soname_spec='${libname}${release}${shared_ext}$major'
14660
shlibpath_var=LD_LIBRARY_PATH
14661
shlibpath_overrides_runpath=yes
14666
sys_lib_dlsearch_path_spec="/usr/lib"
14668
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14670
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14671
*) need_version=no ;;
14673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14674
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14675
shlibpath_var=LD_LIBRARY_PATH
14676
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14678
openbsd2.[89] | openbsd2.[89].*)
14679
shlibpath_overrides_runpath=no
14682
shlibpath_overrides_runpath=yes
14686
shlibpath_overrides_runpath=yes
14691
libname_spec='$name'
14694
library_names_spec='$libname${shared_ext} $libname.a'
14695
dynamic_linker='OS/2 ld.exe'
14696
shlibpath_var=LIBPATH
14699
osf3* | osf4* | osf5*)
14703
soname_spec='${libname}${release}${shared_ext}$major'
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
shlibpath_var=LD_LIBRARY_PATH
14706
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14707
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715
soname_spec='${libname}${release}${shared_ext}$major'
14716
shlibpath_var=LD_LIBRARY_PATH
14717
shlibpath_overrides_runpath=yes
14718
hardcode_into_libs=yes
14719
# ldd complains unless libraries are executable
14720
postinstall_cmds='chmod +x $lib'
14725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727
shlibpath_var=LD_LIBRARY_PATH
14728
shlibpath_overrides_runpath=yes
14729
if test "$with_gnu_ld" = yes; then
14737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738
soname_spec='${libname}${release}${shared_ext}$major'
14739
shlibpath_var=LD_LIBRARY_PATH
14740
case $host_vendor in
14742
shlibpath_overrides_runpath=no
14744
export_dynamic_flag_spec='${wl}-Blargedynsym'
14745
runpath_var=LD_RUN_PATH
14753
shlibpath_overrides_runpath=no
14754
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14760
if test -d /usr/nec ;then
14762
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14763
soname_spec='$libname${shared_ext}.$major'
14764
shlibpath_var=LD_LIBRARY_PATH
14768
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14769
version_type=freebsd-elf
14772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14773
soname_spec='${libname}${release}${shared_ext}$major'
14774
shlibpath_var=LD_LIBRARY_PATH
14775
hardcode_into_libs=yes
14776
if test "$with_gnu_ld" = yes; then
14777
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14778
shlibpath_overrides_runpath=no
14780
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14781
shlibpath_overrides_runpath=yes
14784
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14788
sys_lib_dlsearch_path_spec='/usr/lib'
14793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794
soname_spec='${libname}${release}${shared_ext}$major'
14795
shlibpath_var=LD_LIBRARY_PATH
14802
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803
echo "${ECHO_T}$dynamic_linker" >&6; }
14804
test "$dynamic_linker" = no && can_build_shared=no
14806
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14807
if test "$GCC" = yes; then
14808
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14811
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14812
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14813
hardcode_action_CXX=
14814
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14815
test -n "$runpath_var_CXX" || \
14816
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14818
# We can hardcode non-existant directories.
14819
if test "$hardcode_direct_CXX" != no &&
14820
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14821
# have to relink, otherwise we might link with an installed library
14822
# when we should be linking with a yet-to-be-installed one
14823
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14824
test "$hardcode_minus_L_CXX" != no; then
14825
# Linking always hardcodes the temporary library directory.
14826
hardcode_action_CXX=relink
14828
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14829
hardcode_action_CXX=immediate
14832
# We cannot hardcode anything, or else we can only hardcode existing
14834
hardcode_action_CXX=unsupported
14836
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14837
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14839
if test "$hardcode_action_CXX" = relink; then
14840
# Fast installation is not supported
14841
enable_fast_install=no
14842
elif test "$shlibpath_overrides_runpath" = yes ||
14843
test "$enable_shared" = no; then
14844
# Fast installation is not necessary
14845
enable_fast_install=needless
14849
# The else clause should only fire when bootstrapping the
14850
# libtool distribution, otherwise you forgot to ship ltmain.sh
14851
# with your package, and you will get complaints that there are
14852
# no rules to generate ltmain.sh.
14853
if test -f "$ltmain"; then
14854
# See if we are running on zsh, and set the options which allow our commands through
14855
# without removal of \ escapes.
14856
if test -n "${ZSH_VERSION+set}" ; then
14857
setopt NO_GLOB_SUBST
14859
# Now quote all the things that may contain metacharacters while being
14860
# careful not to overquote the AC_SUBSTed values. We take copies of the
14861
# variables and quote the copies for generation of the libtool script.
14862
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14864
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14865
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14866
deplibs_check_method reload_flag reload_cmds need_locks \
14867
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14868
lt_cv_sys_global_symbol_to_c_name_address \
14869
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14870
old_postinstall_cmds old_postuninstall_cmds \
14874
lt_prog_compiler_wl_CXX \
14875
lt_prog_compiler_pic_CXX \
14876
lt_prog_compiler_static_CXX \
14877
lt_prog_compiler_no_builtin_flag_CXX \
14878
export_dynamic_flag_spec_CXX \
14879
thread_safe_flag_spec_CXX \
14880
whole_archive_flag_spec_CXX \
14881
enable_shared_with_static_runtimes_CXX \
14882
old_archive_cmds_CXX \
14883
old_archive_from_new_cmds_CXX \
14884
predep_objects_CXX \
14885
postdep_objects_CXX \
14888
compiler_lib_search_path_CXX \
14890
archive_expsym_cmds_CXX \
14891
postinstall_cmds_CXX \
14892
postuninstall_cmds_CXX \
14893
old_archive_from_expsyms_cmds_CXX \
14894
allow_undefined_flag_CXX \
14895
no_undefined_flag_CXX \
14896
export_symbols_cmds_CXX \
14897
hardcode_libdir_flag_spec_CXX \
14898
hardcode_libdir_flag_spec_ld_CXX \
14899
hardcode_libdir_separator_CXX \
14900
hardcode_automatic_CXX \
14902
module_expsym_cmds_CXX \
14903
lt_cv_prog_compiler_c_o_CXX \
14904
exclude_expsyms_CXX \
14905
include_expsyms_CXX; do
14908
old_archive_cmds_CXX | \
14909
old_archive_from_new_cmds_CXX | \
14910
archive_cmds_CXX | \
14911
archive_expsym_cmds_CXX | \
14912
module_cmds_CXX | \
14913
module_expsym_cmds_CXX | \
14914
old_archive_from_expsyms_cmds_CXX | \
14915
export_symbols_cmds_CXX | \
14916
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14917
postinstall_cmds | postuninstall_cmds | \
14918
old_postinstall_cmds | old_postuninstall_cmds | \
14919
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14920
# Double-quote double-evaled strings.
14921
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14924
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14930
*'\$0 --fallback-echo"')
14931
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14937
cat <<__EOF__ >> "$cfgfile"
14938
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14940
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14942
# Shell to use when invoking shell scripts.
14945
# Whether or not to build shared libraries.
14946
build_libtool_libs=$enable_shared
14948
# Whether or not to build static libraries.
14949
build_old_libs=$enable_static
14951
# Whether or not to add -lc for building shared libraries.
14952
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14954
# Whether or not to disallow shared libs when runtime libs are static
14955
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14957
# Whether or not to optimize for fast installation.
14958
fast_install=$enable_fast_install
14961
host_alias=$host_alias
14965
# The build system.
14966
build_alias=$build_alias
14970
# An echo program that does not interpret backslashes.
14975
AR_FLAGS=$lt_AR_FLAGS
14980
# LTCC compiler flags.
14981
LTCFLAGS=$lt_LTCFLAGS
14983
# A language-specific compiler.
14984
CC=$lt_compiler_CXX
14986
# Is the compiler the GNU C compiler?
14992
# The linker used to build libraries.
14995
# Whether we need hard or soft links.
14998
# A BSD-compatible nm program.
15001
# A symbol stripping program
15004
# Used to examine libraries when file_magic_cmd begins "file"
15005
MAGIC_CMD=$MAGIC_CMD
15007
# Used on cygwin: DLL creation program.
15010
# Used on cygwin: object dumper.
15013
# Used on cygwin: assembler.
15016
# The name of the directory that contains temporary libtool files.
15019
# How to create reloadable object files.
15020
reload_flag=$lt_reload_flag
15021
reload_cmds=$lt_reload_cmds
15023
# How to pass a linker flag through the compiler.
15024
wl=$lt_lt_prog_compiler_wl_CXX
15026
# Object file suffix (normally "o").
15027
objext="$ac_objext"
15029
# Old archive suffix (normally "a").
15032
# Shared library suffix (normally ".so").
15033
shrext_cmds='$shrext_cmds'
15035
# Executable file suffix (normally "").
15038
# Additional compiler flags for building library objects.
15039
pic_flag=$lt_lt_prog_compiler_pic_CXX
15042
# What is the maximum length of a command?
15043
max_cmd_len=$lt_cv_sys_max_cmd_len
15045
# Does compiler simultaneously support -c and -o options?
15046
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15048
# Must we lock files when doing compilation?
15049
need_locks=$lt_need_locks
15051
# Do we need the lib prefix for modules?
15052
need_lib_prefix=$need_lib_prefix
15054
# Do we need a version for libraries?
15055
need_version=$need_version
15057
# Whether dlopen is supported.
15058
dlopen_support=$enable_dlopen
15060
# Whether dlopen of programs is supported.
15061
dlopen_self=$enable_dlopen_self
15063
# Whether dlopen of statically linked programs is supported.
15064
dlopen_self_static=$enable_dlopen_self_static
15066
# Compiler flag to prevent dynamic linking.
15067
link_static_flag=$lt_lt_prog_compiler_static_CXX
15069
# Compiler flag to turn off builtin functions.
15070
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15072
# Compiler flag to allow reflexive dlopens.
15073
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15075
# Compiler flag to generate shared objects directly from archives.
15076
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15078
# Compiler flag to generate thread-safe objects.
15079
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15081
# Library versioning type.
15082
version_type=$version_type
15084
# Format of library name prefix.
15085
libname_spec=$lt_libname_spec
15087
# List of archive names. First name is the real one, the rest are links.
15088
# The last name is the one that the linker finds with -lNAME.
15089
library_names_spec=$lt_library_names_spec
15091
# The coded name of the library, if different from the real name.
15092
soname_spec=$lt_soname_spec
15094
# Commands used to build and install an old-style archive.
15096
old_archive_cmds=$lt_old_archive_cmds_CXX
15097
old_postinstall_cmds=$lt_old_postinstall_cmds
15098
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15100
# Create an old-style archive from a shared archive.
15101
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15103
# Create a temporary old-style archive to link instead of a shared archive.
15104
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15106
# Commands used to build and install a shared archive.
15107
archive_cmds=$lt_archive_cmds_CXX
15108
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15109
postinstall_cmds=$lt_postinstall_cmds
15110
postuninstall_cmds=$lt_postuninstall_cmds
15112
# Commands used to build a loadable module (assumed same as above if empty)
15113
module_cmds=$lt_module_cmds_CXX
15114
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15116
# Commands to strip libraries.
15117
old_striplib=$lt_old_striplib
15118
striplib=$lt_striplib
15120
# Dependencies to place before the objects being linked to create a
15122
predep_objects=$lt_predep_objects_CXX
15124
# Dependencies to place after the objects being linked to create a
15126
postdep_objects=$lt_postdep_objects_CXX
15128
# Dependencies to place before the objects being linked to create a
15130
predeps=$lt_predeps_CXX
15132
# Dependencies to place after the objects being linked to create a
15134
postdeps=$lt_postdeps_CXX
15136
# The library search path used internally by the compiler when linking
15137
# a shared library.
15138
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15140
# Method to check whether dependent libraries are shared objects.
15141
deplibs_check_method=$lt_deplibs_check_method
15143
# Command to use when deplibs_check_method == file_magic.
15144
file_magic_cmd=$lt_file_magic_cmd
15146
# Flag that allows shared libraries with undefined symbols to be built.
15147
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15149
# Flag that forces no undefined symbols.
15150
no_undefined_flag=$lt_no_undefined_flag_CXX
15152
# Commands used to finish a libtool library installation in a directory.
15153
finish_cmds=$lt_finish_cmds
15155
# Same as above, but a single script fragment to be evaled but not shown.
15156
finish_eval=$lt_finish_eval
15158
# Take the output of nm and produce a listing of raw symbols and C names.
15159
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15161
# Transform the output of nm in a proper C declaration
15162
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15164
# Transform the output of nm in a C name address pair
15165
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15167
# This is the shared library runtime path variable.
15168
runpath_var=$runpath_var
15170
# This is the shared library path variable.
15171
shlibpath_var=$shlibpath_var
15173
# Is shlibpath searched before the hard-coded library search path?
15174
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15176
# How to hardcode a shared library path into an executable.
15177
hardcode_action=$hardcode_action_CXX
15179
# Whether we should hardcode library paths into libraries.
15180
hardcode_into_libs=$hardcode_into_libs
15182
# Flag to hardcode \$libdir into a binary during linking.
15183
# This must work even if \$libdir does not exist.
15184
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15186
# If ld is used when linking, flag to hardcode \$libdir into
15187
# a binary during linking. This must work even if \$libdir does
15189
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15191
# Whether we need a single -rpath flag with a separated argument.
15192
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15194
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15195
# resulting binary.
15196
hardcode_direct=$hardcode_direct_CXX
15198
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15199
# resulting binary.
15200
hardcode_minus_L=$hardcode_minus_L_CXX
15202
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15203
# the resulting binary.
15204
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15206
# Set to yes if building a shared library automatically hardcodes DIR into the library
15207
# and all subsequent libraries and executables linked against it.
15208
hardcode_automatic=$hardcode_automatic_CXX
15210
# Variables whose values should be saved in libtool wrapper scripts and
15211
# restored at relink time.
15212
variables_saved_for_relink="$variables_saved_for_relink"
15214
# Whether libtool must link a program against all its dependency libraries.
15215
link_all_deplibs=$link_all_deplibs_CXX
15217
# Compile-time system search path for libraries
15218
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15220
# Run-time system search path for libraries
15221
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15223
# Fix the shell variable \$srcfile for the compiler.
15224
fix_srcfile_path="$fix_srcfile_path_CXX"
15226
# Set to yes if exported symbols are required.
15227
always_export_symbols=$always_export_symbols_CXX
15229
# The commands to list exported symbols.
15230
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15232
# The commands to extract the exported symbol list from a shared archive.
15233
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15235
# Symbols that should not be listed in the preloaded symbols.
15236
exclude_expsyms=$lt_exclude_expsyms_CXX
15238
# Symbols that must always be exported.
15239
include_expsyms=$lt_include_expsyms_CXX
15241
# ### END LIBTOOL TAG CONFIG: $tagname
15247
# If there is no Makefile yet, we rely on a make rule to execute
15248
# `config.status --recheck' to rerun these tests and create the
15249
# libtool script then.
15250
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15251
if test -f "$ltmain_in"; then
15252
test -f Makefile && make "$ltmain"
15258
ac_cpp='$CPP $CPPFLAGS'
15259
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15267
with_gnu_ldcxx=$with_gnu_ld
15268
with_gnu_ld=$lt_save_with_gnu_ld
15269
lt_cv_path_LDCXX=$lt_cv_path_LD
15270
lt_cv_path_LD=$lt_save_path_LD
15271
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15272
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15280
if test -n "$F77" && test "X$F77" != "Xno"; then
15283
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15284
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15285
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15288
archive_cmds_need_lc_F77=no
15289
allow_undefined_flag_F77=
15290
always_export_symbols_F77=no
15291
archive_expsym_cmds_F77=
15292
export_dynamic_flag_spec_F77=
15293
hardcode_direct_F77=no
15294
hardcode_libdir_flag_spec_F77=
15295
hardcode_libdir_flag_spec_ld_F77=
15296
hardcode_libdir_separator_F77=
15297
hardcode_minus_L_F77=no
15298
hardcode_automatic_F77=no
15300
module_expsym_cmds_F77=
15301
link_all_deplibs_F77=unknown
15302
old_archive_cmds_F77=$old_archive_cmds
15303
no_undefined_flag_F77=
15304
whole_archive_flag_spec_F77=
15305
enable_shared_with_static_runtimes_F77=no
15307
# Source file extension for f77 test sources.
15310
# Object file extension for compiled f77 test sources.
15314
# Code to be used in simple compile tests
15315
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15317
# Code to be used in simple link tests
15318
lt_simple_link_test_code=" program t\n end\n"
15320
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15322
# If no C compiler was specified, use CC.
15325
# If no C compiler flags were specified, use CFLAGS.
15326
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15328
# Allow CC to be a program name with arguments.
15332
# save warnings/boilerplate of simple test code
15333
ac_outfile=conftest.$ac_objext
15334
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15335
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15336
_lt_compiler_boilerplate=`cat conftest.err`
15339
ac_outfile=conftest.$ac_objext
15340
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15341
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15342
_lt_linker_boilerplate=`cat conftest.err`
15346
# Allow CC to be a program name with arguments.
15351
for cc_temp in $compiler""; do
15353
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15354
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15359
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15362
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15363
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15364
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15365
echo "${ECHO_T}$can_build_shared" >&6; }
15367
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15368
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15369
test "$can_build_shared" = "no" && enable_shared=no
15371
# On AIX, shared libraries and static libraries use the same namespace, and
15372
# are all built from PIC.
15375
test "$enable_shared" = yes && enable_static=no
15376
if test -n "$RANLIB"; then
15377
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15378
postinstall_cmds='$RANLIB $lib'
15382
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15383
test "$enable_shared" = yes && enable_static=no
15387
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15388
echo "${ECHO_T}$enable_shared" >&6; }
15390
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15391
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15392
# Make sure either enable_shared or enable_static is yes.
15393
test "$enable_shared" = yes || enable_static=yes
15394
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15395
echo "${ECHO_T}$enable_static" >&6; }
15400
lt_prog_compiler_wl_F77=
15401
lt_prog_compiler_pic_F77=
15402
lt_prog_compiler_static_F77=
15404
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15405
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15407
if test "$GCC" = yes; then
15408
lt_prog_compiler_wl_F77='-Wl,'
15409
lt_prog_compiler_static_F77='-static'
15413
# All AIX code is PIC.
15414
if test "$host_cpu" = ia64; then
15415
# AIX 5 now supports IA64 processor
15416
lt_prog_compiler_static_F77='-Bstatic'
15421
# FIXME: we need at least 68020 code to build shared libraries, but
15422
# adding the `-m68020' flag to GCC prevents building anything better,
15424
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15427
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15428
# PIC is the default for these OSes.
15431
mingw* | pw32* | os2*)
15432
# This hack is so that the source file can tell whether it is being
15433
# built for inclusion in a dll (and should export symbols for example).
15434
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15437
darwin* | rhapsody*)
15438
# PIC is the default on this platform
15439
# Common symbols not allowed in MH_DYLIB files
15440
lt_prog_compiler_pic_F77='-fno-common'
15444
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15445
# Instead, we relocate shared libraries at runtime.
15449
# Just because we use GCC doesn't mean we suddenly get shared libraries
15450
# on systems that don't support them.
15451
lt_prog_compiler_can_build_shared_F77=no
15456
if test -d /usr/nec; then
15457
lt_prog_compiler_pic_F77=-Kconform_pic
15462
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15463
# not for PA HP-UX.
15469
lt_prog_compiler_pic_F77='-fPIC'
15475
lt_prog_compiler_pic_F77='-fPIC'
15479
# PORTME Check for flag to pass linker flags through the system compiler.
15482
lt_prog_compiler_wl_F77='-Wl,'
15483
if test "$host_cpu" = ia64; then
15484
# AIX 5 now supports IA64 processor
15485
lt_prog_compiler_static_F77='-Bstatic'
15487
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15491
# PIC is the default on this platform
15492
# Common symbols not allowed in MH_DYLIB files
15493
case $cc_basename in
15495
lt_prog_compiler_pic_F77='-qnocommon'
15496
lt_prog_compiler_wl_F77='-Wl,'
15501
mingw* | pw32* | os2*)
15502
# This hack is so that the source file can tell whether it is being
15503
# built for inclusion in a dll (and should export symbols for example).
15504
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15507
hpux9* | hpux10* | hpux11*)
15508
lt_prog_compiler_wl_F77='-Wl,'
15509
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15510
# not for PA HP-UX.
15516
lt_prog_compiler_pic_F77='+Z'
15519
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15520
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15523
irix5* | irix6* | nonstopux*)
15524
lt_prog_compiler_wl_F77='-Wl,'
15525
# PIC (with -KPIC) is the default.
15526
lt_prog_compiler_static_F77='-non_shared'
15530
lt_prog_compiler_pic_F77='-KPIC'
15531
lt_prog_compiler_static_F77='-Bstatic'
15534
linux* | k*bsd*-gnu)
15535
case $cc_basename in
15537
lt_prog_compiler_wl_F77='-Wl,'
15538
lt_prog_compiler_pic_F77='-KPIC'
15539
lt_prog_compiler_static_F77='-static'
15541
pgcc* | pgf77* | pgf90* | pgf95*)
15542
# Portland Group compilers (*not* the Pentium gcc compiler,
15543
# which looks to be a dead project)
15544
lt_prog_compiler_wl_F77='-Wl,'
15545
lt_prog_compiler_pic_F77='-fpic'
15546
lt_prog_compiler_static_F77='-Bstatic'
15549
lt_prog_compiler_wl_F77='-Wl,'
15550
# All Alpha code is PIC.
15551
lt_prog_compiler_static_F77='-non_shared'
15556
osf3* | osf4* | osf5*)
15557
lt_prog_compiler_wl_F77='-Wl,'
15558
# All OSF/1 code is PIC.
15559
lt_prog_compiler_static_F77='-non_shared'
15563
lt_prog_compiler_pic_F77='-KPIC'
15564
lt_prog_compiler_static_F77='-Bstatic'
15565
case $cc_basename in
15566
f77* | f90* | f95*)
15567
lt_prog_compiler_wl_F77='-Qoption ld ';;
15569
lt_prog_compiler_wl_F77='-Wl,';;
15574
lt_prog_compiler_wl_F77='-Qoption ld '
15575
lt_prog_compiler_pic_F77='-PIC'
15576
lt_prog_compiler_static_F77='-Bstatic'
15579
sysv4 | sysv4.2uw2* | sysv4.3*)
15580
lt_prog_compiler_wl_F77='-Wl,'
15581
lt_prog_compiler_pic_F77='-KPIC'
15582
lt_prog_compiler_static_F77='-Bstatic'
15586
if test -d /usr/nec ;then
15587
lt_prog_compiler_pic_F77='-Kconform_pic'
15588
lt_prog_compiler_static_F77='-Bstatic'
15592
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15593
lt_prog_compiler_wl_F77='-Wl,'
15594
lt_prog_compiler_pic_F77='-KPIC'
15595
lt_prog_compiler_static_F77='-Bstatic'
15599
lt_prog_compiler_wl_F77='-Wl,'
15600
lt_prog_compiler_can_build_shared_F77=no
15604
lt_prog_compiler_pic_F77='-pic'
15605
lt_prog_compiler_static_F77='-Bstatic'
15609
lt_prog_compiler_can_build_shared_F77=no
15614
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15615
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15618
# Check to make sure the PIC flag actually works.
15620
if test -n "$lt_prog_compiler_pic_F77"; then
15622
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15623
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15624
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15625
echo $ECHO_N "(cached) $ECHO_C" >&6
15627
lt_prog_compiler_pic_works_F77=no
15628
ac_outfile=conftest.$ac_objext
15629
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15630
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15631
# Insert the option either (1) after the last *FLAGS variable, or
15632
# (2) before a word containing "conftest.", or (3) at the end.
15633
# Note that $ac_compile itself does not contain backslashes and begins
15634
# with a dollar sign (not a hyphen), so the echo should work correctly.
15635
# The option is referenced via a variable to avoid confusing sed.
15636
lt_compile=`echo "$ac_compile" | $SED \
15637
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15638
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15639
-e 's:$: $lt_compiler_flag:'`
15640
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15641
(eval "$lt_compile" 2>conftest.err)
15643
cat conftest.err >&5
15644
echo "$as_me:__oline__: \$? = $ac_status" >&5
15645
if (exit $ac_status) && test -s "$ac_outfile"; then
15646
# The compiler can only warn and ignore the option if not recognized
15647
# So say no if there are warnings other than the usual output.
15648
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15649
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15651
lt_prog_compiler_pic_works_F77=yes
15657
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15658
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15660
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15661
case $lt_prog_compiler_pic_F77 in
15663
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15666
lt_prog_compiler_pic_F77=
15667
lt_prog_compiler_can_build_shared_F77=no
15672
# For platforms which do not support PIC, -DPIC is meaningless:
15674
lt_prog_compiler_pic_F77=
15677
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15682
# Check to make sure the static flag actually works.
15684
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15685
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15686
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15687
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15688
echo $ECHO_N "(cached) $ECHO_C" >&6
15690
lt_prog_compiler_static_works_F77=no
15691
save_LDFLAGS="$LDFLAGS"
15692
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15693
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15694
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15695
# The linker can only warn and ignore the option if not recognized
15696
# So say no if there are warnings
15697
if test -s conftest.err; then
15698
# Append any errors to the config.log.
15699
cat conftest.err 1>&5
15700
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15701
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15702
if diff conftest.exp conftest.er2 >/dev/null; then
15703
lt_prog_compiler_static_works_F77=yes
15706
lt_prog_compiler_static_works_F77=yes
15710
LDFLAGS="$save_LDFLAGS"
15713
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15714
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15716
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15719
lt_prog_compiler_static_F77=
15723
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15724
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15725
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15726
echo $ECHO_N "(cached) $ECHO_C" >&6
15728
lt_cv_prog_compiler_c_o_F77=no
15729
$rm -r conftest 2>/dev/null
15733
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15735
lt_compiler_flag="-o out/conftest2.$ac_objext"
15736
# Insert the option either (1) after the last *FLAGS variable, or
15737
# (2) before a word containing "conftest.", or (3) at the end.
15738
# Note that $ac_compile itself does not contain backslashes and begins
15739
# with a dollar sign (not a hyphen), so the echo should work correctly.
15740
lt_compile=`echo "$ac_compile" | $SED \
15741
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743
-e 's:$: $lt_compiler_flag:'`
15744
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15745
(eval "$lt_compile" 2>out/conftest.err)
15747
cat out/conftest.err >&5
15748
echo "$as_me:__oline__: \$? = $ac_status" >&5
15749
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15751
# The compiler can only warn and ignore the option if not recognized
15752
# So say no if there are warnings
15753
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15754
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15755
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15756
lt_cv_prog_compiler_c_o_F77=yes
15761
# SGI C++ compiler will create directory out/ii_files/ for
15762
# template instantiation
15763
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15764
$rm out/* && rmdir out
15770
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15771
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15774
hard_links="nottested"
15775
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15776
# do not overwrite the value of need_locks provided by the user
15777
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15778
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15781
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15783
ln conftest.a conftest.b 2>&5 || hard_links=no
15784
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15786
echo "${ECHO_T}$hard_links" >&6; }
15787
if test "$hard_links" = no; then
15788
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15789
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15796
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15797
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15800
allow_undefined_flag_F77=
15801
enable_shared_with_static_runtimes_F77=no
15803
archive_expsym_cmds_F77=
15804
old_archive_From_new_cmds_F77=
15805
old_archive_from_expsyms_cmds_F77=
15806
export_dynamic_flag_spec_F77=
15807
whole_archive_flag_spec_F77=
15808
thread_safe_flag_spec_F77=
15809
hardcode_libdir_flag_spec_F77=
15810
hardcode_libdir_flag_spec_ld_F77=
15811
hardcode_libdir_separator_F77=
15812
hardcode_direct_F77=no
15813
hardcode_minus_L_F77=no
15814
hardcode_shlibpath_var_F77=unsupported
15815
link_all_deplibs_F77=unknown
15816
hardcode_automatic_F77=no
15818
module_expsym_cmds_F77=
15819
always_export_symbols_F77=no
15820
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15821
# include_expsyms should be a list of space-separated symbols to be *always*
15822
# included in the symbol list
15823
include_expsyms_F77=
15824
# exclude_expsyms can be an extended regexp of symbols to exclude
15825
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15826
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15827
# as well as any symbol that contains `d'.
15828
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15829
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15830
# platforms (ab)use it in PIC code, but their linkers get confused if
15831
# the symbol is explicitly referenced. Since portable code cannot
15832
# rely on this symbol name, it's probably fine to never include it in
15833
# preloaded symbol tables.
15834
extract_expsyms_cmds=
15835
# Just being paranoid about ensuring that cc_basename is set.
15836
for cc_temp in $compiler""; do
15838
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15839
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15844
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15847
cygwin* | mingw* | pw32*)
15848
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15849
# When not using gcc, we currently assume that we are using
15850
# Microsoft Visual C++.
15851
if test "$GCC" != yes; then
15856
# we just hope/assume this is gcc and not c89 (= MSVC++)
15865
if test "$with_gnu_ld" = yes; then
15866
# If archive_cmds runs LD, not CC, wlarc should be empty
15869
# Set some defaults for GNU ld with shared library support. These
15870
# are reset later if shared libraries are not supported. Putting them
15871
# here allows them to be overridden if necessary.
15872
runpath_var=LD_RUN_PATH
15873
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15874
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15875
# ancient GNU ld didn't support --whole-archive et. al.
15876
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15877
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15879
whole_archive_flag_spec_F77=
15881
supports_anon_versioning=no
15882
case `$LD -v 2>/dev/null` in
15883
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15884
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15885
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15886
*\ 2.11.*) ;; # other 2.11 versions
15887
*) supports_anon_versioning=yes ;;
15890
# See if GNU ld supports shared libraries.
15892
aix3* | aix4* | aix5*)
15893
# On AIX/PPC, the GNU linker is very broken
15894
if test "$host_cpu" != ia64; then
15898
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15899
*** to be unable to reliably create shared libraries on AIX.
15900
*** Therefore, libtool is disabling shared libraries support. If you
15901
*** really care for shared libraries, you may want to modify your PATH
15902
*** so that a non-GNU linker is found, and then restart.
15909
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)'
15910
hardcode_libdir_flag_spec_F77='-L$libdir'
15911
hardcode_minus_L_F77=yes
15913
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15914
# that the semantics of dynamic libraries on AmigaOS, at least up
15915
# to version 4, is to share data among multiple programs linked
15916
# with the same dynamic library. Since this doesn't match the
15917
# behavior of shared libraries on other platforms, we can't use
15923
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15924
allow_undefined_flag_F77=unsupported
15925
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15926
# support --undefined. This deserves some investigation. FIXME
15927
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15933
cygwin* | mingw* | pw32*)
15934
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15935
# as there is no search path for DLLs.
15936
hardcode_libdir_flag_spec_F77='-L$libdir'
15937
allow_undefined_flag_F77=unsupported
15938
always_export_symbols_F77=no
15939
enable_shared_with_static_runtimes_F77=yes
15940
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15942
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15943
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15944
# If the export-symbols file already is a .def file (1st line
15945
# is EXPORTS), use it as is; otherwise, prepend...
15946
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15947
cp $export_symbols $output_objdir/$soname.def;
15949
echo EXPORTS > $output_objdir/$soname.def;
15950
cat $export_symbols >> $output_objdir/$soname.def;
15952
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15959
hardcode_direct_F77=no
15960
hardcode_shlibpath_var_F77=no
15961
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15962
export_dynamic_flag_spec_F77='${wl}-E'
15963
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15964
# Instead, shared libraries are loaded at an image base (0x10000000 by
15965
# default) and relocated if they conflict, which is a slow very memory
15966
# consuming and fragmenting process. To avoid this, we pick a random,
15967
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15968
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15969
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'
15970
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'
15973
linux* | k*bsd*-gnu)
15974
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15976
case $cc_basename,$host_cpu in
15977
pgcc*) # Portland Group C compiler
15978
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'
15979
tmp_addflag=' $pic_flag'
15981
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15982
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'
15983
tmp_addflag=' $pic_flag -Mnomain' ;;
15984
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15985
tmp_addflag=' -i_dynamic' ;;
15986
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15987
tmp_addflag=' -i_dynamic -nofor_main' ;;
15988
ifc* | ifort*) # Intel Fortran compiler
15989
tmp_addflag=' -nofor_main' ;;
15991
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993
if test $supports_anon_versioning = yes; then
15994
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15995
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996
$echo "local: *; };" >> $output_objdir/$libname.ver~
15997
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15999
link_all_deplibs_F77=no
16005
netbsd* | netbsdelf*-gnu)
16006
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16007
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16010
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16020
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16021
*** create shared libraries on Solaris systems. Therefore, libtool
16022
*** is disabling shared libraries support. We urge you to upgrade GNU
16023
*** binutils to release 2.9.1 or newer. Another option is to modify
16024
*** your PATH or compiler configuration so that the native linker is
16025
*** used, and then restart.
16028
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16036
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16037
case `$LD -v 2>&1` in
16038
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16042
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16043
*** reliably create shared libraries on SCO systems. Therefore, libtool
16044
*** is disabling shared libraries support. We urge you to upgrade GNU
16045
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16046
*** your PATH or compiler configuration so that the native linker is
16047
*** used, and then restart.
16052
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16054
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16055
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16064
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066
hardcode_direct_F77=yes
16067
hardcode_shlibpath_var_F77=no
16071
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080
if test "$ld_shlibs_F77" = no; then
16082
hardcode_libdir_flag_spec_F77=
16083
export_dynamic_flag_spec_F77=
16084
whole_archive_flag_spec_F77=
16087
# PORTME fill in a description of your system's linker (not GNU ld)
16090
allow_undefined_flag_F77=unsupported
16091
always_export_symbols_F77=yes
16092
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'
16093
# Note: this linker hardcodes the directories in LIBPATH if there
16094
# are no directories specified by -L.
16095
hardcode_minus_L_F77=yes
16096
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16097
# Neither direct hardcoding nor static linking is supported with a
16099
hardcode_direct_F77=unsupported
16104
if test "$host_cpu" = ia64; then
16105
# On IA64, the linker does run time linking by default, so we don't
16106
# have to do anything special.
16107
aix_use_runtimelinking=no
16108
exp_sym_flag='-Bexport'
16111
# If we're using GNU nm, then we don't want the "-C" option.
16112
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16113
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16114
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'
16116
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'
16118
aix_use_runtimelinking=no
16120
# Test if we are trying to use run time linking or normal
16121
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16122
# need to do runtime linking.
16123
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16124
for ld_flag in $LDFLAGS; do
16125
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16126
aix_use_runtimelinking=yes
16133
exp_sym_flag='-bexport'
16134
no_entry_flag='-bnoentry'
16137
# When large executables or shared objects are built, AIX ld can
16138
# have problems creating the table of contents. If linking a library
16139
# or program results in "error TOC overflow" add -mminimal-toc to
16140
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16141
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16143
archive_cmds_F77=''
16144
hardcode_direct_F77=yes
16145
hardcode_libdir_separator_F77=':'
16146
link_all_deplibs_F77=yes
16148
if test "$GCC" = yes; then
16149
case $host_os in aix4.[012]|aix4.[012].*)
16150
# We only want to do this on AIX 4.2 and lower, the check
16151
# below for broken collect2 doesn't work under 4.3+
16152
collect2name=`${CC} -print-prog-name=collect2`
16153
if test -f "$collect2name" && \
16154
strings "$collect2name" | grep resolve_lib_name >/dev/null
16156
# We have reworked collect2
16157
hardcode_direct_F77=yes
16159
# We have old collect2
16160
hardcode_direct_F77=unsupported
16161
# It fails to find uninstalled libraries when the uninstalled
16162
# path is not listed in the libpath. Setting hardcode_minus_L
16163
# to unsupported forces relinking
16164
hardcode_minus_L_F77=yes
16165
hardcode_libdir_flag_spec_F77='-L$libdir'
16166
hardcode_libdir_separator_F77=
16170
shared_flag='-shared'
16171
if test "$aix_use_runtimelinking" = yes; then
16172
shared_flag="$shared_flag "'${wl}-G'
16176
if test "$host_cpu" = ia64; then
16177
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16178
# chokes on -Wl,-G. The following line is correct:
16181
if test "$aix_use_runtimelinking" = yes; then
16182
shared_flag='${wl}-G'
16184
shared_flag='${wl}-bM:SRE'
16189
# It seems that -bexpall does not export symbols beginning with
16190
# underscore (_), so it is better to generate a list of symbols to export.
16191
always_export_symbols_F77=yes
16192
if test "$aix_use_runtimelinking" = yes; then
16193
# Warning - without using the other runtime loading flags (-brtl),
16194
# -berok will link without error, but may produce a broken library.
16195
allow_undefined_flag_F77='-berok'
16196
# Determine the default libpath from the value encoded in an empty executable.
16197
cat >conftest.$ac_ext <<_ACEOF
16202
rm -f conftest.$ac_objext conftest$ac_exeext
16203
if { (ac_try="$ac_link"
16204
case "(($ac_try" in
16205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206
*) ac_try_echo=$ac_try;;
16208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209
(eval "$ac_link") 2>conftest.er1
16211
grep -v '^ *+' conftest.er1 >conftest.err
16213
cat conftest.err >&5
16214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215
(exit $ac_status); } &&
16216
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16217
{ (case "(($ac_try" in
16218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219
*) ac_try_echo=$ac_try;;
16221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222
(eval "$ac_try") 2>&5
16224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225
(exit $ac_status); }; } &&
16226
{ ac_try='test -s conftest$ac_exeext'
16227
{ (case "(($ac_try" in
16228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229
*) ac_try_echo=$ac_try;;
16231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232
(eval "$ac_try") 2>&5
16234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235
(exit $ac_status); }; }; then
16237
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16239
# Check for a 64-bit object if we didn't find anything.
16240
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; }
16243
echo "$as_me: failed program was:" >&5
16244
sed 's/^/| /' conftest.$ac_ext >&5
16249
rm -f conftest.err conftest.$ac_objext \
16250
conftest$ac_exeext conftest.$ac_ext
16251
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16253
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16254
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"
16256
if test "$host_cpu" = ia64; then
16257
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16258
allow_undefined_flag_F77="-z nodefs"
16259
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"
16261
# Determine the default libpath from the value encoded in an empty executable.
16262
cat >conftest.$ac_ext <<_ACEOF
16267
rm -f conftest.$ac_objext conftest$ac_exeext
16268
if { (ac_try="$ac_link"
16269
case "(($ac_try" in
16270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271
*) ac_try_echo=$ac_try;;
16273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274
(eval "$ac_link") 2>conftest.er1
16276
grep -v '^ *+' conftest.er1 >conftest.err
16278
cat conftest.err >&5
16279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
(exit $ac_status); } &&
16281
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16282
{ (case "(($ac_try" in
16283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284
*) ac_try_echo=$ac_try;;
16286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287
(eval "$ac_try") 2>&5
16289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290
(exit $ac_status); }; } &&
16291
{ ac_try='test -s conftest$ac_exeext'
16292
{ (case "(($ac_try" in
16293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294
*) ac_try_echo=$ac_try;;
16296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297
(eval "$ac_try") 2>&5
16299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300
(exit $ac_status); }; }; then
16302
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16304
# Check for a 64-bit object if we didn't find anything.
16305
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; }
16308
echo "$as_me: failed program was:" >&5
16309
sed 's/^/| /' conftest.$ac_ext >&5
16314
rm -f conftest.err conftest.$ac_objext \
16315
conftest$ac_exeext conftest.$ac_ext
16316
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16318
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16319
# Warning - without using the other run time loading flags,
16320
# -berok will link without error, but may produce a broken library.
16321
no_undefined_flag_F77=' ${wl}-bernotok'
16322
allow_undefined_flag_F77=' ${wl}-berok'
16323
# Exported symbols can be pulled into shared objects from archives
16324
whole_archive_flag_spec_F77='$convenience'
16325
archive_cmds_need_lc_F77=yes
16326
# This is similar to how AIX traditionally builds its shared libraries.
16327
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'
16333
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)'
16334
hardcode_libdir_flag_spec_F77='-L$libdir'
16335
hardcode_minus_L_F77=yes
16336
# see comment about different semantics on the GNU ld section
16341
export_dynamic_flag_spec_F77=-rdynamic
16344
cygwin* | mingw* | pw32*)
16345
# When not using gcc, we currently assume that we are using
16346
# Microsoft Visual C++.
16347
# hardcode_libdir_flag_spec is actually meaningless, as there is
16348
# no search path for DLLs.
16349
hardcode_libdir_flag_spec_F77=' '
16350
allow_undefined_flag_F77=unsupported
16351
# Tell ltmain to make .lib files, not .a files.
16353
# Tell ltmain to make .dll files, not .so files.
16355
# FIXME: Setting linknames here is a bad hack.
16356
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16357
# The linker will automatically build a .lib file if we build a DLL.
16358
old_archive_From_new_cmds_F77='true'
16359
# FIXME: Should let the user specify the lib program.
16360
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16361
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16362
enable_shared_with_static_runtimes_F77=yes
16365
darwin* | rhapsody*)
16367
rhapsody* | darwin1.[012])
16368
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16371
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16372
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16374
case ${MACOSX_DEPLOYMENT_TARGET} in
16376
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16379
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16385
archive_cmds_need_lc_F77=no
16386
hardcode_direct_F77=no
16387
hardcode_automatic_F77=yes
16388
hardcode_shlibpath_var_F77=unsupported
16389
whole_archive_flag_spec_F77=''
16390
link_all_deplibs_F77=yes
16391
if test "$GCC" = yes ; then
16392
output_verbose_link_cmd='echo'
16393
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16394
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16395
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16396
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}'
16397
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}'
16399
case $cc_basename in
16401
output_verbose_link_cmd='echo'
16402
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16403
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16404
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16405
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}'
16406
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}'
16416
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417
hardcode_libdir_flag_spec_F77='-L$libdir'
16418
hardcode_shlibpath_var_F77=no
16425
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16426
# support. Future versions do this automatically, but an explicit c++rt0.o
16427
# does not break anything, and helps significantly (at the cost of a little
16430
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16431
hardcode_libdir_flag_spec_F77='-R$libdir'
16432
hardcode_direct_F77=yes
16433
hardcode_shlibpath_var_F77=no
16436
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16438
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16439
hardcode_direct_F77=yes
16440
hardcode_minus_L_F77=yes
16441
hardcode_shlibpath_var_F77=no
16444
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16445
freebsd* | dragonfly*)
16446
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16447
hardcode_libdir_flag_spec_F77='-R$libdir'
16448
hardcode_direct_F77=yes
16449
hardcode_shlibpath_var_F77=no
16453
if test "$GCC" = yes; then
16454
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'
16456
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'
16458
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16459
hardcode_libdir_separator_F77=:
16460
hardcode_direct_F77=yes
16462
# hardcode_minus_L: Not really in the search PATH,
16463
# but as the default location of the library.
16464
hardcode_minus_L_F77=yes
16465
export_dynamic_flag_spec_F77='${wl}-E'
16469
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16470
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16472
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16474
if test "$with_gnu_ld" = no; then
16475
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16476
hardcode_libdir_separator_F77=:
16478
hardcode_direct_F77=yes
16479
export_dynamic_flag_spec_F77='${wl}-E'
16481
# hardcode_minus_L: Not really in the search PATH,
16482
# but as the default location of the library.
16483
hardcode_minus_L_F77=yes
16488
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16491
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16494
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16497
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16503
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16506
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16509
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16513
if test "$with_gnu_ld" = no; then
16514
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16515
hardcode_libdir_separator_F77=:
16519
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16520
hardcode_direct_F77=no
16521
hardcode_shlibpath_var_F77=no
16524
hardcode_direct_F77=yes
16525
export_dynamic_flag_spec_F77='${wl}-E'
16527
# hardcode_minus_L: Not really in the search PATH,
16528
# but as the default location of the library.
16529
hardcode_minus_L_F77=yes
16535
irix5* | irix6* | nonstopux*)
16536
if test "$GCC" = yes; then
16537
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'
16539
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'
16540
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16542
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16543
hardcode_libdir_separator_F77=:
16544
link_all_deplibs_F77=yes
16547
netbsd* | netbsdelf*-gnu)
16548
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16551
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16553
hardcode_libdir_flag_spec_F77='-R$libdir'
16554
hardcode_direct_F77=yes
16555
hardcode_shlibpath_var_F77=no
16559
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560
hardcode_direct_F77=yes
16561
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16562
hardcode_libdir_separator_F77=:
16563
hardcode_shlibpath_var_F77=no
16567
hardcode_direct_F77=yes
16568
hardcode_shlibpath_var_F77=no
16569
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16572
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16573
export_dynamic_flag_spec_F77='${wl}-E'
16576
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16577
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16578
hardcode_libdir_flag_spec_F77='-R$libdir'
16581
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16582
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16589
hardcode_libdir_flag_spec_F77='-L$libdir'
16590
hardcode_minus_L_F77=yes
16591
allow_undefined_flag_F77=unsupported
16592
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'
16593
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16597
if test "$GCC" = yes; then
16598
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16599
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'
16601
allow_undefined_flag_F77=' -expect_unresolved \*'
16602
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'
16604
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605
hardcode_libdir_separator_F77=:
16608
osf4* | osf5*) # as osf3* with the addition of -msym flag
16609
if test "$GCC" = yes; then
16610
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16611
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'
16612
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16614
allow_undefined_flag_F77=' -expect_unresolved \*'
16615
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'
16616
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~
16617
$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'
16619
# Both c and cxx compiler support -rpath directly
16620
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16622
hardcode_libdir_separator_F77=:
16626
no_undefined_flag_F77=' -z text'
16627
if test "$GCC" = yes; then
16629
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16630
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16631
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16634
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16636
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16638
hardcode_libdir_flag_spec_F77='-R$libdir'
16639
hardcode_shlibpath_var_F77=no
16641
solaris2.[0-5] | solaris2.[0-5].*) ;;
16643
# The compiler driver will combine linker options so we
16644
# cannot just pass the convience library names through
16645
# without $wl, iff we do not link with $LD.
16646
# Luckily, gcc supports the same syntax we need for Sun Studio.
16647
# Supported since Solaris 2.6 (maybe 2.5.1?)
16650
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16652
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' ;;
16655
link_all_deplibs_F77=yes
16659
if test "x$host_vendor" = xsequent; then
16660
# Use $CC to link under sequent, because it throws in some extra .o
16661
# files that make .init and .fini sections work.
16662
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16664
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16666
hardcode_libdir_flag_spec_F77='-L$libdir'
16667
hardcode_direct_F77=yes
16668
hardcode_minus_L_F77=yes
16669
hardcode_shlibpath_var_F77=no
16673
case $host_vendor in
16675
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676
hardcode_direct_F77=yes # is this really true???
16679
## LD is ld it makes a PLAMLIB
16680
## CC just makes a GrossModule.
16681
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16682
reload_cmds_F77='$CC -r -o $output$reload_objs'
16683
hardcode_direct_F77=no
16686
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16690
runpath_var='LD_RUN_PATH'
16691
hardcode_shlibpath_var_F77=no
16695
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696
hardcode_shlibpath_var_F77=no
16697
export_dynamic_flag_spec_F77='-Bexport'
16701
if test -d /usr/nec; then
16702
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703
hardcode_shlibpath_var_F77=no
16704
runpath_var=LD_RUN_PATH
16705
hardcode_runpath_var=yes
16710
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16711
no_undefined_flag_F77='${wl}-z,text'
16712
archive_cmds_need_lc_F77=no
16713
hardcode_shlibpath_var_F77=no
16714
runpath_var='LD_RUN_PATH'
16716
if test "$GCC" = yes; then
16717
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16720
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16725
sysv5* | sco3.2v5* | sco5v6*)
16726
# Note: We can NOT use -z defs as we might desire, because we do not
16727
# link with -lc, and that would cause any symbols used from libc to
16728
# always be unresolved, which means just about no library would
16729
# ever link correctly. If we're not using GNU ld we use -z text
16730
# though, which does catch some bad symbols but isn't as heavy-handed
16732
no_undefined_flag_F77='${wl}-z,text'
16733
allow_undefined_flag_F77='${wl}-z,nodefs'
16734
archive_cmds_need_lc_F77=no
16735
hardcode_shlibpath_var_F77=no
16736
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16737
hardcode_libdir_separator_F77=':'
16738
link_all_deplibs_F77=yes
16739
export_dynamic_flag_spec_F77='${wl}-Bexport'
16740
runpath_var='LD_RUN_PATH'
16742
if test "$GCC" = yes; then
16743
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16752
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753
hardcode_libdir_flag_spec_F77='-L$libdir'
16754
hardcode_shlibpath_var_F77=no
16763
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16764
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16765
test "$ld_shlibs_F77" = no && can_build_shared=no
16768
# Do we need to explicitly link libc?
16770
case "x$archive_cmds_need_lc_F77" in
16772
# Assume -lc should be added
16773
archive_cmds_need_lc_F77=yes
16775
if test "$enable_shared" = yes && test "$GCC" = yes; then
16776
case $archive_cmds_F77 in
16778
# FIXME: we may have to deal with multi-command sequences.
16781
# Test whether the compiler implicitly links with -lc since on some
16782
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16783
# to ld, don't add -lc before -lgcc.
16784
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16785
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16787
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790
(eval $ac_compile) 2>&5
16792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793
(exit $ac_status); } 2>conftest.err; then
16796
libobjs=conftest.$ac_objext
16798
wl=$lt_prog_compiler_wl_F77
16799
pic_flag=$lt_prog_compiler_pic_F77
16805
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16806
allow_undefined_flag_F77=
16807
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16808
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811
(exit $ac_status); }
16813
archive_cmds_need_lc_F77=no
16815
archive_cmds_need_lc_F77=yes
16817
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16819
cat conftest.err 1>&5
16822
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16823
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16830
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16831
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16832
library_names_spec=
16833
libname_spec='lib$name'
16837
postuninstall_cmds=
16841
shlibpath_overrides_runpath=unknown
16843
dynamic_linker="$host_os ld.so"
16844
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16845
if test "$GCC" = yes; then
16846
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16847
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16848
# if the path contains ";" then we assume it to be the separator
16849
# otherwise default to the standard path separator (i.e. ":") - it is
16850
# assumed that no part of a normal pathname contains ";" but that should
16851
# okay in the real world where ";" in dirpaths is itself problematic.
16852
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16854
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16857
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16859
need_lib_prefix=unknown
16860
hardcode_into_libs=no
16862
# when you set need_version to no, make sure it does not cause -set_version
16863
# flags to be left without arguments
16864
need_version=unknown
16869
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16870
shlibpath_var=LIBPATH
16872
# AIX 3 has no versioning support, so we append a major version to the name.
16873
soname_spec='${libname}${release}${shared_ext}$major'
16880
hardcode_into_libs=yes
16881
if test "$host_cpu" = ia64; then
16882
# AIX 5 supports IA64
16883
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16884
shlibpath_var=LD_LIBRARY_PATH
16886
# With GCC up to 2.95.x, collect2 would create an import file
16887
# for dependence libraries. The import file would start with
16888
# the line `#! .'. This would cause the generated library to
16889
# depend on `.', always an invalid library. This was fixed in
16890
# development snapshots of GCC prior to 3.0.
16892
aix4 | aix4.[01] | aix4.[01].*)
16893
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16895
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16898
can_build_shared=no
16902
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16903
# soname into executable. Probably we can add versioning support to
16904
# collect2, so additional links can be useful in future.
16905
if test "$aix_use_runtimelinking" = yes; then
16906
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16907
# instead of lib<name>.a to let people know that these are not
16908
# typical AIX shared libraries.
16909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911
# We preserve .a as extension for shared libraries through AIX4.2
16912
# and later when we are not doing run time linking.
16913
library_names_spec='${libname}${release}.a $libname.a'
16914
soname_spec='${libname}${release}${shared_ext}$major'
16916
shlibpath_var=LIBPATH
16921
library_names_spec='$libname.ixlibrary $libname.a'
16922
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16923
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'
16927
library_names_spec='${libname}${shared_ext}'
16928
dynamic_linker="$host_os ld.so"
16929
shlibpath_var=LIBRARY_PATH
16935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936
soname_spec='${libname}${release}${shared_ext}$major'
16937
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16938
shlibpath_var=LD_LIBRARY_PATH
16939
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16940
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16941
# the default ld.so.conf also contains /usr/contrib/lib and
16942
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16943
# libtool to hard-code these into programs
16946
cygwin* | mingw* | pw32*)
16947
version_type=windows
16952
case $GCC,$host_os in
16953
yes,cygwin* | yes,mingw* | yes,pw32*)
16954
library_names_spec='$libname.dll.a'
16955
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16956
postinstall_cmds='base_file=`basename \${file}`~
16957
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16958
dldir=$destdir/`dirname \$dlpath`~
16959
test -d \$dldir || mkdir -p \$dldir~
16960
$install_prog $dir/$dlname \$dldir/$dlname~
16961
chmod a+x \$dldir/$dlname'
16962
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16963
dlpath=$dir/\$dldll~
16965
shlibpath_overrides_runpath=yes
16969
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16970
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16971
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16974
# MinGW DLLs use traditional 'lib' prefix
16975
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16976
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16977
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16978
# It is most probably a Windows format PATH printed by
16979
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16980
# path with ; separators, and with drive letters. We can handle the
16981
# drive letters (cygwin fileutils understands them), so leave them,
16982
# especially as we might pass files found there to a mingw objdump,
16983
# which wouldn't understand a cygwinified path. Ahh.
16984
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16986
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16990
# pw32 DLLs use 'pw' prefix rather than 'lib'
16991
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16997
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17000
dynamic_linker='Win32 ld.exe'
17001
# FIXME: first we should search . and the directory the executable is in
17005
darwin* | rhapsody*)
17006
dynamic_linker="$host_os dyld"
17007
version_type=darwin
17010
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17011
soname_spec='${libname}${release}${major}$shared_ext'
17012
shlibpath_overrides_runpath=yes
17013
shlibpath_var=DYLD_LIBRARY_PATH
17014
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17015
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17016
if test "$GCC" = yes; then
17017
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"`
17019
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17021
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17029
soname_spec='${libname}${release}${shared_ext}$major'
17030
shlibpath_var=LD_LIBRARY_PATH
17037
freebsd* | dragonfly*)
17038
# DragonFly does not have aout. When/if they implement a new
17039
# versioning mechanism, adjust this.
17040
if test -x /usr/bin/objformat; then
17041
objformat=`/usr/bin/objformat`
17044
freebsd[123]*) objformat=aout ;;
17045
*) objformat=elf ;;
17048
version_type=freebsd-$objformat
17049
case $version_type in
17051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17056
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17060
shlibpath_var=LD_LIBRARY_PATH
17063
shlibpath_overrides_runpath=yes
17065
freebsd3.[01]* | freebsdelf3.[01]*)
17066
shlibpath_overrides_runpath=yes
17067
hardcode_into_libs=yes
17069
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17070
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17071
shlibpath_overrides_runpath=no
17072
hardcode_into_libs=yes
17074
freebsd*) # from 4.6 on
17075
shlibpath_overrides_runpath=yes
17076
hardcode_into_libs=yes
17085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17086
soname_spec='${libname}${release}${shared_ext}$major'
17087
shlibpath_var=LD_LIBRARY_PATH
17088
hardcode_into_libs=yes
17091
hpux9* | hpux10* | hpux11*)
17092
# Give a soname corresponding to the major version so that dld.sl refuses to
17093
# link against other versions.
17100
hardcode_into_libs=yes
17101
dynamic_linker="$host_os dld.so"
17102
shlibpath_var=LD_LIBRARY_PATH
17103
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105
soname_spec='${libname}${release}${shared_ext}$major'
17106
if test "X$HPUX_IA64_MODE" = X32; then
17107
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17109
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17111
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17115
hardcode_into_libs=yes
17116
dynamic_linker="$host_os dld.sl"
17117
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17118
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120
soname_spec='${libname}${release}${shared_ext}$major'
17121
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17122
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17126
dynamic_linker="$host_os dld.sl"
17127
shlibpath_var=SHLIB_PATH
17128
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130
soname_spec='${libname}${release}${shared_ext}$major'
17133
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17134
postinstall_cmds='chmod 555 $lib'
17141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17142
soname_spec='${libname}${release}${shared_ext}$major'
17143
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17144
shlibpath_var=LD_LIBRARY_PATH
17145
shlibpath_overrides_runpath=no
17146
hardcode_into_libs=yes
17149
irix5* | irix6* | nonstopux*)
17151
nonstopux*) version_type=nonstopux ;;
17153
if test "$lt_cv_prog_gnu_ld" = yes; then
17161
soname_spec='${libname}${release}${shared_ext}$major'
17162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17164
irix5* | nonstopux*)
17165
libsuff= shlibsuff=
17168
case $LD in # libtool.m4 will add one of these switches to LD
17169
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17170
libsuff= shlibsuff= libmagic=32-bit;;
17171
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17172
libsuff=32 shlibsuff=N32 libmagic=N32;;
17173
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17174
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17175
*) libsuff= shlibsuff= libmagic=never-match;;
17179
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17180
shlibpath_overrides_runpath=no
17181
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17182
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17183
hardcode_into_libs=yes
17186
# No shared lib support for Linux oldld, aout, or coff.
17187
linux*oldld* | linux*aout* | linux*coff*)
17191
# This must be Linux ELF.
17192
linux* | k*bsd*-gnu)
17196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197
soname_spec='${libname}${release}${shared_ext}$major'
17198
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17199
shlibpath_var=LD_LIBRARY_PATH
17200
shlibpath_overrides_runpath=no
17201
# This implies no fast_install, which is unacceptable.
17202
# Some rework will be needed to allow for fast_install
17203
# before this can be enabled.
17204
hardcode_into_libs=yes
17206
# Append ld.so.conf contents to the search path
17207
if test -f /etc/ld.so.conf; then
17208
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' ' '`
17209
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17212
# We used to test for /lib/ld.so.1 and disable shared libraries on
17213
# powerpc, because MkLinux only supported shared libraries with the
17214
# GNU dynamic linker. Since this was broken with cross compilers,
17215
# most powerpc-linux boxes support dynamic linking these days and
17216
# people can always --disable-shared, the test was removed, and we
17217
# assume the GNU/Linux dynamic linker is in use.
17218
dynamic_linker='GNU/Linux ld.so'
17225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17226
soname_spec='${libname}${release}${shared_ext}$major'
17227
shlibpath_var=LD_LIBRARY_PATH
17228
shlibpath_overrides_runpath=no
17229
hardcode_into_libs=yes
17230
dynamic_linker='NetBSD ld.elf_so'
17237
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240
dynamic_linker='NetBSD (a.out) ld.so'
17242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243
soname_spec='${libname}${release}${shared_ext}$major'
17244
dynamic_linker='NetBSD ld.elf_so'
17246
shlibpath_var=LD_LIBRARY_PATH
17247
shlibpath_overrides_runpath=yes
17248
hardcode_into_libs=yes
17253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254
shlibpath_var=LD_LIBRARY_PATH
17255
shlibpath_overrides_runpath=yes
17262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263
soname_spec='${libname}${release}${shared_ext}$major'
17264
shlibpath_var=LD_LIBRARY_PATH
17265
shlibpath_overrides_runpath=yes
17270
sys_lib_dlsearch_path_spec="/usr/lib"
17272
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17274
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17275
*) need_version=no ;;
17277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279
shlibpath_var=LD_LIBRARY_PATH
17280
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17282
openbsd2.[89] | openbsd2.[89].*)
17283
shlibpath_overrides_runpath=no
17286
shlibpath_overrides_runpath=yes
17290
shlibpath_overrides_runpath=yes
17295
libname_spec='$name'
17298
library_names_spec='$libname${shared_ext} $libname.a'
17299
dynamic_linker='OS/2 ld.exe'
17300
shlibpath_var=LIBPATH
17303
osf3* | osf4* | osf5*)
17307
soname_spec='${libname}${release}${shared_ext}$major'
17308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309
shlibpath_var=LD_LIBRARY_PATH
17310
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17311
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319
soname_spec='${libname}${release}${shared_ext}$major'
17320
shlibpath_var=LD_LIBRARY_PATH
17321
shlibpath_overrides_runpath=yes
17322
hardcode_into_libs=yes
17323
# ldd complains unless libraries are executable
17324
postinstall_cmds='chmod +x $lib'
17329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17330
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17331
shlibpath_var=LD_LIBRARY_PATH
17332
shlibpath_overrides_runpath=yes
17333
if test "$with_gnu_ld" = yes; then
17341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342
soname_spec='${libname}${release}${shared_ext}$major'
17343
shlibpath_var=LD_LIBRARY_PATH
17344
case $host_vendor in
17346
shlibpath_overrides_runpath=no
17348
export_dynamic_flag_spec='${wl}-Blargedynsym'
17349
runpath_var=LD_RUN_PATH
17357
shlibpath_overrides_runpath=no
17358
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17364
if test -d /usr/nec ;then
17366
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17367
soname_spec='$libname${shared_ext}.$major'
17368
shlibpath_var=LD_LIBRARY_PATH
17372
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17373
version_type=freebsd-elf
17376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17377
soname_spec='${libname}${release}${shared_ext}$major'
17378
shlibpath_var=LD_LIBRARY_PATH
17379
hardcode_into_libs=yes
17380
if test "$with_gnu_ld" = yes; then
17381
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17382
shlibpath_overrides_runpath=no
17384
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17385
shlibpath_overrides_runpath=yes
17388
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17392
sys_lib_dlsearch_path_spec='/usr/lib'
17397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398
soname_spec='${libname}${release}${shared_ext}$major'
17399
shlibpath_var=LD_LIBRARY_PATH
17406
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407
echo "${ECHO_T}$dynamic_linker" >&6; }
17408
test "$dynamic_linker" = no && can_build_shared=no
17410
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17411
if test "$GCC" = yes; then
17412
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17415
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17416
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17417
hardcode_action_F77=
17418
if test -n "$hardcode_libdir_flag_spec_F77" || \
17419
test -n "$runpath_var_F77" || \
17420
test "X$hardcode_automatic_F77" = "Xyes" ; then
17422
# We can hardcode non-existant directories.
17423
if test "$hardcode_direct_F77" != no &&
17424
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17425
# have to relink, otherwise we might link with an installed library
17426
# when we should be linking with a yet-to-be-installed one
17427
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17428
test "$hardcode_minus_L_F77" != no; then
17429
# Linking always hardcodes the temporary library directory.
17430
hardcode_action_F77=relink
17432
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17433
hardcode_action_F77=immediate
17436
# We cannot hardcode anything, or else we can only hardcode existing
17438
hardcode_action_F77=unsupported
17440
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17441
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17443
if test "$hardcode_action_F77" = relink; then
17444
# Fast installation is not supported
17445
enable_fast_install=no
17446
elif test "$shlibpath_overrides_runpath" = yes ||
17447
test "$enable_shared" = no; then
17448
# Fast installation is not necessary
17449
enable_fast_install=needless
17453
# The else clause should only fire when bootstrapping the
17454
# libtool distribution, otherwise you forgot to ship ltmain.sh
17455
# with your package, and you will get complaints that there are
17456
# no rules to generate ltmain.sh.
17457
if test -f "$ltmain"; then
17458
# See if we are running on zsh, and set the options which allow our commands through
17459
# without removal of \ escapes.
17460
if test -n "${ZSH_VERSION+set}" ; then
17461
setopt NO_GLOB_SUBST
17463
# Now quote all the things that may contain metacharacters while being
17464
# careful not to overquote the AC_SUBSTed values. We take copies of the
17465
# variables and quote the copies for generation of the libtool script.
17466
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17468
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17469
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17470
deplibs_check_method reload_flag reload_cmds need_locks \
17471
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17472
lt_cv_sys_global_symbol_to_c_name_address \
17473
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17474
old_postinstall_cmds old_postuninstall_cmds \
17478
lt_prog_compiler_wl_F77 \
17479
lt_prog_compiler_pic_F77 \
17480
lt_prog_compiler_static_F77 \
17481
lt_prog_compiler_no_builtin_flag_F77 \
17482
export_dynamic_flag_spec_F77 \
17483
thread_safe_flag_spec_F77 \
17484
whole_archive_flag_spec_F77 \
17485
enable_shared_with_static_runtimes_F77 \
17486
old_archive_cmds_F77 \
17487
old_archive_from_new_cmds_F77 \
17488
predep_objects_F77 \
17489
postdep_objects_F77 \
17492
compiler_lib_search_path_F77 \
17494
archive_expsym_cmds_F77 \
17495
postinstall_cmds_F77 \
17496
postuninstall_cmds_F77 \
17497
old_archive_from_expsyms_cmds_F77 \
17498
allow_undefined_flag_F77 \
17499
no_undefined_flag_F77 \
17500
export_symbols_cmds_F77 \
17501
hardcode_libdir_flag_spec_F77 \
17502
hardcode_libdir_flag_spec_ld_F77 \
17503
hardcode_libdir_separator_F77 \
17504
hardcode_automatic_F77 \
17506
module_expsym_cmds_F77 \
17507
lt_cv_prog_compiler_c_o_F77 \
17508
exclude_expsyms_F77 \
17509
include_expsyms_F77; do
17512
old_archive_cmds_F77 | \
17513
old_archive_from_new_cmds_F77 | \
17514
archive_cmds_F77 | \
17515
archive_expsym_cmds_F77 | \
17516
module_cmds_F77 | \
17517
module_expsym_cmds_F77 | \
17518
old_archive_from_expsyms_cmds_F77 | \
17519
export_symbols_cmds_F77 | \
17520
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17521
postinstall_cmds | postuninstall_cmds | \
17522
old_postinstall_cmds | old_postuninstall_cmds | \
17523
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17524
# Double-quote double-evaled strings.
17525
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17528
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17534
*'\$0 --fallback-echo"')
17535
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17541
cat <<__EOF__ >> "$cfgfile"
17542
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17544
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17546
# Shell to use when invoking shell scripts.
17549
# Whether or not to build shared libraries.
17550
build_libtool_libs=$enable_shared
17552
# Whether or not to build static libraries.
17553
build_old_libs=$enable_static
17555
# Whether or not to add -lc for building shared libraries.
17556
build_libtool_need_lc=$archive_cmds_need_lc_F77
17558
# Whether or not to disallow shared libs when runtime libs are static
17559
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17561
# Whether or not to optimize for fast installation.
17562
fast_install=$enable_fast_install
17565
host_alias=$host_alias
17569
# The build system.
17570
build_alias=$build_alias
17574
# An echo program that does not interpret backslashes.
17579
AR_FLAGS=$lt_AR_FLAGS
17584
# LTCC compiler flags.
17585
LTCFLAGS=$lt_LTCFLAGS
17587
# A language-specific compiler.
17588
CC=$lt_compiler_F77
17590
# Is the compiler the GNU C compiler?
17596
# The linker used to build libraries.
17599
# Whether we need hard or soft links.
17602
# A BSD-compatible nm program.
17605
# A symbol stripping program
17608
# Used to examine libraries when file_magic_cmd begins "file"
17609
MAGIC_CMD=$MAGIC_CMD
17611
# Used on cygwin: DLL creation program.
17614
# Used on cygwin: object dumper.
17617
# Used on cygwin: assembler.
17620
# The name of the directory that contains temporary libtool files.
17623
# How to create reloadable object files.
17624
reload_flag=$lt_reload_flag
17625
reload_cmds=$lt_reload_cmds
17627
# How to pass a linker flag through the compiler.
17628
wl=$lt_lt_prog_compiler_wl_F77
17630
# Object file suffix (normally "o").
17631
objext="$ac_objext"
17633
# Old archive suffix (normally "a").
17636
# Shared library suffix (normally ".so").
17637
shrext_cmds='$shrext_cmds'
17639
# Executable file suffix (normally "").
17642
# Additional compiler flags for building library objects.
17643
pic_flag=$lt_lt_prog_compiler_pic_F77
17646
# What is the maximum length of a command?
17647
max_cmd_len=$lt_cv_sys_max_cmd_len
17649
# Does compiler simultaneously support -c and -o options?
17650
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17652
# Must we lock files when doing compilation?
17653
need_locks=$lt_need_locks
17655
# Do we need the lib prefix for modules?
17656
need_lib_prefix=$need_lib_prefix
17658
# Do we need a version for libraries?
17659
need_version=$need_version
17661
# Whether dlopen is supported.
17662
dlopen_support=$enable_dlopen
17664
# Whether dlopen of programs is supported.
17665
dlopen_self=$enable_dlopen_self
17667
# Whether dlopen of statically linked programs is supported.
17668
dlopen_self_static=$enable_dlopen_self_static
17670
# Compiler flag to prevent dynamic linking.
17671
link_static_flag=$lt_lt_prog_compiler_static_F77
17673
# Compiler flag to turn off builtin functions.
17674
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17676
# Compiler flag to allow reflexive dlopens.
17677
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17679
# Compiler flag to generate shared objects directly from archives.
17680
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17682
# Compiler flag to generate thread-safe objects.
17683
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17685
# Library versioning type.
17686
version_type=$version_type
17688
# Format of library name prefix.
17689
libname_spec=$lt_libname_spec
17691
# List of archive names. First name is the real one, the rest are links.
17692
# The last name is the one that the linker finds with -lNAME.
17693
library_names_spec=$lt_library_names_spec
17695
# The coded name of the library, if different from the real name.
17696
soname_spec=$lt_soname_spec
17698
# Commands used to build and install an old-style archive.
17700
old_archive_cmds=$lt_old_archive_cmds_F77
17701
old_postinstall_cmds=$lt_old_postinstall_cmds
17702
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17704
# Create an old-style archive from a shared archive.
17705
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17707
# Create a temporary old-style archive to link instead of a shared archive.
17708
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17710
# Commands used to build and install a shared archive.
17711
archive_cmds=$lt_archive_cmds_F77
17712
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17713
postinstall_cmds=$lt_postinstall_cmds
17714
postuninstall_cmds=$lt_postuninstall_cmds
17716
# Commands used to build a loadable module (assumed same as above if empty)
17717
module_cmds=$lt_module_cmds_F77
17718
module_expsym_cmds=$lt_module_expsym_cmds_F77
17720
# Commands to strip libraries.
17721
old_striplib=$lt_old_striplib
17722
striplib=$lt_striplib
17724
# Dependencies to place before the objects being linked to create a
17726
predep_objects=$lt_predep_objects_F77
17728
# Dependencies to place after the objects being linked to create a
17730
postdep_objects=$lt_postdep_objects_F77
17732
# Dependencies to place before the objects being linked to create a
17734
predeps=$lt_predeps_F77
17736
# Dependencies to place after the objects being linked to create a
17738
postdeps=$lt_postdeps_F77
17740
# The library search path used internally by the compiler when linking
17741
# a shared library.
17742
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17744
# Method to check whether dependent libraries are shared objects.
17745
deplibs_check_method=$lt_deplibs_check_method
17747
# Command to use when deplibs_check_method == file_magic.
17748
file_magic_cmd=$lt_file_magic_cmd
17750
# Flag that allows shared libraries with undefined symbols to be built.
17751
allow_undefined_flag=$lt_allow_undefined_flag_F77
17753
# Flag that forces no undefined symbols.
17754
no_undefined_flag=$lt_no_undefined_flag_F77
17756
# Commands used to finish a libtool library installation in a directory.
17757
finish_cmds=$lt_finish_cmds
17759
# Same as above, but a single script fragment to be evaled but not shown.
17760
finish_eval=$lt_finish_eval
17762
# Take the output of nm and produce a listing of raw symbols and C names.
17763
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17765
# Transform the output of nm in a proper C declaration
17766
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17768
# Transform the output of nm in a C name address pair
17769
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17771
# This is the shared library runtime path variable.
17772
runpath_var=$runpath_var
17774
# This is the shared library path variable.
17775
shlibpath_var=$shlibpath_var
17777
# Is shlibpath searched before the hard-coded library search path?
17778
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17780
# How to hardcode a shared library path into an executable.
17781
hardcode_action=$hardcode_action_F77
17783
# Whether we should hardcode library paths into libraries.
17784
hardcode_into_libs=$hardcode_into_libs
17786
# Flag to hardcode \$libdir into a binary during linking.
17787
# This must work even if \$libdir does not exist.
17788
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17790
# If ld is used when linking, flag to hardcode \$libdir into
17791
# a binary during linking. This must work even if \$libdir does
17793
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17795
# Whether we need a single -rpath flag with a separated argument.
17796
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17798
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17799
# resulting binary.
17800
hardcode_direct=$hardcode_direct_F77
17802
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17803
# resulting binary.
17804
hardcode_minus_L=$hardcode_minus_L_F77
17806
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17807
# the resulting binary.
17808
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17810
# Set to yes if building a shared library automatically hardcodes DIR into the library
17811
# and all subsequent libraries and executables linked against it.
17812
hardcode_automatic=$hardcode_automatic_F77
17814
# Variables whose values should be saved in libtool wrapper scripts and
17815
# restored at relink time.
17816
variables_saved_for_relink="$variables_saved_for_relink"
17818
# Whether libtool must link a program against all its dependency libraries.
17819
link_all_deplibs=$link_all_deplibs_F77
17821
# Compile-time system search path for libraries
17822
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17824
# Run-time system search path for libraries
17825
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17827
# Fix the shell variable \$srcfile for the compiler.
17828
fix_srcfile_path="$fix_srcfile_path_F77"
17830
# Set to yes if exported symbols are required.
17831
always_export_symbols=$always_export_symbols_F77
17833
# The commands to list exported symbols.
17834
export_symbols_cmds=$lt_export_symbols_cmds_F77
17836
# The commands to extract the exported symbol list from a shared archive.
17837
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17839
# Symbols that should not be listed in the preloaded symbols.
17840
exclude_expsyms=$lt_exclude_expsyms_F77
17842
# Symbols that must always be exported.
17843
include_expsyms=$lt_include_expsyms_F77
17845
# ### END LIBTOOL TAG CONFIG: $tagname
17851
# If there is no Makefile yet, we rely on a make rule to execute
17852
# `config.status --recheck' to rerun these tests and create the
17853
# libtool script then.
17854
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17855
if test -f "$ltmain_in"; then
17856
test -f Makefile && make "$ltmain"
17862
ac_cpp='$CPP $CPPFLAGS'
17863
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17864
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17865
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17875
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17878
# Source file extension for Java test sources.
17881
# Object file extension for compiled Java test sources.
17885
# Code to be used in simple compile tests
17886
lt_simple_compile_test_code="class foo {}\n"
17888
# Code to be used in simple link tests
17889
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17891
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17893
# If no C compiler was specified, use CC.
17896
# If no C compiler flags were specified, use CFLAGS.
17897
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17899
# Allow CC to be a program name with arguments.
17903
# save warnings/boilerplate of simple test code
17904
ac_outfile=conftest.$ac_objext
17905
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17906
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17907
_lt_compiler_boilerplate=`cat conftest.err`
17910
ac_outfile=conftest.$ac_objext
17911
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17912
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17913
_lt_linker_boilerplate=`cat conftest.err`
17917
# Allow CC to be a program name with arguments.
17922
for cc_temp in $compiler""; do
17924
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17925
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17930
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17933
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17934
archive_cmds_need_lc_GCJ=no
17936
old_archive_cmds_GCJ=$old_archive_cmds
17939
## There is no encapsulation within the following macros, do not change
17940
## the running order or otherwise move them around unless you know exactly
17941
## what you are doing...
17943
lt_prog_compiler_no_builtin_flag_GCJ=
17945
if test "$GCC" = yes; then
17946
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17949
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17950
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17951
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17952
echo $ECHO_N "(cached) $ECHO_C" >&6
17954
lt_cv_prog_compiler_rtti_exceptions=no
17955
ac_outfile=conftest.$ac_objext
17956
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17957
lt_compiler_flag="-fno-rtti -fno-exceptions"
17958
# Insert the option either (1) after the last *FLAGS variable, or
17959
# (2) before a word containing "conftest.", or (3) at the end.
17960
# Note that $ac_compile itself does not contain backslashes and begins
17961
# with a dollar sign (not a hyphen), so the echo should work correctly.
17962
# The option is referenced via a variable to avoid confusing sed.
17963
lt_compile=`echo "$ac_compile" | $SED \
17964
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17965
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17966
-e 's:$: $lt_compiler_flag:'`
17967
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17968
(eval "$lt_compile" 2>conftest.err)
17970
cat conftest.err >&5
17971
echo "$as_me:__oline__: \$? = $ac_status" >&5
17972
if (exit $ac_status) && test -s "$ac_outfile"; then
17973
# The compiler can only warn and ignore the option if not recognized
17974
# So say no if there are warnings other than the usual output.
17975
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17976
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17977
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17978
lt_cv_prog_compiler_rtti_exceptions=yes
17984
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17985
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17987
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17988
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17995
lt_prog_compiler_wl_GCJ=
17996
lt_prog_compiler_pic_GCJ=
17997
lt_prog_compiler_static_GCJ=
17999
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18000
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18002
if test "$GCC" = yes; then
18003
lt_prog_compiler_wl_GCJ='-Wl,'
18004
lt_prog_compiler_static_GCJ='-static'
18008
# All AIX code is PIC.
18009
if test "$host_cpu" = ia64; then
18010
# AIX 5 now supports IA64 processor
18011
lt_prog_compiler_static_GCJ='-Bstatic'
18016
# FIXME: we need at least 68020 code to build shared libraries, but
18017
# adding the `-m68020' flag to GCC prevents building anything better,
18019
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18022
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18023
# PIC is the default for these OSes.
18026
mingw* | pw32* | os2*)
18027
# This hack is so that the source file can tell whether it is being
18028
# built for inclusion in a dll (and should export symbols for example).
18029
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18032
darwin* | rhapsody*)
18033
# PIC is the default on this platform
18034
# Common symbols not allowed in MH_DYLIB files
18035
lt_prog_compiler_pic_GCJ='-fno-common'
18039
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18040
# Instead, we relocate shared libraries at runtime.
18044
# Just because we use GCC doesn't mean we suddenly get shared libraries
18045
# on systems that don't support them.
18046
lt_prog_compiler_can_build_shared_GCJ=no
18051
if test -d /usr/nec; then
18052
lt_prog_compiler_pic_GCJ=-Kconform_pic
18057
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18058
# not for PA HP-UX.
18064
lt_prog_compiler_pic_GCJ='-fPIC'
18070
lt_prog_compiler_pic_GCJ='-fPIC'
18074
# PORTME Check for flag to pass linker flags through the system compiler.
18077
lt_prog_compiler_wl_GCJ='-Wl,'
18078
if test "$host_cpu" = ia64; then
18079
# AIX 5 now supports IA64 processor
18080
lt_prog_compiler_static_GCJ='-Bstatic'
18082
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18086
# PIC is the default on this platform
18087
# Common symbols not allowed in MH_DYLIB files
18088
case $cc_basename in
18090
lt_prog_compiler_pic_GCJ='-qnocommon'
18091
lt_prog_compiler_wl_GCJ='-Wl,'
18096
mingw* | pw32* | os2*)
18097
# This hack is so that the source file can tell whether it is being
18098
# built for inclusion in a dll (and should export symbols for example).
18099
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18102
hpux9* | hpux10* | hpux11*)
18103
lt_prog_compiler_wl_GCJ='-Wl,'
18104
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18105
# not for PA HP-UX.
18111
lt_prog_compiler_pic_GCJ='+Z'
18114
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18115
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18118
irix5* | irix6* | nonstopux*)
18119
lt_prog_compiler_wl_GCJ='-Wl,'
18120
# PIC (with -KPIC) is the default.
18121
lt_prog_compiler_static_GCJ='-non_shared'
18125
lt_prog_compiler_pic_GCJ='-KPIC'
18126
lt_prog_compiler_static_GCJ='-Bstatic'
18129
linux* | k*bsd*-gnu)
18130
case $cc_basename in
18132
lt_prog_compiler_wl_GCJ='-Wl,'
18133
lt_prog_compiler_pic_GCJ='-KPIC'
18134
lt_prog_compiler_static_GCJ='-static'
18136
pgcc* | pgf77* | pgf90* | pgf95*)
18137
# Portland Group compilers (*not* the Pentium gcc compiler,
18138
# which looks to be a dead project)
18139
lt_prog_compiler_wl_GCJ='-Wl,'
18140
lt_prog_compiler_pic_GCJ='-fpic'
18141
lt_prog_compiler_static_GCJ='-Bstatic'
18144
lt_prog_compiler_wl_GCJ='-Wl,'
18145
# All Alpha code is PIC.
18146
lt_prog_compiler_static_GCJ='-non_shared'
18151
osf3* | osf4* | osf5*)
18152
lt_prog_compiler_wl_GCJ='-Wl,'
18153
# All OSF/1 code is PIC.
18154
lt_prog_compiler_static_GCJ='-non_shared'
18158
lt_prog_compiler_pic_GCJ='-KPIC'
18159
lt_prog_compiler_static_GCJ='-Bstatic'
18160
case $cc_basename in
18161
f77* | f90* | f95*)
18162
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18164
lt_prog_compiler_wl_GCJ='-Wl,';;
18169
lt_prog_compiler_wl_GCJ='-Qoption ld '
18170
lt_prog_compiler_pic_GCJ='-PIC'
18171
lt_prog_compiler_static_GCJ='-Bstatic'
18174
sysv4 | sysv4.2uw2* | sysv4.3*)
18175
lt_prog_compiler_wl_GCJ='-Wl,'
18176
lt_prog_compiler_pic_GCJ='-KPIC'
18177
lt_prog_compiler_static_GCJ='-Bstatic'
18181
if test -d /usr/nec ;then
18182
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18183
lt_prog_compiler_static_GCJ='-Bstatic'
18187
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18188
lt_prog_compiler_wl_GCJ='-Wl,'
18189
lt_prog_compiler_pic_GCJ='-KPIC'
18190
lt_prog_compiler_static_GCJ='-Bstatic'
18194
lt_prog_compiler_wl_GCJ='-Wl,'
18195
lt_prog_compiler_can_build_shared_GCJ=no
18199
lt_prog_compiler_pic_GCJ='-pic'
18200
lt_prog_compiler_static_GCJ='-Bstatic'
18204
lt_prog_compiler_can_build_shared_GCJ=no
18209
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18210
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18213
# Check to make sure the PIC flag actually works.
18215
if test -n "$lt_prog_compiler_pic_GCJ"; then
18217
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18218
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18219
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18220
echo $ECHO_N "(cached) $ECHO_C" >&6
18222
lt_prog_compiler_pic_works_GCJ=no
18223
ac_outfile=conftest.$ac_objext
18224
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18225
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18226
# Insert the option either (1) after the last *FLAGS variable, or
18227
# (2) before a word containing "conftest.", or (3) at the end.
18228
# Note that $ac_compile itself does not contain backslashes and begins
18229
# with a dollar sign (not a hyphen), so the echo should work correctly.
18230
# The option is referenced via a variable to avoid confusing sed.
18231
lt_compile=`echo "$ac_compile" | $SED \
18232
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18233
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18234
-e 's:$: $lt_compiler_flag:'`
18235
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18236
(eval "$lt_compile" 2>conftest.err)
18238
cat conftest.err >&5
18239
echo "$as_me:__oline__: \$? = $ac_status" >&5
18240
if (exit $ac_status) && test -s "$ac_outfile"; then
18241
# The compiler can only warn and ignore the option if not recognized
18242
# So say no if there are warnings other than the usual output.
18243
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18244
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18245
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18246
lt_prog_compiler_pic_works_GCJ=yes
18252
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18253
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18255
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18256
case $lt_prog_compiler_pic_GCJ in
18258
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18261
lt_prog_compiler_pic_GCJ=
18262
lt_prog_compiler_can_build_shared_GCJ=no
18267
# For platforms which do not support PIC, -DPIC is meaningless:
18269
lt_prog_compiler_pic_GCJ=
18272
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18277
# Check to make sure the static flag actually works.
18279
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18280
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18281
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18282
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18283
echo $ECHO_N "(cached) $ECHO_C" >&6
18285
lt_prog_compiler_static_works_GCJ=no
18286
save_LDFLAGS="$LDFLAGS"
18287
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18288
printf "$lt_simple_link_test_code" > conftest.$ac_ext
18289
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18290
# The linker can only warn and ignore the option if not recognized
18291
# So say no if there are warnings
18292
if test -s conftest.err; then
18293
# Append any errors to the config.log.
18294
cat conftest.err 1>&5
18295
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18296
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18297
if diff conftest.exp conftest.er2 >/dev/null; then
18298
lt_prog_compiler_static_works_GCJ=yes
18301
lt_prog_compiler_static_works_GCJ=yes
18305
LDFLAGS="$save_LDFLAGS"
18308
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18309
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18311
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18314
lt_prog_compiler_static_GCJ=
18318
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18319
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18320
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18321
echo $ECHO_N "(cached) $ECHO_C" >&6
18323
lt_cv_prog_compiler_c_o_GCJ=no
18324
$rm -r conftest 2>/dev/null
18328
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18330
lt_compiler_flag="-o out/conftest2.$ac_objext"
18331
# Insert the option either (1) after the last *FLAGS variable, or
18332
# (2) before a word containing "conftest.", or (3) at the end.
18333
# Note that $ac_compile itself does not contain backslashes and begins
18334
# with a dollar sign (not a hyphen), so the echo should work correctly.
18335
lt_compile=`echo "$ac_compile" | $SED \
18336
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18337
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18338
-e 's:$: $lt_compiler_flag:'`
18339
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18340
(eval "$lt_compile" 2>out/conftest.err)
18342
cat out/conftest.err >&5
18343
echo "$as_me:__oline__: \$? = $ac_status" >&5
18344
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18346
# The compiler can only warn and ignore the option if not recognized
18347
# So say no if there are warnings
18348
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18349
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18350
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18351
lt_cv_prog_compiler_c_o_GCJ=yes
18356
# SGI C++ compiler will create directory out/ii_files/ for
18357
# template instantiation
18358
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18359
$rm out/* && rmdir out
18365
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18366
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18369
hard_links="nottested"
18370
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18371
# do not overwrite the value of need_locks provided by the user
18372
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18373
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18376
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18378
ln conftest.a conftest.b 2>&5 || hard_links=no
18379
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18380
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18381
echo "${ECHO_T}$hard_links" >&6; }
18382
if test "$hard_links" = no; then
18383
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18384
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18391
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18392
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18395
allow_undefined_flag_GCJ=
18396
enable_shared_with_static_runtimes_GCJ=no
18398
archive_expsym_cmds_GCJ=
18399
old_archive_From_new_cmds_GCJ=
18400
old_archive_from_expsyms_cmds_GCJ=
18401
export_dynamic_flag_spec_GCJ=
18402
whole_archive_flag_spec_GCJ=
18403
thread_safe_flag_spec_GCJ=
18404
hardcode_libdir_flag_spec_GCJ=
18405
hardcode_libdir_flag_spec_ld_GCJ=
18406
hardcode_libdir_separator_GCJ=
18407
hardcode_direct_GCJ=no
18408
hardcode_minus_L_GCJ=no
18409
hardcode_shlibpath_var_GCJ=unsupported
18410
link_all_deplibs_GCJ=unknown
18411
hardcode_automatic_GCJ=no
18413
module_expsym_cmds_GCJ=
18414
always_export_symbols_GCJ=no
18415
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18416
# include_expsyms should be a list of space-separated symbols to be *always*
18417
# included in the symbol list
18418
include_expsyms_GCJ=
18419
# exclude_expsyms can be an extended regexp of symbols to exclude
18420
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18421
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18422
# as well as any symbol that contains `d'.
18423
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18424
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18425
# platforms (ab)use it in PIC code, but their linkers get confused if
18426
# the symbol is explicitly referenced. Since portable code cannot
18427
# rely on this symbol name, it's probably fine to never include it in
18428
# preloaded symbol tables.
18429
extract_expsyms_cmds=
18430
# Just being paranoid about ensuring that cc_basename is set.
18431
for cc_temp in $compiler""; do
18433
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18434
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18439
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18442
cygwin* | mingw* | pw32*)
18443
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18444
# When not using gcc, we currently assume that we are using
18445
# Microsoft Visual C++.
18446
if test "$GCC" != yes; then
18451
# we just hope/assume this is gcc and not c89 (= MSVC++)
18460
if test "$with_gnu_ld" = yes; then
18461
# If archive_cmds runs LD, not CC, wlarc should be empty
18464
# Set some defaults for GNU ld with shared library support. These
18465
# are reset later if shared libraries are not supported. Putting them
18466
# here allows them to be overridden if necessary.
18467
runpath_var=LD_RUN_PATH
18468
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18469
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18470
# ancient GNU ld didn't support --whole-archive et. al.
18471
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18472
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18474
whole_archive_flag_spec_GCJ=
18476
supports_anon_versioning=no
18477
case `$LD -v 2>/dev/null` in
18478
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18479
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18480
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18481
*\ 2.11.*) ;; # other 2.11 versions
18482
*) supports_anon_versioning=yes ;;
18485
# See if GNU ld supports shared libraries.
18487
aix3* | aix4* | aix5*)
18488
# On AIX/PPC, the GNU linker is very broken
18489
if test "$host_cpu" != ia64; then
18493
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18494
*** to be unable to reliably create shared libraries on AIX.
18495
*** Therefore, libtool is disabling shared libraries support. If you
18496
*** really care for shared libraries, you may want to modify your PATH
18497
*** so that a non-GNU linker is found, and then restart.
18504
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)'
18505
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506
hardcode_minus_L_GCJ=yes
18508
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18509
# that the semantics of dynamic libraries on AmigaOS, at least up
18510
# to version 4, is to share data among multiple programs linked
18511
# with the same dynamic library. Since this doesn't match the
18512
# behavior of shared libraries on other platforms, we can't use
18518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18519
allow_undefined_flag_GCJ=unsupported
18520
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18521
# support --undefined. This deserves some investigation. FIXME
18522
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18528
cygwin* | mingw* | pw32*)
18529
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18530
# as there is no search path for DLLs.
18531
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18532
allow_undefined_flag_GCJ=unsupported
18533
always_export_symbols_GCJ=no
18534
enable_shared_with_static_runtimes_GCJ=yes
18535
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18537
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18538
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18539
# If the export-symbols file already is a .def file (1st line
18540
# is EXPORTS), use it as is; otherwise, prepend...
18541
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18542
cp $export_symbols $output_objdir/$soname.def;
18544
echo EXPORTS > $output_objdir/$soname.def;
18545
cat $export_symbols >> $output_objdir/$soname.def;
18547
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18554
hardcode_direct_GCJ=no
18555
hardcode_shlibpath_var_GCJ=no
18556
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18557
export_dynamic_flag_spec_GCJ='${wl}-E'
18558
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18559
# Instead, shared libraries are loaded at an image base (0x10000000 by
18560
# default) and relocated if they conflict, which is a slow very memory
18561
# consuming and fragmenting process. To avoid this, we pick a random,
18562
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18563
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18564
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'
18565
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'
18568
linux* | k*bsd*-gnu)
18569
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18571
case $cc_basename,$host_cpu in
18572
pgcc*) # Portland Group C compiler
18573
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'
18574
tmp_addflag=' $pic_flag'
18576
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18577
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'
18578
tmp_addflag=' $pic_flag -Mnomain' ;;
18579
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18580
tmp_addflag=' -i_dynamic' ;;
18581
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18582
tmp_addflag=' -i_dynamic -nofor_main' ;;
18583
ifc* | ifort*) # Intel Fortran compiler
18584
tmp_addflag=' -nofor_main' ;;
18586
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588
if test $supports_anon_versioning = yes; then
18589
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18590
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18591
$echo "local: *; };" >> $output_objdir/$libname.ver~
18592
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18594
link_all_deplibs_GCJ=no
18600
netbsd* | netbsdelf*-gnu)
18601
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18605
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18611
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18615
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18616
*** create shared libraries on Solaris systems. Therefore, libtool
18617
*** is disabling shared libraries support. We urge you to upgrade GNU
18618
*** binutils to release 2.9.1 or newer. Another option is to modify
18619
*** your PATH or compiler configuration so that the native linker is
18620
*** used, and then restart.
18623
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18624
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18631
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18632
case `$LD -v 2>&1` in
18633
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18637
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18638
*** reliably create shared libraries on SCO systems. Therefore, libtool
18639
*** is disabling shared libraries support. We urge you to upgrade GNU
18640
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18641
*** your PATH or compiler configuration so that the native linker is
18642
*** used, and then restart.
18647
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18648
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18649
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18650
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18659
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18661
hardcode_direct_GCJ=yes
18662
hardcode_shlibpath_var_GCJ=no
18666
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18667
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18668
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18675
if test "$ld_shlibs_GCJ" = no; then
18677
hardcode_libdir_flag_spec_GCJ=
18678
export_dynamic_flag_spec_GCJ=
18679
whole_archive_flag_spec_GCJ=
18682
# PORTME fill in a description of your system's linker (not GNU ld)
18685
allow_undefined_flag_GCJ=unsupported
18686
always_export_symbols_GCJ=yes
18687
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'
18688
# Note: this linker hardcodes the directories in LIBPATH if there
18689
# are no directories specified by -L.
18690
hardcode_minus_L_GCJ=yes
18691
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18692
# Neither direct hardcoding nor static linking is supported with a
18694
hardcode_direct_GCJ=unsupported
18699
if test "$host_cpu" = ia64; then
18700
# On IA64, the linker does run time linking by default, so we don't
18701
# have to do anything special.
18702
aix_use_runtimelinking=no
18703
exp_sym_flag='-Bexport'
18706
# If we're using GNU nm, then we don't want the "-C" option.
18707
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18708
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18709
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'
18711
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'
18713
aix_use_runtimelinking=no
18715
# Test if we are trying to use run time linking or normal
18716
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18717
# need to do runtime linking.
18718
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18719
for ld_flag in $LDFLAGS; do
18720
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18721
aix_use_runtimelinking=yes
18728
exp_sym_flag='-bexport'
18729
no_entry_flag='-bnoentry'
18732
# When large executables or shared objects are built, AIX ld can
18733
# have problems creating the table of contents. If linking a library
18734
# or program results in "error TOC overflow" add -mminimal-toc to
18735
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18736
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18738
archive_cmds_GCJ=''
18739
hardcode_direct_GCJ=yes
18740
hardcode_libdir_separator_GCJ=':'
18741
link_all_deplibs_GCJ=yes
18743
if test "$GCC" = yes; then
18744
case $host_os in aix4.[012]|aix4.[012].*)
18745
# We only want to do this on AIX 4.2 and lower, the check
18746
# below for broken collect2 doesn't work under 4.3+
18747
collect2name=`${CC} -print-prog-name=collect2`
18748
if test -f "$collect2name" && \
18749
strings "$collect2name" | grep resolve_lib_name >/dev/null
18751
# We have reworked collect2
18752
hardcode_direct_GCJ=yes
18754
# We have old collect2
18755
hardcode_direct_GCJ=unsupported
18756
# It fails to find uninstalled libraries when the uninstalled
18757
# path is not listed in the libpath. Setting hardcode_minus_L
18758
# to unsupported forces relinking
18759
hardcode_minus_L_GCJ=yes
18760
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18761
hardcode_libdir_separator_GCJ=
18765
shared_flag='-shared'
18766
if test "$aix_use_runtimelinking" = yes; then
18767
shared_flag="$shared_flag "'${wl}-G'
18771
if test "$host_cpu" = ia64; then
18772
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18773
# chokes on -Wl,-G. The following line is correct:
18776
if test "$aix_use_runtimelinking" = yes; then
18777
shared_flag='${wl}-G'
18779
shared_flag='${wl}-bM:SRE'
18784
# It seems that -bexpall does not export symbols beginning with
18785
# underscore (_), so it is better to generate a list of symbols to export.
18786
always_export_symbols_GCJ=yes
18787
if test "$aix_use_runtimelinking" = yes; then
18788
# Warning - without using the other runtime loading flags (-brtl),
18789
# -berok will link without error, but may produce a broken library.
18790
allow_undefined_flag_GCJ='-berok'
18791
# Determine the default libpath from the value encoded in an empty executable.
18792
cat >conftest.$ac_ext <<_ACEOF
18795
cat confdefs.h >>conftest.$ac_ext
18796
cat >>conftest.$ac_ext <<_ACEOF
18797
/* end confdefs.h. */
18807
rm -f conftest.$ac_objext conftest$ac_exeext
18808
if { (ac_try="$ac_link"
18809
case "(($ac_try" in
18810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811
*) ac_try_echo=$ac_try;;
18813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814
(eval "$ac_link") 2>conftest.er1
18816
grep -v '^ *+' conftest.er1 >conftest.err
18818
cat conftest.err >&5
18819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820
(exit $ac_status); } &&
18821
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822
{ (case "(($ac_try" in
18823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824
*) ac_try_echo=$ac_try;;
18826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827
(eval "$ac_try") 2>&5
18829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
(exit $ac_status); }; } &&
18831
{ ac_try='test -s conftest$ac_exeext'
18832
{ (case "(($ac_try" in
18833
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834
*) ac_try_echo=$ac_try;;
18836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837
(eval "$ac_try") 2>&5
18839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840
(exit $ac_status); }; }; then
18842
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18844
# Check for a 64-bit object if we didn't find anything.
18845
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; }
18848
echo "$as_me: failed program was:" >&5
18849
sed 's/^/| /' conftest.$ac_ext >&5
18854
rm -f conftest.err conftest.$ac_objext \
18855
conftest$ac_exeext conftest.$ac_ext
18856
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18858
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18859
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"
18861
if test "$host_cpu" = ia64; then
18862
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18863
allow_undefined_flag_GCJ="-z nodefs"
18864
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"
18866
# Determine the default libpath from the value encoded in an empty executable.
18867
cat >conftest.$ac_ext <<_ACEOF
18870
cat confdefs.h >>conftest.$ac_ext
18871
cat >>conftest.$ac_ext <<_ACEOF
18872
/* end confdefs.h. */
18882
rm -f conftest.$ac_objext conftest$ac_exeext
18883
if { (ac_try="$ac_link"
18884
case "(($ac_try" in
18885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886
*) ac_try_echo=$ac_try;;
18888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889
(eval "$ac_link") 2>conftest.er1
18891
grep -v '^ *+' conftest.er1 >conftest.err
18893
cat conftest.err >&5
18894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895
(exit $ac_status); } &&
18896
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897
{ (case "(($ac_try" in
18898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899
*) ac_try_echo=$ac_try;;
18901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902
(eval "$ac_try") 2>&5
18904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905
(exit $ac_status); }; } &&
18906
{ ac_try='test -s conftest$ac_exeext'
18907
{ (case "(($ac_try" in
18908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909
*) ac_try_echo=$ac_try;;
18911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912
(eval "$ac_try") 2>&5
18914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915
(exit $ac_status); }; }; then
18917
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18919
# Check for a 64-bit object if we didn't find anything.
18920
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; }
18923
echo "$as_me: failed program was:" >&5
18924
sed 's/^/| /' conftest.$ac_ext >&5
18929
rm -f conftest.err conftest.$ac_objext \
18930
conftest$ac_exeext conftest.$ac_ext
18931
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18933
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18934
# Warning - without using the other run time loading flags,
18935
# -berok will link without error, but may produce a broken library.
18936
no_undefined_flag_GCJ=' ${wl}-bernotok'
18937
allow_undefined_flag_GCJ=' ${wl}-berok'
18938
# Exported symbols can be pulled into shared objects from archives
18939
whole_archive_flag_spec_GCJ='$convenience'
18940
archive_cmds_need_lc_GCJ=yes
18941
# This is similar to how AIX traditionally builds its shared libraries.
18942
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'
18948
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)'
18949
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18950
hardcode_minus_L_GCJ=yes
18951
# see comment about different semantics on the GNU ld section
18956
export_dynamic_flag_spec_GCJ=-rdynamic
18959
cygwin* | mingw* | pw32*)
18960
# When not using gcc, we currently assume that we are using
18961
# Microsoft Visual C++.
18962
# hardcode_libdir_flag_spec is actually meaningless, as there is
18963
# no search path for DLLs.
18964
hardcode_libdir_flag_spec_GCJ=' '
18965
allow_undefined_flag_GCJ=unsupported
18966
# Tell ltmain to make .lib files, not .a files.
18968
# Tell ltmain to make .dll files, not .so files.
18970
# FIXME: Setting linknames here is a bad hack.
18971
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18972
# The linker will automatically build a .lib file if we build a DLL.
18973
old_archive_From_new_cmds_GCJ='true'
18974
# FIXME: Should let the user specify the lib program.
18975
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18976
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18977
enable_shared_with_static_runtimes_GCJ=yes
18980
darwin* | rhapsody*)
18982
rhapsody* | darwin1.[012])
18983
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18986
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18987
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18989
case ${MACOSX_DEPLOYMENT_TARGET} in
18991
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18994
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19000
archive_cmds_need_lc_GCJ=no
19001
hardcode_direct_GCJ=no
19002
hardcode_automatic_GCJ=yes
19003
hardcode_shlibpath_var_GCJ=unsupported
19004
whole_archive_flag_spec_GCJ=''
19005
link_all_deplibs_GCJ=yes
19006
if test "$GCC" = yes ; then
19007
output_verbose_link_cmd='echo'
19008
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19009
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19010
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19011
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}'
19012
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}'
19014
case $cc_basename in
19016
output_verbose_link_cmd='echo'
19017
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19018
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19019
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19020
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}'
19021
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}'
19031
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19032
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19033
hardcode_shlibpath_var_GCJ=no
19040
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19041
# support. Future versions do this automatically, but an explicit c++rt0.o
19042
# does not break anything, and helps significantly (at the cost of a little
19045
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19046
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047
hardcode_direct_GCJ=yes
19048
hardcode_shlibpath_var_GCJ=no
19051
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19053
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19054
hardcode_direct_GCJ=yes
19055
hardcode_minus_L_GCJ=yes
19056
hardcode_shlibpath_var_GCJ=no
19059
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19060
freebsd* | dragonfly*)
19061
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19062
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063
hardcode_direct_GCJ=yes
19064
hardcode_shlibpath_var_GCJ=no
19068
if test "$GCC" = yes; then
19069
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'
19071
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'
19073
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19074
hardcode_libdir_separator_GCJ=:
19075
hardcode_direct_GCJ=yes
19077
# hardcode_minus_L: Not really in the search PATH,
19078
# but as the default location of the library.
19079
hardcode_minus_L_GCJ=yes
19080
export_dynamic_flag_spec_GCJ='${wl}-E'
19084
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19085
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19087
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19089
if test "$with_gnu_ld" = no; then
19090
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19091
hardcode_libdir_separator_GCJ=:
19093
hardcode_direct_GCJ=yes
19094
export_dynamic_flag_spec_GCJ='${wl}-E'
19096
# hardcode_minus_L: Not really in the search PATH,
19097
# but as the default location of the library.
19098
hardcode_minus_L_GCJ=yes
19103
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19106
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19109
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19112
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19118
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19121
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19124
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19128
if test "$with_gnu_ld" = no; then
19129
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19130
hardcode_libdir_separator_GCJ=:
19134
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19135
hardcode_direct_GCJ=no
19136
hardcode_shlibpath_var_GCJ=no
19139
hardcode_direct_GCJ=yes
19140
export_dynamic_flag_spec_GCJ='${wl}-E'
19142
# hardcode_minus_L: Not really in the search PATH,
19143
# but as the default location of the library.
19144
hardcode_minus_L_GCJ=yes
19150
irix5* | irix6* | nonstopux*)
19151
if test "$GCC" = yes; then
19152
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'
19154
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'
19155
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19157
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19158
hardcode_libdir_separator_GCJ=:
19159
link_all_deplibs_GCJ=yes
19162
netbsd* | netbsdelf*-gnu)
19163
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19164
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19166
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19168
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19169
hardcode_direct_GCJ=yes
19170
hardcode_shlibpath_var_GCJ=no
19174
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19175
hardcode_direct_GCJ=yes
19176
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19177
hardcode_libdir_separator_GCJ=:
19178
hardcode_shlibpath_var_GCJ=no
19182
hardcode_direct_GCJ=yes
19183
hardcode_shlibpath_var_GCJ=no
19184
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19185
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19186
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19187
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19188
export_dynamic_flag_spec_GCJ='${wl}-E'
19191
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19192
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19193
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19196
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19197
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19204
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19205
hardcode_minus_L_GCJ=yes
19206
allow_undefined_flag_GCJ=unsupported
19207
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'
19208
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19212
if test "$GCC" = yes; then
19213
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19214
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'
19216
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19217
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'
19219
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19220
hardcode_libdir_separator_GCJ=:
19223
osf4* | osf5*) # as osf3* with the addition of -msym flag
19224
if test "$GCC" = yes; then
19225
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19226
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'
19227
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19229
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19230
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'
19231
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~
19232
$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'
19234
# Both c and cxx compiler support -rpath directly
19235
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19237
hardcode_libdir_separator_GCJ=:
19241
no_undefined_flag_GCJ=' -z text'
19242
if test "$GCC" = yes; then
19244
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19245
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19249
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19250
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19251
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19253
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19254
hardcode_shlibpath_var_GCJ=no
19256
solaris2.[0-5] | solaris2.[0-5].*) ;;
19258
# The compiler driver will combine linker options so we
19259
# cannot just pass the convience library names through
19260
# without $wl, iff we do not link with $LD.
19261
# Luckily, gcc supports the same syntax we need for Sun Studio.
19262
# Supported since Solaris 2.6 (maybe 2.5.1?)
19265
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19267
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' ;;
19270
link_all_deplibs_GCJ=yes
19274
if test "x$host_vendor" = xsequent; then
19275
# Use $CC to link under sequent, because it throws in some extra .o
19276
# files that make .init and .fini sections work.
19277
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19279
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19281
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19282
hardcode_direct_GCJ=yes
19283
hardcode_minus_L_GCJ=yes
19284
hardcode_shlibpath_var_GCJ=no
19288
case $host_vendor in
19290
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291
hardcode_direct_GCJ=yes # is this really true???
19294
## LD is ld it makes a PLAMLIB
19295
## CC just makes a GrossModule.
19296
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19297
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19298
hardcode_direct_GCJ=no
19301
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19302
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19305
runpath_var='LD_RUN_PATH'
19306
hardcode_shlibpath_var_GCJ=no
19310
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19311
hardcode_shlibpath_var_GCJ=no
19312
export_dynamic_flag_spec_GCJ='-Bexport'
19316
if test -d /usr/nec; then
19317
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19318
hardcode_shlibpath_var_GCJ=no
19319
runpath_var=LD_RUN_PATH
19320
hardcode_runpath_var=yes
19325
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19326
no_undefined_flag_GCJ='${wl}-z,text'
19327
archive_cmds_need_lc_GCJ=no
19328
hardcode_shlibpath_var_GCJ=no
19329
runpath_var='LD_RUN_PATH'
19331
if test "$GCC" = yes; then
19332
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19333
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19335
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19336
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19340
sysv5* | sco3.2v5* | sco5v6*)
19341
# Note: We can NOT use -z defs as we might desire, because we do not
19342
# link with -lc, and that would cause any symbols used from libc to
19343
# always be unresolved, which means just about no library would
19344
# ever link correctly. If we're not using GNU ld we use -z text
19345
# though, which does catch some bad symbols but isn't as heavy-handed
19347
no_undefined_flag_GCJ='${wl}-z,text'
19348
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19349
archive_cmds_need_lc_GCJ=no
19350
hardcode_shlibpath_var_GCJ=no
19351
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19352
hardcode_libdir_separator_GCJ=':'
19353
link_all_deplibs_GCJ=yes
19354
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19355
runpath_var='LD_RUN_PATH'
19357
if test "$GCC" = yes; then
19358
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19361
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19367
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19368
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19369
hardcode_shlibpath_var_GCJ=no
19378
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19379
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19380
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19383
# Do we need to explicitly link libc?
19385
case "x$archive_cmds_need_lc_GCJ" in
19387
# Assume -lc should be added
19388
archive_cmds_need_lc_GCJ=yes
19390
if test "$enable_shared" = yes && test "$GCC" = yes; then
19391
case $archive_cmds_GCJ in
19393
# FIXME: we may have to deal with multi-command sequences.
19396
# Test whether the compiler implicitly links with -lc since on some
19397
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19398
# to ld, don't add -lc before -lgcc.
19399
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19400
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19402
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405
(eval $ac_compile) 2>&5
19407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408
(exit $ac_status); } 2>conftest.err; then
19411
libobjs=conftest.$ac_objext
19413
wl=$lt_prog_compiler_wl_GCJ
19414
pic_flag=$lt_prog_compiler_pic_GCJ
19420
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19421
allow_undefined_flag_GCJ=
19422
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19423
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426
(exit $ac_status); }
19428
archive_cmds_need_lc_GCJ=no
19430
archive_cmds_need_lc_GCJ=yes
19432
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19434
cat conftest.err 1>&5
19437
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19438
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19445
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19446
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19447
library_names_spec=
19448
libname_spec='lib$name'
19452
postuninstall_cmds=
19456
shlibpath_overrides_runpath=unknown
19458
dynamic_linker="$host_os ld.so"
19459
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19460
if test "$GCC" = yes; then
19461
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19462
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19463
# if the path contains ";" then we assume it to be the separator
19464
# otherwise default to the standard path separator (i.e. ":") - it is
19465
# assumed that no part of a normal pathname contains ";" but that should
19466
# okay in the real world where ";" in dirpaths is itself problematic.
19467
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19469
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19472
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19474
need_lib_prefix=unknown
19475
hardcode_into_libs=no
19477
# when you set need_version to no, make sure it does not cause -set_version
19478
# flags to be left without arguments
19479
need_version=unknown
19484
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19485
shlibpath_var=LIBPATH
19487
# AIX 3 has no versioning support, so we append a major version to the name.
19488
soname_spec='${libname}${release}${shared_ext}$major'
19495
hardcode_into_libs=yes
19496
if test "$host_cpu" = ia64; then
19497
# AIX 5 supports IA64
19498
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19499
shlibpath_var=LD_LIBRARY_PATH
19501
# With GCC up to 2.95.x, collect2 would create an import file
19502
# for dependence libraries. The import file would start with
19503
# the line `#! .'. This would cause the generated library to
19504
# depend on `.', always an invalid library. This was fixed in
19505
# development snapshots of GCC prior to 3.0.
19507
aix4 | aix4.[01] | aix4.[01].*)
19508
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19510
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19513
can_build_shared=no
19517
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19518
# soname into executable. Probably we can add versioning support to
19519
# collect2, so additional links can be useful in future.
19520
if test "$aix_use_runtimelinking" = yes; then
19521
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19522
# instead of lib<name>.a to let people know that these are not
19523
# typical AIX shared libraries.
19524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19526
# We preserve .a as extension for shared libraries through AIX4.2
19527
# and later when we are not doing run time linking.
19528
library_names_spec='${libname}${release}.a $libname.a'
19529
soname_spec='${libname}${release}${shared_ext}$major'
19531
shlibpath_var=LIBPATH
19536
library_names_spec='$libname.ixlibrary $libname.a'
19537
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19538
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'
19542
library_names_spec='${libname}${shared_ext}'
19543
dynamic_linker="$host_os ld.so"
19544
shlibpath_var=LIBRARY_PATH
19550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551
soname_spec='${libname}${release}${shared_ext}$major'
19552
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19553
shlibpath_var=LD_LIBRARY_PATH
19554
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19555
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19556
# the default ld.so.conf also contains /usr/contrib/lib and
19557
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19558
# libtool to hard-code these into programs
19561
cygwin* | mingw* | pw32*)
19562
version_type=windows
19567
case $GCC,$host_os in
19568
yes,cygwin* | yes,mingw* | yes,pw32*)
19569
library_names_spec='$libname.dll.a'
19570
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19571
postinstall_cmds='base_file=`basename \${file}`~
19572
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19573
dldir=$destdir/`dirname \$dlpath`~
19574
test -d \$dldir || mkdir -p \$dldir~
19575
$install_prog $dir/$dlname \$dldir/$dlname~
19576
chmod a+x \$dldir/$dlname'
19577
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19578
dlpath=$dir/\$dldll~
19580
shlibpath_overrides_runpath=yes
19584
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19585
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19586
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19589
# MinGW DLLs use traditional 'lib' prefix
19590
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19591
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19592
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19593
# It is most probably a Windows format PATH printed by
19594
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19595
# path with ; separators, and with drive letters. We can handle the
19596
# drive letters (cygwin fileutils understands them), so leave them,
19597
# especially as we might pass files found there to a mingw objdump,
19598
# which wouldn't understand a cygwinified path. Ahh.
19599
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19601
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19605
# pw32 DLLs use 'pw' prefix rather than 'lib'
19606
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19612
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19615
dynamic_linker='Win32 ld.exe'
19616
# FIXME: first we should search . and the directory the executable is in
19620
darwin* | rhapsody*)
19621
dynamic_linker="$host_os dyld"
19622
version_type=darwin
19625
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19626
soname_spec='${libname}${release}${major}$shared_ext'
19627
shlibpath_overrides_runpath=yes
19628
shlibpath_var=DYLD_LIBRARY_PATH
19629
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19630
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19631
if test "$GCC" = yes; then
19632
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"`
19634
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19636
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19644
soname_spec='${libname}${release}${shared_ext}$major'
19645
shlibpath_var=LD_LIBRARY_PATH
19652
freebsd* | dragonfly*)
19653
# DragonFly does not have aout. When/if they implement a new
19654
# versioning mechanism, adjust this.
19655
if test -x /usr/bin/objformat; then
19656
objformat=`/usr/bin/objformat`
19659
freebsd[123]*) objformat=aout ;;
19660
*) objformat=elf ;;
19663
version_type=freebsd-$objformat
19664
case $version_type in
19666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19671
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19675
shlibpath_var=LD_LIBRARY_PATH
19678
shlibpath_overrides_runpath=yes
19680
freebsd3.[01]* | freebsdelf3.[01]*)
19681
shlibpath_overrides_runpath=yes
19682
hardcode_into_libs=yes
19684
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19685
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19686
shlibpath_overrides_runpath=no
19687
hardcode_into_libs=yes
19689
freebsd*) # from 4.6 on
19690
shlibpath_overrides_runpath=yes
19691
hardcode_into_libs=yes
19700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19701
soname_spec='${libname}${release}${shared_ext}$major'
19702
shlibpath_var=LD_LIBRARY_PATH
19703
hardcode_into_libs=yes
19706
hpux9* | hpux10* | hpux11*)
19707
# Give a soname corresponding to the major version so that dld.sl refuses to
19708
# link against other versions.
19715
hardcode_into_libs=yes
19716
dynamic_linker="$host_os dld.so"
19717
shlibpath_var=LD_LIBRARY_PATH
19718
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19720
soname_spec='${libname}${release}${shared_ext}$major'
19721
if test "X$HPUX_IA64_MODE" = X32; then
19722
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19724
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19726
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19730
hardcode_into_libs=yes
19731
dynamic_linker="$host_os dld.sl"
19732
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19733
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19735
soname_spec='${libname}${release}${shared_ext}$major'
19736
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19737
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19741
dynamic_linker="$host_os dld.sl"
19742
shlibpath_var=SHLIB_PATH
19743
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745
soname_spec='${libname}${release}${shared_ext}$major'
19748
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19749
postinstall_cmds='chmod 555 $lib'
19756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19757
soname_spec='${libname}${release}${shared_ext}$major'
19758
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19759
shlibpath_var=LD_LIBRARY_PATH
19760
shlibpath_overrides_runpath=no
19761
hardcode_into_libs=yes
19764
irix5* | irix6* | nonstopux*)
19766
nonstopux*) version_type=nonstopux ;;
19768
if test "$lt_cv_prog_gnu_ld" = yes; then
19776
soname_spec='${libname}${release}${shared_ext}$major'
19777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19779
irix5* | nonstopux*)
19780
libsuff= shlibsuff=
19783
case $LD in # libtool.m4 will add one of these switches to LD
19784
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19785
libsuff= shlibsuff= libmagic=32-bit;;
19786
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19787
libsuff=32 shlibsuff=N32 libmagic=N32;;
19788
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19789
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19790
*) libsuff= shlibsuff= libmagic=never-match;;
19794
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19795
shlibpath_overrides_runpath=no
19796
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19797
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19798
hardcode_into_libs=yes
19801
# No shared lib support for Linux oldld, aout, or coff.
19802
linux*oldld* | linux*aout* | linux*coff*)
19806
# This must be Linux ELF.
19807
linux* | k*bsd*-gnu)
19811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812
soname_spec='${libname}${release}${shared_ext}$major'
19813
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19814
shlibpath_var=LD_LIBRARY_PATH
19815
shlibpath_overrides_runpath=no
19816
# This implies no fast_install, which is unacceptable.
19817
# Some rework will be needed to allow for fast_install
19818
# before this can be enabled.
19819
hardcode_into_libs=yes
19821
# Append ld.so.conf contents to the search path
19822
if test -f /etc/ld.so.conf; then
19823
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' ' '`
19824
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19827
# We used to test for /lib/ld.so.1 and disable shared libraries on
19828
# powerpc, because MkLinux only supported shared libraries with the
19829
# GNU dynamic linker. Since this was broken with cross compilers,
19830
# most powerpc-linux boxes support dynamic linking these days and
19831
# people can always --disable-shared, the test was removed, and we
19832
# assume the GNU/Linux dynamic linker is in use.
19833
dynamic_linker='GNU/Linux ld.so'
19840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19841
soname_spec='${libname}${release}${shared_ext}$major'
19842
shlibpath_var=LD_LIBRARY_PATH
19843
shlibpath_overrides_runpath=no
19844
hardcode_into_libs=yes
19845
dynamic_linker='NetBSD ld.elf_so'
19852
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19854
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19855
dynamic_linker='NetBSD (a.out) ld.so'
19857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19858
soname_spec='${libname}${release}${shared_ext}$major'
19859
dynamic_linker='NetBSD ld.elf_so'
19861
shlibpath_var=LD_LIBRARY_PATH
19862
shlibpath_overrides_runpath=yes
19863
hardcode_into_libs=yes
19868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19869
shlibpath_var=LD_LIBRARY_PATH
19870
shlibpath_overrides_runpath=yes
19877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878
soname_spec='${libname}${release}${shared_ext}$major'
19879
shlibpath_var=LD_LIBRARY_PATH
19880
shlibpath_overrides_runpath=yes
19885
sys_lib_dlsearch_path_spec="/usr/lib"
19887
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19889
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19890
*) need_version=no ;;
19892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19893
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19894
shlibpath_var=LD_LIBRARY_PATH
19895
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19897
openbsd2.[89] | openbsd2.[89].*)
19898
shlibpath_overrides_runpath=no
19901
shlibpath_overrides_runpath=yes
19905
shlibpath_overrides_runpath=yes
19910
libname_spec='$name'
19913
library_names_spec='$libname${shared_ext} $libname.a'
19914
dynamic_linker='OS/2 ld.exe'
19915
shlibpath_var=LIBPATH
19918
osf3* | osf4* | osf5*)
19922
soname_spec='${libname}${release}${shared_ext}$major'
19923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19924
shlibpath_var=LD_LIBRARY_PATH
19925
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19926
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934
soname_spec='${libname}${release}${shared_ext}$major'
19935
shlibpath_var=LD_LIBRARY_PATH
19936
shlibpath_overrides_runpath=yes
19937
hardcode_into_libs=yes
19938
# ldd complains unless libraries are executable
19939
postinstall_cmds='chmod +x $lib'
19944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19945
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19946
shlibpath_var=LD_LIBRARY_PATH
19947
shlibpath_overrides_runpath=yes
19948
if test "$with_gnu_ld" = yes; then
19956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957
soname_spec='${libname}${release}${shared_ext}$major'
19958
shlibpath_var=LD_LIBRARY_PATH
19959
case $host_vendor in
19961
shlibpath_overrides_runpath=no
19963
export_dynamic_flag_spec='${wl}-Blargedynsym'
19964
runpath_var=LD_RUN_PATH
19972
shlibpath_overrides_runpath=no
19973
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19979
if test -d /usr/nec ;then
19981
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19982
soname_spec='$libname${shared_ext}.$major'
19983
shlibpath_var=LD_LIBRARY_PATH
19987
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19988
version_type=freebsd-elf
19991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19992
soname_spec='${libname}${release}${shared_ext}$major'
19993
shlibpath_var=LD_LIBRARY_PATH
19994
hardcode_into_libs=yes
19995
if test "$with_gnu_ld" = yes; then
19996
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19997
shlibpath_overrides_runpath=no
19999
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20000
shlibpath_overrides_runpath=yes
20003
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20007
sys_lib_dlsearch_path_spec='/usr/lib'
20012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013
soname_spec='${libname}${release}${shared_ext}$major'
20014
shlibpath_var=LD_LIBRARY_PATH
20021
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20022
echo "${ECHO_T}$dynamic_linker" >&6; }
20023
test "$dynamic_linker" = no && can_build_shared=no
20025
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20026
if test "$GCC" = yes; then
20027
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20030
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20031
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20032
hardcode_action_GCJ=
20033
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20034
test -n "$runpath_var_GCJ" || \
20035
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20037
# We can hardcode non-existant directories.
20038
if test "$hardcode_direct_GCJ" != no &&
20039
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20040
# have to relink, otherwise we might link with an installed library
20041
# when we should be linking with a yet-to-be-installed one
20042
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20043
test "$hardcode_minus_L_GCJ" != no; then
20044
# Linking always hardcodes the temporary library directory.
20045
hardcode_action_GCJ=relink
20047
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20048
hardcode_action_GCJ=immediate
20051
# We cannot hardcode anything, or else we can only hardcode existing
20053
hardcode_action_GCJ=unsupported
20055
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20056
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20058
if test "$hardcode_action_GCJ" = relink; then
20059
# Fast installation is not supported
20060
enable_fast_install=no
20061
elif test "$shlibpath_overrides_runpath" = yes ||
20062
test "$enable_shared" = no; then
20063
# Fast installation is not necessary
20064
enable_fast_install=needless
20068
# The else clause should only fire when bootstrapping the
20069
# libtool distribution, otherwise you forgot to ship ltmain.sh
20070
# with your package, and you will get complaints that there are
20071
# no rules to generate ltmain.sh.
20072
if test -f "$ltmain"; then
20073
# See if we are running on zsh, and set the options which allow our commands through
20074
# without removal of \ escapes.
20075
if test -n "${ZSH_VERSION+set}" ; then
20076
setopt NO_GLOB_SUBST
20078
# Now quote all the things that may contain metacharacters while being
20079
# careful not to overquote the AC_SUBSTed values. We take copies of the
20080
# variables and quote the copies for generation of the libtool script.
20081
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20083
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20084
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20085
deplibs_check_method reload_flag reload_cmds need_locks \
20086
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20087
lt_cv_sys_global_symbol_to_c_name_address \
20088
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20089
old_postinstall_cmds old_postuninstall_cmds \
20093
lt_prog_compiler_wl_GCJ \
20094
lt_prog_compiler_pic_GCJ \
20095
lt_prog_compiler_static_GCJ \
20096
lt_prog_compiler_no_builtin_flag_GCJ \
20097
export_dynamic_flag_spec_GCJ \
20098
thread_safe_flag_spec_GCJ \
20099
whole_archive_flag_spec_GCJ \
20100
enable_shared_with_static_runtimes_GCJ \
20101
old_archive_cmds_GCJ \
20102
old_archive_from_new_cmds_GCJ \
20103
predep_objects_GCJ \
20104
postdep_objects_GCJ \
20107
compiler_lib_search_path_GCJ \
20109
archive_expsym_cmds_GCJ \
20110
postinstall_cmds_GCJ \
20111
postuninstall_cmds_GCJ \
20112
old_archive_from_expsyms_cmds_GCJ \
20113
allow_undefined_flag_GCJ \
20114
no_undefined_flag_GCJ \
20115
export_symbols_cmds_GCJ \
20116
hardcode_libdir_flag_spec_GCJ \
20117
hardcode_libdir_flag_spec_ld_GCJ \
20118
hardcode_libdir_separator_GCJ \
20119
hardcode_automatic_GCJ \
20121
module_expsym_cmds_GCJ \
20122
lt_cv_prog_compiler_c_o_GCJ \
20123
exclude_expsyms_GCJ \
20124
include_expsyms_GCJ; do
20127
old_archive_cmds_GCJ | \
20128
old_archive_from_new_cmds_GCJ | \
20129
archive_cmds_GCJ | \
20130
archive_expsym_cmds_GCJ | \
20131
module_cmds_GCJ | \
20132
module_expsym_cmds_GCJ | \
20133
old_archive_from_expsyms_cmds_GCJ | \
20134
export_symbols_cmds_GCJ | \
20135
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20136
postinstall_cmds | postuninstall_cmds | \
20137
old_postinstall_cmds | old_postuninstall_cmds | \
20138
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20139
# Double-quote double-evaled strings.
20140
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20143
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20149
*'\$0 --fallback-echo"')
20150
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20156
cat <<__EOF__ >> "$cfgfile"
20157
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20159
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20161
# Shell to use when invoking shell scripts.
20164
# Whether or not to build shared libraries.
20165
build_libtool_libs=$enable_shared
20167
# Whether or not to build static libraries.
20168
build_old_libs=$enable_static
20170
# Whether or not to add -lc for building shared libraries.
20171
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20173
# Whether or not to disallow shared libs when runtime libs are static
20174
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20176
# Whether or not to optimize for fast installation.
20177
fast_install=$enable_fast_install
20180
host_alias=$host_alias
20184
# The build system.
20185
build_alias=$build_alias
20189
# An echo program that does not interpret backslashes.
20194
AR_FLAGS=$lt_AR_FLAGS
20199
# LTCC compiler flags.
20200
LTCFLAGS=$lt_LTCFLAGS
20202
# A language-specific compiler.
20203
CC=$lt_compiler_GCJ
20205
# Is the compiler the GNU C compiler?
20211
# The linker used to build libraries.
20214
# Whether we need hard or soft links.
20217
# A BSD-compatible nm program.
20220
# A symbol stripping program
20223
# Used to examine libraries when file_magic_cmd begins "file"
20224
MAGIC_CMD=$MAGIC_CMD
20226
# Used on cygwin: DLL creation program.
20229
# Used on cygwin: object dumper.
20232
# Used on cygwin: assembler.
20235
# The name of the directory that contains temporary libtool files.
20238
# How to create reloadable object files.
20239
reload_flag=$lt_reload_flag
20240
reload_cmds=$lt_reload_cmds
20242
# How to pass a linker flag through the compiler.
20243
wl=$lt_lt_prog_compiler_wl_GCJ
20245
# Object file suffix (normally "o").
20246
objext="$ac_objext"
20248
# Old archive suffix (normally "a").
20251
# Shared library suffix (normally ".so").
20252
shrext_cmds='$shrext_cmds'
20254
# Executable file suffix (normally "").
20257
# Additional compiler flags for building library objects.
20258
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20261
# What is the maximum length of a command?
20262
max_cmd_len=$lt_cv_sys_max_cmd_len
20264
# Does compiler simultaneously support -c and -o options?
20265
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20267
# Must we lock files when doing compilation?
20268
need_locks=$lt_need_locks
20270
# Do we need the lib prefix for modules?
20271
need_lib_prefix=$need_lib_prefix
20273
# Do we need a version for libraries?
20274
need_version=$need_version
20276
# Whether dlopen is supported.
20277
dlopen_support=$enable_dlopen
20279
# Whether dlopen of programs is supported.
20280
dlopen_self=$enable_dlopen_self
20282
# Whether dlopen of statically linked programs is supported.
20283
dlopen_self_static=$enable_dlopen_self_static
20285
# Compiler flag to prevent dynamic linking.
20286
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20288
# Compiler flag to turn off builtin functions.
20289
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20291
# Compiler flag to allow reflexive dlopens.
20292
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20294
# Compiler flag to generate shared objects directly from archives.
20295
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20297
# Compiler flag to generate thread-safe objects.
20298
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20300
# Library versioning type.
20301
version_type=$version_type
20303
# Format of library name prefix.
20304
libname_spec=$lt_libname_spec
20306
# List of archive names. First name is the real one, the rest are links.
20307
# The last name is the one that the linker finds with -lNAME.
20308
library_names_spec=$lt_library_names_spec
20310
# The coded name of the library, if different from the real name.
20311
soname_spec=$lt_soname_spec
20313
# Commands used to build and install an old-style archive.
20315
old_archive_cmds=$lt_old_archive_cmds_GCJ
20316
old_postinstall_cmds=$lt_old_postinstall_cmds
20317
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20319
# Create an old-style archive from a shared archive.
20320
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20322
# Create a temporary old-style archive to link instead of a shared archive.
20323
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20325
# Commands used to build and install a shared archive.
20326
archive_cmds=$lt_archive_cmds_GCJ
20327
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20328
postinstall_cmds=$lt_postinstall_cmds
20329
postuninstall_cmds=$lt_postuninstall_cmds
20331
# Commands used to build a loadable module (assumed same as above if empty)
20332
module_cmds=$lt_module_cmds_GCJ
20333
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20335
# Commands to strip libraries.
20336
old_striplib=$lt_old_striplib
20337
striplib=$lt_striplib
20339
# Dependencies to place before the objects being linked to create a
20341
predep_objects=$lt_predep_objects_GCJ
20343
# Dependencies to place after the objects being linked to create a
20345
postdep_objects=$lt_postdep_objects_GCJ
20347
# Dependencies to place before the objects being linked to create a
20349
predeps=$lt_predeps_GCJ
20351
# Dependencies to place after the objects being linked to create a
20353
postdeps=$lt_postdeps_GCJ
20355
# The library search path used internally by the compiler when linking
20356
# a shared library.
20357
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20359
# Method to check whether dependent libraries are shared objects.
20360
deplibs_check_method=$lt_deplibs_check_method
20362
# Command to use when deplibs_check_method == file_magic.
20363
file_magic_cmd=$lt_file_magic_cmd
20365
# Flag that allows shared libraries with undefined symbols to be built.
20366
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20368
# Flag that forces no undefined symbols.
20369
no_undefined_flag=$lt_no_undefined_flag_GCJ
20371
# Commands used to finish a libtool library installation in a directory.
20372
finish_cmds=$lt_finish_cmds
20374
# Same as above, but a single script fragment to be evaled but not shown.
20375
finish_eval=$lt_finish_eval
20377
# Take the output of nm and produce a listing of raw symbols and C names.
20378
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20380
# Transform the output of nm in a proper C declaration
20381
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20383
# Transform the output of nm in a C name address pair
20384
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20386
# This is the shared library runtime path variable.
20387
runpath_var=$runpath_var
20389
# This is the shared library path variable.
20390
shlibpath_var=$shlibpath_var
20392
# Is shlibpath searched before the hard-coded library search path?
20393
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20395
# How to hardcode a shared library path into an executable.
20396
hardcode_action=$hardcode_action_GCJ
20398
# Whether we should hardcode library paths into libraries.
20399
hardcode_into_libs=$hardcode_into_libs
20401
# Flag to hardcode \$libdir into a binary during linking.
20402
# This must work even if \$libdir does not exist.
20403
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20405
# If ld is used when linking, flag to hardcode \$libdir into
20406
# a binary during linking. This must work even if \$libdir does
20408
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20410
# Whether we need a single -rpath flag with a separated argument.
20411
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20413
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20414
# resulting binary.
20415
hardcode_direct=$hardcode_direct_GCJ
20417
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20418
# resulting binary.
20419
hardcode_minus_L=$hardcode_minus_L_GCJ
20421
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20422
# the resulting binary.
20423
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20425
# Set to yes if building a shared library automatically hardcodes DIR into the library
20426
# and all subsequent libraries and executables linked against it.
20427
hardcode_automatic=$hardcode_automatic_GCJ
20429
# Variables whose values should be saved in libtool wrapper scripts and
20430
# restored at relink time.
20431
variables_saved_for_relink="$variables_saved_for_relink"
20433
# Whether libtool must link a program against all its dependency libraries.
20434
link_all_deplibs=$link_all_deplibs_GCJ
20436
# Compile-time system search path for libraries
20437
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20439
# Run-time system search path for libraries
20440
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20442
# Fix the shell variable \$srcfile for the compiler.
20443
fix_srcfile_path="$fix_srcfile_path_GCJ"
20445
# Set to yes if exported symbols are required.
20446
always_export_symbols=$always_export_symbols_GCJ
20448
# The commands to list exported symbols.
20449
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20451
# The commands to extract the exported symbol list from a shared archive.
20452
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20454
# Symbols that should not be listed in the preloaded symbols.
20455
exclude_expsyms=$lt_exclude_expsyms_GCJ
20457
# Symbols that must always be exported.
20458
include_expsyms=$lt_include_expsyms_GCJ
20460
# ### END LIBTOOL TAG CONFIG: $tagname
20466
# If there is no Makefile yet, we rely on a make rule to execute
20467
# `config.status --recheck' to rerun these tests and create the
20468
# libtool script then.
20469
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20470
if test -f "$ltmain_in"; then
20471
test -f Makefile && make "$ltmain"
20477
ac_cpp='$CPP $CPPFLAGS'
20478
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
# Source file extension for RC test sources.
20495
# Object file extension for compiled RC test sources.
20499
# Code to be used in simple compile tests
20500
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20502
# Code to be used in simple link tests
20503
lt_simple_link_test_code="$lt_simple_compile_test_code"
20505
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20507
# If no C compiler was specified, use CC.
20510
# If no C compiler flags were specified, use CFLAGS.
20511
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20513
# Allow CC to be a program name with arguments.
20517
# save warnings/boilerplate of simple test code
20518
ac_outfile=conftest.$ac_objext
20519
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20520
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20521
_lt_compiler_boilerplate=`cat conftest.err`
20524
ac_outfile=conftest.$ac_objext
20525
printf "$lt_simple_link_test_code" >conftest.$ac_ext
20526
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20527
_lt_linker_boilerplate=`cat conftest.err`
20531
# Allow CC to be a program name with arguments.
20536
for cc_temp in $compiler""; do
20538
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20539
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20544
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20546
lt_cv_prog_compiler_c_o_RC=yes
20548
# The else clause should only fire when bootstrapping the
20549
# libtool distribution, otherwise you forgot to ship ltmain.sh
20550
# with your package, and you will get complaints that there are
20551
# no rules to generate ltmain.sh.
20552
if test -f "$ltmain"; then
20553
# See if we are running on zsh, and set the options which allow our commands through
20554
# without removal of \ escapes.
20555
if test -n "${ZSH_VERSION+set}" ; then
20556
setopt NO_GLOB_SUBST
20558
# Now quote all the things that may contain metacharacters while being
20559
# careful not to overquote the AC_SUBSTed values. We take copies of the
20560
# variables and quote the copies for generation of the libtool script.
20561
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20563
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20564
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20565
deplibs_check_method reload_flag reload_cmds need_locks \
20566
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20567
lt_cv_sys_global_symbol_to_c_name_address \
20568
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20569
old_postinstall_cmds old_postuninstall_cmds \
20573
lt_prog_compiler_wl_RC \
20574
lt_prog_compiler_pic_RC \
20575
lt_prog_compiler_static_RC \
20576
lt_prog_compiler_no_builtin_flag_RC \
20577
export_dynamic_flag_spec_RC \
20578
thread_safe_flag_spec_RC \
20579
whole_archive_flag_spec_RC \
20580
enable_shared_with_static_runtimes_RC \
20581
old_archive_cmds_RC \
20582
old_archive_from_new_cmds_RC \
20583
predep_objects_RC \
20584
postdep_objects_RC \
20587
compiler_lib_search_path_RC \
20589
archive_expsym_cmds_RC \
20590
postinstall_cmds_RC \
20591
postuninstall_cmds_RC \
20592
old_archive_from_expsyms_cmds_RC \
20593
allow_undefined_flag_RC \
20594
no_undefined_flag_RC \
20595
export_symbols_cmds_RC \
20596
hardcode_libdir_flag_spec_RC \
20597
hardcode_libdir_flag_spec_ld_RC \
20598
hardcode_libdir_separator_RC \
20599
hardcode_automatic_RC \
20601
module_expsym_cmds_RC \
20602
lt_cv_prog_compiler_c_o_RC \
20603
exclude_expsyms_RC \
20604
include_expsyms_RC; do
20607
old_archive_cmds_RC | \
20608
old_archive_from_new_cmds_RC | \
20609
archive_cmds_RC | \
20610
archive_expsym_cmds_RC | \
20612
module_expsym_cmds_RC | \
20613
old_archive_from_expsyms_cmds_RC | \
20614
export_symbols_cmds_RC | \
20615
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20616
postinstall_cmds | postuninstall_cmds | \
20617
old_postinstall_cmds | old_postuninstall_cmds | \
20618
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20619
# Double-quote double-evaled strings.
20620
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20623
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20629
*'\$0 --fallback-echo"')
20630
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20636
cat <<__EOF__ >> "$cfgfile"
20637
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20639
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20641
# Shell to use when invoking shell scripts.
20644
# Whether or not to build shared libraries.
20645
build_libtool_libs=$enable_shared
20647
# Whether or not to build static libraries.
20648
build_old_libs=$enable_static
20650
# Whether or not to add -lc for building shared libraries.
20651
build_libtool_need_lc=$archive_cmds_need_lc_RC
20653
# Whether or not to disallow shared libs when runtime libs are static
20654
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20656
# Whether or not to optimize for fast installation.
20657
fast_install=$enable_fast_install
20660
host_alias=$host_alias
20664
# The build system.
20665
build_alias=$build_alias
20669
# An echo program that does not interpret backslashes.
20674
AR_FLAGS=$lt_AR_FLAGS
20679
# LTCC compiler flags.
20680
LTCFLAGS=$lt_LTCFLAGS
20682
# A language-specific compiler.
20685
# Is the compiler the GNU C compiler?
20691
# The linker used to build libraries.
20694
# Whether we need hard or soft links.
20697
# A BSD-compatible nm program.
20700
# A symbol stripping program
20703
# Used to examine libraries when file_magic_cmd begins "file"
20704
MAGIC_CMD=$MAGIC_CMD
20706
# Used on cygwin: DLL creation program.
20709
# Used on cygwin: object dumper.
20712
# Used on cygwin: assembler.
20715
# The name of the directory that contains temporary libtool files.
20718
# How to create reloadable object files.
20719
reload_flag=$lt_reload_flag
20720
reload_cmds=$lt_reload_cmds
20722
# How to pass a linker flag through the compiler.
20723
wl=$lt_lt_prog_compiler_wl_RC
20725
# Object file suffix (normally "o").
20726
objext="$ac_objext"
20728
# Old archive suffix (normally "a").
20731
# Shared library suffix (normally ".so").
20732
shrext_cmds='$shrext_cmds'
20734
# Executable file suffix (normally "").
20737
# Additional compiler flags for building library objects.
20738
pic_flag=$lt_lt_prog_compiler_pic_RC
20741
# What is the maximum length of a command?
20742
max_cmd_len=$lt_cv_sys_max_cmd_len
20744
# Does compiler simultaneously support -c and -o options?
20745
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20747
# Must we lock files when doing compilation?
20748
need_locks=$lt_need_locks
20750
# Do we need the lib prefix for modules?
20751
need_lib_prefix=$need_lib_prefix
20753
# Do we need a version for libraries?
20754
need_version=$need_version
20756
# Whether dlopen is supported.
20757
dlopen_support=$enable_dlopen
20759
# Whether dlopen of programs is supported.
20760
dlopen_self=$enable_dlopen_self
20762
# Whether dlopen of statically linked programs is supported.
20763
dlopen_self_static=$enable_dlopen_self_static
20765
# Compiler flag to prevent dynamic linking.
20766
link_static_flag=$lt_lt_prog_compiler_static_RC
20768
# Compiler flag to turn off builtin functions.
20769
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20771
# Compiler flag to allow reflexive dlopens.
20772
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20774
# Compiler flag to generate shared objects directly from archives.
20775
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20777
# Compiler flag to generate thread-safe objects.
20778
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20780
# Library versioning type.
20781
version_type=$version_type
20783
# Format of library name prefix.
20784
libname_spec=$lt_libname_spec
20786
# List of archive names. First name is the real one, the rest are links.
20787
# The last name is the one that the linker finds with -lNAME.
20788
library_names_spec=$lt_library_names_spec
20790
# The coded name of the library, if different from the real name.
20791
soname_spec=$lt_soname_spec
20793
# Commands used to build and install an old-style archive.
20795
old_archive_cmds=$lt_old_archive_cmds_RC
20796
old_postinstall_cmds=$lt_old_postinstall_cmds
20797
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20799
# Create an old-style archive from a shared archive.
20800
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20802
# Create a temporary old-style archive to link instead of a shared archive.
20803
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20805
# Commands used to build and install a shared archive.
20806
archive_cmds=$lt_archive_cmds_RC
20807
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20808
postinstall_cmds=$lt_postinstall_cmds
20809
postuninstall_cmds=$lt_postuninstall_cmds
20811
# Commands used to build a loadable module (assumed same as above if empty)
20812
module_cmds=$lt_module_cmds_RC
20813
module_expsym_cmds=$lt_module_expsym_cmds_RC
20815
# Commands to strip libraries.
20816
old_striplib=$lt_old_striplib
20817
striplib=$lt_striplib
20819
# Dependencies to place before the objects being linked to create a
20821
predep_objects=$lt_predep_objects_RC
20823
# Dependencies to place after the objects being linked to create a
20825
postdep_objects=$lt_postdep_objects_RC
20827
# Dependencies to place before the objects being linked to create a
20829
predeps=$lt_predeps_RC
20831
# Dependencies to place after the objects being linked to create a
20833
postdeps=$lt_postdeps_RC
20835
# The library search path used internally by the compiler when linking
20836
# a shared library.
20837
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20839
# Method to check whether dependent libraries are shared objects.
20840
deplibs_check_method=$lt_deplibs_check_method
20842
# Command to use when deplibs_check_method == file_magic.
20843
file_magic_cmd=$lt_file_magic_cmd
20845
# Flag that allows shared libraries with undefined symbols to be built.
20846
allow_undefined_flag=$lt_allow_undefined_flag_RC
20848
# Flag that forces no undefined symbols.
20849
no_undefined_flag=$lt_no_undefined_flag_RC
20851
# Commands used to finish a libtool library installation in a directory.
20852
finish_cmds=$lt_finish_cmds
20854
# Same as above, but a single script fragment to be evaled but not shown.
20855
finish_eval=$lt_finish_eval
20857
# Take the output of nm and produce a listing of raw symbols and C names.
20858
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20860
# Transform the output of nm in a proper C declaration
20861
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20863
# Transform the output of nm in a C name address pair
20864
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20866
# This is the shared library runtime path variable.
20867
runpath_var=$runpath_var
20869
# This is the shared library path variable.
20870
shlibpath_var=$shlibpath_var
20872
# Is shlibpath searched before the hard-coded library search path?
20873
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20875
# How to hardcode a shared library path into an executable.
20876
hardcode_action=$hardcode_action_RC
20878
# Whether we should hardcode library paths into libraries.
20879
hardcode_into_libs=$hardcode_into_libs
20881
# Flag to hardcode \$libdir into a binary during linking.
20882
# This must work even if \$libdir does not exist.
20883
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20885
# If ld is used when linking, flag to hardcode \$libdir into
20886
# a binary during linking. This must work even if \$libdir does
20888
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20890
# Whether we need a single -rpath flag with a separated argument.
20891
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20893
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20894
# resulting binary.
20895
hardcode_direct=$hardcode_direct_RC
20897
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20898
# resulting binary.
20899
hardcode_minus_L=$hardcode_minus_L_RC
20901
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20902
# the resulting binary.
20903
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20905
# Set to yes if building a shared library automatically hardcodes DIR into the library
20906
# and all subsequent libraries and executables linked against it.
20907
hardcode_automatic=$hardcode_automatic_RC
20909
# Variables whose values should be saved in libtool wrapper scripts and
20910
# restored at relink time.
20911
variables_saved_for_relink="$variables_saved_for_relink"
20913
# Whether libtool must link a program against all its dependency libraries.
20914
link_all_deplibs=$link_all_deplibs_RC
20916
# Compile-time system search path for libraries
20917
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20919
# Run-time system search path for libraries
20920
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20922
# Fix the shell variable \$srcfile for the compiler.
20923
fix_srcfile_path="$fix_srcfile_path_RC"
20925
# Set to yes if exported symbols are required.
20926
always_export_symbols=$always_export_symbols_RC
20928
# The commands to list exported symbols.
20929
export_symbols_cmds=$lt_export_symbols_cmds_RC
20931
# The commands to extract the exported symbol list from a shared archive.
20932
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20934
# Symbols that should not be listed in the preloaded symbols.
20935
exclude_expsyms=$lt_exclude_expsyms_RC
20937
# Symbols that must always be exported.
20938
include_expsyms=$lt_include_expsyms_RC
20940
# ### END LIBTOOL TAG CONFIG: $tagname
20946
# If there is no Makefile yet, we rely on a make rule to execute
20947
# `config.status --recheck' to rerun these tests and create the
20948
# libtool script then.
20949
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20950
if test -f "$ltmain_in"; then
20951
test -f Makefile && make "$ltmain"
20957
ac_cpp='$CPP $CPPFLAGS'
20958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20968
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20969
{ (exit 1); exit 1; }; }
20973
# Append the new tag name to the list of available tags.
20974
if test -n "$tagname" ; then
20975
available_tags="$available_tags $tagname"
20981
# Now substitute the updated list of available tags.
20982
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20983
mv "${ofile}T" "$ofile"
20987
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20988
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20989
{ (exit 1); exit 1; }; }
20995
# This can be used to rebuild libtool when needed
20996
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20998
# Always use our own libtool.
20999
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21001
# Prevent multiple expansion
21023
if test "x$cross_compiling" = "xno"; then
21024
CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21026
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21031
if test -n "$ac_tool_prefix"; then
21032
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21033
set dummy ${ac_tool_prefix}ar; ac_word=$2
21034
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21036
if test "${ac_cv_prog_AR+set}" = set; then
21037
echo $ECHO_N "(cached) $ECHO_C" >&6
21039
if test -n "$AR"; then
21040
ac_cv_prog_AR="$AR" # Let the user override the test.
21042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043
for as_dir in $PATH
21046
test -z "$as_dir" && as_dir=.
21047
for ac_exec_ext in '' $ac_executable_extensions; do
21048
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21049
ac_cv_prog_AR="${ac_tool_prefix}ar"
21050
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21060
if test -n "$AR"; then
21061
{ echo "$as_me:$LINENO: result: $AR" >&5
21062
echo "${ECHO_T}$AR" >&6; }
21064
{ echo "$as_me:$LINENO: result: no" >&5
21065
echo "${ECHO_T}no" >&6; }
21070
if test -z "$ac_cv_prog_AR"; then
21072
# Extract the first word of "ar", so it can be a program name with args.
21073
set dummy ar; ac_word=$2
21074
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21076
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21077
echo $ECHO_N "(cached) $ECHO_C" >&6
21079
if test -n "$ac_ct_AR"; then
21080
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21083
for as_dir in $PATH
21086
test -z "$as_dir" && as_dir=.
21087
for ac_exec_ext in '' $ac_executable_extensions; do
21088
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21089
ac_cv_prog_ac_ct_AR="ar"
21090
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21099
ac_ct_AR=$ac_cv_prog_ac_ct_AR
21100
if test -n "$ac_ct_AR"; then
21101
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21102
echo "${ECHO_T}$ac_ct_AR" >&6; }
21104
{ echo "$as_me:$LINENO: result: no" >&5
21105
echo "${ECHO_T}no" >&6; }
21108
if test "x$ac_ct_AR" = x; then
21111
case $cross_compiling:$ac_tool_warned in
21113
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21114
whose name does not start with the host triplet. If you think this
21115
configuration is useful to you, please write to autoconf@gnu.org." >&5
21116
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21117
whose name does not start with the host triplet. If you think this
21118
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21119
ac_tool_warned=yes ;;
21124
AR="$ac_cv_prog_AR"
21127
if test -n "$ac_tool_prefix"; then
21128
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21129
set dummy ${ac_tool_prefix}ld; ac_word=$2
21130
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21132
if test "${ac_cv_prog_LD+set}" = set; then
21133
echo $ECHO_N "(cached) $ECHO_C" >&6
21135
if test -n "$LD"; then
21136
ac_cv_prog_LD="$LD" # Let the user override the test.
21138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21139
for as_dir in $PATH
21142
test -z "$as_dir" && as_dir=.
21143
for ac_exec_ext in '' $ac_executable_extensions; do
21144
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21145
ac_cv_prog_LD="${ac_tool_prefix}ld"
21146
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21156
if test -n "$LD"; then
21157
{ echo "$as_me:$LINENO: result: $LD" >&5
21158
echo "${ECHO_T}$LD" >&6; }
21160
{ echo "$as_me:$LINENO: result: no" >&5
21161
echo "${ECHO_T}no" >&6; }
21166
if test -z "$ac_cv_prog_LD"; then
21168
# Extract the first word of "ld", so it can be a program name with args.
21169
set dummy ld; ac_word=$2
21170
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21172
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21173
echo $ECHO_N "(cached) $ECHO_C" >&6
21175
if test -n "$ac_ct_LD"; then
21176
ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21179
for as_dir in $PATH
21182
test -z "$as_dir" && as_dir=.
21183
for ac_exec_ext in '' $ac_executable_extensions; do
21184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21185
ac_cv_prog_ac_ct_LD="ld"
21186
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21195
ac_ct_LD=$ac_cv_prog_ac_ct_LD
21196
if test -n "$ac_ct_LD"; then
21197
{ echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21198
echo "${ECHO_T}$ac_ct_LD" >&6; }
21200
{ echo "$as_me:$LINENO: result: no" >&5
21201
echo "${ECHO_T}no" >&6; }
21204
if test "x$ac_ct_LD" = x; then
21207
case $cross_compiling:$ac_tool_warned in
21209
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21210
whose name does not start with the host triplet. If you think this
21211
configuration is useful to you, please write to autoconf@gnu.org." >&5
21212
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21213
whose name does not start with the host triplet. If you think this
21214
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21215
ac_tool_warned=yes ;;
21220
LD="$ac_cv_prog_LD"
21224
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21225
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21226
if test "${ac_cv_header_stdc+set}" = set; then
21227
echo $ECHO_N "(cached) $ECHO_C" >&6
21229
cat >conftest.$ac_ext <<_ACEOF
21232
cat confdefs.h >>conftest.$ac_ext
21233
cat >>conftest.$ac_ext <<_ACEOF
21234
/* end confdefs.h. */
21235
#include <stdlib.h>
21236
#include <stdarg.h>
21237
#include <string.h>
21248
rm -f conftest.$ac_objext
21249
if { (ac_try="$ac_compile"
21250
case "(($ac_try" in
21251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252
*) ac_try_echo=$ac_try;;
21254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255
(eval "$ac_compile") 2>conftest.er1
21257
grep -v '^ *+' conftest.er1 >conftest.err
21259
cat conftest.err >&5
21260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261
(exit $ac_status); } &&
21262
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263
{ (case "(($ac_try" in
21264
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265
*) ac_try_echo=$ac_try;;
21267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268
(eval "$ac_try") 2>&5
21270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271
(exit $ac_status); }; } &&
21272
{ ac_try='test -s conftest.$ac_objext'
21273
{ (case "(($ac_try" in
21274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275
*) ac_try_echo=$ac_try;;
21277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278
(eval "$ac_try") 2>&5
21280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281
(exit $ac_status); }; }; then
21282
ac_cv_header_stdc=yes
21284
echo "$as_me: failed program was:" >&5
21285
sed 's/^/| /' conftest.$ac_ext >&5
21287
ac_cv_header_stdc=no
21290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21292
if test $ac_cv_header_stdc = yes; then
21293
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21294
cat >conftest.$ac_ext <<_ACEOF
21297
cat confdefs.h >>conftest.$ac_ext
21298
cat >>conftest.$ac_ext <<_ACEOF
21299
/* end confdefs.h. */
21300
#include <string.h>
21303
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304
$EGREP "memchr" >/dev/null 2>&1; then
21307
ac_cv_header_stdc=no
21313
if test $ac_cv_header_stdc = yes; then
21314
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21315
cat >conftest.$ac_ext <<_ACEOF
21318
cat confdefs.h >>conftest.$ac_ext
21319
cat >>conftest.$ac_ext <<_ACEOF
21320
/* end confdefs.h. */
21321
#include <stdlib.h>
21324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21325
$EGREP "free" >/dev/null 2>&1; then
21328
ac_cv_header_stdc=no
21334
if test $ac_cv_header_stdc = yes; then
21335
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21336
if test "$cross_compiling" = yes; then
21339
cat >conftest.$ac_ext <<_ACEOF
21342
cat confdefs.h >>conftest.$ac_ext
21343
cat >>conftest.$ac_ext <<_ACEOF
21344
/* end confdefs.h. */
21346
#include <stdlib.h>
21347
#if ((' ' & 0x0FF) == 0x020)
21348
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21349
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21351
# define ISLOWER(c) \
21352
(('a' <= (c) && (c) <= 'i') \
21353
|| ('j' <= (c) && (c) <= 'r') \
21354
|| ('s' <= (c) && (c) <= 'z'))
21355
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21358
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21363
for (i = 0; i < 256; i++)
21364
if (XOR (islower (i), ISLOWER (i))
21365
|| toupper (i) != TOUPPER (i))
21370
rm -f conftest$ac_exeext
21371
if { (ac_try="$ac_link"
21372
case "(($ac_try" in
21373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374
*) ac_try_echo=$ac_try;;
21376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377
(eval "$ac_link") 2>&5
21379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21381
{ (case "(($ac_try" in
21382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383
*) ac_try_echo=$ac_try;;
21385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386
(eval "$ac_try") 2>&5
21388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389
(exit $ac_status); }; }; then
21392
echo "$as_me: program exited with status $ac_status" >&5
21393
echo "$as_me: failed program was:" >&5
21394
sed 's/^/| /' conftest.$ac_ext >&5
21396
( exit $ac_status )
21397
ac_cv_header_stdc=no
21399
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21405
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21406
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21407
if test $ac_cv_header_stdc = yes; then
21409
cat >>confdefs.h <<\_ACEOF
21410
@%:@define STDC_HEADERS 1
21416
{ echo "$as_me:$LINENO: checking for GNU libc2" >&5
21417
echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21418
if test "${knfsd_cv_glibc2+set}" = set; then
21419
echo $ECHO_N "(cached) $ECHO_C" >&6
21421
cat >conftest.$ac_ext <<_ACEOF
21424
cat confdefs.h >>conftest.$ac_ext
21425
cat >>conftest.$ac_ext <<_ACEOF
21426
/* end confdefs.h. */
21428
#include <features.h>
21429
#if !defined(__GLIBC__)
21434
if { (ac_try="$ac_cpp conftest.$ac_ext"
21435
case "(($ac_try" in
21436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437
*) ac_try_echo=$ac_try;;
21439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21442
grep -v '^ *+' conftest.er1 >conftest.err
21444
cat conftest.err >&5
21445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446
(exit $ac_status); } >/dev/null; then
21447
if test -s conftest.err; then
21448
ac_cpp_err=$ac_c_preproc_warn_flag
21449
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21456
if test -z "$ac_cpp_err"; then
21457
knfsd_cv_glibc2=yes
21459
echo "$as_me: failed program was:" >&5
21460
sed 's/^/| /' conftest.$ac_ext >&5
21465
rm -f conftest.err conftest.$ac_ext
21468
{ echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21469
echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21470
if test $knfsd_cv_glibc2 = yes; then
21471
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21472
CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21476
{ echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21477
echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21478
if test "${knfsd_cv_bsd_signals+set}" = set; then
21479
echo $ECHO_N "(cached) $ECHO_C" >&6
21481
if test "$cross_compiling" = yes; then
21482
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21483
See \`config.log' for more details." >&5
21484
echo "$as_me: error: cannot run test program while cross compiling
21485
See \`config.log' for more details." >&2;}
21486
{ (exit 1); exit 1; }; }
21488
cat >conftest.$ac_ext <<_ACEOF
21491
cat confdefs.h >>conftest.$ac_ext
21492
cat >>conftest.$ac_ext <<_ACEOF
21493
/* end confdefs.h. */
21495
#include <signal.h>
21496
#include <unistd.h>
21497
#include <sys/wait.h>
21499
static int counter = 0;
21500
static RETSIGTYPE handler(int num) { counter++; }
21505
if ((s = fork()) < 0) return 1;
21507
if (wait(&s) < 0) return 1;
21508
return WIFSIGNALED(s)? 1 : 0;
21511
signal(SIGHUP, handler);
21512
kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21513
return (counter == 2)? 0 : 1;
21517
rm -f conftest$ac_exeext
21518
if { (ac_try="$ac_link"
21519
case "(($ac_try" in
21520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521
*) ac_try_echo=$ac_try;;
21523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524
(eval "$ac_link") 2>&5
21526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528
{ (case "(($ac_try" in
21529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530
*) ac_try_echo=$ac_try;;
21532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533
(eval "$ac_try") 2>&5
21535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536
(exit $ac_status); }; }; then
21537
knfsd_cv_bsd_signals=yes
21539
echo "$as_me: program exited with status $ac_status" >&5
21540
echo "$as_me: failed program was:" >&5
21541
sed 's/^/| /' conftest.$ac_ext >&5
21543
( exit $ac_status )
21544
knfsd_cv_bsd_signals=no
21546
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21551
{ echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21552
echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21553
test $knfsd_cv_bsd_signals = yes &&
21554
cat >>confdefs.h <<\_ACEOF
21555
@%:@define HAVE_BSD_SIGNALS 1
21560
{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21561
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21562
if test "${ac_cv_lib_socket_main+set}" = set; then
21563
echo $ECHO_N "(cached) $ECHO_C" >&6
21565
ac_check_lib_save_LIBS=$LIBS
21566
LIBS="-lsocket $LIBS"
21567
cat >conftest.$ac_ext <<_ACEOF
21570
cat confdefs.h >>conftest.$ac_ext
21571
cat >>conftest.$ac_ext <<_ACEOF
21572
/* end confdefs.h. */
21583
rm -f conftest.$ac_objext conftest$ac_exeext
21584
if { (ac_try="$ac_link"
21585
case "(($ac_try" in
21586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587
*) ac_try_echo=$ac_try;;
21589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590
(eval "$ac_link") 2>conftest.er1
21592
grep -v '^ *+' conftest.er1 >conftest.err
21594
cat conftest.err >&5
21595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596
(exit $ac_status); } &&
21597
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21598
{ (case "(($ac_try" in
21599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600
*) ac_try_echo=$ac_try;;
21602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603
(eval "$ac_try") 2>&5
21605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606
(exit $ac_status); }; } &&
21607
{ ac_try='test -s conftest$ac_exeext'
21608
{ (case "(($ac_try" in
21609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610
*) ac_try_echo=$ac_try;;
21612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613
(eval "$ac_try") 2>&5
21615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616
(exit $ac_status); }; }; then
21617
ac_cv_lib_socket_main=yes
21619
echo "$as_me: failed program was:" >&5
21620
sed 's/^/| /' conftest.$ac_ext >&5
21622
ac_cv_lib_socket_main=no
21625
rm -f conftest.err conftest.$ac_objext \
21626
conftest$ac_exeext conftest.$ac_ext
21627
LIBS=$ac_check_lib_save_LIBS
21629
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21630
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21631
if test $ac_cv_lib_socket_main = yes; then
21635
{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21636
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21637
if test "${ac_cv_lib_nsl_main+set}" = set; then
21638
echo $ECHO_N "(cached) $ECHO_C" >&6
21640
ac_check_lib_save_LIBS=$LIBS
21642
cat >conftest.$ac_ext <<_ACEOF
21645
cat confdefs.h >>conftest.$ac_ext
21646
cat >>conftest.$ac_ext <<_ACEOF
21647
/* end confdefs.h. */
21658
rm -f conftest.$ac_objext conftest$ac_exeext
21659
if { (ac_try="$ac_link"
21660
case "(($ac_try" in
21661
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662
*) ac_try_echo=$ac_try;;
21664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665
(eval "$ac_link") 2>conftest.er1
21667
grep -v '^ *+' conftest.er1 >conftest.err
21669
cat conftest.err >&5
21670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671
(exit $ac_status); } &&
21672
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21673
{ (case "(($ac_try" in
21674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675
*) ac_try_echo=$ac_try;;
21677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678
(eval "$ac_try") 2>&5
21680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681
(exit $ac_status); }; } &&
21682
{ ac_try='test -s conftest$ac_exeext'
21683
{ (case "(($ac_try" in
21684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685
*) ac_try_echo=$ac_try;;
21687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688
(eval "$ac_try") 2>&5
21690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691
(exit $ac_status); }; }; then
21692
ac_cv_lib_nsl_main=yes
21694
echo "$as_me: failed program was:" >&5
21695
sed 's/^/| /' conftest.$ac_ext >&5
21697
ac_cv_lib_nsl_main=no
21700
rm -f conftest.err conftest.$ac_objext \
21701
conftest$ac_exeext conftest.$ac_ext
21702
LIBS=$ac_check_lib_save_LIBS
21704
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21705
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21706
if test $ac_cv_lib_nsl_main = yes; then
21710
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21711
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21712
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21713
echo $ECHO_N "(cached) $ECHO_C" >&6
21715
ac_check_lib_save_LIBS=$LIBS
21716
LIBS="-lcrypt $LIBS"
21717
cat >conftest.$ac_ext <<_ACEOF
21720
cat confdefs.h >>conftest.$ac_ext
21721
cat >>conftest.$ac_ext <<_ACEOF
21722
/* end confdefs.h. */
21724
/* Override any GCC internal prototype to avoid an error.
21725
Use char because int might match the return type of a GCC
21726
builtin and then its argument prototype would still apply. */
21739
rm -f conftest.$ac_objext conftest$ac_exeext
21740
if { (ac_try="$ac_link"
21741
case "(($ac_try" in
21742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743
*) ac_try_echo=$ac_try;;
21745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746
(eval "$ac_link") 2>conftest.er1
21748
grep -v '^ *+' conftest.er1 >conftest.err
21750
cat conftest.err >&5
21751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752
(exit $ac_status); } &&
21753
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21754
{ (case "(($ac_try" in
21755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756
*) ac_try_echo=$ac_try;;
21758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759
(eval "$ac_try") 2>&5
21761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762
(exit $ac_status); }; } &&
21763
{ ac_try='test -s conftest$ac_exeext'
21764
{ (case "(($ac_try" in
21765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766
*) ac_try_echo=$ac_try;;
21768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769
(eval "$ac_try") 2>&5
21771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772
(exit $ac_status); }; }; then
21773
ac_cv_lib_crypt_crypt=yes
21775
echo "$as_me: failed program was:" >&5
21776
sed 's/^/| /' conftest.$ac_ext >&5
21778
ac_cv_lib_crypt_crypt=no
21781
rm -f conftest.err conftest.$ac_objext \
21782
conftest$ac_exeext conftest.$ac_ext
21783
LIBS=$ac_check_lib_save_LIBS
21785
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21786
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21787
if test $ac_cv_lib_crypt_crypt = yes; then
21791
if test "$enable_nfsv4" = yes; then
21792
{ echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21793
echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21794
if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21795
echo $ECHO_N "(cached) $ECHO_C" >&6
21797
ac_check_lib_save_LIBS=$LIBS
21798
LIBS="-levent $LIBS"
21799
cat >conftest.$ac_ext <<_ACEOF
21802
cat confdefs.h >>conftest.$ac_ext
21803
cat >>conftest.$ac_ext <<_ACEOF
21804
/* end confdefs.h. */
21806
/* Override any GCC internal prototype to avoid an error.
21807
Use char because int might match the return type of a GCC
21808
builtin and then its argument prototype would still apply. */
21812
char event_dispatch ();
21816
return event_dispatch ();
21821
rm -f conftest.$ac_objext conftest$ac_exeext
21822
if { (ac_try="$ac_link"
21823
case "(($ac_try" in
21824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825
*) ac_try_echo=$ac_try;;
21827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828
(eval "$ac_link") 2>conftest.er1
21830
grep -v '^ *+' conftest.er1 >conftest.err
21832
cat conftest.err >&5
21833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834
(exit $ac_status); } &&
21835
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21836
{ (case "(($ac_try" in
21837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838
*) ac_try_echo=$ac_try;;
21840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841
(eval "$ac_try") 2>&5
21843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844
(exit $ac_status); }; } &&
21845
{ ac_try='test -s conftest$ac_exeext'
21846
{ (case "(($ac_try" in
21847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848
*) ac_try_echo=$ac_try;;
21850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851
(eval "$ac_try") 2>&5
21853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854
(exit $ac_status); }; }; then
21855
ac_cv_lib_event_event_dispatch=yes
21857
echo "$as_me: failed program was:" >&5
21858
sed 's/^/| /' conftest.$ac_ext >&5
21860
ac_cv_lib_event_event_dispatch=no
21863
rm -f conftest.err conftest.$ac_objext \
21864
conftest$ac_exeext conftest.$ac_ext
21865
LIBS=$ac_check_lib_save_LIBS
21867
{ echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21868
echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21869
if test $ac_cv_lib_event_event_dispatch = yes; then
21872
{ { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21873
echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21874
{ (exit 1); exit 1; }; }
21877
{ echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21878
echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21879
if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21880
echo $ECHO_N "(cached) $ECHO_C" >&6
21882
ac_check_lib_save_LIBS=$LIBS
21883
LIBS="-lnfsidmap $LIBS"
21884
cat >conftest.$ac_ext <<_ACEOF
21887
cat confdefs.h >>conftest.$ac_ext
21888
cat >>conftest.$ac_ext <<_ACEOF
21889
/* end confdefs.h. */
21891
/* Override any GCC internal prototype to avoid an error.
21892
Use char because int might match the return type of a GCC
21893
builtin and then its argument prototype would still apply. */
21897
char nfs4_init_name_mapping ();
21901
return nfs4_init_name_mapping ();
21906
rm -f conftest.$ac_objext conftest$ac_exeext
21907
if { (ac_try="$ac_link"
21908
case "(($ac_try" in
21909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910
*) ac_try_echo=$ac_try;;
21912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913
(eval "$ac_link") 2>conftest.er1
21915
grep -v '^ *+' conftest.er1 >conftest.err
21917
cat conftest.err >&5
21918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919
(exit $ac_status); } &&
21920
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21921
{ (case "(($ac_try" in
21922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923
*) ac_try_echo=$ac_try;;
21925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926
(eval "$ac_try") 2>&5
21928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929
(exit $ac_status); }; } &&
21930
{ ac_try='test -s conftest$ac_exeext'
21931
{ (case "(($ac_try" in
21932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933
*) ac_try_echo=$ac_try;;
21935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936
(eval "$ac_try") 2>&5
21938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939
(exit $ac_status); }; }; then
21940
ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21942
echo "$as_me: failed program was:" >&5
21943
sed 's/^/| /' conftest.$ac_ext >&5
21945
ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21948
rm -f conftest.err conftest.$ac_objext \
21949
conftest$ac_exeext conftest.$ac_ext
21950
LIBS=$ac_check_lib_save_LIBS
21952
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21953
echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21954
if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21957
{ { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21958
echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21959
{ (exit 1); exit 1; }; }
21963
for ac_header in event.h
21965
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21967
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21968
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21969
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21970
echo $ECHO_N "(cached) $ECHO_C" >&6
21972
ac_res=`eval echo '${'$as_ac_Header'}'`
21973
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21974
echo "${ECHO_T}$ac_res" >&6; }
21976
# Is the header compilable?
21977
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21978
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21979
cat >conftest.$ac_ext <<_ACEOF
21982
cat confdefs.h >>conftest.$ac_ext
21983
cat >>conftest.$ac_ext <<_ACEOF
21984
/* end confdefs.h. */
21985
$ac_includes_default
21986
@%:@include <$ac_header>
21988
rm -f conftest.$ac_objext
21989
if { (ac_try="$ac_compile"
21990
case "(($ac_try" in
21991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992
*) ac_try_echo=$ac_try;;
21994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995
(eval "$ac_compile") 2>conftest.er1
21997
grep -v '^ *+' conftest.er1 >conftest.err
21999
cat conftest.err >&5
22000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001
(exit $ac_status); } &&
22002
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22003
{ (case "(($ac_try" in
22004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005
*) ac_try_echo=$ac_try;;
22007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008
(eval "$ac_try") 2>&5
22010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011
(exit $ac_status); }; } &&
22012
{ ac_try='test -s conftest.$ac_objext'
22013
{ (case "(($ac_try" in
22014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015
*) ac_try_echo=$ac_try;;
22017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018
(eval "$ac_try") 2>&5
22020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021
(exit $ac_status); }; }; then
22022
ac_header_compiler=yes
22024
echo "$as_me: failed program was:" >&5
22025
sed 's/^/| /' conftest.$ac_ext >&5
22027
ac_header_compiler=no
22030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22031
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032
echo "${ECHO_T}$ac_header_compiler" >&6; }
22034
# Is the header present?
22035
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037
cat >conftest.$ac_ext <<_ACEOF
22040
cat confdefs.h >>conftest.$ac_ext
22041
cat >>conftest.$ac_ext <<_ACEOF
22042
/* end confdefs.h. */
22043
@%:@include <$ac_header>
22045
if { (ac_try="$ac_cpp conftest.$ac_ext"
22046
case "(($ac_try" in
22047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048
*) ac_try_echo=$ac_try;;
22050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22053
grep -v '^ *+' conftest.er1 >conftest.err
22055
cat conftest.err >&5
22056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057
(exit $ac_status); } >/dev/null; then
22058
if test -s conftest.err; then
22059
ac_cpp_err=$ac_c_preproc_warn_flag
22060
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22067
if test -z "$ac_cpp_err"; then
22068
ac_header_preproc=yes
22070
echo "$as_me: failed program was:" >&5
22071
sed 's/^/| /' conftest.$ac_ext >&5
22073
ac_header_preproc=no
22076
rm -f conftest.err conftest.$ac_ext
22077
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22078
echo "${ECHO_T}$ac_header_preproc" >&6; }
22080
# So? What about this header?
22081
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22083
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22084
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22085
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22086
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22087
ac_header_preproc=yes
22090
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22091
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22092
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22093
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22094
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22095
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22096
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22097
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22098
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22099
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22100
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22101
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22103
@%:@@%:@ ------------------------------- @%:@@%:@
22104
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22105
@%:@@%:@ ------------------------------- @%:@@%:@
22107
) | sed "s/^/$as_me: WARNING: /" >&2
22110
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22111
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113
echo $ECHO_N "(cached) $ECHO_C" >&6
22115
eval "$as_ac_Header=\$ac_header_preproc"
22117
ac_res=`eval echo '${'$as_ac_Header'}'`
22118
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22119
echo "${ECHO_T}$ac_res" >&6; }
22122
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22123
cat >>confdefs.h <<_ACEOF
22124
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22128
{ { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22129
echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22130
{ (exit 1); exit 1; }; }
22136
for ac_header in nfsidmap.h
22138
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22139
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22140
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22141
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22142
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22143
echo $ECHO_N "(cached) $ECHO_C" >&6
22145
ac_res=`eval echo '${'$as_ac_Header'}'`
22146
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22147
echo "${ECHO_T}$ac_res" >&6; }
22149
# Is the header compilable?
22150
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22151
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22152
cat >conftest.$ac_ext <<_ACEOF
22155
cat confdefs.h >>conftest.$ac_ext
22156
cat >>conftest.$ac_ext <<_ACEOF
22157
/* end confdefs.h. */
22158
$ac_includes_default
22159
@%:@include <$ac_header>
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
22195
ac_header_compiler=yes
22197
echo "$as_me: failed program was:" >&5
22198
sed 's/^/| /' conftest.$ac_ext >&5
22200
ac_header_compiler=no
22203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22204
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22205
echo "${ECHO_T}$ac_header_compiler" >&6; }
22207
# Is the header present?
22208
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22209
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22210
cat >conftest.$ac_ext <<_ACEOF
22213
cat confdefs.h >>conftest.$ac_ext
22214
cat >>conftest.$ac_ext <<_ACEOF
22215
/* end confdefs.h. */
22216
@%:@include <$ac_header>
22218
if { (ac_try="$ac_cpp conftest.$ac_ext"
22219
case "(($ac_try" in
22220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221
*) ac_try_echo=$ac_try;;
22223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22226
grep -v '^ *+' conftest.er1 >conftest.err
22228
cat conftest.err >&5
22229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230
(exit $ac_status); } >/dev/null; then
22231
if test -s conftest.err; then
22232
ac_cpp_err=$ac_c_preproc_warn_flag
22233
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22240
if test -z "$ac_cpp_err"; then
22241
ac_header_preproc=yes
22243
echo "$as_me: failed program was:" >&5
22244
sed 's/^/| /' conftest.$ac_ext >&5
22246
ac_header_preproc=no
22249
rm -f conftest.err conftest.$ac_ext
22250
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22251
echo "${ECHO_T}$ac_header_preproc" >&6; }
22253
# So? What about this header?
22254
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22256
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22257
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22258
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22259
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22260
ac_header_preproc=yes
22263
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22264
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22265
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22266
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22267
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22268
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22269
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22270
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22271
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22272
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22273
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22274
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22276
@%:@@%:@ ------------------------------- @%:@@%:@
22277
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22278
@%:@@%:@ ------------------------------- @%:@@%:@
22280
) | sed "s/^/$as_me: WARNING: /" >&2
22283
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22284
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22285
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22286
echo $ECHO_N "(cached) $ECHO_C" >&6
22288
eval "$as_ac_Header=\$ac_header_preproc"
22290
ac_res=`eval echo '${'$as_ac_Header'}'`
22291
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22292
echo "${ECHO_T}$ac_res" >&6; }
22295
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22296
cat >>confdefs.h <<_ACEOF
22297
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22301
{ { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22302
echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22303
{ (exit 1); exit 1; }; }
22308
if test "$enable_gss" = yes; then
22311
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22312
if test -n "$ac_tool_prefix"; then
22313
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22314
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22315
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22317
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22318
echo $ECHO_N "(cached) $ECHO_C" >&6
22320
case $PKG_CONFIG in
22322
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22326
for as_dir in $PATH
22329
test -z "$as_dir" && as_dir=.
22330
for ac_exec_ext in '' $ac_executable_extensions; do
22331
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22332
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22333
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22343
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22344
if test -n "$PKG_CONFIG"; then
22345
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22346
echo "${ECHO_T}$PKG_CONFIG" >&6; }
22348
{ echo "$as_me:$LINENO: result: no" >&5
22349
echo "${ECHO_T}no" >&6; }
22354
if test -z "$ac_cv_path_PKG_CONFIG"; then
22355
ac_pt_PKG_CONFIG=$PKG_CONFIG
22356
# Extract the first word of "pkg-config", so it can be a program name with args.
22357
set dummy pkg-config; ac_word=$2
22358
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22359
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22360
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22361
echo $ECHO_N "(cached) $ECHO_C" >&6
22363
case $ac_pt_PKG_CONFIG in
22365
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22369
for as_dir in $PATH
22372
test -z "$as_dir" && as_dir=.
22373
for ac_exec_ext in '' $ac_executable_extensions; do
22374
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22375
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22376
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22386
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22387
if test -n "$ac_pt_PKG_CONFIG"; then
22388
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22389
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22391
{ echo "$as_me:$LINENO: result: no" >&5
22392
echo "${ECHO_T}no" >&6; }
22395
if test "x$ac_pt_PKG_CONFIG" = x; then
22398
case $cross_compiling:$ac_tool_warned in
22400
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22401
whose name does not start with the host triplet. If you think this
22402
configuration is useful to you, please write to autoconf@gnu.org." >&5
22403
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22404
whose name does not start with the host triplet. If you think this
22405
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22406
ac_tool_warned=yes ;;
22408
PKG_CONFIG=$ac_pt_PKG_CONFIG
22411
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22415
if test -n "$PKG_CONFIG"; then
22416
_pkg_min_version=0.9.0
22417
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22418
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22419
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22420
{ echo "$as_me:$LINENO: result: yes" >&5
22421
echo "${ECHO_T}yes" >&6; }
22423
{ echo "$as_me:$LINENO: result: no" >&5
22424
echo "${ECHO_T}no" >&6; }
22431
{ echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22432
echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22434
if test -n "$PKG_CONFIG"; then
22435
if test -n "$RPCSECGSS_CFLAGS"; then
22436
pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22438
if test -n "$PKG_CONFIG" && \
22439
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22440
($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443
(exit $ac_status); }; then
22444
pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22452
if test -n "$PKG_CONFIG"; then
22453
if test -n "$RPCSECGSS_LIBS"; then
22454
pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22456
if test -n "$PKG_CONFIG" && \
22457
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22458
($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461
(exit $ac_status); }; then
22462
pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22473
if test $pkg_failed = yes; then
22475
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22476
_pkg_short_errors_supported=yes
22478
_pkg_short_errors_supported=no
22480
if test $_pkg_short_errors_supported = yes; then
22481
RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22483
RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22485
# Put the nasty error message in config.log where it belongs
22486
echo "$RPCSECGSS_PKG_ERRORS" >&5
22488
{ { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22489
If you have pkgconfig installed, you might try setting environment
22490
variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22491
echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22492
If you have pkgconfig installed, you might try setting environment
22493
variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22494
{ (exit 1); exit 1; }; }
22497
elif test $pkg_failed = untried; then
22498
{ { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22499
If you have pkgconfig installed, you might try setting environment
22500
variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22501
echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22502
If you have pkgconfig installed, you might try setting environment
22503
variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22504
{ (exit 1); exit 1; }; }
22508
RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22509
RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22510
{ echo "$as_me:$LINENO: result: yes" >&5
22511
echo "${ECHO_T}yes" >&6; }
22516
{ echo "$as_me:$LINENO: checking for GSSAPI" >&5
22517
echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22519
if test -n "$PKG_CONFIG"; then
22520
if test -n "$GSSAPI_CFLAGS"; then
22521
pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22523
if test -n "$PKG_CONFIG" && \
22524
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22525
($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528
(exit $ac_status); }; then
22529
pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22537
if test -n "$PKG_CONFIG"; then
22538
if test -n "$GSSAPI_LIBS"; then
22539
pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22541
if test -n "$PKG_CONFIG" && \
22542
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22543
($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546
(exit $ac_status); }; then
22547
pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22558
if test $pkg_failed = yes; then
22560
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22561
_pkg_short_errors_supported=yes
22563
_pkg_short_errors_supported=no
22565
if test $_pkg_short_errors_supported = yes; then
22566
GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22568
GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22570
# Put the nasty error message in config.log where it belongs
22571
echo "$GSSAPI_PKG_ERRORS" >&5
22573
{ { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22577
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22578
installed software in a non-standard prefix.
22580
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22581
and GSSAPI_LIBS to avoid the need to call pkg-config.
22582
See the pkg-config man page for more details.
22584
echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22588
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22589
installed software in a non-standard prefix.
22591
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22592
and GSSAPI_LIBS to avoid the need to call pkg-config.
22593
See the pkg-config man page for more details.
22595
{ (exit 1); exit 1; }; }
22596
elif test $pkg_failed = untried; then
22597
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22598
is in your PATH or set the PKG_CONFIG environment variable to the full
22599
path to pkg-config.
22601
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22602
and GSSAPI_LIBS to avoid the need to call pkg-config.
22603
See the pkg-config man page for more details.
22605
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22606
See \`config.log' for more details." >&5
22607
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22608
is in your PATH or set the PKG_CONFIG environment variable to the full
22609
path to pkg-config.
22611
Alternatively, you may set the environment variables GSSAPI_CFLAGS
22612
and GSSAPI_LIBS to avoid the need to call pkg-config.
22613
See the pkg-config man page for more details.
22615
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22616
See \`config.log' for more details." >&2;}
22617
{ (exit 1); exit 1; }; }
22619
GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22620
GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22621
{ echo "$as_me:$LINENO: result: yes" >&5
22622
echo "${ECHO_T}yes" >&6; }
22628
if test "$knfsd_cv_glibc2" = no; then
22629
{ echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22630
echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22631
if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22632
echo $ECHO_N "(cached) $ECHO_C" >&6
22634
ac_check_lib_save_LIBS=$LIBS
22636
cat >conftest.$ac_ext <<_ACEOF
22639
cat confdefs.h >>conftest.$ac_ext
22640
cat >>conftest.$ac_ext <<_ACEOF
22641
/* end confdefs.h. */
22643
/* Override any GCC internal prototype to avoid an error.
22644
Use char because int might match the return type of a GCC
22645
builtin and then its argument prototype would still apply. */
22658
rm -f conftest.$ac_objext conftest$ac_exeext
22659
if { (ac_try="$ac_link"
22660
case "(($ac_try" in
22661
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662
*) ac_try_echo=$ac_try;;
22664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665
(eval "$ac_link") 2>conftest.er1
22667
grep -v '^ *+' conftest.er1 >conftest.err
22669
cat conftest.err >&5
22670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671
(exit $ac_status); } &&
22672
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22673
{ (case "(($ac_try" in
22674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675
*) ac_try_echo=$ac_try;;
22677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678
(eval "$ac_try") 2>&5
22680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681
(exit $ac_status); }; } &&
22682
{ ac_try='test -s conftest$ac_exeext'
22683
{ (case "(($ac_try" in
22684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685
*) ac_try_echo=$ac_try;;
22687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688
(eval "$ac_try") 2>&5
22690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691
(exit $ac_status); }; }; then
22692
ac_cv_lib_bsd_daemon=yes
22694
echo "$as_me: failed program was:" >&5
22695
sed 's/^/| /' conftest.$ac_ext >&5
22697
ac_cv_lib_bsd_daemon=no
22700
rm -f conftest.err conftest.$ac_objext \
22701
conftest$ac_exeext conftest.$ac_ext
22702
LIBS=$ac_check_lib_save_LIBS
22704
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22705
echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22706
if test $ac_cv_lib_bsd_daemon = yes; then
22716
if test "$enable_gss" = yes; then
22718
for ac_header in nfsidmap.h
22720
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22721
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22722
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22723
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22724
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725
echo $ECHO_N "(cached) $ECHO_C" >&6
22727
ac_res=`eval echo '${'$as_ac_Header'}'`
22728
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22729
echo "${ECHO_T}$ac_res" >&6; }
22731
# Is the header compilable?
22732
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22733
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22734
cat >conftest.$ac_ext <<_ACEOF
22737
cat confdefs.h >>conftest.$ac_ext
22738
cat >>conftest.$ac_ext <<_ACEOF
22739
/* end confdefs.h. */
22740
$ac_includes_default
22741
@%:@include <$ac_header>
22743
rm -f conftest.$ac_objext
22744
if { (ac_try="$ac_compile"
22745
case "(($ac_try" in
22746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747
*) ac_try_echo=$ac_try;;
22749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750
(eval "$ac_compile") 2>conftest.er1
22752
grep -v '^ *+' conftest.er1 >conftest.err
22754
cat conftest.err >&5
22755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756
(exit $ac_status); } &&
22757
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22758
{ (case "(($ac_try" in
22759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760
*) ac_try_echo=$ac_try;;
22762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763
(eval "$ac_try") 2>&5
22765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766
(exit $ac_status); }; } &&
22767
{ ac_try='test -s conftest.$ac_objext'
22768
{ (case "(($ac_try" in
22769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770
*) ac_try_echo=$ac_try;;
22772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773
(eval "$ac_try") 2>&5
22775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776
(exit $ac_status); }; }; then
22777
ac_header_compiler=yes
22779
echo "$as_me: failed program was:" >&5
22780
sed 's/^/| /' conftest.$ac_ext >&5
22782
ac_header_compiler=no
22785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22786
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22787
echo "${ECHO_T}$ac_header_compiler" >&6; }
22789
# Is the header present?
22790
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22791
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22792
cat >conftest.$ac_ext <<_ACEOF
22795
cat confdefs.h >>conftest.$ac_ext
22796
cat >>conftest.$ac_ext <<_ACEOF
22797
/* end confdefs.h. */
22798
@%:@include <$ac_header>
22800
if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
22808
grep -v '^ *+' conftest.er1 >conftest.err
22810
cat conftest.err >&5
22811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812
(exit $ac_status); } >/dev/null; then
22813
if test -s conftest.err; then
22814
ac_cpp_err=$ac_c_preproc_warn_flag
22815
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22822
if test -z "$ac_cpp_err"; then
22823
ac_header_preproc=yes
22825
echo "$as_me: failed program was:" >&5
22826
sed 's/^/| /' conftest.$ac_ext >&5
22828
ac_header_preproc=no
22831
rm -f conftest.err conftest.$ac_ext
22832
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22833
echo "${ECHO_T}$ac_header_preproc" >&6; }
22835
# So? What about this header?
22836
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22838
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22839
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22840
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22841
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22842
ac_header_preproc=yes
22845
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22846
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22847
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22848
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22849
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22850
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22851
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22852
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22853
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22854
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22855
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22856
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22858
@%:@@%:@ ------------------------------- @%:@@%:@
22859
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22860
@%:@@%:@ ------------------------------- @%:@@%:@
22862
) | sed "s/^/$as_me: WARNING: /" >&2
22865
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22866
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22867
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22868
echo $ECHO_N "(cached) $ECHO_C" >&6
22870
eval "$as_ac_Header=\$ac_header_preproc"
22872
ac_res=`eval echo '${'$as_ac_Header'}'`
22873
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22874
echo "${ECHO_T}$ac_res" >&6; }
22877
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22878
cat >>confdefs.h <<_ACEOF
22879
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22883
{ { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22884
echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22885
{ (exit 1); exit 1; }; }
22891
for ac_header in spkm3.h
22893
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22896
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22897
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898
echo $ECHO_N "(cached) $ECHO_C" >&6
22900
ac_res=`eval echo '${'$as_ac_Header'}'`
22901
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22902
echo "${ECHO_T}$ac_res" >&6; }
22904
# Is the header compilable?
22905
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22906
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22907
cat >conftest.$ac_ext <<_ACEOF
22910
cat confdefs.h >>conftest.$ac_ext
22911
cat >>conftest.$ac_ext <<_ACEOF
22912
/* end confdefs.h. */
22913
$ac_includes_default
22914
@%:@include <$ac_header>
22916
rm -f conftest.$ac_objext
22917
if { (ac_try="$ac_compile"
22918
case "(($ac_try" in
22919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920
*) ac_try_echo=$ac_try;;
22922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923
(eval "$ac_compile") 2>conftest.er1
22925
grep -v '^ *+' conftest.er1 >conftest.err
22927
cat conftest.err >&5
22928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929
(exit $ac_status); } &&
22930
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22931
{ (case "(($ac_try" in
22932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933
*) ac_try_echo=$ac_try;;
22935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936
(eval "$ac_try") 2>&5
22938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939
(exit $ac_status); }; } &&
22940
{ ac_try='test -s conftest.$ac_objext'
22941
{ (case "(($ac_try" in
22942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943
*) ac_try_echo=$ac_try;;
22945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946
(eval "$ac_try") 2>&5
22948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949
(exit $ac_status); }; }; then
22950
ac_header_compiler=yes
22952
echo "$as_me: failed program was:" >&5
22953
sed 's/^/| /' conftest.$ac_ext >&5
22955
ac_header_compiler=no
22958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22959
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22960
echo "${ECHO_T}$ac_header_compiler" >&6; }
22962
# Is the header present?
22963
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22964
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22965
cat >conftest.$ac_ext <<_ACEOF
22968
cat confdefs.h >>conftest.$ac_ext
22969
cat >>conftest.$ac_ext <<_ACEOF
22970
/* end confdefs.h. */
22971
@%:@include <$ac_header>
22973
if { (ac_try="$ac_cpp conftest.$ac_ext"
22974
case "(($ac_try" in
22975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976
*) ac_try_echo=$ac_try;;
22978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22981
grep -v '^ *+' conftest.er1 >conftest.err
22983
cat conftest.err >&5
22984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985
(exit $ac_status); } >/dev/null; then
22986
if test -s conftest.err; then
22987
ac_cpp_err=$ac_c_preproc_warn_flag
22988
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22995
if test -z "$ac_cpp_err"; then
22996
ac_header_preproc=yes
22998
echo "$as_me: failed program was:" >&5
22999
sed 's/^/| /' conftest.$ac_ext >&5
23001
ac_header_preproc=no
23004
rm -f conftest.err conftest.$ac_ext
23005
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23006
echo "${ECHO_T}$ac_header_preproc" >&6; }
23008
# So? What about this header?
23009
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23011
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23012
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23013
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23014
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23015
ac_header_preproc=yes
23018
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23019
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23020
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23021
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23022
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23023
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23024
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23025
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23026
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23027
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23028
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23029
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23031
@%:@@%:@ ------------------------------- @%:@@%:@
23032
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23033
@%:@@%:@ ------------------------------- @%:@@%:@
23035
) | sed "s/^/$as_me: WARNING: /" >&2
23038
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23039
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23040
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23041
echo $ECHO_N "(cached) $ECHO_C" >&6
23043
eval "$as_ac_Header=\$ac_header_preproc"
23045
ac_res=`eval echo '${'$as_ac_Header'}'`
23046
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23047
echo "${ECHO_T}$ac_res" >&6; }
23050
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23051
cat >>confdefs.h <<_ACEOF
23052
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23056
{ echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23057
echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23064
{ echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23065
echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23067
# Check whether --with-krb5 was given.
23068
if test "${with_krb5+set}" = set; then
23069
withval=$with_krb5; case "$withval" in
23074
krb5_with="$withval"
23081
for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23082
/usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23084
if test -f $dir/bin/krb5-config; then
23085
K5CONFIG=$dir/bin/krb5-config
23086
elif test -f "/usr/kerberos/bin/krb5-config"; then
23087
K5CONFIG="/usr/kerberos/bin/krb5-config"
23088
elif test -f "/usr/lib/mit/bin/krb5-config"; then
23089
K5CONFIG="/usr/lib/mit/bin/krb5-config"
23091
if test "$K5CONFIG" != ""; then
23092
KRBCFLAGS=`$K5CONFIG --cflags`
23093
KRBLIBS=`$K5CONFIG --libs gssapi`
23094
K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23096
cat >>confdefs.h <<_ACEOF
23097
@%:@define KRB5_VERSION $K5VERS
23100
if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23101
\( -f $dir/lib/libgssapi_krb5.a -o \
23102
-f $dir/lib/libgssapi_krb5.so \) ; then
23104
cat >>confdefs.h <<\_ACEOF
23105
@%:@define HAVE_KRB5 1
23109
if test $K5VERS -le 131; then
23111
cat >>confdefs.h <<\_ACEOF
23112
@%:@define USE_GSS_KRB5_CCACHE_NAME 1
23116
gssapi_lib=gssapi_krb5
23118
elif test \( -f $dir/include/heim_err.h -o\
23119
-f $dir/include/heimdal/heim_err.h \) -a \
23120
-f $dir/lib/libroken.a; then
23122
cat >>confdefs.h <<\_ACEOF
23123
@%:@define HAVE_HEIMDAL 1
23132
if test "x$KRBDIR" = "x"; then
23133
if test "x$krb5_with" = "x"; then
23134
{ { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23135
echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23136
{ (exit 1); exit 1; }; }
23138
{ { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23139
echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23140
{ (exit 1); exit 1; }; }
23143
{ echo "$as_me:$LINENO: result: $KRBDIR" >&5
23144
echo "${ECHO_T}$KRBDIR" >&6; }
23146
as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23147
{ echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23148
echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23149
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23150
echo $ECHO_N "(cached) $ECHO_C" >&6
23152
ac_check_lib_save_LIBS=$LIBS
23153
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23154
cat >conftest.$ac_ext <<_ACEOF
23157
cat confdefs.h >>conftest.$ac_ext
23158
cat >>conftest.$ac_ext <<_ACEOF
23159
/* end confdefs.h. */
23161
/* Override any GCC internal prototype to avoid an error.
23162
Use char because int might match the return type of a GCC
23163
builtin and then its argument prototype would still apply. */
23167
char gss_krb5_export_lucid_sec_context ();
23171
return gss_krb5_export_lucid_sec_context ();
23176
rm -f conftest.$ac_objext conftest$ac_exeext
23177
if { (ac_try="$ac_link"
23178
case "(($ac_try" in
23179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180
*) ac_try_echo=$ac_try;;
23182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183
(eval "$ac_link") 2>conftest.er1
23185
grep -v '^ *+' conftest.er1 >conftest.err
23187
cat conftest.err >&5
23188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189
(exit $ac_status); } &&
23190
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23191
{ (case "(($ac_try" in
23192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193
*) ac_try_echo=$ac_try;;
23195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196
(eval "$ac_try") 2>&5
23198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199
(exit $ac_status); }; } &&
23200
{ ac_try='test -s conftest$ac_exeext'
23201
{ (case "(($ac_try" in
23202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203
*) ac_try_echo=$ac_try;;
23205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206
(eval "$ac_try") 2>&5
23208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209
(exit $ac_status); }; }; then
23210
eval "$as_ac_Lib=yes"
23212
echo "$as_me: failed program was:" >&5
23213
sed 's/^/| /' conftest.$ac_ext >&5
23215
eval "$as_ac_Lib=no"
23218
rm -f conftest.err conftest.$ac_objext \
23219
conftest$ac_exeext conftest.$ac_ext
23220
LIBS=$ac_check_lib_save_LIBS
23222
ac_res=`eval echo '${'$as_ac_Lib'}'`
23223
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23224
echo "${ECHO_T}$ac_res" >&6; }
23225
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23227
cat >>confdefs.h <<\_ACEOF
23228
@%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23233
as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23234
{ echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23235
echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23236
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23237
echo $ECHO_N "(cached) $ECHO_C" >&6
23239
ac_check_lib_save_LIBS=$LIBS
23240
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23241
cat >conftest.$ac_ext <<_ACEOF
23244
cat confdefs.h >>conftest.$ac_ext
23245
cat >>conftest.$ac_ext <<_ACEOF
23246
/* end confdefs.h. */
23248
/* Override any GCC internal prototype to avoid an error.
23249
Use char because int might match the return type of a GCC
23250
builtin and then its argument prototype would still apply. */
23254
char gss_krb5_set_allowable_enctypes ();
23258
return gss_krb5_set_allowable_enctypes ();
23263
rm -f conftest.$ac_objext conftest$ac_exeext
23264
if { (ac_try="$ac_link"
23265
case "(($ac_try" in
23266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267
*) ac_try_echo=$ac_try;;
23269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270
(eval "$ac_link") 2>conftest.er1
23272
grep -v '^ *+' conftest.er1 >conftest.err
23274
cat conftest.err >&5
23275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276
(exit $ac_status); } &&
23277
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23278
{ (case "(($ac_try" in
23279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280
*) ac_try_echo=$ac_try;;
23282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283
(eval "$ac_try") 2>&5
23285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286
(exit $ac_status); }; } &&
23287
{ ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
23295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296
(exit $ac_status); }; }; then
23297
eval "$as_ac_Lib=yes"
23299
echo "$as_me: failed program was:" >&5
23300
sed 's/^/| /' conftest.$ac_ext >&5
23302
eval "$as_ac_Lib=no"
23305
rm -f conftest.err conftest.$ac_objext \
23306
conftest$ac_exeext conftest.$ac_ext
23307
LIBS=$ac_check_lib_save_LIBS
23309
ac_res=`eval echo '${'$as_ac_Lib'}'`
23310
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23311
echo "${ECHO_T}$ac_res" >&6; }
23312
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23314
cat >>confdefs.h <<\_ACEOF
23315
@%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23320
as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23321
{ echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23322
echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23323
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23324
echo $ECHO_N "(cached) $ECHO_C" >&6
23326
ac_check_lib_save_LIBS=$LIBS
23327
LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23328
cat >conftest.$ac_ext <<_ACEOF
23331
cat confdefs.h >>conftest.$ac_ext
23332
cat >>conftest.$ac_ext <<_ACEOF
23333
/* end confdefs.h. */
23335
/* Override any GCC internal prototype to avoid an error.
23336
Use char because int might match the return type of a GCC
23337
builtin and then its argument prototype would still apply. */
23341
char gss_krb5_ccache_name ();
23345
return gss_krb5_ccache_name ();
23350
rm -f conftest.$ac_objext conftest$ac_exeext
23351
if { (ac_try="$ac_link"
23352
case "(($ac_try" in
23353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354
*) ac_try_echo=$ac_try;;
23356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357
(eval "$ac_link") 2>conftest.er1
23359
grep -v '^ *+' conftest.er1 >conftest.err
23361
cat conftest.err >&5
23362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363
(exit $ac_status); } &&
23364
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
23374
{ ac_try='test -s conftest$ac_exeext'
23375
{ (case "(($ac_try" in
23376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377
*) ac_try_echo=$ac_try;;
23379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380
(eval "$ac_try") 2>&5
23382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383
(exit $ac_status); }; }; then
23384
eval "$as_ac_Lib=yes"
23386
echo "$as_me: failed program was:" >&5
23387
sed 's/^/| /' conftest.$ac_ext >&5
23389
eval "$as_ac_Lib=no"
23392
rm -f conftest.err conftest.$ac_objext \
23393
conftest$ac_exeext conftest.$ac_ext
23394
LIBS=$ac_check_lib_save_LIBS
23396
ac_res=`eval echo '${'$as_ac_Lib'}'`
23397
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23398
echo "${ECHO_T}$ac_res" >&6; }
23399
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23401
cat >>confdefs.h <<\_ACEOF
23402
@%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23408
if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23409
{ echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23410
echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23420
{ echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23421
echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23422
if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23423
echo $ECHO_N "(cached) $ECHO_C" >&6
23425
ac_check_lib_save_LIBS=$LIBS
23426
LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23427
cat >conftest.$ac_ext <<_ACEOF
23430
cat confdefs.h >>conftest.$ac_ext
23431
cat >>conftest.$ac_ext <<_ACEOF
23432
/* end confdefs.h. */
23434
/* Override any GCC internal prototype to avoid an error.
23435
Use char because int might match the return type of a GCC
23436
builtin and then its argument prototype would still apply. */
23440
char authgss_create_default ();
23444
return authgss_create_default ();
23449
rm -f conftest.$ac_objext conftest$ac_exeext
23450
if { (ac_try="$ac_link"
23451
case "(($ac_try" in
23452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453
*) ac_try_echo=$ac_try;;
23455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456
(eval "$ac_link") 2>conftest.er1
23458
grep -v '^ *+' conftest.er1 >conftest.err
23460
cat conftest.err >&5
23461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462
(exit $ac_status); } &&
23463
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23464
{ (case "(($ac_try" in
23465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466
*) ac_try_echo=$ac_try;;
23468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469
(eval "$ac_try") 2>&5
23471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472
(exit $ac_status); }; } &&
23473
{ ac_try='test -s conftest$ac_exeext'
23474
{ (case "(($ac_try" in
23475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476
*) ac_try_echo=$ac_try;;
23478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479
(eval "$ac_try") 2>&5
23481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482
(exit $ac_status); }; }; then
23483
ac_cv_lib_rpcsecgss_authgss_create_default=yes
23485
echo "$as_me: failed program was:" >&5
23486
sed 's/^/| /' conftest.$ac_ext >&5
23488
ac_cv_lib_rpcsecgss_authgss_create_default=no
23491
rm -f conftest.err conftest.$ac_objext \
23492
conftest$ac_exeext conftest.$ac_ext
23493
LIBS=$ac_check_lib_save_LIBS
23495
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23496
echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23497
if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23500
{ { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23501
echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23502
{ (exit 1); exit 1; }; }
23505
{ echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23506
echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23507
if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23508
echo $ECHO_N "(cached) $ECHO_C" >&6
23510
ac_check_lib_save_LIBS=$LIBS
23511
LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23512
cat >conftest.$ac_ext <<_ACEOF
23515
cat confdefs.h >>conftest.$ac_ext
23516
cat >>conftest.$ac_ext <<_ACEOF
23517
/* end confdefs.h. */
23519
/* Override any GCC internal prototype to avoid an error.
23520
Use char because int might match the return type of a GCC
23521
builtin and then its argument prototype would still apply. */
23525
char authgss_set_debug_level ();
23529
return authgss_set_debug_level ();
23534
rm -f conftest.$ac_objext conftest$ac_exeext
23535
if { (ac_try="$ac_link"
23536
case "(($ac_try" in
23537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538
*) ac_try_echo=$ac_try;;
23540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541
(eval "$ac_link") 2>conftest.er1
23543
grep -v '^ *+' conftest.er1 >conftest.err
23545
cat conftest.err >&5
23546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547
(exit $ac_status); } &&
23548
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23549
{ (case "(($ac_try" in
23550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551
*) ac_try_echo=$ac_try;;
23553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554
(eval "$ac_try") 2>&5
23556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557
(exit $ac_status); }; } &&
23558
{ ac_try='test -s conftest$ac_exeext'
23559
{ (case "(($ac_try" in
23560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561
*) ac_try_echo=$ac_try;;
23563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564
(eval "$ac_try") 2>&5
23566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567
(exit $ac_status); }; }; then
23568
ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23570
echo "$as_me: failed program was:" >&5
23571
sed 's/^/| /' conftest.$ac_ext >&5
23573
ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23576
rm -f conftest.err conftest.$ac_objext \
23577
conftest$ac_exeext conftest.$ac_ext
23578
LIBS=$ac_check_lib_save_LIBS
23580
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23581
echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23582
if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23584
cat >>confdefs.h <<\_ACEOF
23585
@%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23616
for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23617
malloc.h memory.h netdb.h netinet/in.h paths.h \
23618
stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23619
sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23620
syslog.h unistd.h com_err.h et/com_err.h \
23623
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23625
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23626
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23627
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23628
echo $ECHO_N "(cached) $ECHO_C" >&6
23630
ac_res=`eval echo '${'$as_ac_Header'}'`
23631
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23632
echo "${ECHO_T}$ac_res" >&6; }
23634
# Is the header compilable?
23635
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23636
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23637
cat >conftest.$ac_ext <<_ACEOF
23640
cat confdefs.h >>conftest.$ac_ext
23641
cat >>conftest.$ac_ext <<_ACEOF
23642
/* end confdefs.h. */
23643
$ac_includes_default
23644
@%:@include <$ac_header>
23646
rm -f conftest.$ac_objext
23647
if { (ac_try="$ac_compile"
23648
case "(($ac_try" in
23649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650
*) ac_try_echo=$ac_try;;
23652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653
(eval "$ac_compile") 2>conftest.er1
23655
grep -v '^ *+' conftest.er1 >conftest.err
23657
cat conftest.err >&5
23658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659
(exit $ac_status); } &&
23660
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23661
{ (case "(($ac_try" in
23662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663
*) ac_try_echo=$ac_try;;
23665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666
(eval "$ac_try") 2>&5
23668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669
(exit $ac_status); }; } &&
23670
{ ac_try='test -s conftest.$ac_objext'
23671
{ (case "(($ac_try" in
23672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673
*) ac_try_echo=$ac_try;;
23675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676
(eval "$ac_try") 2>&5
23678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679
(exit $ac_status); }; }; then
23680
ac_header_compiler=yes
23682
echo "$as_me: failed program was:" >&5
23683
sed 's/^/| /' conftest.$ac_ext >&5
23685
ac_header_compiler=no
23688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23689
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23690
echo "${ECHO_T}$ac_header_compiler" >&6; }
23692
# Is the header present?
23693
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23694
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23695
cat >conftest.$ac_ext <<_ACEOF
23698
cat confdefs.h >>conftest.$ac_ext
23699
cat >>conftest.$ac_ext <<_ACEOF
23700
/* end confdefs.h. */
23701
@%:@include <$ac_header>
23703
if { (ac_try="$ac_cpp conftest.$ac_ext"
23704
case "(($ac_try" in
23705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706
*) ac_try_echo=$ac_try;;
23708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23711
grep -v '^ *+' conftest.er1 >conftest.err
23713
cat conftest.err >&5
23714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715
(exit $ac_status); } >/dev/null; then
23716
if test -s conftest.err; then
23717
ac_cpp_err=$ac_c_preproc_warn_flag
23718
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23725
if test -z "$ac_cpp_err"; then
23726
ac_header_preproc=yes
23728
echo "$as_me: failed program was:" >&5
23729
sed 's/^/| /' conftest.$ac_ext >&5
23731
ac_header_preproc=no
23734
rm -f conftest.err conftest.$ac_ext
23735
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23736
echo "${ECHO_T}$ac_header_preproc" >&6; }
23738
# So? What about this header?
23739
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23741
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23742
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23743
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23744
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23745
ac_header_preproc=yes
23748
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23749
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23750
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23751
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23752
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23753
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23754
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23755
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23756
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23757
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23758
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23759
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23761
@%:@@%:@ ------------------------------- @%:@@%:@
23762
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23763
@%:@@%:@ ------------------------------- @%:@@%:@
23765
) | sed "s/^/$as_me: WARNING: /" >&2
23768
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23769
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23770
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23771
echo $ECHO_N "(cached) $ECHO_C" >&6
23773
eval "$as_ac_Header=\$ac_header_preproc"
23775
ac_res=`eval echo '${'$as_ac_Header'}'`
23776
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23777
echo "${ECHO_T}$ac_res" >&6; }
23780
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23781
cat >>confdefs.h <<_ACEOF
23782
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23790
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23791
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23792
if test "${ac_cv_c_const+set}" = set; then
23793
echo $ECHO_N "(cached) $ECHO_C" >&6
23795
cat >conftest.$ac_ext <<_ACEOF
23798
cat confdefs.h >>conftest.$ac_ext
23799
cat >>conftest.$ac_ext <<_ACEOF
23800
/* end confdefs.h. */
23805
/* FIXME: Include the comments suggested by Paul. */
23806
#ifndef __cplusplus
23807
/* Ultrix mips cc rejects this. */
23808
typedef int charset[2];
23810
/* SunOS 4.1.1 cc rejects this. */
23811
char const *const *ccp;
23813
/* NEC SVR4.0.2 mips cc rejects this. */
23814
struct point {int x, y;};
23815
static struct point const zero = {0,0};
23816
/* AIX XL C 1.02.0.0 rejects this.
23817
It does not let you subtract one const X* pointer from another in
23818
an arm of an if-expression whose if-part is not a constant
23820
const char *g = "string";
23821
ccp = &g + (g ? g-g : 0);
23822
/* HPUX 7.0 cc rejects these. */
23825
ccp = (char const *const *) p;
23826
{ /* SCO 3.2v4 cc rejects this. */
23828
char const *s = 0 ? (char *) 0 : (char const *) 0;
23833
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23834
int x[] = {25, 17};
23835
const int *foo = &x[0];
23838
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23839
typedef const int *iptr;
23843
{ /* AIX XL C 1.02.0.0 rejects this saying
23844
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23845
struct s { int j; const int *ap[3]; };
23846
struct s *b; b->j = 5;
23848
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23849
const int foo = 10;
23850
if (!foo) return 0;
23852
return !x[0] && !zero.x;
23859
rm -f conftest.$ac_objext
23860
if { (ac_try="$ac_compile"
23861
case "(($ac_try" in
23862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23863
*) ac_try_echo=$ac_try;;
23865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23866
(eval "$ac_compile") 2>conftest.er1
23868
grep -v '^ *+' conftest.er1 >conftest.err
23870
cat conftest.err >&5
23871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872
(exit $ac_status); } &&
23873
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23874
{ (case "(($ac_try" in
23875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876
*) ac_try_echo=$ac_try;;
23878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879
(eval "$ac_try") 2>&5
23881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882
(exit $ac_status); }; } &&
23883
{ ac_try='test -s conftest.$ac_objext'
23884
{ (case "(($ac_try" in
23885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886
*) ac_try_echo=$ac_try;;
23888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889
(eval "$ac_try") 2>&5
23891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892
(exit $ac_status); }; }; then
23895
echo "$as_me: failed program was:" >&5
23896
sed 's/^/| /' conftest.$ac_ext >&5
23901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23903
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23904
echo "${ECHO_T}$ac_cv_c_const" >&6; }
23905
if test $ac_cv_c_const = no; then
23907
cat >>confdefs.h <<\_ACEOF
23913
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23914
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23915
if test "${ac_cv_type_uid_t+set}" = set; then
23916
echo $ECHO_N "(cached) $ECHO_C" >&6
23918
cat >conftest.$ac_ext <<_ACEOF
23921
cat confdefs.h >>conftest.$ac_ext
23922
cat >>conftest.$ac_ext <<_ACEOF
23923
/* end confdefs.h. */
23924
#include <sys/types.h>
23927
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23928
$EGREP "uid_t" >/dev/null 2>&1; then
23929
ac_cv_type_uid_t=yes
23931
ac_cv_type_uid_t=no
23936
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23937
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23938
if test $ac_cv_type_uid_t = no; then
23940
cat >>confdefs.h <<\_ACEOF
23941
@%:@define uid_t int
23945
cat >>confdefs.h <<\_ACEOF
23946
@%:@define gid_t int
23951
{ echo "$as_me:$LINENO: checking for inline" >&5
23952
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23953
if test "${ac_cv_c_inline+set}" = set; then
23954
echo $ECHO_N "(cached) $ECHO_C" >&6
23957
for ac_kw in inline __inline__ __inline; do
23958
cat >conftest.$ac_ext <<_ACEOF
23961
cat confdefs.h >>conftest.$ac_ext
23962
cat >>conftest.$ac_ext <<_ACEOF
23963
/* end confdefs.h. */
23964
#ifndef __cplusplus
23966
static $ac_kw foo_t static_foo () {return 0; }
23967
$ac_kw foo_t foo () {return 0; }
23971
rm -f conftest.$ac_objext
23972
if { (ac_try="$ac_compile"
23973
case "(($ac_try" in
23974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975
*) ac_try_echo=$ac_try;;
23977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978
(eval "$ac_compile") 2>conftest.er1
23980
grep -v '^ *+' conftest.er1 >conftest.err
23982
cat conftest.err >&5
23983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984
(exit $ac_status); } &&
23985
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23986
{ (case "(($ac_try" in
23987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988
*) ac_try_echo=$ac_try;;
23990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991
(eval "$ac_try") 2>&5
23993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994
(exit $ac_status); }; } &&
23995
{ ac_try='test -s conftest.$ac_objext'
23996
{ (case "(($ac_try" in
23997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998
*) ac_try_echo=$ac_try;;
24000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001
(eval "$ac_try") 2>&5
24003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004
(exit $ac_status); }; }; then
24005
ac_cv_c_inline=$ac_kw
24007
echo "$as_me: failed program was:" >&5
24008
sed 's/^/| /' conftest.$ac_ext >&5
24013
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24014
test "$ac_cv_c_inline" != no && break
24018
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24019
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24022
case $ac_cv_c_inline in
24025
case $ac_cv_c_inline in
24027
*) ac_val=$ac_cv_c_inline;;
24029
cat >>confdefs.h <<_ACEOF
24030
#ifndef __cplusplus
24031
#define inline $ac_val
24037
{ echo "$as_me:$LINENO: checking for off_t" >&5
24038
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24039
if test "${ac_cv_type_off_t+set}" = set; then
24040
echo $ECHO_N "(cached) $ECHO_C" >&6
24042
cat >conftest.$ac_ext <<_ACEOF
24045
cat confdefs.h >>conftest.$ac_ext
24046
cat >>conftest.$ac_ext <<_ACEOF
24047
/* end confdefs.h. */
24048
$ac_includes_default
24049
typedef off_t ac__type_new_;
24053
if ((ac__type_new_ *) 0)
24055
if (sizeof (ac__type_new_))
24061
rm -f conftest.$ac_objext
24062
if { (ac_try="$ac_compile"
24063
case "(($ac_try" in
24064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065
*) ac_try_echo=$ac_try;;
24067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068
(eval "$ac_compile") 2>conftest.er1
24070
grep -v '^ *+' conftest.er1 >conftest.err
24072
cat conftest.err >&5
24073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074
(exit $ac_status); } &&
24075
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084
(exit $ac_status); }; } &&
24085
{ ac_try='test -s conftest.$ac_objext'
24086
{ (case "(($ac_try" in
24087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088
*) ac_try_echo=$ac_try;;
24090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091
(eval "$ac_try") 2>&5
24093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094
(exit $ac_status); }; }; then
24095
ac_cv_type_off_t=yes
24097
echo "$as_me: failed program was:" >&5
24098
sed 's/^/| /' conftest.$ac_ext >&5
24100
ac_cv_type_off_t=no
24103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24105
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24106
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24107
if test $ac_cv_type_off_t = yes; then
24111
cat >>confdefs.h <<_ACEOF
24112
@%:@define off_t long int
24117
{ echo "$as_me:$LINENO: checking for pid_t" >&5
24118
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24119
if test "${ac_cv_type_pid_t+set}" = set; then
24120
echo $ECHO_N "(cached) $ECHO_C" >&6
24122
cat >conftest.$ac_ext <<_ACEOF
24125
cat confdefs.h >>conftest.$ac_ext
24126
cat >>conftest.$ac_ext <<_ACEOF
24127
/* end confdefs.h. */
24128
$ac_includes_default
24129
typedef pid_t ac__type_new_;
24133
if ((ac__type_new_ *) 0)
24135
if (sizeof (ac__type_new_))
24141
rm -f conftest.$ac_objext
24142
if { (ac_try="$ac_compile"
24143
case "(($ac_try" in
24144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145
*) ac_try_echo=$ac_try;;
24147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148
(eval "$ac_compile") 2>conftest.er1
24150
grep -v '^ *+' conftest.er1 >conftest.err
24152
cat conftest.err >&5
24153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154
(exit $ac_status); } &&
24155
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24156
{ (case "(($ac_try" in
24157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158
*) ac_try_echo=$ac_try;;
24160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161
(eval "$ac_try") 2>&5
24163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164
(exit $ac_status); }; } &&
24165
{ ac_try='test -s conftest.$ac_objext'
24166
{ (case "(($ac_try" in
24167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168
*) ac_try_echo=$ac_try;;
24170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171
(eval "$ac_try") 2>&5
24173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174
(exit $ac_status); }; }; then
24175
ac_cv_type_pid_t=yes
24177
echo "$as_me: failed program was:" >&5
24178
sed 's/^/| /' conftest.$ac_ext >&5
24180
ac_cv_type_pid_t=no
24183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24185
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24186
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24187
if test $ac_cv_type_pid_t = yes; then
24191
cat >>confdefs.h <<_ACEOF
24192
@%:@define pid_t int
24197
{ echo "$as_me:$LINENO: checking for size_t" >&5
24198
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24199
if test "${ac_cv_type_size_t+set}" = set; then
24200
echo $ECHO_N "(cached) $ECHO_C" >&6
24202
cat >conftest.$ac_ext <<_ACEOF
24205
cat confdefs.h >>conftest.$ac_ext
24206
cat >>conftest.$ac_ext <<_ACEOF
24207
/* end confdefs.h. */
24208
$ac_includes_default
24209
typedef size_t ac__type_new_;
24213
if ((ac__type_new_ *) 0)
24215
if (sizeof (ac__type_new_))
24221
rm -f conftest.$ac_objext
24222
if { (ac_try="$ac_compile"
24223
case "(($ac_try" in
24224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225
*) ac_try_echo=$ac_try;;
24227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228
(eval "$ac_compile") 2>conftest.er1
24230
grep -v '^ *+' conftest.er1 >conftest.err
24232
cat conftest.err >&5
24233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234
(exit $ac_status); } &&
24235
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24236
{ (case "(($ac_try" in
24237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24238
*) ac_try_echo=$ac_try;;
24240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24241
(eval "$ac_try") 2>&5
24243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244
(exit $ac_status); }; } &&
24245
{ ac_try='test -s conftest.$ac_objext'
24246
{ (case "(($ac_try" in
24247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248
*) ac_try_echo=$ac_try;;
24250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251
(eval "$ac_try") 2>&5
24253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254
(exit $ac_status); }; }; then
24255
ac_cv_type_size_t=yes
24257
echo "$as_me: failed program was:" >&5
24258
sed 's/^/| /' conftest.$ac_ext >&5
24260
ac_cv_type_size_t=no
24263
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24265
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24266
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24267
if test $ac_cv_type_size_t = yes; then
24271
cat >>confdefs.h <<_ACEOF
24272
@%:@define size_t unsigned int
24277
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24278
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24279
if test "${ac_cv_header_time+set}" = set; then
24280
echo $ECHO_N "(cached) $ECHO_C" >&6
24282
cat >conftest.$ac_ext <<_ACEOF
24285
cat confdefs.h >>conftest.$ac_ext
24286
cat >>conftest.$ac_ext <<_ACEOF
24287
/* end confdefs.h. */
24288
#include <sys/types.h>
24289
#include <sys/time.h>
24295
if ((struct tm *) 0)
24301
rm -f conftest.$ac_objext
24302
if { (ac_try="$ac_compile"
24303
case "(($ac_try" in
24304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305
*) ac_try_echo=$ac_try;;
24307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308
(eval "$ac_compile") 2>conftest.er1
24310
grep -v '^ *+' conftest.er1 >conftest.err
24312
cat conftest.err >&5
24313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314
(exit $ac_status); } &&
24315
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24316
{ (case "(($ac_try" in
24317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318
*) ac_try_echo=$ac_try;;
24320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321
(eval "$ac_try") 2>&5
24323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324
(exit $ac_status); }; } &&
24325
{ ac_try='test -s conftest.$ac_objext'
24326
{ (case "(($ac_try" in
24327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328
*) ac_try_echo=$ac_try;;
24330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331
(eval "$ac_try") 2>&5
24333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334
(exit $ac_status); }; }; then
24335
ac_cv_header_time=yes
24337
echo "$as_me: failed program was:" >&5
24338
sed 's/^/| /' conftest.$ac_ext >&5
24340
ac_cv_header_time=no
24343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24345
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24346
echo "${ECHO_T}$ac_cv_header_time" >&6; }
24347
if test $ac_cv_header_time = yes; then
24349
cat >>confdefs.h <<\_ACEOF
24350
@%:@define TIME_WITH_SYS_TIME 1
24355
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24356
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24357
if test "${ac_cv_struct_tm+set}" = set; then
24358
echo $ECHO_N "(cached) $ECHO_C" >&6
24360
cat >conftest.$ac_ext <<_ACEOF
24363
cat confdefs.h >>conftest.$ac_ext
24364
cat >>conftest.$ac_ext <<_ACEOF
24365
/* end confdefs.h. */
24366
#include <sys/types.h>
24372
struct tm *tp; tp->tm_sec;
24377
rm -f conftest.$ac_objext
24378
if { (ac_try="$ac_compile"
24379
case "(($ac_try" in
24380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381
*) ac_try_echo=$ac_try;;
24383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384
(eval "$ac_compile") 2>conftest.er1
24386
grep -v '^ *+' conftest.er1 >conftest.err
24388
cat conftest.err >&5
24389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390
(exit $ac_status); } &&
24391
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24392
{ (case "(($ac_try" in
24393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394
*) ac_try_echo=$ac_try;;
24396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397
(eval "$ac_try") 2>&5
24399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400
(exit $ac_status); }; } &&
24401
{ ac_try='test -s conftest.$ac_objext'
24402
{ (case "(($ac_try" in
24403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404
*) ac_try_echo=$ac_try;;
24406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407
(eval "$ac_try") 2>&5
24409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410
(exit $ac_status); }; }; then
24411
ac_cv_struct_tm=time.h
24413
echo "$as_me: failed program was:" >&5
24414
sed 's/^/| /' conftest.$ac_ext >&5
24416
ac_cv_struct_tm=sys/time.h
24419
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24421
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24422
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24423
if test $ac_cv_struct_tm = sys/time.h; then
24425
cat >>confdefs.h <<\_ACEOF
24426
@%:@define TM_IN_SYS_TIME 1
24432
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24433
# for constant arguments. Useless!
24434
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
24435
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24436
if test "${ac_cv_working_alloca_h+set}" = set; then
24437
echo $ECHO_N "(cached) $ECHO_C" >&6
24439
cat >conftest.$ac_ext <<_ACEOF
24442
cat confdefs.h >>conftest.$ac_ext
24443
cat >>conftest.$ac_ext <<_ACEOF
24444
/* end confdefs.h. */
24445
@%:@include <alloca.h>
24449
char *p = (char *) alloca (2 * sizeof (int));
24454
rm -f conftest.$ac_objext conftest$ac_exeext
24455
if { (ac_try="$ac_link"
24456
case "(($ac_try" in
24457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458
*) ac_try_echo=$ac_try;;
24460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461
(eval "$ac_link") 2>conftest.er1
24463
grep -v '^ *+' conftest.er1 >conftest.err
24465
cat conftest.err >&5
24466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467
(exit $ac_status); } &&
24468
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24469
{ (case "(($ac_try" in
24470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471
*) ac_try_echo=$ac_try;;
24473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474
(eval "$ac_try") 2>&5
24476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477
(exit $ac_status); }; } &&
24478
{ ac_try='test -s conftest$ac_exeext'
24479
{ (case "(($ac_try" in
24480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481
*) ac_try_echo=$ac_try;;
24483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484
(eval "$ac_try") 2>&5
24486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487
(exit $ac_status); }; }; then
24488
ac_cv_working_alloca_h=yes
24490
echo "$as_me: failed program was:" >&5
24491
sed 's/^/| /' conftest.$ac_ext >&5
24493
ac_cv_working_alloca_h=no
24496
rm -f conftest.err conftest.$ac_objext \
24497
conftest$ac_exeext conftest.$ac_ext
24499
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24500
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24501
if test $ac_cv_working_alloca_h = yes; then
24503
cat >>confdefs.h <<\_ACEOF
24504
@%:@define HAVE_ALLOCA_H 1
24509
{ echo "$as_me:$LINENO: checking for alloca" >&5
24510
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24511
if test "${ac_cv_func_alloca_works+set}" = set; then
24512
echo $ECHO_N "(cached) $ECHO_C" >&6
24514
cat >conftest.$ac_ext <<_ACEOF
24517
cat confdefs.h >>conftest.$ac_ext
24518
cat >>conftest.$ac_ext <<_ACEOF
24519
/* end confdefs.h. */
24521
# define alloca __builtin_alloca
24524
# include <malloc.h>
24525
# define alloca _alloca
24528
# include <alloca.h>
24533
# ifndef alloca /* predefined by HP cc +Olibcalls */
24544
char *p = (char *) alloca (1);
24549
rm -f conftest.$ac_objext conftest$ac_exeext
24550
if { (ac_try="$ac_link"
24551
case "(($ac_try" in
24552
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553
*) ac_try_echo=$ac_try;;
24555
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556
(eval "$ac_link") 2>conftest.er1
24558
grep -v '^ *+' conftest.er1 >conftest.err
24560
cat conftest.err >&5
24561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562
(exit $ac_status); } &&
24563
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24564
{ (case "(($ac_try" in
24565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566
*) ac_try_echo=$ac_try;;
24568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569
(eval "$ac_try") 2>&5
24571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572
(exit $ac_status); }; } &&
24573
{ ac_try='test -s conftest$ac_exeext'
24574
{ (case "(($ac_try" in
24575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576
*) ac_try_echo=$ac_try;;
24578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579
(eval "$ac_try") 2>&5
24581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582
(exit $ac_status); }; }; then
24583
ac_cv_func_alloca_works=yes
24585
echo "$as_me: failed program was:" >&5
24586
sed 's/^/| /' conftest.$ac_ext >&5
24588
ac_cv_func_alloca_works=no
24591
rm -f conftest.err conftest.$ac_objext \
24592
conftest$ac_exeext conftest.$ac_ext
24594
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24595
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24597
if test $ac_cv_func_alloca_works = yes; then
24599
cat >>confdefs.h <<\_ACEOF
24600
@%:@define HAVE_ALLOCA 1
24604
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
24605
# that cause trouble. Some versions do not even contain alloca or
24606
# contain a buggy version. If you still want to use their alloca,
24607
# use ar to extract alloca.o from them instead of compiling alloca.c.
24609
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24611
cat >>confdefs.h <<\_ACEOF
24612
@%:@define C_ALLOCA 1
24616
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24617
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24618
if test "${ac_cv_os_cray+set}" = set; then
24619
echo $ECHO_N "(cached) $ECHO_C" >&6
24621
cat >conftest.$ac_ext <<_ACEOF
24624
cat confdefs.h >>conftest.$ac_ext
24625
cat >>conftest.$ac_ext <<_ACEOF
24626
/* end confdefs.h. */
24627
#if defined CRAY && ! defined CRAY2
24634
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24635
$EGREP "webecray" >/dev/null 2>&1; then
24643
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24644
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24645
if test $ac_cv_os_cray = yes; then
24646
for ac_func in _getb67 GETB67 getb67; do
24647
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24648
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24649
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24650
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24651
echo $ECHO_N "(cached) $ECHO_C" >&6
24653
cat >conftest.$ac_ext <<_ACEOF
24656
cat confdefs.h >>conftest.$ac_ext
24657
cat >>conftest.$ac_ext <<_ACEOF
24658
/* end confdefs.h. */
24659
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24660
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24661
#define $ac_func innocuous_$ac_func
24663
/* System header to define __stub macros and hopefully few prototypes,
24664
which can conflict with char $ac_func (); below.
24665
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24666
<limits.h> exists even on freestanding compilers. */
24669
# include <limits.h>
24671
# include <assert.h>
24676
/* Override any GCC internal prototype to avoid an error.
24677
Use char because int might match the return type of a GCC
24678
builtin and then its argument prototype would still apply. */
24683
/* The GNU C library defines this for functions which it implements
24684
to always fail with ENOSYS. Some functions are actually named
24685
something starting with __ and the normal name is an alias. */
24686
#if defined __stub_$ac_func || defined __stub___$ac_func
24693
return $ac_func ();
24698
rm -f conftest.$ac_objext conftest$ac_exeext
24699
if { (ac_try="$ac_link"
24700
case "(($ac_try" in
24701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702
*) ac_try_echo=$ac_try;;
24704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705
(eval "$ac_link") 2>conftest.er1
24707
grep -v '^ *+' conftest.er1 >conftest.err
24709
cat conftest.err >&5
24710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711
(exit $ac_status); } &&
24712
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24713
{ (case "(($ac_try" in
24714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715
*) ac_try_echo=$ac_try;;
24717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718
(eval "$ac_try") 2>&5
24720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721
(exit $ac_status); }; } &&
24722
{ ac_try='test -s conftest$ac_exeext'
24723
{ (case "(($ac_try" in
24724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725
*) ac_try_echo=$ac_try;;
24727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24728
(eval "$ac_try") 2>&5
24730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731
(exit $ac_status); }; }; then
24732
eval "$as_ac_var=yes"
24734
echo "$as_me: failed program was:" >&5
24735
sed 's/^/| /' conftest.$ac_ext >&5
24737
eval "$as_ac_var=no"
24740
rm -f conftest.err conftest.$ac_objext \
24741
conftest$ac_exeext conftest.$ac_ext
24743
ac_res=`eval echo '${'$as_ac_var'}'`
24744
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24745
echo "${ECHO_T}$ac_res" >&6; }
24746
if test `eval echo '${'$as_ac_var'}'` = yes; then
24748
cat >>confdefs.h <<_ACEOF
24749
@%:@define CRAY_STACKSEG_END $ac_func
24758
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24759
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24760
if test "${ac_cv_c_stack_direction+set}" = set; then
24761
echo $ECHO_N "(cached) $ECHO_C" >&6
24763
if test "$cross_compiling" = yes; then
24764
ac_cv_c_stack_direction=0
24766
cat >conftest.$ac_ext <<_ACEOF
24769
cat confdefs.h >>conftest.$ac_ext
24770
cat >>conftest.$ac_ext <<_ACEOF
24771
/* end confdefs.h. */
24772
$ac_includes_default
24774
find_stack_direction ()
24776
static char *addr = 0;
24781
return find_stack_direction ();
24784
return (&dummy > addr) ? 1 : -1;
24790
return find_stack_direction () < 0;
24793
rm -f conftest$ac_exeext
24794
if { (ac_try="$ac_link"
24795
case "(($ac_try" in
24796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797
*) ac_try_echo=$ac_try;;
24799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800
(eval "$ac_link") 2>&5
24802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24804
{ (case "(($ac_try" in
24805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806
*) ac_try_echo=$ac_try;;
24808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809
(eval "$ac_try") 2>&5
24811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812
(exit $ac_status); }; }; then
24813
ac_cv_c_stack_direction=1
24815
echo "$as_me: program exited with status $ac_status" >&5
24816
echo "$as_me: failed program was:" >&5
24817
sed 's/^/| /' conftest.$ac_ext >&5
24819
( exit $ac_status )
24820
ac_cv_c_stack_direction=-1
24822
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24827
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24828
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24830
cat >>confdefs.h <<_ACEOF
24831
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
24842
ac_header_dirent=no
24843
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24844
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24845
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24846
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24847
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24848
echo $ECHO_N "(cached) $ECHO_C" >&6
24850
cat >conftest.$ac_ext <<_ACEOF
24853
cat confdefs.h >>conftest.$ac_ext
24854
cat >>conftest.$ac_ext <<_ACEOF
24855
/* end confdefs.h. */
24856
#include <sys/types.h>
24868
rm -f conftest.$ac_objext
24869
if { (ac_try="$ac_compile"
24870
case "(($ac_try" in
24871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872
*) ac_try_echo=$ac_try;;
24874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875
(eval "$ac_compile") 2>conftest.er1
24877
grep -v '^ *+' conftest.er1 >conftest.err
24879
cat conftest.err >&5
24880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881
(exit $ac_status); } &&
24882
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24883
{ (case "(($ac_try" in
24884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885
*) ac_try_echo=$ac_try;;
24887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888
(eval "$ac_try") 2>&5
24890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891
(exit $ac_status); }; } &&
24892
{ ac_try='test -s conftest.$ac_objext'
24893
{ (case "(($ac_try" in
24894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895
*) ac_try_echo=$ac_try;;
24897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898
(eval "$ac_try") 2>&5
24900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901
(exit $ac_status); }; }; then
24902
eval "$as_ac_Header=yes"
24904
echo "$as_me: failed program was:" >&5
24905
sed 's/^/| /' conftest.$ac_ext >&5
24907
eval "$as_ac_Header=no"
24910
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24912
ac_res=`eval echo '${'$as_ac_Header'}'`
24913
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24914
echo "${ECHO_T}$ac_res" >&6; }
24915
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24916
cat >>confdefs.h <<_ACEOF
24917
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24920
ac_header_dirent=$ac_hdr; break
24924
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24925
if test $ac_header_dirent = dirent.h; then
24926
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
24927
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24928
if test "${ac_cv_search_opendir+set}" = set; then
24929
echo $ECHO_N "(cached) $ECHO_C" >&6
24931
ac_func_search_save_LIBS=$LIBS
24932
cat >conftest.$ac_ext <<_ACEOF
24935
cat confdefs.h >>conftest.$ac_ext
24936
cat >>conftest.$ac_ext <<_ACEOF
24937
/* end confdefs.h. */
24939
/* Override any GCC internal prototype to avoid an error.
24940
Use char because int might match the return type of a GCC
24941
builtin and then its argument prototype would still apply. */
24954
for ac_lib in '' dir; do
24955
if test -z "$ac_lib"; then
24956
ac_res="none required"
24959
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24961
rm -f conftest.$ac_objext conftest$ac_exeext
24962
if { (ac_try="$ac_link"
24963
case "(($ac_try" in
24964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965
*) ac_try_echo=$ac_try;;
24967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968
(eval "$ac_link") 2>conftest.er1
24970
grep -v '^ *+' conftest.er1 >conftest.err
24972
cat conftest.err >&5
24973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974
(exit $ac_status); } &&
24975
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24976
{ (case "(($ac_try" in
24977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978
*) ac_try_echo=$ac_try;;
24980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981
(eval "$ac_try") 2>&5
24983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984
(exit $ac_status); }; } &&
24985
{ ac_try='test -s conftest$ac_exeext'
24986
{ (case "(($ac_try" in
24987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988
*) ac_try_echo=$ac_try;;
24990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991
(eval "$ac_try") 2>&5
24993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994
(exit $ac_status); }; }; then
24995
ac_cv_search_opendir=$ac_res
24997
echo "$as_me: failed program was:" >&5
24998
sed 's/^/| /' conftest.$ac_ext >&5
25003
rm -f conftest.err conftest.$ac_objext \
25005
if test "${ac_cv_search_opendir+set}" = set; then
25009
if test "${ac_cv_search_opendir+set}" = set; then
25012
ac_cv_search_opendir=no
25014
rm conftest.$ac_ext
25015
LIBS=$ac_func_search_save_LIBS
25017
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25018
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25019
ac_res=$ac_cv_search_opendir
25020
if test "$ac_res" != no; then
25021
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25026
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
25027
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25028
if test "${ac_cv_search_opendir+set}" = set; then
25029
echo $ECHO_N "(cached) $ECHO_C" >&6
25031
ac_func_search_save_LIBS=$LIBS
25032
cat >conftest.$ac_ext <<_ACEOF
25035
cat confdefs.h >>conftest.$ac_ext
25036
cat >>conftest.$ac_ext <<_ACEOF
25037
/* end confdefs.h. */
25039
/* Override any GCC internal prototype to avoid an error.
25040
Use char because int might match the return type of a GCC
25041
builtin and then its argument prototype would still apply. */
25054
for ac_lib in '' x; do
25055
if test -z "$ac_lib"; then
25056
ac_res="none required"
25059
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25061
rm -f conftest.$ac_objext conftest$ac_exeext
25062
if { (ac_try="$ac_link"
25063
case "(($ac_try" in
25064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065
*) ac_try_echo=$ac_try;;
25067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068
(eval "$ac_link") 2>conftest.er1
25070
grep -v '^ *+' conftest.er1 >conftest.err
25072
cat conftest.err >&5
25073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074
(exit $ac_status); } &&
25075
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25076
{ (case "(($ac_try" in
25077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078
*) ac_try_echo=$ac_try;;
25080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081
(eval "$ac_try") 2>&5
25083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084
(exit $ac_status); }; } &&
25085
{ ac_try='test -s conftest$ac_exeext'
25086
{ (case "(($ac_try" in
25087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088
*) ac_try_echo=$ac_try;;
25090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091
(eval "$ac_try") 2>&5
25093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094
(exit $ac_status); }; }; then
25095
ac_cv_search_opendir=$ac_res
25097
echo "$as_me: failed program was:" >&5
25098
sed 's/^/| /' conftest.$ac_ext >&5
25103
rm -f conftest.err conftest.$ac_objext \
25105
if test "${ac_cv_search_opendir+set}" = set; then
25109
if test "${ac_cv_search_opendir+set}" = set; then
25112
ac_cv_search_opendir=no
25114
rm conftest.$ac_ext
25115
LIBS=$ac_func_search_save_LIBS
25117
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25118
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25119
ac_res=$ac_cv_search_opendir
25120
if test "$ac_res" != no; then
25121
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25127
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25128
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25129
if test "${ac_cv_func_closedir_void+set}" = set; then
25130
echo $ECHO_N "(cached) $ECHO_C" >&6
25132
if test "$cross_compiling" = yes; then
25133
ac_cv_func_closedir_void=yes
25135
cat >conftest.$ac_ext <<_ACEOF
25138
cat confdefs.h >>conftest.$ac_ext
25139
cat >>conftest.$ac_ext <<_ACEOF
25140
/* end confdefs.h. */
25141
$ac_includes_default
25142
#include <$ac_header_dirent>
25143
#ifndef __cplusplus
25150
return closedir (opendir (".")) != 0;
25155
rm -f conftest$ac_exeext
25156
if { (ac_try="$ac_link"
25157
case "(($ac_try" in
25158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159
*) ac_try_echo=$ac_try;;
25161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162
(eval "$ac_link") 2>&5
25164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25166
{ (case "(($ac_try" in
25167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168
*) ac_try_echo=$ac_try;;
25170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171
(eval "$ac_try") 2>&5
25173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174
(exit $ac_status); }; }; then
25175
ac_cv_func_closedir_void=no
25177
echo "$as_me: program exited with status $ac_status" >&5
25178
echo "$as_me: failed program was:" >&5
25179
sed 's/^/| /' conftest.$ac_ext >&5
25181
( exit $ac_status )
25182
ac_cv_func_closedir_void=yes
25184
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25189
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25190
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25191
if test $ac_cv_func_closedir_void = yes; then
25193
cat >>confdefs.h <<\_ACEOF
25194
@%:@define CLOSEDIR_VOID 1
25199
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
25200
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25201
if test "${ac_cv_lib_error_at_line+set}" = set; then
25202
echo $ECHO_N "(cached) $ECHO_C" >&6
25204
cat >conftest.$ac_ext <<_ACEOF
25207
cat confdefs.h >>conftest.$ac_ext
25208
cat >>conftest.$ac_ext <<_ACEOF
25209
/* end confdefs.h. */
25210
$ac_includes_default
25214
error_at_line (0, 0, "", 0, "");
25219
rm -f conftest.$ac_objext conftest$ac_exeext
25220
if { (ac_try="$ac_link"
25221
case "(($ac_try" in
25222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223
*) ac_try_echo=$ac_try;;
25225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226
(eval "$ac_link") 2>conftest.er1
25228
grep -v '^ *+' conftest.er1 >conftest.err
25230
cat conftest.err >&5
25231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232
(exit $ac_status); } &&
25233
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25234
{ (case "(($ac_try" in
25235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236
*) ac_try_echo=$ac_try;;
25238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239
(eval "$ac_try") 2>&5
25241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242
(exit $ac_status); }; } &&
25243
{ ac_try='test -s conftest$ac_exeext'
25244
{ (case "(($ac_try" in
25245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246
*) ac_try_echo=$ac_try;;
25248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249
(eval "$ac_try") 2>&5
25251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252
(exit $ac_status); }; }; then
25253
ac_cv_lib_error_at_line=yes
25255
echo "$as_me: failed program was:" >&5
25256
sed 's/^/| /' conftest.$ac_ext >&5
25258
ac_cv_lib_error_at_line=no
25261
rm -f conftest.err conftest.$ac_objext \
25262
conftest$ac_exeext conftest.$ac_ext
25264
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25265
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25266
if test $ac_cv_lib_error_at_line = no; then
25267
case " $LIB@&t@OBJS " in
25268
*" error.$ac_objext "* ) ;;
25269
*) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25276
for ac_header in vfork.h
25278
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25279
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25280
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25283
echo $ECHO_N "(cached) $ECHO_C" >&6
25285
ac_res=`eval echo '${'$as_ac_Header'}'`
25286
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25287
echo "${ECHO_T}$ac_res" >&6; }
25289
# Is the header compilable?
25290
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25291
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25292
cat >conftest.$ac_ext <<_ACEOF
25295
cat confdefs.h >>conftest.$ac_ext
25296
cat >>conftest.$ac_ext <<_ACEOF
25297
/* end confdefs.h. */
25298
$ac_includes_default
25299
@%:@include <$ac_header>
25301
rm -f conftest.$ac_objext
25302
if { (ac_try="$ac_compile"
25303
case "(($ac_try" in
25304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305
*) ac_try_echo=$ac_try;;
25307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308
(eval "$ac_compile") 2>conftest.er1
25310
grep -v '^ *+' conftest.er1 >conftest.err
25312
cat conftest.err >&5
25313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314
(exit $ac_status); } &&
25315
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25316
{ (case "(($ac_try" in
25317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318
*) ac_try_echo=$ac_try;;
25320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321
(eval "$ac_try") 2>&5
25323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324
(exit $ac_status); }; } &&
25325
{ ac_try='test -s conftest.$ac_objext'
25326
{ (case "(($ac_try" in
25327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328
*) ac_try_echo=$ac_try;;
25330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331
(eval "$ac_try") 2>&5
25333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334
(exit $ac_status); }; }; then
25335
ac_header_compiler=yes
25337
echo "$as_me: failed program was:" >&5
25338
sed 's/^/| /' conftest.$ac_ext >&5
25340
ac_header_compiler=no
25343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25344
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345
echo "${ECHO_T}$ac_header_compiler" >&6; }
25347
# Is the header present?
25348
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25349
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25350
cat >conftest.$ac_ext <<_ACEOF
25353
cat confdefs.h >>conftest.$ac_ext
25354
cat >>conftest.$ac_ext <<_ACEOF
25355
/* end confdefs.h. */
25356
@%:@include <$ac_header>
25358
if { (ac_try="$ac_cpp conftest.$ac_ext"
25359
case "(($ac_try" in
25360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361
*) ac_try_echo=$ac_try;;
25363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25366
grep -v '^ *+' conftest.er1 >conftest.err
25368
cat conftest.err >&5
25369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370
(exit $ac_status); } >/dev/null; then
25371
if test -s conftest.err; then
25372
ac_cpp_err=$ac_c_preproc_warn_flag
25373
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25380
if test -z "$ac_cpp_err"; then
25381
ac_header_preproc=yes
25383
echo "$as_me: failed program was:" >&5
25384
sed 's/^/| /' conftest.$ac_ext >&5
25386
ac_header_preproc=no
25389
rm -f conftest.err conftest.$ac_ext
25390
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25391
echo "${ECHO_T}$ac_header_preproc" >&6; }
25393
# So? What about this header?
25394
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25396
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25397
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25398
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25399
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25400
ac_header_preproc=yes
25403
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25404
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25405
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25406
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25407
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25408
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25409
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25410
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25411
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25412
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25413
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25414
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25416
@%:@@%:@ ------------------------------- @%:@@%:@
25417
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25418
@%:@@%:@ ------------------------------- @%:@@%:@
25420
) | sed "s/^/$as_me: WARNING: /" >&2
25423
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25424
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25425
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25426
echo $ECHO_N "(cached) $ECHO_C" >&6
25428
eval "$as_ac_Header=\$ac_header_preproc"
25430
ac_res=`eval echo '${'$as_ac_Header'}'`
25431
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25432
echo "${ECHO_T}$ac_res" >&6; }
25435
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25436
cat >>confdefs.h <<_ACEOF
25437
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25446
for ac_func in fork vfork
25448
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25449
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25450
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25451
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25452
echo $ECHO_N "(cached) $ECHO_C" >&6
25454
cat >conftest.$ac_ext <<_ACEOF
25457
cat confdefs.h >>conftest.$ac_ext
25458
cat >>conftest.$ac_ext <<_ACEOF
25459
/* end confdefs.h. */
25460
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25461
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25462
#define $ac_func innocuous_$ac_func
25464
/* System header to define __stub macros and hopefully few prototypes,
25465
which can conflict with char $ac_func (); below.
25466
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25467
<limits.h> exists even on freestanding compilers. */
25470
# include <limits.h>
25472
# include <assert.h>
25477
/* Override any GCC internal prototype to avoid an error.
25478
Use char because int might match the return type of a GCC
25479
builtin and then its argument prototype would still apply. */
25484
/* The GNU C library defines this for functions which it implements
25485
to always fail with ENOSYS. Some functions are actually named
25486
something starting with __ and the normal name is an alias. */
25487
#if defined __stub_$ac_func || defined __stub___$ac_func
25494
return $ac_func ();
25499
rm -f conftest.$ac_objext conftest$ac_exeext
25500
if { (ac_try="$ac_link"
25501
case "(($ac_try" in
25502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503
*) ac_try_echo=$ac_try;;
25505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506
(eval "$ac_link") 2>conftest.er1
25508
grep -v '^ *+' conftest.er1 >conftest.err
25510
cat conftest.err >&5
25511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512
(exit $ac_status); } &&
25513
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25514
{ (case "(($ac_try" in
25515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516
*) ac_try_echo=$ac_try;;
25518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519
(eval "$ac_try") 2>&5
25521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522
(exit $ac_status); }; } &&
25523
{ ac_try='test -s conftest$ac_exeext'
25524
{ (case "(($ac_try" in
25525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526
*) ac_try_echo=$ac_try;;
25528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529
(eval "$ac_try") 2>&5
25531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532
(exit $ac_status); }; }; then
25533
eval "$as_ac_var=yes"
25535
echo "$as_me: failed program was:" >&5
25536
sed 's/^/| /' conftest.$ac_ext >&5
25538
eval "$as_ac_var=no"
25541
rm -f conftest.err conftest.$ac_objext \
25542
conftest$ac_exeext conftest.$ac_ext
25544
ac_res=`eval echo '${'$as_ac_var'}'`
25545
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25546
echo "${ECHO_T}$ac_res" >&6; }
25547
if test `eval echo '${'$as_ac_var'}'` = yes; then
25548
cat >>confdefs.h <<_ACEOF
25549
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25555
if test "x$ac_cv_func_fork" = xyes; then
25556
{ echo "$as_me:$LINENO: checking for working fork" >&5
25557
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25558
if test "${ac_cv_func_fork_works+set}" = set; then
25559
echo $ECHO_N "(cached) $ECHO_C" >&6
25561
if test "$cross_compiling" = yes; then
25562
ac_cv_func_fork_works=cross
25564
cat >conftest.$ac_ext <<_ACEOF
25567
cat confdefs.h >>conftest.$ac_ext
25568
cat >>conftest.$ac_ext <<_ACEOF
25569
/* end confdefs.h. */
25570
$ac_includes_default
25575
/* By Ruediger Kuhlmann. */
25576
return fork () < 0;
25582
rm -f conftest$ac_exeext
25583
if { (ac_try="$ac_link"
25584
case "(($ac_try" in
25585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586
*) ac_try_echo=$ac_try;;
25588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589
(eval "$ac_link") 2>&5
25591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593
{ (case "(($ac_try" in
25594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595
*) ac_try_echo=$ac_try;;
25597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598
(eval "$ac_try") 2>&5
25600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601
(exit $ac_status); }; }; then
25602
ac_cv_func_fork_works=yes
25604
echo "$as_me: program exited with status $ac_status" >&5
25605
echo "$as_me: failed program was:" >&5
25606
sed 's/^/| /' conftest.$ac_ext >&5
25608
( exit $ac_status )
25609
ac_cv_func_fork_works=no
25611
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25616
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25617
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25620
ac_cv_func_fork_works=$ac_cv_func_fork
25622
if test "x$ac_cv_func_fork_works" = xcross; then
25624
*-*-amigaos* | *-*-msdosdjgpp*)
25625
# Override, as these systems have only a dummy fork() stub
25626
ac_cv_func_fork_works=no
25629
ac_cv_func_fork_works=yes
25632
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25633
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25635
ac_cv_func_vfork_works=$ac_cv_func_vfork
25636
if test "x$ac_cv_func_vfork" = xyes; then
25637
{ echo "$as_me:$LINENO: checking for working vfork" >&5
25638
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25639
if test "${ac_cv_func_vfork_works+set}" = set; then
25640
echo $ECHO_N "(cached) $ECHO_C" >&6
25642
if test "$cross_compiling" = yes; then
25643
ac_cv_func_vfork_works=cross
25645
cat >conftest.$ac_ext <<_ACEOF
25648
cat confdefs.h >>conftest.$ac_ext
25649
cat >>conftest.$ac_ext <<_ACEOF
25650
/* end confdefs.h. */
25651
/* Thanks to Paul Eggert for this test. */
25652
$ac_includes_default
25653
#include <sys/wait.h>
25655
# include <vfork.h>
25657
/* On some sparc systems, changes by the child to local and incoming
25658
argument registers are propagated back to the parent. The compiler
25659
is told about this with #include <vfork.h>, but some compilers
25660
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25661
static variable whose address is put into a register that is
25662
clobbered by the vfork. */
25665
sparc_address_test (int arg)
25667
sparc_address_test (arg) int arg;
25670
static pid_t child;
25688
pid_t parent = getpid ();
25691
sparc_address_test (0);
25696
/* Here is another test for sparc vfork register problems. This
25697
test uses lots of local variables, at least as many local
25698
variables as main has allocated so far including compiler
25699
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25700
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25701
reuse the register of parent for one of the local variables,
25702
since it will think that parent can't possibly be used any more
25703
in this routine. Assigning to the local variable will thus
25704
munge parent in the parent process. */
25706
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25707
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25708
/* Convince the compiler that p..p7 are live; otherwise, it might
25709
use the same hardware register for all 8 local variables. */
25710
if (p != p1 || p != p2 || p != p3 || p != p4
25711
|| p != p5 || p != p6 || p != p7)
25714
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25715
from child file descriptors. If the child closes a descriptor
25716
before it execs or exits, this munges the parent's descriptor
25717
as well. Test for this by closing stdout in the child. */
25718
_exit(close(fileno(stdout)) != 0);
25723
while (wait(&status) != child)
25726
/* Was there some problem with vforking? */
25729
/* Did the child fail? (This shouldn't happen.) */
25732
/* Did the vfork/compiler bug occur? */
25733
|| parent != getpid()
25735
/* Did the file descriptor bug occur? */
25736
|| fstat(fileno(stdout), &st) != 0
25741
rm -f conftest$ac_exeext
25742
if { (ac_try="$ac_link"
25743
case "(($ac_try" in
25744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745
*) ac_try_echo=$ac_try;;
25747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748
(eval "$ac_link") 2>&5
25750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25752
{ (case "(($ac_try" in
25753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754
*) ac_try_echo=$ac_try;;
25756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757
(eval "$ac_try") 2>&5
25759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760
(exit $ac_status); }; }; then
25761
ac_cv_func_vfork_works=yes
25763
echo "$as_me: program exited with status $ac_status" >&5
25764
echo "$as_me: failed program was:" >&5
25765
sed 's/^/| /' conftest.$ac_ext >&5
25767
( exit $ac_status )
25768
ac_cv_func_vfork_works=no
25770
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25775
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25776
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25779
if test "x$ac_cv_func_fork_works" = xcross; then
25780
ac_cv_func_vfork_works=$ac_cv_func_vfork
25781
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25782
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25785
if test "x$ac_cv_func_vfork_works" = xyes; then
25787
cat >>confdefs.h <<\_ACEOF
25788
@%:@define HAVE_WORKING_VFORK 1
25793
cat >>confdefs.h <<\_ACEOF
25794
@%:@define vfork fork
25798
if test "x$ac_cv_func_fork_works" = xyes; then
25800
cat >>confdefs.h <<\_ACEOF
25801
@%:@define HAVE_WORKING_FORK 1
25806
{ echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25807
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25808
if test "${ac_cv_type_getgroups+set}" = set; then
25809
echo $ECHO_N "(cached) $ECHO_C" >&6
25811
if test "$cross_compiling" = yes; then
25812
ac_cv_type_getgroups=cross
25814
cat >conftest.$ac_ext <<_ACEOF
25817
cat confdefs.h >>conftest.$ac_ext
25818
cat >>conftest.$ac_ext <<_ACEOF
25819
/* end confdefs.h. */
25820
/* Thanks to Mike Rendell for this test. */
25821
$ac_includes_default
25824
#define MAX(x, y) ((x) > (y) ? (x) : (y))
25829
gid_t gidset[NGID];
25831
union { gid_t gval; long int lval; } val;
25834
for (i = 0; i < NGID; i++)
25835
gidset[i] = val.gval;
25836
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25838
/* Exit non-zero if getgroups seems to require an array of ints. This
25839
happens when gid_t is short int but getgroups modifies an array
25841
return n > 0 && gidset[n] != val.gval;
25844
rm -f conftest$ac_exeext
25845
if { (ac_try="$ac_link"
25846
case "(($ac_try" in
25847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848
*) ac_try_echo=$ac_try;;
25850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851
(eval "$ac_link") 2>&5
25853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25855
{ (case "(($ac_try" in
25856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857
*) ac_try_echo=$ac_try;;
25859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860
(eval "$ac_try") 2>&5
25862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863
(exit $ac_status); }; }; then
25864
ac_cv_type_getgroups=gid_t
25866
echo "$as_me: program exited with status $ac_status" >&5
25867
echo "$as_me: failed program was:" >&5
25868
sed 's/^/| /' conftest.$ac_ext >&5
25870
( exit $ac_status )
25871
ac_cv_type_getgroups=int
25873
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25877
if test $ac_cv_type_getgroups = cross; then
25878
cat >conftest.$ac_ext <<_ACEOF
25881
cat confdefs.h >>conftest.$ac_ext
25882
cat >>conftest.$ac_ext <<_ACEOF
25883
/* end confdefs.h. */
25884
#include <unistd.h>
25887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25888
$EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25889
ac_cv_type_getgroups=gid_t
25891
ac_cv_type_getgroups=int
25897
{ echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25898
echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25900
cat >>confdefs.h <<_ACEOF
25901
@%:@define GETGROUPS_T $ac_cv_type_getgroups
25905
{ echo "$as_me:$LINENO: checking for getgroups" >&5
25906
echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25907
if test "${ac_cv_func_getgroups+set}" = set; then
25908
echo $ECHO_N "(cached) $ECHO_C" >&6
25910
cat >conftest.$ac_ext <<_ACEOF
25913
cat confdefs.h >>conftest.$ac_ext
25914
cat >>conftest.$ac_ext <<_ACEOF
25915
/* end confdefs.h. */
25916
/* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25917
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25918
#define getgroups innocuous_getgroups
25920
/* System header to define __stub macros and hopefully few prototypes,
25921
which can conflict with char getgroups (); below.
25922
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923
<limits.h> exists even on freestanding compilers. */
25926
# include <limits.h>
25928
# include <assert.h>
25933
/* Override any GCC internal prototype to avoid an error.
25934
Use char because int might match the return type of a GCC
25935
builtin and then its argument prototype would still apply. */
25940
/* The GNU C library defines this for functions which it implements
25941
to always fail with ENOSYS. Some functions are actually named
25942
something starting with __ and the normal name is an alias. */
25943
#if defined __stub_getgroups || defined __stub___getgroups
25950
return getgroups ();
25955
rm -f conftest.$ac_objext conftest$ac_exeext
25956
if { (ac_try="$ac_link"
25957
case "(($ac_try" in
25958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959
*) ac_try_echo=$ac_try;;
25961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962
(eval "$ac_link") 2>conftest.er1
25964
grep -v '^ *+' conftest.er1 >conftest.err
25966
cat conftest.err >&5
25967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968
(exit $ac_status); } &&
25969
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25970
{ (case "(($ac_try" in
25971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972
*) ac_try_echo=$ac_try;;
25974
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975
(eval "$ac_try") 2>&5
25977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978
(exit $ac_status); }; } &&
25979
{ ac_try='test -s conftest$ac_exeext'
25980
{ (case "(($ac_try" in
25981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982
*) ac_try_echo=$ac_try;;
25984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985
(eval "$ac_try") 2>&5
25987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988
(exit $ac_status); }; }; then
25989
ac_cv_func_getgroups=yes
25991
echo "$as_me: failed program was:" >&5
25992
sed 's/^/| /' conftest.$ac_ext >&5
25994
ac_cv_func_getgroups=no
25997
rm -f conftest.err conftest.$ac_objext \
25998
conftest$ac_exeext conftest.$ac_ext
26000
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26001
echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26004
# If we don't yet have getgroups, see if it's in -lbsd.
26005
# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26007
if test $ac_cv_func_getgroups = no; then
26008
{ echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26009
echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26010
if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26011
echo $ECHO_N "(cached) $ECHO_C" >&6
26013
ac_check_lib_save_LIBS=$LIBS
26015
cat >conftest.$ac_ext <<_ACEOF
26018
cat confdefs.h >>conftest.$ac_ext
26019
cat >>conftest.$ac_ext <<_ACEOF
26020
/* end confdefs.h. */
26022
/* Override any GCC internal prototype to avoid an error.
26023
Use char because int might match the return type of a GCC
26024
builtin and then its argument prototype would still apply. */
26032
return getgroups ();
26037
rm -f conftest.$ac_objext conftest$ac_exeext
26038
if { (ac_try="$ac_link"
26039
case "(($ac_try" in
26040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041
*) ac_try_echo=$ac_try;;
26043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26044
(eval "$ac_link") 2>conftest.er1
26046
grep -v '^ *+' conftest.er1 >conftest.err
26048
cat conftest.err >&5
26049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050
(exit $ac_status); } &&
26051
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26052
{ (case "(($ac_try" in
26053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054
*) ac_try_echo=$ac_try;;
26056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057
(eval "$ac_try") 2>&5
26059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060
(exit $ac_status); }; } &&
26061
{ ac_try='test -s conftest$ac_exeext'
26062
{ (case "(($ac_try" in
26063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064
*) ac_try_echo=$ac_try;;
26066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067
(eval "$ac_try") 2>&5
26069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070
(exit $ac_status); }; }; then
26071
ac_cv_lib_bsd_getgroups=yes
26073
echo "$as_me: failed program was:" >&5
26074
sed 's/^/| /' conftest.$ac_ext >&5
26076
ac_cv_lib_bsd_getgroups=no
26079
rm -f conftest.err conftest.$ac_objext \
26080
conftest$ac_exeext conftest.$ac_ext
26081
LIBS=$ac_check_lib_save_LIBS
26083
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26084
echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26085
if test $ac_cv_lib_bsd_getgroups = yes; then
26086
GETGROUPS_LIB=-lbsd
26091
# Run the program to test the functionality of the system-supplied
26092
# getgroups function only if there is such a function.
26093
if test $ac_cv_func_getgroups = yes; then
26094
{ echo "$as_me:$LINENO: checking for working getgroups" >&5
26095
echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26096
if test "${ac_cv_func_getgroups_works+set}" = set; then
26097
echo $ECHO_N "(cached) $ECHO_C" >&6
26099
if test "$cross_compiling" = yes; then
26100
ac_cv_func_getgroups_works=no
26102
cat >conftest.$ac_ext <<_ACEOF
26105
cat confdefs.h >>conftest.$ac_ext
26106
cat >>conftest.$ac_ext <<_ACEOF
26107
/* end confdefs.h. */
26108
$ac_includes_default
26112
/* On Ultrix 4.3, getgroups (0, 0) always fails. */
26113
return getgroups (0, 0) == -1;
26118
rm -f conftest$ac_exeext
26119
if { (ac_try="$ac_link"
26120
case "(($ac_try" in
26121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122
*) ac_try_echo=$ac_try;;
26124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125
(eval "$ac_link") 2>&5
26127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26129
{ (case "(($ac_try" in
26130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131
*) ac_try_echo=$ac_try;;
26133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134
(eval "$ac_try") 2>&5
26136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137
(exit $ac_status); }; }; then
26138
ac_cv_func_getgroups_works=yes
26140
echo "$as_me: program exited with status $ac_status" >&5
26141
echo "$as_me: failed program was:" >&5
26142
sed 's/^/| /' conftest.$ac_ext >&5
26144
( exit $ac_status )
26145
ac_cv_func_getgroups_works=no
26147
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26153
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26154
echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26155
if test $ac_cv_func_getgroups_works = yes; then
26157
cat >>confdefs.h <<\_ACEOF
26158
@%:@define HAVE_GETGROUPS 1
26165
# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26166
# -lseq on Dynix/PTX, -lgen on Unixware.
26167
{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26168
echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26169
if test "${ac_cv_search_getmntent+set}" = set; then
26170
echo $ECHO_N "(cached) $ECHO_C" >&6
26172
ac_func_search_save_LIBS=$LIBS
26173
cat >conftest.$ac_ext <<_ACEOF
26176
cat confdefs.h >>conftest.$ac_ext
26177
cat >>conftest.$ac_ext <<_ACEOF
26178
/* end confdefs.h. */
26180
/* Override any GCC internal prototype to avoid an error.
26181
Use char because int might match the return type of a GCC
26182
builtin and then its argument prototype would still apply. */
26190
return getmntent ();
26195
for ac_lib in '' sun seq gen; do
26196
if test -z "$ac_lib"; then
26197
ac_res="none required"
26200
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26202
rm -f conftest.$ac_objext conftest$ac_exeext
26203
if { (ac_try="$ac_link"
26204
case "(($ac_try" in
26205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206
*) ac_try_echo=$ac_try;;
26208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209
(eval "$ac_link") 2>conftest.er1
26211
grep -v '^ *+' conftest.er1 >conftest.err
26213
cat conftest.err >&5
26214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215
(exit $ac_status); } &&
26216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26217
{ (case "(($ac_try" in
26218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219
*) ac_try_echo=$ac_try;;
26221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222
(eval "$ac_try") 2>&5
26224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225
(exit $ac_status); }; } &&
26226
{ ac_try='test -s conftest$ac_exeext'
26227
{ (case "(($ac_try" in
26228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229
*) ac_try_echo=$ac_try;;
26231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232
(eval "$ac_try") 2>&5
26234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235
(exit $ac_status); }; }; then
26236
ac_cv_search_getmntent=$ac_res
26238
echo "$as_me: failed program was:" >&5
26239
sed 's/^/| /' conftest.$ac_ext >&5
26244
rm -f conftest.err conftest.$ac_objext \
26246
if test "${ac_cv_search_getmntent+set}" = set; then
26250
if test "${ac_cv_search_getmntent+set}" = set; then
26253
ac_cv_search_getmntent=no
26255
rm conftest.$ac_ext
26256
LIBS=$ac_func_search_save_LIBS
26258
{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26259
echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26260
ac_res=$ac_cv_search_getmntent
26261
if test "$ac_res" != no; then
26262
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26267
for ac_func in getmntent
26269
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26271
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26272
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26273
echo $ECHO_N "(cached) $ECHO_C" >&6
26275
cat >conftest.$ac_ext <<_ACEOF
26278
cat confdefs.h >>conftest.$ac_ext
26279
cat >>conftest.$ac_ext <<_ACEOF
26280
/* end confdefs.h. */
26281
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26283
#define $ac_func innocuous_$ac_func
26285
/* System header to define __stub macros and hopefully few prototypes,
26286
which can conflict with char $ac_func (); below.
26287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288
<limits.h> exists even on freestanding compilers. */
26291
# include <limits.h>
26293
# include <assert.h>
26298
/* Override any GCC internal prototype to avoid an error.
26299
Use char because int might match the return type of a GCC
26300
builtin and then its argument prototype would still apply. */
26305
/* The GNU C library defines this for functions which it implements
26306
to always fail with ENOSYS. Some functions are actually named
26307
something starting with __ and the normal name is an alias. */
26308
#if defined __stub_$ac_func || defined __stub___$ac_func
26315
return $ac_func ();
26320
rm -f conftest.$ac_objext conftest$ac_exeext
26321
if { (ac_try="$ac_link"
26322
case "(($ac_try" in
26323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324
*) ac_try_echo=$ac_try;;
26326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327
(eval "$ac_link") 2>conftest.er1
26329
grep -v '^ *+' conftest.er1 >conftest.err
26331
cat conftest.err >&5
26332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333
(exit $ac_status); } &&
26334
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26335
{ (case "(($ac_try" in
26336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337
*) ac_try_echo=$ac_try;;
26339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340
(eval "$ac_try") 2>&5
26342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343
(exit $ac_status); }; } &&
26344
{ ac_try='test -s conftest$ac_exeext'
26345
{ (case "(($ac_try" in
26346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347
*) ac_try_echo=$ac_try;;
26349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350
(eval "$ac_try") 2>&5
26352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353
(exit $ac_status); }; }; then
26354
eval "$as_ac_var=yes"
26356
echo "$as_me: failed program was:" >&5
26357
sed 's/^/| /' conftest.$ac_ext >&5
26359
eval "$as_ac_var=no"
26362
rm -f conftest.err conftest.$ac_objext \
26363
conftest$ac_exeext conftest.$ac_ext
26365
ac_res=`eval echo '${'$as_ac_var'}'`
26366
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26367
echo "${ECHO_T}$ac_res" >&6; }
26368
if test `eval echo '${'$as_ac_var'}'` = yes; then
26369
cat >>confdefs.h <<_ACEOF
26370
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26377
if test $ac_cv_c_compiler_gnu = yes; then
26378
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26379
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26380
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26381
echo $ECHO_N "(cached) $ECHO_C" >&6
26383
ac_pattern="Autoconf.*'x'"
26384
cat >conftest.$ac_ext <<_ACEOF
26387
cat confdefs.h >>conftest.$ac_ext
26388
cat >>conftest.$ac_ext <<_ACEOF
26389
/* end confdefs.h. */
26393
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26394
$EGREP "$ac_pattern" >/dev/null 2>&1; then
26395
ac_cv_prog_gcc_traditional=yes
26397
ac_cv_prog_gcc_traditional=no
26402
if test $ac_cv_prog_gcc_traditional = no; then
26403
cat >conftest.$ac_ext <<_ACEOF
26406
cat confdefs.h >>conftest.$ac_ext
26407
cat >>conftest.$ac_ext <<_ACEOF
26408
/* end confdefs.h. */
26409
#include <termio.h>
26412
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26413
$EGREP "$ac_pattern" >/dev/null 2>&1; then
26414
ac_cv_prog_gcc_traditional=yes
26420
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26421
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26422
if test $ac_cv_prog_gcc_traditional = yes; then
26423
CC="$CC -traditional"
26427
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26428
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26429
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26430
echo $ECHO_N "(cached) $ECHO_C" >&6
26432
rm -f conftest.sym conftest.file
26433
echo >conftest.file
26434
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26435
if test "$cross_compiling" = yes; then
26436
ac_cv_func_lstat_dereferences_slashed_symlink=no
26438
cat >conftest.$ac_ext <<_ACEOF
26441
cat confdefs.h >>conftest.$ac_ext
26442
cat >>conftest.$ac_ext <<_ACEOF
26443
/* end confdefs.h. */
26444
$ac_includes_default
26449
/* Linux will dereference the symlink and fail.
26450
That is better in the sense that it means we will not
26451
have to compile and use the lstat wrapper. */
26452
return lstat ("conftest.sym/", &sbuf) == 0;
26457
rm -f conftest$ac_exeext
26458
if { (ac_try="$ac_link"
26459
case "(($ac_try" in
26460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461
*) ac_try_echo=$ac_try;;
26463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464
(eval "$ac_link") 2>&5
26466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26468
{ (case "(($ac_try" in
26469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470
*) ac_try_echo=$ac_try;;
26472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473
(eval "$ac_try") 2>&5
26475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476
(exit $ac_status); }; }; then
26477
ac_cv_func_lstat_dereferences_slashed_symlink=yes
26479
echo "$as_me: program exited with status $ac_status" >&5
26480
echo "$as_me: failed program was:" >&5
26481
sed 's/^/| /' conftest.$ac_ext >&5
26483
( exit $ac_status )
26484
ac_cv_func_lstat_dereferences_slashed_symlink=no
26486
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26491
# If the `ln -s' command failed, then we probably don't even
26492
# have an lstat function.
26493
ac_cv_func_lstat_dereferences_slashed_symlink=no
26495
rm -f conftest.sym conftest.file
26498
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26499
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26501
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26503
cat >>confdefs.h <<_ACEOF
26504
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26508
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26509
case " $LIB@&t@OBJS " in
26510
*" lstat.$ac_objext "* ) ;;
26511
*) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26517
{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26518
echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26519
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26520
echo $ECHO_N "(cached) $ECHO_C" >&6
26522
if test "$cross_compiling" = yes; then
26523
ac_cv_func_lstat_empty_string_bug=yes
26525
cat >conftest.$ac_ext <<_ACEOF
26528
cat confdefs.h >>conftest.$ac_ext
26529
cat >>conftest.$ac_ext <<_ACEOF
26530
/* end confdefs.h. */
26531
$ac_includes_default
26536
return lstat ("", &sbuf) == 0;
26541
rm -f conftest$ac_exeext
26542
if { (ac_try="$ac_link"
26543
case "(($ac_try" in
26544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545
*) ac_try_echo=$ac_try;;
26547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548
(eval "$ac_link") 2>&5
26550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26552
{ (case "(($ac_try" in
26553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554
*) ac_try_echo=$ac_try;;
26556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557
(eval "$ac_try") 2>&5
26559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560
(exit $ac_status); }; }; then
26561
ac_cv_func_lstat_empty_string_bug=no
26563
echo "$as_me: program exited with status $ac_status" >&5
26564
echo "$as_me: failed program was:" >&5
26565
sed 's/^/| /' conftest.$ac_ext >&5
26567
( exit $ac_status )
26568
ac_cv_func_lstat_empty_string_bug=yes
26570
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26575
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26576
echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26577
if test $ac_cv_func_lstat_empty_string_bug = yes; then
26578
case " $LIB@&t@OBJS " in
26579
*" lstat.$ac_objext "* ) ;;
26580
*) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26585
cat >>confdefs.h <<_ACEOF
26586
@%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26591
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26592
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26593
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26594
echo $ECHO_N "(cached) $ECHO_C" >&6
26596
rm -f conftest.sym conftest.file
26597
echo >conftest.file
26598
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26599
if test "$cross_compiling" = yes; then
26600
ac_cv_func_lstat_dereferences_slashed_symlink=no
26602
cat >conftest.$ac_ext <<_ACEOF
26605
cat confdefs.h >>conftest.$ac_ext
26606
cat >>conftest.$ac_ext <<_ACEOF
26607
/* end confdefs.h. */
26608
$ac_includes_default
26613
/* Linux will dereference the symlink and fail.
26614
That is better in the sense that it means we will not
26615
have to compile and use the lstat wrapper. */
26616
return lstat ("conftest.sym/", &sbuf) == 0;
26621
rm -f conftest$ac_exeext
26622
if { (ac_try="$ac_link"
26623
case "(($ac_try" in
26624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26625
*) ac_try_echo=$ac_try;;
26627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26628
(eval "$ac_link") 2>&5
26630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26632
{ (case "(($ac_try" in
26633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634
*) ac_try_echo=$ac_try;;
26636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637
(eval "$ac_try") 2>&5
26639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640
(exit $ac_status); }; }; then
26641
ac_cv_func_lstat_dereferences_slashed_symlink=yes
26643
echo "$as_me: program exited with status $ac_status" >&5
26644
echo "$as_me: failed program was:" >&5
26645
sed 's/^/| /' conftest.$ac_ext >&5
26647
( exit $ac_status )
26648
ac_cv_func_lstat_dereferences_slashed_symlink=no
26650
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26655
# If the `ln -s' command failed, then we probably don't even
26656
# have an lstat function.
26657
ac_cv_func_lstat_dereferences_slashed_symlink=no
26659
rm -f conftest.sym conftest.file
26662
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26663
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26665
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26667
cat >>confdefs.h <<_ACEOF
26668
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26672
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26673
case " $LIB@&t@OBJS " in
26674
*" lstat.$ac_objext "* ) ;;
26675
*) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26681
{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26682
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26683
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26684
echo $ECHO_N "(cached) $ECHO_C" >&6
26686
cat >conftest.$ac_ext <<_ACEOF
26689
cat confdefs.h >>conftest.$ac_ext
26690
cat >>conftest.$ac_ext <<_ACEOF
26691
/* end confdefs.h. */
26692
@%:@include <sys/types.h>
26696
return makedev(0, 0);
26701
rm -f conftest.$ac_objext conftest$ac_exeext
26702
if { (ac_try="$ac_link"
26703
case "(($ac_try" in
26704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705
*) ac_try_echo=$ac_try;;
26707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708
(eval "$ac_link") 2>conftest.er1
26710
grep -v '^ *+' conftest.er1 >conftest.err
26712
cat conftest.err >&5
26713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714
(exit $ac_status); } &&
26715
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26716
{ (case "(($ac_try" in
26717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718
*) ac_try_echo=$ac_try;;
26720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721
(eval "$ac_try") 2>&5
26723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724
(exit $ac_status); }; } &&
26725
{ ac_try='test -s conftest$ac_exeext'
26726
{ (case "(($ac_try" in
26727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728
*) ac_try_echo=$ac_try;;
26730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731
(eval "$ac_try") 2>&5
26733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734
(exit $ac_status); }; }; then
26735
ac_cv_header_sys_types_h_makedev=yes
26737
echo "$as_me: failed program was:" >&5
26738
sed 's/^/| /' conftest.$ac_ext >&5
26740
ac_cv_header_sys_types_h_makedev=no
26743
rm -f conftest.err conftest.$ac_objext \
26744
conftest$ac_exeext conftest.$ac_ext
26747
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26748
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26750
if test $ac_cv_header_sys_types_h_makedev = no; then
26751
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26752
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26753
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26754
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26755
echo $ECHO_N "(cached) $ECHO_C" >&6
26757
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26758
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26760
# Is the header compilable?
26761
{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26762
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26763
cat >conftest.$ac_ext <<_ACEOF
26766
cat confdefs.h >>conftest.$ac_ext
26767
cat >>conftest.$ac_ext <<_ACEOF
26768
/* end confdefs.h. */
26769
$ac_includes_default
26770
@%:@include <sys/mkdev.h>
26772
rm -f conftest.$ac_objext
26773
if { (ac_try="$ac_compile"
26774
case "(($ac_try" in
26775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776
*) ac_try_echo=$ac_try;;
26778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779
(eval "$ac_compile") 2>conftest.er1
26781
grep -v '^ *+' conftest.er1 >conftest.err
26783
cat conftest.err >&5
26784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785
(exit $ac_status); } &&
26786
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26787
{ (case "(($ac_try" in
26788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789
*) ac_try_echo=$ac_try;;
26791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792
(eval "$ac_try") 2>&5
26794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795
(exit $ac_status); }; } &&
26796
{ ac_try='test -s conftest.$ac_objext'
26797
{ (case "(($ac_try" in
26798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799
*) ac_try_echo=$ac_try;;
26801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802
(eval "$ac_try") 2>&5
26804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805
(exit $ac_status); }; }; then
26806
ac_header_compiler=yes
26808
echo "$as_me: failed program was:" >&5
26809
sed 's/^/| /' conftest.$ac_ext >&5
26811
ac_header_compiler=no
26814
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26815
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26816
echo "${ECHO_T}$ac_header_compiler" >&6; }
26818
# Is the header present?
26819
{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26820
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26821
cat >conftest.$ac_ext <<_ACEOF
26824
cat confdefs.h >>conftest.$ac_ext
26825
cat >>conftest.$ac_ext <<_ACEOF
26826
/* end confdefs.h. */
26827
@%:@include <sys/mkdev.h>
26829
if { (ac_try="$ac_cpp conftest.$ac_ext"
26830
case "(($ac_try" in
26831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832
*) ac_try_echo=$ac_try;;
26834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26837
grep -v '^ *+' conftest.er1 >conftest.err
26839
cat conftest.err >&5
26840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841
(exit $ac_status); } >/dev/null; then
26842
if test -s conftest.err; then
26843
ac_cpp_err=$ac_c_preproc_warn_flag
26844
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26851
if test -z "$ac_cpp_err"; then
26852
ac_header_preproc=yes
26854
echo "$as_me: failed program was:" >&5
26855
sed 's/^/| /' conftest.$ac_ext >&5
26857
ac_header_preproc=no
26860
rm -f conftest.err conftest.$ac_ext
26861
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26862
echo "${ECHO_T}$ac_header_preproc" >&6; }
26864
# So? What about this header?
26865
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26867
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26868
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26869
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26870
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26871
ac_header_preproc=yes
26874
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26875
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26876
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26877
echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26878
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26879
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26880
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26881
echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26882
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26883
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26884
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26885
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26887
@%:@@%:@ ------------------------------- @%:@@%:@
26888
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26889
@%:@@%:@ ------------------------------- @%:@@%:@
26891
) | sed "s/^/$as_me: WARNING: /" >&2
26894
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26895
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26896
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26897
echo $ECHO_N "(cached) $ECHO_C" >&6
26899
ac_cv_header_sys_mkdev_h=$ac_header_preproc
26901
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26902
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26905
if test $ac_cv_header_sys_mkdev_h = yes; then
26907
cat >>confdefs.h <<\_ACEOF
26908
@%:@define MAJOR_IN_MKDEV 1
26915
if test $ac_cv_header_sys_mkdev_h = no; then
26916
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26917
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26918
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26919
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26920
echo $ECHO_N "(cached) $ECHO_C" >&6
26922
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26923
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26925
# Is the header compilable?
26926
{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26927
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26928
cat >conftest.$ac_ext <<_ACEOF
26931
cat confdefs.h >>conftest.$ac_ext
26932
cat >>conftest.$ac_ext <<_ACEOF
26933
/* end confdefs.h. */
26934
$ac_includes_default
26935
@%:@include <sys/sysmacros.h>
26937
rm -f conftest.$ac_objext
26938
if { (ac_try="$ac_compile"
26939
case "(($ac_try" in
26940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941
*) ac_try_echo=$ac_try;;
26943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26944
(eval "$ac_compile") 2>conftest.er1
26946
grep -v '^ *+' conftest.er1 >conftest.err
26948
cat conftest.err >&5
26949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950
(exit $ac_status); } &&
26951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26952
{ (case "(($ac_try" in
26953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954
*) ac_try_echo=$ac_try;;
26956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957
(eval "$ac_try") 2>&5
26959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960
(exit $ac_status); }; } &&
26961
{ ac_try='test -s conftest.$ac_objext'
26962
{ (case "(($ac_try" in
26963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964
*) ac_try_echo=$ac_try;;
26966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26967
(eval "$ac_try") 2>&5
26969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970
(exit $ac_status); }; }; then
26971
ac_header_compiler=yes
26973
echo "$as_me: failed program was:" >&5
26974
sed 's/^/| /' conftest.$ac_ext >&5
26976
ac_header_compiler=no
26979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26980
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26981
echo "${ECHO_T}$ac_header_compiler" >&6; }
26983
# Is the header present?
26984
{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26985
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26986
cat >conftest.$ac_ext <<_ACEOF
26989
cat confdefs.h >>conftest.$ac_ext
26990
cat >>conftest.$ac_ext <<_ACEOF
26991
/* end confdefs.h. */
26992
@%:@include <sys/sysmacros.h>
26994
if { (ac_try="$ac_cpp conftest.$ac_ext"
26995
case "(($ac_try" in
26996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997
*) ac_try_echo=$ac_try;;
26999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27002
grep -v '^ *+' conftest.er1 >conftest.err
27004
cat conftest.err >&5
27005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006
(exit $ac_status); } >/dev/null; then
27007
if test -s conftest.err; then
27008
ac_cpp_err=$ac_c_preproc_warn_flag
27009
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27016
if test -z "$ac_cpp_err"; then
27017
ac_header_preproc=yes
27019
echo "$as_me: failed program was:" >&5
27020
sed 's/^/| /' conftest.$ac_ext >&5
27022
ac_header_preproc=no
27025
rm -f conftest.err conftest.$ac_ext
27026
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27027
echo "${ECHO_T}$ac_header_preproc" >&6; }
27029
# So? What about this header?
27030
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27032
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27033
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27034
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27035
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27036
ac_header_preproc=yes
27039
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27040
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27041
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27042
echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27043
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27044
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27045
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27046
echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27047
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27048
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27049
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27050
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27052
@%:@@%:@ ------------------------------- @%:@@%:@
27053
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27054
@%:@@%:@ ------------------------------- @%:@@%:@
27056
) | sed "s/^/$as_me: WARNING: /" >&2
27059
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27060
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27061
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27062
echo $ECHO_N "(cached) $ECHO_C" >&6
27064
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27066
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27067
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27070
if test $ac_cv_header_sys_sysmacros_h = yes; then
27072
cat >>confdefs.h <<\_ACEOF
27073
@%:@define MAJOR_IN_SYSMACROS 1
27083
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
27084
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27085
if test "${ac_cv_func_memcmp_working+set}" = set; then
27086
echo $ECHO_N "(cached) $ECHO_C" >&6
27088
if test "$cross_compiling" = yes; then
27089
ac_cv_func_memcmp_working=no
27091
cat >conftest.$ac_ext <<_ACEOF
27094
cat confdefs.h >>conftest.$ac_ext
27095
cat >>conftest.$ac_ext <<_ACEOF
27096
/* end confdefs.h. */
27097
$ac_includes_default
27102
/* Some versions of memcmp are not 8-bit clean. */
27103
char c0 = '\100', c1 = '\200', c2 = '\201';
27104
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27107
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27108
or more and with at least one buffer not starting on a 4-byte boundary.
27109
William Lewis provided this test program. */
27114
for (i = 0; i < 4; i++)
27118
strcpy (a, "--------01111111");
27119
strcpy (b, "--------10000000");
27120
if (memcmp (a, b, 16) >= 0)
27130
rm -f conftest$ac_exeext
27131
if { (ac_try="$ac_link"
27132
case "(($ac_try" in
27133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134
*) ac_try_echo=$ac_try;;
27136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137
(eval "$ac_link") 2>&5
27139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27141
{ (case "(($ac_try" in
27142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143
*) ac_try_echo=$ac_try;;
27145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146
(eval "$ac_try") 2>&5
27148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149
(exit $ac_status); }; }; then
27150
ac_cv_func_memcmp_working=yes
27152
echo "$as_me: program exited with status $ac_status" >&5
27153
echo "$as_me: failed program was:" >&5
27154
sed 's/^/| /' conftest.$ac_ext >&5
27156
( exit $ac_status )
27157
ac_cv_func_memcmp_working=no
27159
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27164
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27165
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27166
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27167
*" memcmp.$ac_objext "* ) ;;
27168
*) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27176
for ac_header in sys/select.h sys/socket.h
27178
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27180
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27181
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27182
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27183
echo $ECHO_N "(cached) $ECHO_C" >&6
27185
ac_res=`eval echo '${'$as_ac_Header'}'`
27186
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27187
echo "${ECHO_T}$ac_res" >&6; }
27189
# Is the header compilable?
27190
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27191
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27192
cat >conftest.$ac_ext <<_ACEOF
27195
cat confdefs.h >>conftest.$ac_ext
27196
cat >>conftest.$ac_ext <<_ACEOF
27197
/* end confdefs.h. */
27198
$ac_includes_default
27199
@%:@include <$ac_header>
27201
rm -f conftest.$ac_objext
27202
if { (ac_try="$ac_compile"
27203
case "(($ac_try" in
27204
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205
*) ac_try_echo=$ac_try;;
27207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208
(eval "$ac_compile") 2>conftest.er1
27210
grep -v '^ *+' conftest.er1 >conftest.err
27212
cat conftest.err >&5
27213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214
(exit $ac_status); } &&
27215
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27216
{ (case "(($ac_try" in
27217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218
*) ac_try_echo=$ac_try;;
27220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221
(eval "$ac_try") 2>&5
27223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224
(exit $ac_status); }; } &&
27225
{ ac_try='test -s conftest.$ac_objext'
27226
{ (case "(($ac_try" in
27227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228
*) ac_try_echo=$ac_try;;
27230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231
(eval "$ac_try") 2>&5
27233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234
(exit $ac_status); }; }; then
27235
ac_header_compiler=yes
27237
echo "$as_me: failed program was:" >&5
27238
sed 's/^/| /' conftest.$ac_ext >&5
27240
ac_header_compiler=no
27243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27244
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27245
echo "${ECHO_T}$ac_header_compiler" >&6; }
27247
# Is the header present?
27248
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27249
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27250
cat >conftest.$ac_ext <<_ACEOF
27253
cat confdefs.h >>conftest.$ac_ext
27254
cat >>conftest.$ac_ext <<_ACEOF
27255
/* end confdefs.h. */
27256
@%:@include <$ac_header>
27258
if { (ac_try="$ac_cpp conftest.$ac_ext"
27259
case "(($ac_try" in
27260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261
*) ac_try_echo=$ac_try;;
27263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27266
grep -v '^ *+' conftest.er1 >conftest.err
27268
cat conftest.err >&5
27269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270
(exit $ac_status); } >/dev/null; then
27271
if test -s conftest.err; then
27272
ac_cpp_err=$ac_c_preproc_warn_flag
27273
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27280
if test -z "$ac_cpp_err"; then
27281
ac_header_preproc=yes
27283
echo "$as_me: failed program was:" >&5
27284
sed 's/^/| /' conftest.$ac_ext >&5
27286
ac_header_preproc=no
27289
rm -f conftest.err conftest.$ac_ext
27290
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27291
echo "${ECHO_T}$ac_header_preproc" >&6; }
27293
# So? What about this header?
27294
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27296
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27297
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27298
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27299
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27300
ac_header_preproc=yes
27303
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27304
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27305
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27306
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27307
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27308
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27309
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27310
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27311
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27312
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27313
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27314
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27316
@%:@@%:@ ------------------------------- @%:@@%:@
27317
@%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27318
@%:@@%:@ ------------------------------- @%:@@%:@
27320
) | sed "s/^/$as_me: WARNING: /" >&2
27323
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27324
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27325
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27326
echo $ECHO_N "(cached) $ECHO_C" >&6
27328
eval "$as_ac_Header=\$ac_header_preproc"
27330
ac_res=`eval echo '${'$as_ac_Header'}'`
27331
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27332
echo "${ECHO_T}$ac_res" >&6; }
27335
if test `eval echo '${'$as_ac_Header'}'` = yes; then
27336
cat >>confdefs.h <<_ACEOF
27337
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27344
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
27345
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27346
if test "${ac_cv_func_select_args+set}" = set; then
27347
echo $ECHO_N "(cached) $ECHO_C" >&6
27349
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27350
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27351
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27352
cat >conftest.$ac_ext <<_ACEOF
27355
cat confdefs.h >>conftest.$ac_ext
27356
cat >>conftest.$ac_ext <<_ACEOF
27357
/* end confdefs.h. */
27358
$ac_includes_default
27359
#if HAVE_SYS_SELECT_H
27360
# include <sys/select.h>
27362
#if HAVE_SYS_SOCKET_H
27363
# include <sys/socket.h>
27369
extern int select ($ac_arg1,
27370
$ac_arg234, $ac_arg234, $ac_arg234,
27376
rm -f conftest.$ac_objext
27377
if { (ac_try="$ac_compile"
27378
case "(($ac_try" in
27379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380
*) ac_try_echo=$ac_try;;
27382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383
(eval "$ac_compile") 2>conftest.er1
27385
grep -v '^ *+' conftest.er1 >conftest.err
27387
cat conftest.err >&5
27388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389
(exit $ac_status); } &&
27390
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27391
{ (case "(($ac_try" in
27392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393
*) ac_try_echo=$ac_try;;
27395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396
(eval "$ac_try") 2>&5
27398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399
(exit $ac_status); }; } &&
27400
{ ac_try='test -s conftest.$ac_objext'
27401
{ (case "(($ac_try" in
27402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403
*) ac_try_echo=$ac_try;;
27405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406
(eval "$ac_try") 2>&5
27408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409
(exit $ac_status); }; }; then
27410
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27412
echo "$as_me: failed program was:" >&5
27413
sed 's/^/| /' conftest.$ac_ext >&5
27418
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27422
# Provide a safe default value.
27423
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
27426
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27427
echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27428
ac_save_IFS=$IFS; IFS=','
27429
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27433
cat >>confdefs.h <<_ACEOF
27434
@%:@define SELECT_TYPE_ARG1 $1
27438
cat >>confdefs.h <<_ACEOF
27439
@%:@define SELECT_TYPE_ARG234 ($2)
27443
cat >>confdefs.h <<_ACEOF
27444
@%:@define SELECT_TYPE_ARG5 ($3)
27449
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27450
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27451
if test "${ac_cv_type_signal+set}" = set; then
27452
echo $ECHO_N "(cached) $ECHO_C" >&6
27454
cat >conftest.$ac_ext <<_ACEOF
27457
cat confdefs.h >>conftest.$ac_ext
27458
cat >>conftest.$ac_ext <<_ACEOF
27459
/* end confdefs.h. */
27460
#include <sys/types.h>
27461
#include <signal.h>
27466
return *(signal (0, 0)) (0) == 1;
27471
rm -f conftest.$ac_objext
27472
if { (ac_try="$ac_compile"
27473
case "(($ac_try" in
27474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475
*) ac_try_echo=$ac_try;;
27477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478
(eval "$ac_compile") 2>conftest.er1
27480
grep -v '^ *+' conftest.er1 >conftest.err
27482
cat conftest.err >&5
27483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484
(exit $ac_status); } &&
27485
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486
{ (case "(($ac_try" in
27487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488
*) ac_try_echo=$ac_try;;
27490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491
(eval "$ac_try") 2>&5
27493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494
(exit $ac_status); }; } &&
27495
{ ac_try='test -s conftest.$ac_objext'
27496
{ (case "(($ac_try" in
27497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498
*) ac_try_echo=$ac_try;;
27500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501
(eval "$ac_try") 2>&5
27503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504
(exit $ac_status); }; }; then
27505
ac_cv_type_signal=int
27507
echo "$as_me: failed program was:" >&5
27508
sed 's/^/| /' conftest.$ac_ext >&5
27510
ac_cv_type_signal=void
27513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27515
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27516
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27518
cat >>confdefs.h <<_ACEOF
27519
@%:@define RETSIGTYPE $ac_cv_type_signal
27523
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27524
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27525
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27526
echo $ECHO_N "(cached) $ECHO_C" >&6
27528
if test "$cross_compiling" = yes; then
27529
ac_cv_func_stat_empty_string_bug=yes
27531
cat >conftest.$ac_ext <<_ACEOF
27534
cat confdefs.h >>conftest.$ac_ext
27535
cat >>conftest.$ac_ext <<_ACEOF
27536
/* end confdefs.h. */
27537
$ac_includes_default
27542
return stat ("", &sbuf) == 0;
27547
rm -f conftest$ac_exeext
27548
if { (ac_try="$ac_link"
27549
case "(($ac_try" in
27550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551
*) ac_try_echo=$ac_try;;
27553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554
(eval "$ac_link") 2>&5
27556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27558
{ (case "(($ac_try" in
27559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560
*) ac_try_echo=$ac_try;;
27562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563
(eval "$ac_try") 2>&5
27565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566
(exit $ac_status); }; }; then
27567
ac_cv_func_stat_empty_string_bug=no
27569
echo "$as_me: program exited with status $ac_status" >&5
27570
echo "$as_me: failed program was:" >&5
27571
sed 's/^/| /' conftest.$ac_ext >&5
27573
( exit $ac_status )
27574
ac_cv_func_stat_empty_string_bug=yes
27576
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27581
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27582
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27583
if test $ac_cv_func_stat_empty_string_bug = yes; then
27584
case " $LIB@&t@OBJS " in
27585
*" stat.$ac_objext "* ) ;;
27586
*) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27591
cat >>confdefs.h <<_ACEOF
27592
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27598
for ac_func in vprintf
27600
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27602
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27603
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27604
echo $ECHO_N "(cached) $ECHO_C" >&6
27606
cat >conftest.$ac_ext <<_ACEOF
27609
cat confdefs.h >>conftest.$ac_ext
27610
cat >>conftest.$ac_ext <<_ACEOF
27611
/* end confdefs.h. */
27612
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27614
#define $ac_func innocuous_$ac_func
27616
/* System header to define __stub macros and hopefully few prototypes,
27617
which can conflict with char $ac_func (); below.
27618
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619
<limits.h> exists even on freestanding compilers. */
27622
# include <limits.h>
27624
# include <assert.h>
27629
/* Override any GCC internal prototype to avoid an error.
27630
Use char because int might match the return type of a GCC
27631
builtin and then its argument prototype would still apply. */
27636
/* The GNU C library defines this for functions which it implements
27637
to always fail with ENOSYS. Some functions are actually named
27638
something starting with __ and the normal name is an alias. */
27639
#if defined __stub_$ac_func || defined __stub___$ac_func
27646
return $ac_func ();
27651
rm -f conftest.$ac_objext conftest$ac_exeext
27652
if { (ac_try="$ac_link"
27653
case "(($ac_try" in
27654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655
*) ac_try_echo=$ac_try;;
27657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658
(eval "$ac_link") 2>conftest.er1
27660
grep -v '^ *+' conftest.er1 >conftest.err
27662
cat conftest.err >&5
27663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664
(exit $ac_status); } &&
27665
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27666
{ (case "(($ac_try" in
27667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668
*) ac_try_echo=$ac_try;;
27670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671
(eval "$ac_try") 2>&5
27673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674
(exit $ac_status); }; } &&
27675
{ ac_try='test -s conftest$ac_exeext'
27676
{ (case "(($ac_try" in
27677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678
*) ac_try_echo=$ac_try;;
27680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681
(eval "$ac_try") 2>&5
27683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684
(exit $ac_status); }; }; then
27685
eval "$as_ac_var=yes"
27687
echo "$as_me: failed program was:" >&5
27688
sed 's/^/| /' conftest.$ac_ext >&5
27690
eval "$as_ac_var=no"
27693
rm -f conftest.err conftest.$ac_objext \
27694
conftest$ac_exeext conftest.$ac_ext
27696
ac_res=`eval echo '${'$as_ac_var'}'`
27697
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27698
echo "${ECHO_T}$ac_res" >&6; }
27699
if test `eval echo '${'$as_ac_var'}'` = yes; then
27700
cat >>confdefs.h <<_ACEOF
27701
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27704
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
27705
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27706
if test "${ac_cv_func__doprnt+set}" = set; then
27707
echo $ECHO_N "(cached) $ECHO_C" >&6
27709
cat >conftest.$ac_ext <<_ACEOF
27712
cat confdefs.h >>conftest.$ac_ext
27713
cat >>conftest.$ac_ext <<_ACEOF
27714
/* end confdefs.h. */
27715
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27716
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27717
#define _doprnt innocuous__doprnt
27719
/* System header to define __stub macros and hopefully few prototypes,
27720
which can conflict with char _doprnt (); below.
27721
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722
<limits.h> exists even on freestanding compilers. */
27725
# include <limits.h>
27727
# include <assert.h>
27732
/* Override any GCC internal prototype to avoid an error.
27733
Use char because int might match the return type of a GCC
27734
builtin and then its argument prototype would still apply. */
27739
/* The GNU C library defines this for functions which it implements
27740
to always fail with ENOSYS. Some functions are actually named
27741
something starting with __ and the normal name is an alias. */
27742
#if defined __stub__doprnt || defined __stub____doprnt
27754
rm -f conftest.$ac_objext conftest$ac_exeext
27755
if { (ac_try="$ac_link"
27756
case "(($ac_try" in
27757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758
*) ac_try_echo=$ac_try;;
27760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761
(eval "$ac_link") 2>conftest.er1
27763
grep -v '^ *+' conftest.er1 >conftest.err
27765
cat conftest.err >&5
27766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767
(exit $ac_status); } &&
27768
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769
{ (case "(($ac_try" in
27770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771
*) ac_try_echo=$ac_try;;
27773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774
(eval "$ac_try") 2>&5
27776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777
(exit $ac_status); }; } &&
27778
{ ac_try='test -s conftest$ac_exeext'
27779
{ (case "(($ac_try" in
27780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781
*) ac_try_echo=$ac_try;;
27783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784
(eval "$ac_try") 2>&5
27786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787
(exit $ac_status); }; }; then
27788
ac_cv_func__doprnt=yes
27790
echo "$as_me: failed program was:" >&5
27791
sed 's/^/| /' conftest.$ac_ext >&5
27793
ac_cv_func__doprnt=no
27796
rm -f conftest.err conftest.$ac_objext \
27797
conftest$ac_exeext conftest.$ac_ext
27799
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27800
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27801
if test $ac_cv_func__doprnt = yes; then
27803
cat >>confdefs.h <<\_ACEOF
27804
@%:@define HAVE_DOPRNT 1
27841
for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27842
gethostbyaddr gethostbyname gethostname getmntent \
27843
gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27844
realpath rmdir select socket strcasecmp strchr strdup \
27845
strerror strrchr strtol strtoul
27847
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27848
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27849
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27850
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27851
echo $ECHO_N "(cached) $ECHO_C" >&6
27853
cat >conftest.$ac_ext <<_ACEOF
27856
cat confdefs.h >>conftest.$ac_ext
27857
cat >>conftest.$ac_ext <<_ACEOF
27858
/* end confdefs.h. */
27859
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27860
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27861
#define $ac_func innocuous_$ac_func
27863
/* System header to define __stub macros and hopefully few prototypes,
27864
which can conflict with char $ac_func (); below.
27865
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27866
<limits.h> exists even on freestanding compilers. */
27869
# include <limits.h>
27871
# include <assert.h>
27876
/* Override any GCC internal prototype to avoid an error.
27877
Use char because int might match the return type of a GCC
27878
builtin and then its argument prototype would still apply. */
27883
/* The GNU C library defines this for functions which it implements
27884
to always fail with ENOSYS. Some functions are actually named
27885
something starting with __ and the normal name is an alias. */
27886
#if defined __stub_$ac_func || defined __stub___$ac_func
27893
return $ac_func ();
27898
rm -f conftest.$ac_objext conftest$ac_exeext
27899
if { (ac_try="$ac_link"
27900
case "(($ac_try" in
27901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902
*) ac_try_echo=$ac_try;;
27904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905
(eval "$ac_link") 2>conftest.er1
27907
grep -v '^ *+' conftest.er1 >conftest.err
27909
cat conftest.err >&5
27910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911
(exit $ac_status); } &&
27912
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913
{ (case "(($ac_try" in
27914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915
*) ac_try_echo=$ac_try;;
27917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918
(eval "$ac_try") 2>&5
27920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921
(exit $ac_status); }; } &&
27922
{ ac_try='test -s conftest$ac_exeext'
27923
{ (case "(($ac_try" in
27924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925
*) ac_try_echo=$ac_try;;
27927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928
(eval "$ac_try") 2>&5
27930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931
(exit $ac_status); }; }; then
27932
eval "$as_ac_var=yes"
27934
echo "$as_me: failed program was:" >&5
27935
sed 's/^/| /' conftest.$ac_ext >&5
27937
eval "$as_ac_var=no"
27940
rm -f conftest.err conftest.$ac_objext \
27941
conftest$ac_exeext conftest.$ac_ext
27943
ac_res=`eval echo '${'$as_ac_var'}'`
27944
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27945
echo "${ECHO_T}$ac_res" >&6; }
27946
if test `eval echo '${'$as_ac_var'}'` = yes; then
27947
cat >>confdefs.h <<_ACEOF
27948
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27956
{ echo "$as_me:$LINENO: checking for short" >&5
27957
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27958
if test "${ac_cv_type_short+set}" = set; then
27959
echo $ECHO_N "(cached) $ECHO_C" >&6
27961
cat >conftest.$ac_ext <<_ACEOF
27964
cat confdefs.h >>conftest.$ac_ext
27965
cat >>conftest.$ac_ext <<_ACEOF
27966
/* end confdefs.h. */
27967
$ac_includes_default
27968
typedef short ac__type_new_;
27972
if ((ac__type_new_ *) 0)
27974
if (sizeof (ac__type_new_))
27980
rm -f conftest.$ac_objext
27981
if { (ac_try="$ac_compile"
27982
case "(($ac_try" in
27983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984
*) ac_try_echo=$ac_try;;
27986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987
(eval "$ac_compile") 2>conftest.er1
27989
grep -v '^ *+' conftest.er1 >conftest.err
27991
cat conftest.err >&5
27992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993
(exit $ac_status); } &&
27994
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27995
{ (case "(($ac_try" in
27996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997
*) ac_try_echo=$ac_try;;
27999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000
(eval "$ac_try") 2>&5
28002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003
(exit $ac_status); }; } &&
28004
{ ac_try='test -s conftest.$ac_objext'
28005
{ (case "(($ac_try" in
28006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007
*) ac_try_echo=$ac_try;;
28009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010
(eval "$ac_try") 2>&5
28012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013
(exit $ac_status); }; }; then
28014
ac_cv_type_short=yes
28016
echo "$as_me: failed program was:" >&5
28017
sed 's/^/| /' conftest.$ac_ext >&5
28019
ac_cv_type_short=no
28022
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28024
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28025
echo "${ECHO_T}$ac_cv_type_short" >&6; }
28027
{ echo "$as_me:$LINENO: checking size of short" >&5
28028
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28029
if test "${ac_cv_sizeof_short+set}" = set; then
28030
echo $ECHO_N "(cached) $ECHO_C" >&6
28032
if test "$ac_cv_type_short" = yes; then
28033
# The cast to long int works around a bug in the HP C Compiler
28034
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28035
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28036
# This bug is HP SR number 8606223364.
28037
if test "$cross_compiling" = yes; then
28038
# Depending upon the size, compute the lo and hi bounds.
28039
cat >conftest.$ac_ext <<_ACEOF
28042
cat confdefs.h >>conftest.$ac_ext
28043
cat >>conftest.$ac_ext <<_ACEOF
28044
/* end confdefs.h. */
28045
$ac_includes_default
28046
typedef short ac__type_sizeof_;
28050
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28051
test_array @<:@0@:>@ = 0
28057
rm -f conftest.$ac_objext
28058
if { (ac_try="$ac_compile"
28059
case "(($ac_try" in
28060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061
*) ac_try_echo=$ac_try;;
28063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064
(eval "$ac_compile") 2>conftest.er1
28066
grep -v '^ *+' conftest.er1 >conftest.err
28068
cat conftest.err >&5
28069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070
(exit $ac_status); } &&
28071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28072
{ (case "(($ac_try" in
28073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074
*) ac_try_echo=$ac_try;;
28076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077
(eval "$ac_try") 2>&5
28079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080
(exit $ac_status); }; } &&
28081
{ ac_try='test -s conftest.$ac_objext'
28082
{ (case "(($ac_try" in
28083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084
*) ac_try_echo=$ac_try;;
28086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087
(eval "$ac_try") 2>&5
28089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090
(exit $ac_status); }; }; then
28093
cat >conftest.$ac_ext <<_ACEOF
28096
cat confdefs.h >>conftest.$ac_ext
28097
cat >>conftest.$ac_ext <<_ACEOF
28098
/* end confdefs.h. */
28099
$ac_includes_default
28100
typedef short ac__type_sizeof_;
28104
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28105
test_array @<:@0@:>@ = 0
28111
rm -f conftest.$ac_objext
28112
if { (ac_try="$ac_compile"
28113
case "(($ac_try" in
28114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28115
*) ac_try_echo=$ac_try;;
28117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118
(eval "$ac_compile") 2>conftest.er1
28120
grep -v '^ *+' conftest.er1 >conftest.err
28122
cat conftest.err >&5
28123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124
(exit $ac_status); } &&
28125
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28126
{ (case "(($ac_try" in
28127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128
*) ac_try_echo=$ac_try;;
28130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131
(eval "$ac_try") 2>&5
28133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134
(exit $ac_status); }; } &&
28135
{ ac_try='test -s conftest.$ac_objext'
28136
{ (case "(($ac_try" in
28137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138
*) ac_try_echo=$ac_try;;
28140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28141
(eval "$ac_try") 2>&5
28143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144
(exit $ac_status); }; }; then
28145
ac_hi=$ac_mid; break
28147
echo "$as_me: failed program was:" >&5
28148
sed 's/^/| /' conftest.$ac_ext >&5
28150
ac_lo=`expr $ac_mid + 1`
28151
if test $ac_lo -le $ac_mid; then
28155
ac_mid=`expr 2 '*' $ac_mid + 1`
28158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28161
echo "$as_me: failed program was:" >&5
28162
sed 's/^/| /' conftest.$ac_ext >&5
28164
cat >conftest.$ac_ext <<_ACEOF
28167
cat confdefs.h >>conftest.$ac_ext
28168
cat >>conftest.$ac_ext <<_ACEOF
28169
/* end confdefs.h. */
28170
$ac_includes_default
28171
typedef short ac__type_sizeof_;
28175
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28176
test_array @<:@0@:>@ = 0
28182
rm -f conftest.$ac_objext
28183
if { (ac_try="$ac_compile"
28184
case "(($ac_try" in
28185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186
*) ac_try_echo=$ac_try;;
28188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189
(eval "$ac_compile") 2>conftest.er1
28191
grep -v '^ *+' conftest.er1 >conftest.err
28193
cat conftest.err >&5
28194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195
(exit $ac_status); } &&
28196
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197
{ (case "(($ac_try" in
28198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199
*) ac_try_echo=$ac_try;;
28201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202
(eval "$ac_try") 2>&5
28204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205
(exit $ac_status); }; } &&
28206
{ ac_try='test -s conftest.$ac_objext'
28207
{ (case "(($ac_try" in
28208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209
*) ac_try_echo=$ac_try;;
28211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212
(eval "$ac_try") 2>&5
28214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215
(exit $ac_status); }; }; then
28218
cat >conftest.$ac_ext <<_ACEOF
28221
cat confdefs.h >>conftest.$ac_ext
28222
cat >>conftest.$ac_ext <<_ACEOF
28223
/* end confdefs.h. */
28224
$ac_includes_default
28225
typedef short ac__type_sizeof_;
28229
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28230
test_array @<:@0@:>@ = 0
28236
rm -f conftest.$ac_objext
28237
if { (ac_try="$ac_compile"
28238
case "(($ac_try" in
28239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240
*) ac_try_echo=$ac_try;;
28242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243
(eval "$ac_compile") 2>conftest.er1
28245
grep -v '^ *+' conftest.er1 >conftest.err
28247
cat conftest.err >&5
28248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249
(exit $ac_status); } &&
28250
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28251
{ (case "(($ac_try" in
28252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253
*) ac_try_echo=$ac_try;;
28255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256
(eval "$ac_try") 2>&5
28258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259
(exit $ac_status); }; } &&
28260
{ ac_try='test -s conftest.$ac_objext'
28261
{ (case "(($ac_try" in
28262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263
*) ac_try_echo=$ac_try;;
28265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266
(eval "$ac_try") 2>&5
28268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269
(exit $ac_status); }; }; then
28270
ac_lo=$ac_mid; break
28272
echo "$as_me: failed program was:" >&5
28273
sed 's/^/| /' conftest.$ac_ext >&5
28275
ac_hi=`expr '(' $ac_mid ')' - 1`
28276
if test $ac_mid -le $ac_hi; then
28280
ac_mid=`expr 2 '*' $ac_mid`
28283
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28286
echo "$as_me: failed program was:" >&5
28287
sed 's/^/| /' conftest.$ac_ext >&5
28292
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28296
# Binary search between lo and hi bounds.
28297
while test "x$ac_lo" != "x$ac_hi"; do
28298
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28299
cat >conftest.$ac_ext <<_ACEOF
28302
cat confdefs.h >>conftest.$ac_ext
28303
cat >>conftest.$ac_ext <<_ACEOF
28304
/* end confdefs.h. */
28305
$ac_includes_default
28306
typedef short ac__type_sizeof_;
28310
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28311
test_array @<:@0@:>@ = 0
28317
rm -f conftest.$ac_objext
28318
if { (ac_try="$ac_compile"
28319
case "(($ac_try" in
28320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321
*) ac_try_echo=$ac_try;;
28323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324
(eval "$ac_compile") 2>conftest.er1
28326
grep -v '^ *+' conftest.er1 >conftest.err
28328
cat conftest.err >&5
28329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330
(exit $ac_status); } &&
28331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28332
{ (case "(($ac_try" in
28333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334
*) ac_try_echo=$ac_try;;
28336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337
(eval "$ac_try") 2>&5
28339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340
(exit $ac_status); }; } &&
28341
{ ac_try='test -s conftest.$ac_objext'
28342
{ (case "(($ac_try" in
28343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344
*) ac_try_echo=$ac_try;;
28346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347
(eval "$ac_try") 2>&5
28349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350
(exit $ac_status); }; }; then
28353
echo "$as_me: failed program was:" >&5
28354
sed 's/^/| /' conftest.$ac_ext >&5
28356
ac_lo=`expr '(' $ac_mid ')' + 1`
28359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28362
?*) ac_cv_sizeof_short=$ac_lo;;
28363
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28364
See \`config.log' for more details." >&5
28365
echo "$as_me: error: cannot compute sizeof (short)
28366
See \`config.log' for more details." >&2;}
28367
{ (exit 77); exit 77; }; } ;;
28370
cat >conftest.$ac_ext <<_ACEOF
28373
cat confdefs.h >>conftest.$ac_ext
28374
cat >>conftest.$ac_ext <<_ACEOF
28375
/* end confdefs.h. */
28376
$ac_includes_default
28377
typedef short ac__type_sizeof_;
28378
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28379
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28380
@%:@include <stdio.h>
28381
@%:@include <stdlib.h>
28386
FILE *f = fopen ("conftest.val", "w");
28389
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28391
long int i = longval ();
28392
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28394
fprintf (f, "%ld\n", i);
28398
unsigned long int i = ulongval ();
28399
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28401
fprintf (f, "%lu\n", i);
28403
return ferror (f) || fclose (f) != 0;
28409
rm -f conftest$ac_exeext
28410
if { (ac_try="$ac_link"
28411
case "(($ac_try" in
28412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413
*) ac_try_echo=$ac_try;;
28415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416
(eval "$ac_link") 2>&5
28418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420
{ (case "(($ac_try" in
28421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422
*) ac_try_echo=$ac_try;;
28424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425
(eval "$ac_try") 2>&5
28427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428
(exit $ac_status); }; }; then
28429
ac_cv_sizeof_short=`cat conftest.val`
28431
echo "$as_me: program exited with status $ac_status" >&5
28432
echo "$as_me: failed program was:" >&5
28433
sed 's/^/| /' conftest.$ac_ext >&5
28435
( exit $ac_status )
28436
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28437
See \`config.log' for more details." >&5
28438
echo "$as_me: error: cannot compute sizeof (short)
28439
See \`config.log' for more details." >&2;}
28440
{ (exit 77); exit 77; }; }
28442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28446
ac_cv_sizeof_short=0
28449
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28450
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28451
cat >>confdefs.h <<_ACEOF
28452
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28456
{ echo "$as_me:$LINENO: checking for int" >&5
28457
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28458
if test "${ac_cv_type_int+set}" = set; then
28459
echo $ECHO_N "(cached) $ECHO_C" >&6
28461
cat >conftest.$ac_ext <<_ACEOF
28464
cat confdefs.h >>conftest.$ac_ext
28465
cat >>conftest.$ac_ext <<_ACEOF
28466
/* end confdefs.h. */
28467
$ac_includes_default
28468
typedef int ac__type_new_;
28472
if ((ac__type_new_ *) 0)
28474
if (sizeof (ac__type_new_))
28480
rm -f conftest.$ac_objext
28481
if { (ac_try="$ac_compile"
28482
case "(($ac_try" in
28483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28484
*) ac_try_echo=$ac_try;;
28486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28487
(eval "$ac_compile") 2>conftest.er1
28489
grep -v '^ *+' conftest.er1 >conftest.err
28491
cat conftest.err >&5
28492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493
(exit $ac_status); } &&
28494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28495
{ (case "(($ac_try" in
28496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497
*) ac_try_echo=$ac_try;;
28499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500
(eval "$ac_try") 2>&5
28502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503
(exit $ac_status); }; } &&
28504
{ ac_try='test -s conftest.$ac_objext'
28505
{ (case "(($ac_try" in
28506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28507
*) ac_try_echo=$ac_try;;
28509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28510
(eval "$ac_try") 2>&5
28512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513
(exit $ac_status); }; }; then
28516
echo "$as_me: failed program was:" >&5
28517
sed 's/^/| /' conftest.$ac_ext >&5
28522
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28524
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28525
echo "${ECHO_T}$ac_cv_type_int" >&6; }
28527
{ echo "$as_me:$LINENO: checking size of int" >&5
28528
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28529
if test "${ac_cv_sizeof_int+set}" = set; then
28530
echo $ECHO_N "(cached) $ECHO_C" >&6
28532
if test "$ac_cv_type_int" = yes; then
28533
# The cast to long int works around a bug in the HP C Compiler
28534
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28535
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28536
# This bug is HP SR number 8606223364.
28537
if test "$cross_compiling" = yes; then
28538
# Depending upon the size, compute the lo and hi bounds.
28539
cat >conftest.$ac_ext <<_ACEOF
28542
cat confdefs.h >>conftest.$ac_ext
28543
cat >>conftest.$ac_ext <<_ACEOF
28544
/* end confdefs.h. */
28545
$ac_includes_default
28546
typedef int ac__type_sizeof_;
28550
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28551
test_array @<:@0@:>@ = 0
28557
rm -f conftest.$ac_objext
28558
if { (ac_try="$ac_compile"
28559
case "(($ac_try" in
28560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561
*) ac_try_echo=$ac_try;;
28563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564
(eval "$ac_compile") 2>conftest.er1
28566
grep -v '^ *+' conftest.er1 >conftest.err
28568
cat conftest.err >&5
28569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570
(exit $ac_status); } &&
28571
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28572
{ (case "(($ac_try" in
28573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574
*) ac_try_echo=$ac_try;;
28576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577
(eval "$ac_try") 2>&5
28579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580
(exit $ac_status); }; } &&
28581
{ ac_try='test -s conftest.$ac_objext'
28582
{ (case "(($ac_try" in
28583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584
*) ac_try_echo=$ac_try;;
28586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587
(eval "$ac_try") 2>&5
28589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590
(exit $ac_status); }; }; then
28593
cat >conftest.$ac_ext <<_ACEOF
28596
cat confdefs.h >>conftest.$ac_ext
28597
cat >>conftest.$ac_ext <<_ACEOF
28598
/* end confdefs.h. */
28599
$ac_includes_default
28600
typedef int ac__type_sizeof_;
28604
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28605
test_array @<:@0@:>@ = 0
28611
rm -f conftest.$ac_objext
28612
if { (ac_try="$ac_compile"
28613
case "(($ac_try" in
28614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615
*) ac_try_echo=$ac_try;;
28617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618
(eval "$ac_compile") 2>conftest.er1
28620
grep -v '^ *+' conftest.er1 >conftest.err
28622
cat conftest.err >&5
28623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624
(exit $ac_status); } &&
28625
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28626
{ (case "(($ac_try" in
28627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628
*) ac_try_echo=$ac_try;;
28630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631
(eval "$ac_try") 2>&5
28633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634
(exit $ac_status); }; } &&
28635
{ ac_try='test -s conftest.$ac_objext'
28636
{ (case "(($ac_try" in
28637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638
*) ac_try_echo=$ac_try;;
28640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641
(eval "$ac_try") 2>&5
28643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644
(exit $ac_status); }; }; then
28645
ac_hi=$ac_mid; break
28647
echo "$as_me: failed program was:" >&5
28648
sed 's/^/| /' conftest.$ac_ext >&5
28650
ac_lo=`expr $ac_mid + 1`
28651
if test $ac_lo -le $ac_mid; then
28655
ac_mid=`expr 2 '*' $ac_mid + 1`
28658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28661
echo "$as_me: failed program was:" >&5
28662
sed 's/^/| /' conftest.$ac_ext >&5
28664
cat >conftest.$ac_ext <<_ACEOF
28667
cat confdefs.h >>conftest.$ac_ext
28668
cat >>conftest.$ac_ext <<_ACEOF
28669
/* end confdefs.h. */
28670
$ac_includes_default
28671
typedef int ac__type_sizeof_;
28675
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28676
test_array @<:@0@:>@ = 0
28682
rm -f conftest.$ac_objext
28683
if { (ac_try="$ac_compile"
28684
case "(($ac_try" in
28685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686
*) ac_try_echo=$ac_try;;
28688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689
(eval "$ac_compile") 2>conftest.er1
28691
grep -v '^ *+' conftest.er1 >conftest.err
28693
cat conftest.err >&5
28694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695
(exit $ac_status); } &&
28696
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28697
{ (case "(($ac_try" in
28698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699
*) ac_try_echo=$ac_try;;
28701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702
(eval "$ac_try") 2>&5
28704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705
(exit $ac_status); }; } &&
28706
{ ac_try='test -s conftest.$ac_objext'
28707
{ (case "(($ac_try" in
28708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709
*) ac_try_echo=$ac_try;;
28711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712
(eval "$ac_try") 2>&5
28714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715
(exit $ac_status); }; }; then
28718
cat >conftest.$ac_ext <<_ACEOF
28721
cat confdefs.h >>conftest.$ac_ext
28722
cat >>conftest.$ac_ext <<_ACEOF
28723
/* end confdefs.h. */
28724
$ac_includes_default
28725
typedef int ac__type_sizeof_;
28729
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28730
test_array @<:@0@:>@ = 0
28736
rm -f conftest.$ac_objext
28737
if { (ac_try="$ac_compile"
28738
case "(($ac_try" in
28739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740
*) ac_try_echo=$ac_try;;
28742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743
(eval "$ac_compile") 2>conftest.er1
28745
grep -v '^ *+' conftest.er1 >conftest.err
28747
cat conftest.err >&5
28748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749
(exit $ac_status); } &&
28750
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28751
{ (case "(($ac_try" in
28752
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753
*) ac_try_echo=$ac_try;;
28755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756
(eval "$ac_try") 2>&5
28758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759
(exit $ac_status); }; } &&
28760
{ ac_try='test -s conftest.$ac_objext'
28761
{ (case "(($ac_try" in
28762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763
*) ac_try_echo=$ac_try;;
28765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766
(eval "$ac_try") 2>&5
28768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769
(exit $ac_status); }; }; then
28770
ac_lo=$ac_mid; break
28772
echo "$as_me: failed program was:" >&5
28773
sed 's/^/| /' conftest.$ac_ext >&5
28775
ac_hi=`expr '(' $ac_mid ')' - 1`
28776
if test $ac_mid -le $ac_hi; then
28780
ac_mid=`expr 2 '*' $ac_mid`
28783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28786
echo "$as_me: failed program was:" >&5
28787
sed 's/^/| /' conftest.$ac_ext >&5
28792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28795
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28796
# Binary search between lo and hi bounds.
28797
while test "x$ac_lo" != "x$ac_hi"; do
28798
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28799
cat >conftest.$ac_ext <<_ACEOF
28802
cat confdefs.h >>conftest.$ac_ext
28803
cat >>conftest.$ac_ext <<_ACEOF
28804
/* end confdefs.h. */
28805
$ac_includes_default
28806
typedef int ac__type_sizeof_;
28810
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28811
test_array @<:@0@:>@ = 0
28817
rm -f conftest.$ac_objext
28818
if { (ac_try="$ac_compile"
28819
case "(($ac_try" in
28820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821
*) ac_try_echo=$ac_try;;
28823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824
(eval "$ac_compile") 2>conftest.er1
28826
grep -v '^ *+' conftest.er1 >conftest.err
28828
cat conftest.err >&5
28829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830
(exit $ac_status); } &&
28831
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832
{ (case "(($ac_try" in
28833
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834
*) ac_try_echo=$ac_try;;
28836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837
(eval "$ac_try") 2>&5
28839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840
(exit $ac_status); }; } &&
28841
{ ac_try='test -s conftest.$ac_objext'
28842
{ (case "(($ac_try" in
28843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844
*) ac_try_echo=$ac_try;;
28846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847
(eval "$ac_try") 2>&5
28849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850
(exit $ac_status); }; }; then
28853
echo "$as_me: failed program was:" >&5
28854
sed 's/^/| /' conftest.$ac_ext >&5
28856
ac_lo=`expr '(' $ac_mid ')' + 1`
28859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28862
?*) ac_cv_sizeof_int=$ac_lo;;
28863
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28864
See \`config.log' for more details." >&5
28865
echo "$as_me: error: cannot compute sizeof (int)
28866
See \`config.log' for more details." >&2;}
28867
{ (exit 77); exit 77; }; } ;;
28870
cat >conftest.$ac_ext <<_ACEOF
28873
cat confdefs.h >>conftest.$ac_ext
28874
cat >>conftest.$ac_ext <<_ACEOF
28875
/* end confdefs.h. */
28876
$ac_includes_default
28877
typedef int ac__type_sizeof_;
28878
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28879
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28880
@%:@include <stdio.h>
28881
@%:@include <stdlib.h>
28886
FILE *f = fopen ("conftest.val", "w");
28889
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28891
long int i = longval ();
28892
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28894
fprintf (f, "%ld\n", i);
28898
unsigned long int i = ulongval ();
28899
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28901
fprintf (f, "%lu\n", i);
28903
return ferror (f) || fclose (f) != 0;
28909
rm -f conftest$ac_exeext
28910
if { (ac_try="$ac_link"
28911
case "(($ac_try" in
28912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913
*) ac_try_echo=$ac_try;;
28915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916
(eval "$ac_link") 2>&5
28918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28920
{ (case "(($ac_try" in
28921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922
*) ac_try_echo=$ac_try;;
28924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925
(eval "$ac_try") 2>&5
28927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928
(exit $ac_status); }; }; then
28929
ac_cv_sizeof_int=`cat conftest.val`
28931
echo "$as_me: program exited with status $ac_status" >&5
28932
echo "$as_me: failed program was:" >&5
28933
sed 's/^/| /' conftest.$ac_ext >&5
28935
( exit $ac_status )
28936
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28937
See \`config.log' for more details." >&5
28938
echo "$as_me: error: cannot compute sizeof (int)
28939
See \`config.log' for more details." >&2;}
28940
{ (exit 77); exit 77; }; }
28942
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28949
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28950
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28951
cat >>confdefs.h <<_ACEOF
28952
@%:@define SIZEOF_INT $ac_cv_sizeof_int
28956
{ echo "$as_me:$LINENO: checking for long" >&5
28957
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28958
if test "${ac_cv_type_long+set}" = set; then
28959
echo $ECHO_N "(cached) $ECHO_C" >&6
28961
cat >conftest.$ac_ext <<_ACEOF
28964
cat confdefs.h >>conftest.$ac_ext
28965
cat >>conftest.$ac_ext <<_ACEOF
28966
/* end confdefs.h. */
28967
$ac_includes_default
28968
typedef long ac__type_new_;
28972
if ((ac__type_new_ *) 0)
28974
if (sizeof (ac__type_new_))
28980
rm -f conftest.$ac_objext
28981
if { (ac_try="$ac_compile"
28982
case "(($ac_try" in
28983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984
*) ac_try_echo=$ac_try;;
28986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987
(eval "$ac_compile") 2>conftest.er1
28989
grep -v '^ *+' conftest.er1 >conftest.err
28991
cat conftest.err >&5
28992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993
(exit $ac_status); } &&
28994
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28995
{ (case "(($ac_try" in
28996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997
*) ac_try_echo=$ac_try;;
28999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000
(eval "$ac_try") 2>&5
29002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003
(exit $ac_status); }; } &&
29004
{ ac_try='test -s conftest.$ac_objext'
29005
{ (case "(($ac_try" in
29006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007
*) ac_try_echo=$ac_try;;
29009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010
(eval "$ac_try") 2>&5
29012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013
(exit $ac_status); }; }; then
29014
ac_cv_type_long=yes
29016
echo "$as_me: failed program was:" >&5
29017
sed 's/^/| /' conftest.$ac_ext >&5
29022
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29024
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29025
echo "${ECHO_T}$ac_cv_type_long" >&6; }
29027
{ echo "$as_me:$LINENO: checking size of long" >&5
29028
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29029
if test "${ac_cv_sizeof_long+set}" = set; then
29030
echo $ECHO_N "(cached) $ECHO_C" >&6
29032
if test "$ac_cv_type_long" = yes; then
29033
# The cast to long int works around a bug in the HP C Compiler
29034
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29035
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29036
# This bug is HP SR number 8606223364.
29037
if test "$cross_compiling" = yes; then
29038
# Depending upon the size, compute the lo and hi bounds.
29039
cat >conftest.$ac_ext <<_ACEOF
29042
cat confdefs.h >>conftest.$ac_ext
29043
cat >>conftest.$ac_ext <<_ACEOF
29044
/* end confdefs.h. */
29045
$ac_includes_default
29046
typedef long ac__type_sizeof_;
29050
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29051
test_array @<:@0@:>@ = 0
29057
rm -f conftest.$ac_objext
29058
if { (ac_try="$ac_compile"
29059
case "(($ac_try" in
29060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061
*) ac_try_echo=$ac_try;;
29063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064
(eval "$ac_compile") 2>conftest.er1
29066
grep -v '^ *+' conftest.er1 >conftest.err
29068
cat conftest.err >&5
29069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070
(exit $ac_status); } &&
29071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29072
{ (case "(($ac_try" in
29073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074
*) ac_try_echo=$ac_try;;
29076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077
(eval "$ac_try") 2>&5
29079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080
(exit $ac_status); }; } &&
29081
{ ac_try='test -s conftest.$ac_objext'
29082
{ (case "(($ac_try" in
29083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084
*) ac_try_echo=$ac_try;;
29086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087
(eval "$ac_try") 2>&5
29089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090
(exit $ac_status); }; }; then
29093
cat >conftest.$ac_ext <<_ACEOF
29096
cat confdefs.h >>conftest.$ac_ext
29097
cat >>conftest.$ac_ext <<_ACEOF
29098
/* end confdefs.h. */
29099
$ac_includes_default
29100
typedef long ac__type_sizeof_;
29104
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29105
test_array @<:@0@:>@ = 0
29111
rm -f conftest.$ac_objext
29112
if { (ac_try="$ac_compile"
29113
case "(($ac_try" in
29114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29115
*) ac_try_echo=$ac_try;;
29117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29118
(eval "$ac_compile") 2>conftest.er1
29120
grep -v '^ *+' conftest.er1 >conftest.err
29122
cat conftest.err >&5
29123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124
(exit $ac_status); } &&
29125
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29126
{ (case "(($ac_try" in
29127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128
*) ac_try_echo=$ac_try;;
29130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131
(eval "$ac_try") 2>&5
29133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134
(exit $ac_status); }; } &&
29135
{ ac_try='test -s conftest.$ac_objext'
29136
{ (case "(($ac_try" in
29137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138
*) ac_try_echo=$ac_try;;
29140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141
(eval "$ac_try") 2>&5
29143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144
(exit $ac_status); }; }; then
29145
ac_hi=$ac_mid; break
29147
echo "$as_me: failed program was:" >&5
29148
sed 's/^/| /' conftest.$ac_ext >&5
29150
ac_lo=`expr $ac_mid + 1`
29151
if test $ac_lo -le $ac_mid; then
29155
ac_mid=`expr 2 '*' $ac_mid + 1`
29158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29161
echo "$as_me: failed program was:" >&5
29162
sed 's/^/| /' conftest.$ac_ext >&5
29164
cat >conftest.$ac_ext <<_ACEOF
29167
cat confdefs.h >>conftest.$ac_ext
29168
cat >>conftest.$ac_ext <<_ACEOF
29169
/* end confdefs.h. */
29170
$ac_includes_default
29171
typedef long ac__type_sizeof_;
29175
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29176
test_array @<:@0@:>@ = 0
29182
rm -f conftest.$ac_objext
29183
if { (ac_try="$ac_compile"
29184
case "(($ac_try" in
29185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186
*) ac_try_echo=$ac_try;;
29188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189
(eval "$ac_compile") 2>conftest.er1
29191
grep -v '^ *+' conftest.er1 >conftest.err
29193
cat conftest.err >&5
29194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195
(exit $ac_status); } &&
29196
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29197
{ (case "(($ac_try" in
29198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199
*) ac_try_echo=$ac_try;;
29201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202
(eval "$ac_try") 2>&5
29204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205
(exit $ac_status); }; } &&
29206
{ ac_try='test -s conftest.$ac_objext'
29207
{ (case "(($ac_try" in
29208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209
*) ac_try_echo=$ac_try;;
29211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212
(eval "$ac_try") 2>&5
29214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215
(exit $ac_status); }; }; then
29218
cat >conftest.$ac_ext <<_ACEOF
29221
cat confdefs.h >>conftest.$ac_ext
29222
cat >>conftest.$ac_ext <<_ACEOF
29223
/* end confdefs.h. */
29224
$ac_includes_default
29225
typedef long ac__type_sizeof_;
29229
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29230
test_array @<:@0@:>@ = 0
29236
rm -f conftest.$ac_objext
29237
if { (ac_try="$ac_compile"
29238
case "(($ac_try" in
29239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240
*) ac_try_echo=$ac_try;;
29242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243
(eval "$ac_compile") 2>conftest.er1
29245
grep -v '^ *+' conftest.er1 >conftest.err
29247
cat conftest.err >&5
29248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249
(exit $ac_status); } &&
29250
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251
{ (case "(($ac_try" in
29252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253
*) ac_try_echo=$ac_try;;
29255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256
(eval "$ac_try") 2>&5
29258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259
(exit $ac_status); }; } &&
29260
{ ac_try='test -s conftest.$ac_objext'
29261
{ (case "(($ac_try" in
29262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263
*) ac_try_echo=$ac_try;;
29265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266
(eval "$ac_try") 2>&5
29268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269
(exit $ac_status); }; }; then
29270
ac_lo=$ac_mid; break
29272
echo "$as_me: failed program was:" >&5
29273
sed 's/^/| /' conftest.$ac_ext >&5
29275
ac_hi=`expr '(' $ac_mid ')' - 1`
29276
if test $ac_mid -le $ac_hi; then
29280
ac_mid=`expr 2 '*' $ac_mid`
29283
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29286
echo "$as_me: failed program was:" >&5
29287
sed 's/^/| /' conftest.$ac_ext >&5
29292
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29296
# Binary search between lo and hi bounds.
29297
while test "x$ac_lo" != "x$ac_hi"; do
29298
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29299
cat >conftest.$ac_ext <<_ACEOF
29302
cat confdefs.h >>conftest.$ac_ext
29303
cat >>conftest.$ac_ext <<_ACEOF
29304
/* end confdefs.h. */
29305
$ac_includes_default
29306
typedef long ac__type_sizeof_;
29310
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29311
test_array @<:@0@:>@ = 0
29317
rm -f conftest.$ac_objext
29318
if { (ac_try="$ac_compile"
29319
case "(($ac_try" in
29320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321
*) ac_try_echo=$ac_try;;
29323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324
(eval "$ac_compile") 2>conftest.er1
29326
grep -v '^ *+' conftest.er1 >conftest.err
29328
cat conftest.err >&5
29329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330
(exit $ac_status); } &&
29331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29332
{ (case "(($ac_try" in
29333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334
*) ac_try_echo=$ac_try;;
29336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337
(eval "$ac_try") 2>&5
29339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340
(exit $ac_status); }; } &&
29341
{ ac_try='test -s conftest.$ac_objext'
29342
{ (case "(($ac_try" in
29343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344
*) ac_try_echo=$ac_try;;
29346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347
(eval "$ac_try") 2>&5
29349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350
(exit $ac_status); }; }; then
29353
echo "$as_me: failed program was:" >&5
29354
sed 's/^/| /' conftest.$ac_ext >&5
29356
ac_lo=`expr '(' $ac_mid ')' + 1`
29359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29362
?*) ac_cv_sizeof_long=$ac_lo;;
29363
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29364
See \`config.log' for more details." >&5
29365
echo "$as_me: error: cannot compute sizeof (long)
29366
See \`config.log' for more details." >&2;}
29367
{ (exit 77); exit 77; }; } ;;
29370
cat >conftest.$ac_ext <<_ACEOF
29373
cat confdefs.h >>conftest.$ac_ext
29374
cat >>conftest.$ac_ext <<_ACEOF
29375
/* end confdefs.h. */
29376
$ac_includes_default
29377
typedef long ac__type_sizeof_;
29378
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29379
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29380
@%:@include <stdio.h>
29381
@%:@include <stdlib.h>
29386
FILE *f = fopen ("conftest.val", "w");
29389
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29391
long int i = longval ();
29392
if (i != ((long int) (sizeof (ac__type_sizeof_))))
29394
fprintf (f, "%ld\n", i);
29398
unsigned long int i = ulongval ();
29399
if (i != ((long int) (sizeof (ac__type_sizeof_))))
29401
fprintf (f, "%lu\n", i);
29403
return ferror (f) || fclose (f) != 0;
29409
rm -f conftest$ac_exeext
29410
if { (ac_try="$ac_link"
29411
case "(($ac_try" in
29412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413
*) ac_try_echo=$ac_try;;
29415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416
(eval "$ac_link") 2>&5
29418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29420
{ (case "(($ac_try" in
29421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422
*) ac_try_echo=$ac_try;;
29424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425
(eval "$ac_try") 2>&5
29427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428
(exit $ac_status); }; }; then
29429
ac_cv_sizeof_long=`cat conftest.val`
29431
echo "$as_me: program exited with status $ac_status" >&5
29432
echo "$as_me: failed program was:" >&5
29433
sed 's/^/| /' conftest.$ac_ext >&5
29435
( exit $ac_status )
29436
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29437
See \`config.log' for more details." >&5
29438
echo "$as_me: error: cannot compute sizeof (long)
29439
See \`config.log' for more details." >&2;}
29440
{ (exit 77); exit 77; }; }
29442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29446
ac_cv_sizeof_long=0
29449
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29450
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29451
cat >>confdefs.h <<_ACEOF
29452
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
29456
{ echo "$as_me:$LINENO: checking for size_t" >&5
29457
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29458
if test "${ac_cv_type_size_t+set}" = set; then
29459
echo $ECHO_N "(cached) $ECHO_C" >&6
29461
cat >conftest.$ac_ext <<_ACEOF
29464
cat confdefs.h >>conftest.$ac_ext
29465
cat >>conftest.$ac_ext <<_ACEOF
29466
/* end confdefs.h. */
29467
$ac_includes_default
29468
typedef size_t ac__type_new_;
29472
if ((ac__type_new_ *) 0)
29474
if (sizeof (ac__type_new_))
29480
rm -f conftest.$ac_objext
29481
if { (ac_try="$ac_compile"
29482
case "(($ac_try" in
29483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484
*) ac_try_echo=$ac_try;;
29486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487
(eval "$ac_compile") 2>conftest.er1
29489
grep -v '^ *+' conftest.er1 >conftest.err
29491
cat conftest.err >&5
29492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493
(exit $ac_status); } &&
29494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29495
{ (case "(($ac_try" in
29496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497
*) ac_try_echo=$ac_try;;
29499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500
(eval "$ac_try") 2>&5
29502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503
(exit $ac_status); }; } &&
29504
{ ac_try='test -s conftest.$ac_objext'
29505
{ (case "(($ac_try" in
29506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507
*) ac_try_echo=$ac_try;;
29509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510
(eval "$ac_try") 2>&5
29512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513
(exit $ac_status); }; }; then
29514
ac_cv_type_size_t=yes
29516
echo "$as_me: failed program was:" >&5
29517
sed 's/^/| /' conftest.$ac_ext >&5
29519
ac_cv_type_size_t=no
29522
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29524
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29525
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29527
{ echo "$as_me:$LINENO: checking size of size_t" >&5
29528
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29529
if test "${ac_cv_sizeof_size_t+set}" = set; then
29530
echo $ECHO_N "(cached) $ECHO_C" >&6
29532
if test "$ac_cv_type_size_t" = yes; then
29533
# The cast to long int works around a bug in the HP C Compiler
29534
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29535
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29536
# This bug is HP SR number 8606223364.
29537
if test "$cross_compiling" = yes; then
29538
# Depending upon the size, compute the lo and hi bounds.
29539
cat >conftest.$ac_ext <<_ACEOF
29542
cat confdefs.h >>conftest.$ac_ext
29543
cat >>conftest.$ac_ext <<_ACEOF
29544
/* end confdefs.h. */
29545
$ac_includes_default
29546
typedef size_t ac__type_sizeof_;
29550
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29551
test_array @<:@0@:>@ = 0
29557
rm -f conftest.$ac_objext
29558
if { (ac_try="$ac_compile"
29559
case "(($ac_try" in
29560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29561
*) ac_try_echo=$ac_try;;
29563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564
(eval "$ac_compile") 2>conftest.er1
29566
grep -v '^ *+' conftest.er1 >conftest.err
29568
cat conftest.err >&5
29569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570
(exit $ac_status); } &&
29571
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29572
{ (case "(($ac_try" in
29573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574
*) ac_try_echo=$ac_try;;
29576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577
(eval "$ac_try") 2>&5
29579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580
(exit $ac_status); }; } &&
29581
{ ac_try='test -s conftest.$ac_objext'
29582
{ (case "(($ac_try" in
29583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584
*) ac_try_echo=$ac_try;;
29586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587
(eval "$ac_try") 2>&5
29589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590
(exit $ac_status); }; }; then
29593
cat >conftest.$ac_ext <<_ACEOF
29596
cat confdefs.h >>conftest.$ac_ext
29597
cat >>conftest.$ac_ext <<_ACEOF
29598
/* end confdefs.h. */
29599
$ac_includes_default
29600
typedef size_t ac__type_sizeof_;
29604
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29605
test_array @<:@0@:>@ = 0
29611
rm -f conftest.$ac_objext
29612
if { (ac_try="$ac_compile"
29613
case "(($ac_try" in
29614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615
*) ac_try_echo=$ac_try;;
29617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618
(eval "$ac_compile") 2>conftest.er1
29620
grep -v '^ *+' conftest.er1 >conftest.err
29622
cat conftest.err >&5
29623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624
(exit $ac_status); } &&
29625
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29626
{ (case "(($ac_try" in
29627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628
*) ac_try_echo=$ac_try;;
29630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631
(eval "$ac_try") 2>&5
29633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634
(exit $ac_status); }; } &&
29635
{ ac_try='test -s conftest.$ac_objext'
29636
{ (case "(($ac_try" in
29637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638
*) ac_try_echo=$ac_try;;
29640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641
(eval "$ac_try") 2>&5
29643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644
(exit $ac_status); }; }; then
29645
ac_hi=$ac_mid; break
29647
echo "$as_me: failed program was:" >&5
29648
sed 's/^/| /' conftest.$ac_ext >&5
29650
ac_lo=`expr $ac_mid + 1`
29651
if test $ac_lo -le $ac_mid; then
29655
ac_mid=`expr 2 '*' $ac_mid + 1`
29658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29661
echo "$as_me: failed program was:" >&5
29662
sed 's/^/| /' conftest.$ac_ext >&5
29664
cat >conftest.$ac_ext <<_ACEOF
29667
cat confdefs.h >>conftest.$ac_ext
29668
cat >>conftest.$ac_ext <<_ACEOF
29669
/* end confdefs.h. */
29670
$ac_includes_default
29671
typedef size_t ac__type_sizeof_;
29675
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29676
test_array @<:@0@:>@ = 0
29682
rm -f conftest.$ac_objext
29683
if { (ac_try="$ac_compile"
29684
case "(($ac_try" in
29685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686
*) ac_try_echo=$ac_try;;
29688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689
(eval "$ac_compile") 2>conftest.er1
29691
grep -v '^ *+' conftest.er1 >conftest.err
29693
cat conftest.err >&5
29694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695
(exit $ac_status); } &&
29696
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29697
{ (case "(($ac_try" in
29698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699
*) ac_try_echo=$ac_try;;
29701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702
(eval "$ac_try") 2>&5
29704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705
(exit $ac_status); }; } &&
29706
{ ac_try='test -s conftest.$ac_objext'
29707
{ (case "(($ac_try" in
29708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709
*) ac_try_echo=$ac_try;;
29711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712
(eval "$ac_try") 2>&5
29714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715
(exit $ac_status); }; }; then
29718
cat >conftest.$ac_ext <<_ACEOF
29721
cat confdefs.h >>conftest.$ac_ext
29722
cat >>conftest.$ac_ext <<_ACEOF
29723
/* end confdefs.h. */
29724
$ac_includes_default
29725
typedef size_t ac__type_sizeof_;
29729
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29730
test_array @<:@0@:>@ = 0
29736
rm -f conftest.$ac_objext
29737
if { (ac_try="$ac_compile"
29738
case "(($ac_try" in
29739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740
*) ac_try_echo=$ac_try;;
29742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743
(eval "$ac_compile") 2>conftest.er1
29745
grep -v '^ *+' conftest.er1 >conftest.err
29747
cat conftest.err >&5
29748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749
(exit $ac_status); } &&
29750
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29751
{ (case "(($ac_try" in
29752
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753
*) ac_try_echo=$ac_try;;
29755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756
(eval "$ac_try") 2>&5
29758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759
(exit $ac_status); }; } &&
29760
{ ac_try='test -s conftest.$ac_objext'
29761
{ (case "(($ac_try" in
29762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763
*) ac_try_echo=$ac_try;;
29765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766
(eval "$ac_try") 2>&5
29768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769
(exit $ac_status); }; }; then
29770
ac_lo=$ac_mid; break
29772
echo "$as_me: failed program was:" >&5
29773
sed 's/^/| /' conftest.$ac_ext >&5
29775
ac_hi=`expr '(' $ac_mid ')' - 1`
29776
if test $ac_mid -le $ac_hi; then
29780
ac_mid=`expr 2 '*' $ac_mid`
29783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29786
echo "$as_me: failed program was:" >&5
29787
sed 's/^/| /' conftest.$ac_ext >&5
29792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29795
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29796
# Binary search between lo and hi bounds.
29797
while test "x$ac_lo" != "x$ac_hi"; do
29798
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29799
cat >conftest.$ac_ext <<_ACEOF
29802
cat confdefs.h >>conftest.$ac_ext
29803
cat >>conftest.$ac_ext <<_ACEOF
29804
/* end confdefs.h. */
29805
$ac_includes_default
29806
typedef size_t ac__type_sizeof_;
29810
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29811
test_array @<:@0@:>@ = 0
29817
rm -f conftest.$ac_objext
29818
if { (ac_try="$ac_compile"
29819
case "(($ac_try" in
29820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821
*) ac_try_echo=$ac_try;;
29823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824
(eval "$ac_compile") 2>conftest.er1
29826
grep -v '^ *+' conftest.er1 >conftest.err
29828
cat conftest.err >&5
29829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830
(exit $ac_status); } &&
29831
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29832
{ (case "(($ac_try" in
29833
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834
*) ac_try_echo=$ac_try;;
29836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837
(eval "$ac_try") 2>&5
29839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840
(exit $ac_status); }; } &&
29841
{ ac_try='test -s conftest.$ac_objext'
29842
{ (case "(($ac_try" in
29843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844
*) ac_try_echo=$ac_try;;
29846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29847
(eval "$ac_try") 2>&5
29849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850
(exit $ac_status); }; }; then
29853
echo "$as_me: failed program was:" >&5
29854
sed 's/^/| /' conftest.$ac_ext >&5
29856
ac_lo=`expr '(' $ac_mid ')' + 1`
29859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29862
?*) ac_cv_sizeof_size_t=$ac_lo;;
29863
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29864
See \`config.log' for more details." >&5
29865
echo "$as_me: error: cannot compute sizeof (size_t)
29866
See \`config.log' for more details." >&2;}
29867
{ (exit 77); exit 77; }; } ;;
29870
cat >conftest.$ac_ext <<_ACEOF
29873
cat confdefs.h >>conftest.$ac_ext
29874
cat >>conftest.$ac_ext <<_ACEOF
29875
/* end confdefs.h. */
29876
$ac_includes_default
29877
typedef size_t ac__type_sizeof_;
29878
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29879
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29880
@%:@include <stdio.h>
29881
@%:@include <stdlib.h>
29886
FILE *f = fopen ("conftest.val", "w");
29889
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29891
long int i = longval ();
29892
if (i != ((long int) (sizeof (ac__type_sizeof_))))
29894
fprintf (f, "%ld\n", i);
29898
unsigned long int i = ulongval ();
29899
if (i != ((long int) (sizeof (ac__type_sizeof_))))
29901
fprintf (f, "%lu\n", i);
29903
return ferror (f) || fclose (f) != 0;
29909
rm -f conftest$ac_exeext
29910
if { (ac_try="$ac_link"
29911
case "(($ac_try" in
29912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29913
*) ac_try_echo=$ac_try;;
29915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29916
(eval "$ac_link") 2>&5
29918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29920
{ (case "(($ac_try" in
29921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922
*) ac_try_echo=$ac_try;;
29924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925
(eval "$ac_try") 2>&5
29927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928
(exit $ac_status); }; }; then
29929
ac_cv_sizeof_size_t=`cat conftest.val`
29931
echo "$as_me: program exited with status $ac_status" >&5
29932
echo "$as_me: failed program was:" >&5
29933
sed 's/^/| /' conftest.$ac_ext >&5
29935
( exit $ac_status )
29936
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29937
See \`config.log' for more details." >&5
29938
echo "$as_me: error: cannot compute sizeof (size_t)
29939
See \`config.log' for more details." >&2;}
29940
{ (exit 77); exit 77; }; }
29942
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29946
ac_cv_sizeof_size_t=0
29949
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29950
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29951
cat >>confdefs.h <<_ACEOF
29952
@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29958
cat >>confdefs.h <<_ACEOF
29959
@%:@define NFS_STATEDIR "$statedir"
29963
if test "x$cross_compiling" = "xno"; then
29964
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29965
CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29966
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29967
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29969
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29970
CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29971
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29972
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29987
ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29992
my_am_cflags="-Wall $ARCHFLAGS -pipe"
29994
AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
29996
AM_CFLAGS="$my_am_cflags"
29999
# Make sure that $ACLOCAL_FLAGS are used during a rebuild
30000
ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30003
ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
30005
cat >confcache <<\_ACEOF
30006
# This file is a shell script that caches the results of configure
30007
# tests run on this system so they can be shared between configure
30008
# scripts and configure runs, see configure's option --config-cache.
30009
# It is not useful on other systems. If it contains results you don't
30010
# want to keep, you may remove or edit it.
30012
# config.status only pays attention to the cache file if you give it
30013
# the --recheck option to rerun configure.
30015
# `ac_cv_env_foo' variables (set or unset) will be overridden when
30016
# loading this file, other *unset* `ac_cv_foo' will be assigned the
30017
# following values.
30021
# The following way of writing the cache mishandles newlines in values,
30022
# but we know of no workaround that is simple, portable, and efficient.
30023
# So, we kill variables containing newlines.
30024
# Ultrix sh set writes to stderr and can't be redirected directly,
30025
# and sets the high bit in the cache file unless we assign to the vars.
30027
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30028
eval ac_val=\$$ac_var
30032
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30033
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30036
_ | IFS | as_nl) ;; #(
30037
*) $as_unset $ac_var ;;
30043
case $as_nl`(ac_space=' '; set) 2>&1` in #(
30044
*${as_nl}ac_space=\ *)
30045
# `set' does not quote correctly, so add quotes (double-quote
30046
# substitution turns \\\\ into \\, and sed turns \\ into \).
30049
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30052
# `set' quotes correctly as required by POSIX, so do not add quotes.
30053
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30062
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30064
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30066
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30067
if test -w "$cache_file"; then
30068
test "x$cache_file" != "x/dev/null" &&
30069
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
30070
echo "$as_me: updating cache $cache_file" >&6;}
30071
cat confcache >$cache_file
30073
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30074
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30079
test "x$prefix" = xNONE && prefix=$ac_default_prefix
30080
# Let make expand exec_prefix.
30081
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30083
DEFS=-DHAVE_CONFIG_H
30087
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30088
# 1. Remove the extension, and $U if already installed.
30089
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30090
ac_i=`echo "$ac_i" | sed "$ac_script"`
30091
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30092
# will be set to the directory where LIBOBJS objects are built.
30093
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30094
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30096
LIB@&t@OBJS=$ac_libobjs
30098
LTLIBOBJS=$ac_ltlibobjs
30101
if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30102
{ { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30103
Usually this means the macro was only invoked conditionally." >&5
30104
echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30105
Usually this means the macro was only invoked conditionally." >&2;}
30106
{ (exit 1); exit 1; }; }
30108
if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30109
{ { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30110
Usually this means the macro was only invoked conditionally." >&5
30111
echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30112
Usually this means the macro was only invoked conditionally." >&2;}
30113
{ (exit 1); exit 1; }; }
30115
if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30116
{ { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30117
Usually this means the macro was only invoked conditionally." >&5
30118
echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30119
Usually this means the macro was only invoked conditionally." >&2;}
30120
{ (exit 1); exit 1; }; }
30122
if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30123
{ { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30124
Usually this means the macro was only invoked conditionally." >&5
30125
echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30126
Usually this means the macro was only invoked conditionally." >&2;}
30127
{ (exit 1); exit 1; }; }
30129
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30130
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30131
Usually this means the macro was only invoked conditionally." >&5
30132
echo "$as_me: error: conditional \"AMDEP\" was never defined.
30133
Usually this means the macro was only invoked conditionally." >&2;}
30134
{ (exit 1); exit 1; }; }
30136
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30137
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30138
Usually this means the macro was only invoked conditionally." >&5
30139
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30140
Usually this means the macro was only invoked conditionally." >&2;}
30141
{ (exit 1); exit 1; }; }
30143
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30144
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30145
Usually this means the macro was only invoked conditionally." >&5
30146
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30147
Usually this means the macro was only invoked conditionally." >&2;}
30148
{ (exit 1); exit 1; }; }
30150
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30151
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30152
Usually this means the macro was only invoked conditionally." >&5
30153
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30154
Usually this means the macro was only invoked conditionally." >&2;}
30155
{ (exit 1); exit 1; }; }
30158
: ${CONFIG_STATUS=./config.status}
30159
ac_clean_files_save=$ac_clean_files
30160
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30161
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30162
echo "$as_me: creating $CONFIG_STATUS" >&6;}
30163
cat >$CONFIG_STATUS <<_ACEOF
30165
# Generated by $as_me.
30166
# Run this file to recreate the current configuration.
30167
# Compiler output produced by configure, useful for debugging
30168
# configure, is in config.log if it exists.
30171
ac_cs_recheck=false
30173
SHELL=\${CONFIG_SHELL-$SHELL}
30176
cat >>$CONFIG_STATUS <<\_ACEOF
30177
## --------------------- ##
30178
## M4sh Initialization. ##
30179
## --------------------- ##
30181
# Be Bourne compatible
30182
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30185
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30186
# is contrary to our usage. Disable this feature.
30187
alias -g '${1+"$@"}'='"$@"'
30188
setopt NO_GLOB_SUBST
30190
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30192
BIN_SH=xpg4; export BIN_SH # for Tru64
30193
DUALCASE=1; export DUALCASE # for MKS sh
30197
# Avoid depending upon Character Ranges.
30198
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30199
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30200
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30201
as_cr_digits='0123456789'
30202
as_cr_alnum=$as_cr_Letters$as_cr_digits
30204
# The user is always right.
30205
if test "${PATH_SEPARATOR+set}" != set; then
30206
echo "#! /bin/sh" >conf$$.sh
30207
echo "exit 0" >>conf$$.sh
30209
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30217
# Support unset when possible.
30218
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30226
# We need space, tab and new line, in precisely that order. Quoting is
30227
# there to prevent editors from complaining about space-tab.
30228
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30229
# splitting by setting IFS to empty value.)
30234
# Find who we are. Look in the path if we contain no directory separator.
30236
*[\\/]* ) as_myself=$0 ;;
30237
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238
for as_dir in $PATH
30241
test -z "$as_dir" && as_dir=.
30242
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30248
# We did not find ourselves, most probably we were run as `sh COMMAND'
30249
# in which case we are not to be found in the path.
30250
if test "x$as_myself" = x; then
30253
if test ! -f "$as_myself"; then
30254
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30255
{ (exit 1); exit 1; }
30258
# Work around bugs in pre-3.0 UWIN ksh.
30259
for as_var in ENV MAIL MAILPATH
30260
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30268
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30269
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30270
LC_TELEPHONE LC_TIME
30272
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30273
eval $as_var=C; export $as_var
30275
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30279
# Required to use basename.
30280
if expr a : '\(a\)' >/dev/null 2>&1 &&
30281
test "X`expr 00001 : '.*\(...\)'`" = X001; then
30287
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30288
as_basename=basename
30294
# Name of the executable.
30295
as_me=`$as_basename -- "$0" ||
30296
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30297
X"$0" : 'X\(//\)$' \| \
30298
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30300
sed '/^.*\/\([^/][^/]*\)\/*$/{
30319
as_lineno_1=$LINENO
30320
as_lineno_2=$LINENO
30321
test "x$as_lineno_1" != "x$as_lineno_2" &&
30322
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30324
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30325
# uniformly replaced by the line number. The first 'sed' inserts a
30326
# line-number line after each line using $LINENO; the second 'sed'
30327
# does the real work. The second script uses 'N' to pair each
30328
# line-number line with the line containing $LINENO, and appends
30329
# trailing '-' during substitution so that $LINENO is not a special
30330
# case at line end.
30331
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30332
# scripts with optimization help from Paolo Bonzini. Blame Lee
30333
# E. McMahon (1931-1989) for sed's syntax. :-)
30345
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30348
' >$as_me.lineno &&
30349
chmod +x "$as_me.lineno" ||
30350
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30351
{ (exit 1); exit 1; }; }
30353
# Don't try to exec as it changes $[0], causing all sort of problems
30354
# (the dirname of $[0] is not the place where we might find the
30355
# original and so on. Autoconf is especially sensitive to this).
30356
. "./$as_me.lineno"
30357
# Exit status is that of the last command.
30362
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30368
ECHO_C= ECHO_N= ECHO_T=
30369
case `echo -n x` in
30371
case `echo 'x\c'` in
30372
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
30379
if expr a : '\(a\)' >/dev/null 2>&1 &&
30380
test "X`expr 00001 : '.*\(...\)'`" = X001; then
30386
rm -f conf$$ conf$$.exe conf$$.file
30387
if test -d conf$$.dir; then
30388
rm -f conf$$.dir/conf$$.file
30394
if ln -s conf$$.file conf$$ 2>/dev/null; then
30396
# ... but there are two gotchas:
30397
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30398
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30399
# In both cases, we have to default to `cp -p'.
30400
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30402
elif ln conf$$.file conf$$ 2>/dev/null; then
30407
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30408
rmdir conf$$.dir 2>/dev/null
30410
if mkdir -p . 2>/dev/null; then
30413
test -d ./-p && rmdir ./-p
30417
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
30418
# systems may use methods other than mode bits to determine executability.
30419
cat >conf$$.file <<_ASEOF
30423
chmod +x conf$$.file
30424
if test -x conf$$.file >/dev/null 2>&1; then
30425
as_executable_p="test -x"
30431
# Sed expression to map a string onto a valid CPP name.
30432
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30434
# Sed expression to map a string onto a valid variable name.
30435
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30440
# Save the log message, to keep $[0] and so on meaningful, and to
30441
# report actual input values of CONFIG_FILES etc. instead of their
30442
# values after options handling.
30444
This file was extended by linux nfs-utils $as_me 1.0.9-pre1, which was
30445
generated by GNU Autoconf 2.59e. Invocation command line was
30447
CONFIG_FILES = $CONFIG_FILES
30448
CONFIG_HEADERS = $CONFIG_HEADERS
30449
CONFIG_LINKS = $CONFIG_LINKS
30450
CONFIG_COMMANDS = $CONFIG_COMMANDS
30453
on `(hostname || uname -n) 2>/dev/null | sed 1q`
30458
cat >>$CONFIG_STATUS <<_ACEOF
30459
# Files that config.status was made for.
30460
config_files="$ac_config_files"
30461
config_headers="$ac_config_headers"
30462
config_commands="$ac_config_commands"
30466
cat >>$CONFIG_STATUS <<\_ACEOF
30468
\`$as_me' instantiates files from templates according to the
30469
current configuration.
30471
Usage: $0 [OPTIONS] [FILE]...
30473
-h, --help print this help, then exit
30474
-V, --version print version number, then exit
30475
-q, --quiet do not print progress messages
30476
-d, --debug don't remove temporary files
30477
--recheck update $as_me by reconfiguring in the same conditions
30478
--file=FILE[:TEMPLATE]
30479
instantiate the configuration file FILE
30480
--header=FILE[:TEMPLATE]
30481
instantiate the configuration header FILE
30483
Configuration files:
30486
Configuration headers:
30489
Configuration commands:
30492
Report bugs to <bug-autoconf@gnu.org>."
30495
cat >>$CONFIG_STATUS <<_ACEOF
30497
linux nfs-utils config.status 1.0.9-pre1
30498
configured by $0, generated by GNU Autoconf 2.59e,
30499
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30501
Copyright (C) 2006 Free Software Foundation, Inc.
30502
This config.status script is free software; the Free Software Foundation
30503
gives unlimited permission to copy, distribute and modify it."
30510
cat >>$CONFIG_STATUS <<\_ACEOF
30511
# If no file are specified by the user, then we need to provide default
30512
# value. By we need to know if files were specified by the user.
30518
ac_option=`expr "X$1" : 'X\([^=]*\)='`
30519
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30530
# Handling of the options.
30531
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30533
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30534
echo "$ac_cs_version"; exit ;;
30535
--debug | --debu | --deb | --de | --d | -d )
30537
--file | --fil | --fi | --f )
30539
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30540
ac_need_defaults=false;;
30541
--header | --heade | --head | --hea )
30543
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30544
ac_need_defaults=false;;
30546
# Conflict between --help and --header
30547
{ echo "$as_me: error: ambiguous option: $1
30548
Try \`$0 --help' for more information." >&2
30549
{ (exit 1); exit 1; }; };;
30550
--help | --hel | -h )
30551
echo "$ac_cs_usage"; exit ;;
30552
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
30553
| -silent | --silent | --silen | --sile | --sil | --si | --s)
30556
# This is an error.
30557
-*) { echo "$as_me: error: unrecognized option: $1
30558
Try \`$0 --help' for more information." >&2
30559
{ (exit 1); exit 1; }; } ;;
30561
*) ac_config_targets="$ac_config_targets $1"
30562
ac_need_defaults=false ;;
30568
ac_configure_extra_args=
30570
if $ac_cs_silent; then
30572
ac_configure_extra_args="$ac_configure_extra_args --silent"
30576
cat >>$CONFIG_STATUS <<_ACEOF
30577
if \$ac_cs_recheck; then
30578
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30579
CONFIG_SHELL=$SHELL
30580
export CONFIG_SHELL
30581
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30585
cat >>$CONFIG_STATUS <<\_ACEOF
30589
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30590
@%:@@%:@ Running $as_me. @%:@@%:@
30596
cat >>$CONFIG_STATUS <<_ACEOF
30600
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30604
cat >>$CONFIG_STATUS <<\_ACEOF
30606
# Handling of arguments.
30607
for ac_config_target in $ac_config_targets
30609
case $ac_config_target in
30610
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30611
"support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30612
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30613
"linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30614
"support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30615
"support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30616
"support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30617
"support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30618
"support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30619
"support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30620
"support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30621
"support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30622
"support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30623
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30624
"tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
30625
"tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
30626
"tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30627
"tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30628
"tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30629
"tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30630
"utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30631
"utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30632
"utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30633
"utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30634
"utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
30635
"utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30636
"utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30637
"utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30638
"utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30639
"utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
30640
"utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30641
"utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30642
"utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30644
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30645
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30646
{ (exit 1); exit 1; }; };;
30651
# If the user did not use the arguments to specify the items to instantiate,
30652
# then the envvar interface is used. Set only those that are not.
30653
# We use the long form for the default assignment because of an extremely
30654
# bizarre bug on SunOS 4.1.3.
30655
if $ac_need_defaults; then
30656
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30657
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30658
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30661
# Have a temporary directory for convenience. Make it in the build tree
30662
# simply because there is no reason against having it here, and in addition,
30663
# creating and moving files from /tmp can sometimes cause problems.
30664
# Hook for its removal unless debugging.
30665
# Note that there is a small window in which the directory will not be cleaned:
30666
# after its creation but before its name has been assigned to `$tmp'.
30670
trap 'exit_status=$?
30671
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30673
trap '{ (exit 1); exit 1; }' 1 2 13 15
30675
# Create a (secure) tmp directory for tmp files.
30678
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30679
test -n "$tmp" && test -d "$tmp"
30682
tmp=./conf$$-$RANDOM
30683
(umask 077 && mkdir "$tmp")
30686
echo "$me: cannot create a temporary directory in ." >&2
30687
{ (exit 1); exit 1; }
30691
# Set up the sed scripts for CONFIG_FILES section.
30694
# No need to generate the scripts if there are no CONFIG_FILES.
30695
# This happens for instance when ./config.status config.h
30696
if test -n "$CONFIG_FILES"; then
30703
for ac_last_try in false false false false false :; do
30704
cat >conf$$subs.sed <<_ACEOF
30705
SHELL!$SHELL$ac_delim
30706
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30707
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30708
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30709
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30710
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30711
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30712
exec_prefix!$exec_prefix$ac_delim
30713
prefix!$prefix$ac_delim
30714
program_transform_name!$program_transform_name$ac_delim
30715
bindir!$bindir$ac_delim
30716
sbindir!$sbindir$ac_delim
30717
libexecdir!$libexecdir$ac_delim
30718
datarootdir!$datarootdir$ac_delim
30719
datadir!$datadir$ac_delim
30720
sysconfdir!$sysconfdir$ac_delim
30721
sharedstatedir!$sharedstatedir$ac_delim
30722
localstatedir!$localstatedir$ac_delim
30723
includedir!$includedir$ac_delim
30724
oldincludedir!$oldincludedir$ac_delim
30725
docdir!$docdir$ac_delim
30726
infodir!$infodir$ac_delim
30727
htmldir!$htmldir$ac_delim
30728
dvidir!$dvidir$ac_delim
30729
pdfdir!$pdfdir$ac_delim
30730
psdir!$psdir$ac_delim
30731
libdir!$libdir$ac_delim
30732
localedir!$localedir$ac_delim
30733
mandir!$mandir$ac_delim
30734
DEFS!$DEFS$ac_delim
30735
ECHO_C!$ECHO_C$ac_delim
30736
ECHO_N!$ECHO_N$ac_delim
30737
ECHO_T!$ECHO_T$ac_delim
30738
LIBS!$LIBS$ac_delim
30739
build_alias!$build_alias$ac_delim
30740
host_alias!$host_alias$ac_delim
30741
target_alias!$target_alias$ac_delim
30742
build!$build$ac_delim
30743
build_cpu!$build_cpu$ac_delim
30744
build_vendor!$build_vendor$ac_delim
30745
build_os!$build_os$ac_delim
30746
host!$host$ac_delim
30747
host_cpu!$host_cpu$ac_delim
30748
host_vendor!$host_vendor$ac_delim
30749
host_os!$host_os$ac_delim
30750
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30751
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30752
INSTALL_DATA!$INSTALL_DATA$ac_delim
30753
CYGPATH_W!$CYGPATH_W$ac_delim
30754
PACKAGE!$PACKAGE$ac_delim
30755
VERSION!$VERSION$ac_delim
30756
ACLOCAL!$ACLOCAL$ac_delim
30757
AUTOCONF!$AUTOCONF$ac_delim
30758
AUTOMAKE!$AUTOMAKE$ac_delim
30759
AUTOHEADER!$AUTOHEADER$ac_delim
30760
MAKEINFO!$MAKEINFO$ac_delim
30761
install_sh!$install_sh$ac_delim
30762
STRIP!$STRIP$ac_delim
30763
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30764
mkdir_p!$mkdir_p$ac_delim
30766
SET_MAKE!$SET_MAKE$ac_delim
30767
am__leading_dot!$am__leading_dot$ac_delim
30768
AMTAR!$AMTAR$ac_delim
30769
am__tar!$am__tar$ac_delim
30770
am__untar!$am__untar$ac_delim
30771
RELEASE!$RELEASE$ac_delim
30772
statedir!$statedir$ac_delim
30773
statduser!$statduser$ac_delim
30774
enable_nfsv3!$enable_nfsv3$ac_delim
30775
IDMAPD!$IDMAPD$ac_delim
30776
enable_nfsv4!$enable_nfsv4$ac_delim
30777
CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30778
CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30779
GSSD!$GSSD$ac_delim
30780
SVCGSSD!$SVCGSSD$ac_delim
30781
enable_gss!$enable_gss$ac_delim
30782
CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30783
CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30784
kprefix!$kprefix$ac_delim
30785
secure_statd!$secure_statd$ac_delim
30786
CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30787
CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30788
CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30789
CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30791
CFLAGS!$CFLAGS$ac_delim
30792
LDFLAGS!$LDFLAGS$ac_delim
30793
CPPFLAGS!$CPPFLAGS$ac_delim
30794
ac_ct_CC!$ac_ct_CC$ac_delim
30795
EXEEXT!$EXEEXT$ac_delim
30796
OBJEXT!$OBJEXT$ac_delim
30797
DEPDIR!$DEPDIR$ac_delim
30798
am__include!$am__include$ac_delim
30799
am__quote!$am__quote$ac_delim
30800
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30801
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30804
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30806
elif $ac_last_try; then
30807
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30808
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30809
{ (exit 1); exit 1; }; }
30811
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30815
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30816
if test -n "$ac_eof"; then
30817
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30818
ac_eof=`expr $ac_eof + 1`
30821
cat >>$CONFIG_STATUS <<_ACEOF
30822
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30823
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30826
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30827
s/^/s,@/; s/!/@,|#_!!_#|/
30830
s/'"$ac_delim"'$/,g/; t
30832
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30833
' >>$CONFIG_STATUS <conf$$subs.sed
30834
rm -f conf$$subs.sed
30835
cat >>$CONFIG_STATUS <<_ACEOF
30841
for ac_last_try in false false false false false :; do
30842
cat >conf$$subs.sed <<_ACEOF
30843
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30844
CCDEPMODE!$CCDEPMODE$ac_delim
30845
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30846
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30847
LIBWRAP!$LIBWRAP$ac_delim
30848
HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30849
HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30851
CXXFLAGS!$CXXFLAGS$ac_delim
30852
ac_ct_CXX!$ac_ct_CXX$ac_delim
30853
CXXDEPMODE!$CXXDEPMODE$ac_delim
30854
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30855
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30857
LN_S!$LN_S$ac_delim
30858
GREP!$GREP$ac_delim
30859
EGREP!$EGREP$ac_delim
30860
ECHO!$ECHO$ac_delim
30862
RANLIB!$RANLIB$ac_delim
30863
CXXCPP!$CXXCPP$ac_delim
30865
FFLAGS!$FFLAGS$ac_delim
30866
ac_ct_F77!$ac_ct_F77$ac_delim
30867
LIBTOOL!$LIBTOOL$ac_delim
30868
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30870
PKG_CONFIG!$PKG_CONFIG$ac_delim
30871
RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30872
RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30873
GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30874
GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30875
LIBSOCKET!$LIBSOCKET$ac_delim
30876
LIBNSL!$LIBNSL$ac_delim
30877
LIBCRYPT!$LIBCRYPT$ac_delim
30878
LIBBSD!$LIBBSD$ac_delim
30879
KRBDIR!$KRBDIR$ac_delim
30880
KRBLIBS!$KRBLIBS$ac_delim
30881
KRBCFLAGS!$KRBCFLAGS$ac_delim
30882
K5VERS!$K5VERS$ac_delim
30883
ALLOCA!$ALLOCA$ac_delim
30884
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30885
CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30886
CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30887
CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30888
LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30889
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30890
AM_CFLAGS!$AM_CFLAGS$ac_delim
30891
ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30892
LTLIBOBJS!$LTLIBOBJS$ac_delim
30895
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
30897
elif $ac_last_try; then
30898
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30899
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30900
{ (exit 1); exit 1; }; }
30902
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30906
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30907
if test -n "$ac_eof"; then
30908
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30909
ac_eof=`expr $ac_eof + 1`
30912
cat >>$CONFIG_STATUS <<_ACEOF
30913
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30914
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30917
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30918
s/^/s,@/; s/!/@,|#_!!_#|/
30921
s/'"$ac_delim"'$/,g/; t
30923
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30924
' >>$CONFIG_STATUS <conf$$subs.sed
30925
rm -f conf$$subs.sed
30926
cat >>$CONFIG_STATUS <<_ACEOF
30933
# VPATH may cause trouble with some makes, so we remove $(srcdir),
30934
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30935
# trailing colons and then remove the whole line if VPATH becomes empty
30936
# (actually we leave an empty line to preserve line numbers).
30937
if test "x$srcdir" = x.; then
30938
ac_vpsub='/^[ ]*VPATH[ ]*=/{
30939
s/:*\$(srcdir):*/:/
30940
s/:*\${srcdir}:*/:/
30942
s/^\([^=]*=[ ]*\):*/\1/
30948
cat >>$CONFIG_STATUS <<\_ACEOF
30949
fi # test -n "$CONFIG_FILES"
30952
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30955
:[FHLC]) ac_mode=$ac_tag; continue;;
30957
case $ac_mode$ac_tag in
30959
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30960
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30961
{ (exit 1); exit 1; }; };;
30962
:[FH]-) ac_tag=-:-;;
30963
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30980
-) ac_f="$tmp/stdin";;
30981
*) # Look for the file first in the build tree, then in the source tree
30982
# (if the path is not absolute). The absolute path cannot be DOS-style,
30983
# because $ac_f cannot contain `:'.
30987
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30989
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30990
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30991
{ (exit 1); exit 1; }; };;
30993
ac_file_inputs="$ac_file_inputs $ac_f"
30996
# Let's still pretend it is `configure' which instantiates (i.e., don't
30997
# use $as_me), people would be surprised to read:
30998
# /* config.h. Generated by config.status. */
30999
configure_input="Generated from "`IFS=:
31000
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31001
if test x"$ac_file" != x-; then
31002
configure_input="$ac_file. $configure_input"
31003
{ echo "$as_me:$LINENO: creating $ac_file" >&5
31004
echo "$as_me: creating $ac_file" >&6;}
31008
*:-:* | *:-) cat >"$tmp/stdin";;
31013
ac_dir=`$as_dirname -- "$ac_file" ||
31014
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31015
X"$ac_file" : 'X\(//\)[^/]' \| \
31016
X"$ac_file" : 'X\(//\)$' \| \
31017
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31019
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31023
/^X\(\/\/\)[^/].*/{
31038
-*) as_dir=./$as_dir;;
31040
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31044
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31045
*) as_qdir=$as_dir;;
31047
as_dirs="'$as_qdir' $as_dirs"
31048
as_dir=`$as_dirname -- "$as_dir" ||
31049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31050
X"$as_dir" : 'X\(//\)[^/]' \| \
31051
X"$as_dir" : 'X\(//\)$' \| \
31052
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31054
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31058
/^X\(\/\/\)[^/].*/{
31071
test -d "$as_dir" && break
31073
test -z "$as_dirs" || eval "mkdir $as_dirs"
31074
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31075
echo "$as_me: error: cannot create directory $as_dir" >&2;}
31076
{ (exit 1); exit 1; }; }; }
31080
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31082
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31083
# A ".." for each directory in $ac_dir_suffix.
31084
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31085
case $ac_top_builddir_sub in
31086
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31087
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31090
ac_abs_top_builddir=$ac_pwd
31091
ac_abs_builddir=$ac_pwd$ac_dir_suffix
31092
# for backward compatibility:
31093
ac_top_builddir=$ac_top_build_prefix
31096
.) # We are building in place.
31098
ac_top_srcdir=$ac_top_builddir_sub
31099
ac_abs_top_srcdir=$ac_pwd ;;
31100
[\\/]* | ?:[\\/]* ) # Absolute name.
31101
ac_srcdir=$srcdir$ac_dir_suffix;
31102
ac_top_srcdir=$srcdir
31103
ac_abs_top_srcdir=$srcdir ;;
31104
*) # Relative name.
31105
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31106
ac_top_srcdir=$ac_top_build_prefix$srcdir
31107
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31109
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31119
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31120
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31124
cat >>$CONFIG_STATUS <<\_ACEOF
31125
# If the template does not know about datarootdir, expand it.
31126
# FIXME: This hack should be removed a few years after 2.60.
31127
ac_datarootdir_hack=; ac_datarootdir_seen=
31129
case `sed -n '/datarootdir/ {
31138
' $ac_file_inputs` in
31139
*datarootdir*) ac_datarootdir_seen=yes;;
31140
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31141
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31142
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31144
cat >>$CONFIG_STATUS <<_ACEOF
31145
ac_datarootdir_hack='
31146
s&@datadir@&$datadir&g
31147
s&@docdir@&$docdir&g
31148
s&@infodir@&$infodir&g
31149
s&@localedir@&$localedir&g
31150
s&@mandir@&$mandir&g
31151
s&\\\${datarootdir}&$datarootdir&g' ;;
31155
# Neutralize VPATH when `$srcdir' = `.'.
31156
# Shell code in configure.ac might set extrasub.
31157
# FIXME: do we really want to maintain this feature?
31158
cat >>$CONFIG_STATUS <<_ACEOF
31162
cat >>$CONFIG_STATUS <<\_ACEOF
31164
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31165
s&@configure_input@&$configure_input&;t t
31166
s&@top_builddir@&$ac_top_builddir_sub&;t t
31167
s&@srcdir@&$ac_srcdir&;t t
31168
s&@abs_srcdir@&$ac_abs_srcdir&;t t
31169
s&@top_srcdir@&$ac_top_srcdir&;t t
31170
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31171
s&@builddir@&$ac_builddir&;t t
31172
s&@abs_builddir@&$ac_abs_builddir&;t t
31173
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31174
s&@INSTALL@&$ac_INSTALL&;t t
31175
$ac_datarootdir_hack
31176
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31178
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31179
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31180
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31181
which seems to be undefined. Please make sure it is defined." >&5
31182
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31183
which seems to be undefined. Please make sure it is defined." >&2;}
31187
-) cat "$tmp/out"; rm -f "$tmp/out";;
31188
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31197
# Transform confdefs.h into a sed script `conftest.defines', that
31198
# substitutes the proper values into config.h.in to produce config.h.
31199
rm -f conftest.defines conftest.tail
31200
# First, append a space to every undef/define line, to ease matching.
31201
echo 's/$/ /' >conftest.defines
31202
# Then, protect against being on the right side of a sed subst, or in
31203
# an unquoted here document, in config.status. If some macros were
31204
# called several times there might be several #defines for the same
31205
# symbol, which is useless. But do not sort them, since the last
31206
# AC_DEFINE must be honored.
31207
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31208
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31209
# NAME is the cpp macro being defined, VALUE is the value it is being given.
31210
# PARAMS is the parameter list in the macro definition--in most cases, it's
31211
# just an empty string.
31212
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31213
ac_dB='\\)[ (].*,\\1define\\2'
31221
s/^[ ]*#[ ]*define[ ][ ]*//
31226
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31227
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31228
' >>conftest.defines
31230
# Remove the space that was appended to ease matching.
31231
# Then replace #undef with comments. This is necessary, for
31232
# example, in the case of _POSIX_SOURCE, which is predefined and required
31233
# on some systems where configure will not decide to define it.
31234
# (The regexp can be short, since the line contains either #define or #undef.)
31236
s,^[ #]*u.*,/* & */,' >>conftest.defines
31238
# Break up conftest.defines:
31239
ac_max_sed_lines=50
31241
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31242
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31243
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31245
ac_in='$ac_file_inputs'
31246
ac_out='"$tmp/out1"'
31247
ac_nxt='"$tmp/out2"'
31251
# Write a here document:
31252
cat >>$CONFIG_STATUS <<_ACEOF
31253
# First, check the format of the line:
31254
cat >"\$tmp/defines.sed" <<\\CEOF
31255
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31256
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31260
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31262
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31263
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31264
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31265
grep . conftest.tail >/dev/null || break
31266
rm -f conftest.defines
31267
mv conftest.tail conftest.defines
31269
rm -f conftest.defines conftest.tail
31271
echo "ac_result=$ac_in" >>$CONFIG_STATUS
31272
cat >>$CONFIG_STATUS <<\_ACEOF
31273
if test x"$ac_file" != x-; then
31274
echo "/* $configure_input */" >"$tmp/config.h"
31275
cat "$ac_result" >>"$tmp/config.h"
31276
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31277
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31278
echo "$as_me: $ac_file is unchanged" >&6;}
31281
mv "$tmp/config.h" $ac_file
31284
echo "/* $configure_input */"
31288
# Compute $ac_file's index in $config_headers.
31290
for _am_header in $config_headers :; do
31291
case $_am_header in
31292
$ac_file | $ac_file:* )
31295
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
31298
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31299
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31300
X$ac_file : 'X\(//\)[^/]' \| \
31301
X$ac_file : 'X\(//\)$' \| \
31302
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31304
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31308
/^X\(\/\/\)[^/].*/{
31320
s/.*/./; q'`/stamp-h$_am_stamp_count
31323
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31324
echo "$as_me: executing $ac_file commands" >&6;}
31329
case $ac_file$ac_mode in
31330
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31331
# Strip MF so we end up with the name of the file.
31332
mf=`echo "$mf" | sed -e 's/:.*$//'`
31333
# Check whether this is an Automake generated Makefile or not.
31334
# We used to match only the files named `Makefile.in', but
31335
# some people rename them; so instead we look at the file content.
31336
# Grep'ing the first line is not enough: some people post-process
31337
# each Makefile.in and add a new line on top of each file to say so.
31338
# So let's grep whole file.
31339
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31340
dirpart=`$as_dirname -- "$mf" ||
31341
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31342
X"$mf" : 'X\(//\)[^/]' \| \
31343
X"$mf" : 'X\(//\)$' \| \
31344
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31350
/^X\(\/\/\)[^/].*/{
31366
# Extract the definition of DEPDIR, am__include, and am__quote
31367
# from the Makefile without running `make'.
31368
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31369
test -z "$DEPDIR" && continue
31370
am__include=`sed -n 's/^am__include = //p' < "$mf"`
31371
test -z "am__include" && continue
31372
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31373
# When using ansi2knr, U may be empty or an underscore; expand it
31374
U=`sed -n 's/^U = //p' < "$mf"`
31375
# Find all dependency output files, they are included files with
31376
# $(DEPDIR) in their names. We invoke sed twice because it is the
31377
# simplest approach to changing $(DEPDIR) to its actual value in the
31379
for file in `sed -n "
31380
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31381
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31382
# Make sure the directory exists.
31383
test -f "$dirpart/$file" && continue
31384
fdir=`$as_dirname -- "$file" ||
31385
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31386
X"$file" : 'X\(//\)[^/]' \| \
31387
X"$file" : 'X\(//\)$' \| \
31388
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31390
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31394
/^X\(\/\/\)[^/].*/{
31407
{ as_dir=$dirpart/$fdir
31409
-*) as_dir=./$as_dir;;
31411
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31415
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31416
*) as_qdir=$as_dir;;
31418
as_dirs="'$as_qdir' $as_dirs"
31419
as_dir=`$as_dirname -- "$as_dir" ||
31420
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31421
X"$as_dir" : 'X\(//\)[^/]' \| \
31422
X"$as_dir" : 'X\(//\)$' \| \
31423
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31425
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31429
/^X\(\/\/\)[^/].*/{
31442
test -d "$as_dir" && break
31444
test -z "$as_dirs" || eval "mkdir $as_dirs"
31445
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31446
echo "$as_me: error: cannot create directory $as_dir" >&2;}
31447
{ (exit 1); exit 1; }; }; }
31448
# echo "creating $dirpart/$file"
31449
echo '# dummy' > "$dirpart/$file"
31458
{ (exit 0); exit 0; }
31460
chmod +x $CONFIG_STATUS
31461
ac_clean_files=$ac_clean_files_save
31464
# configure is writing to config.log, and then calls config.status.
31465
# config.status does its own redirection, appending to config.log.
31466
# Unfortunately, on DOS this fails, as config.log is still kept open
31467
# by configure, so config.status won't be able to write to it; its
31468
# output is simply discarded. So we exec the FD to /dev/null,
31469
# effectively closing config.log, so it can be properly (re)opened and
31470
# appended to by config.status. When coming back to configure, we
31471
# need to make the FD available again.
31472
if test "$no_create" != yes; then
31474
ac_config_status_args=
31475
test "$silent" = yes &&
31476
ac_config_status_args="$ac_config_status_args --quiet"
31478
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31480
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
31481
# would make configure fail if this is the last instruction.
31482
$ac_cs_success || { (exit 1); exit 1; }