2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for libdap 3.9.3.
5
# Report bugs to <opendap-tech@opendap.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='libdap'
730
PACKAGE_TARNAME='libdap'
731
PACKAGE_VERSION='3.9.3'
732
PACKAGE_STRING='libdap 3.9.3'
733
PACKAGE_BUGREPORT='opendap-tech@opendap.org'
735
ac_unique_file="AISConnect.cc"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
783
program_transform_name
826
INSTALL_STRIP_PROGRAM
836
COMPRESSION_FOR_SERVER3
899
COMPILER_IS_GCC_FALSE
901
GL_COND_LIBTOOL_FALSE
923
HAVE_UNSIGNED_LONG_LONG_INT
932
BITSIZEOF_SIG_ATOMIC_T
936
HAVE_SIGNED_SIG_ATOMIC_T
1004
ac_precious_vars='build_alias
1026
# Initialize some variables set by options.
1028
ac_init_version=false
1029
# The variables have the same names as the options, with
1030
# dashes changed to underlines.
1031
cache_file=/dev/null
1038
program_transform_name=s,x,x,
1046
# Installation directory options.
1047
# These are left unexpanded so users can "make install exec_prefix=/foo"
1048
# and all the variables that are supposed to be based on exec_prefix
1049
# by default will actually change.
1050
# Use braces instead of parens because sh, perl, etc. also accept them.
1051
# (The list follows the same order as the GNU Coding Standards.)
1052
bindir='${exec_prefix}/bin'
1053
sbindir='${exec_prefix}/sbin'
1054
libexecdir='${exec_prefix}/libexec'
1055
datarootdir='${prefix}/share'
1056
datadir='${datarootdir}'
1057
sysconfdir='${prefix}/etc'
1058
sharedstatedir='${prefix}/com'
1059
localstatedir='${prefix}/var'
1060
includedir='${prefix}/include'
1061
oldincludedir='/usr/include'
1062
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063
infodir='${datarootdir}/info'
1068
libdir='${exec_prefix}/lib'
1069
localedir='${datarootdir}/locale'
1070
mandir='${datarootdir}/man'
1076
# If the previous option needs an argument, assign it.
1077
if test -n "$ac_prev"; then
1078
eval $ac_prev=\$ac_option
1084
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1088
# Accept the important Cygnus configure options, so we can diagnose typos.
1090
case $ac_dashdash$ac_option in
1094
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1096
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1097
bindir=$ac_optarg ;;
1099
-build | --build | --buil | --bui | --bu)
1100
ac_prev=build_alias ;;
1101
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1102
build_alias=$ac_optarg ;;
1104
-cache-file | --cache-file | --cache-fil | --cache-fi \
1105
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1106
ac_prev=cache_file ;;
1107
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1108
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1109
cache_file=$ac_optarg ;;
1111
--config-cache | -C)
1112
cache_file=config.cache ;;
1114
-datadir | --datadir | --datadi | --datad)
1116
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1117
datadir=$ac_optarg ;;
1119
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1120
| --dataroo | --dataro | --datar)
1121
ac_prev=datarootdir ;;
1122
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1123
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1124
datarootdir=$ac_optarg ;;
1126
-disable-* | --disable-*)
1127
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128
# Reject names that are not valid shell variable names.
1129
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1131
{ (exit 1); exit 1; }; }
1132
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1133
eval enable_$ac_feature=no ;;
1135
-docdir | --docdir | --docdi | --doc | --do)
1137
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138
docdir=$ac_optarg ;;
1140
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1142
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143
dvidir=$ac_optarg ;;
1145
-enable-* | --enable-*)
1146
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147
# Reject names that are not valid shell variable names.
1148
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1150
{ (exit 1); exit 1; }; }
1151
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1152
eval enable_$ac_feature=\$ac_optarg ;;
1154
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156
| --exec | --exe | --ex)
1157
ac_prev=exec_prefix ;;
1158
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160
| --exec=* | --exe=* | --ex=*)
1161
exec_prefix=$ac_optarg ;;
1163
-gas | --gas | --ga | --g)
1164
# Obsolete; use --with-gas.
1167
-help | --help | --hel | --he | -h)
1168
ac_init_help=long ;;
1169
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170
ac_init_help=recursive ;;
1171
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172
ac_init_help=short ;;
1174
-host | --host | --hos | --ho)
1175
ac_prev=host_alias ;;
1176
-host=* | --host=* | --hos=* | --ho=*)
1177
host_alias=$ac_optarg ;;
1179
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183
htmldir=$ac_optarg ;;
1185
-includedir | --includedir | --includedi | --included | --include \
1186
| --includ | --inclu | --incl | --inc)
1187
ac_prev=includedir ;;
1188
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189
| --includ=* | --inclu=* | --incl=* | --inc=*)
1190
includedir=$ac_optarg ;;
1192
-infodir | --infodir | --infodi | --infod | --info | --inf)
1194
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195
infodir=$ac_optarg ;;
1197
-libdir | --libdir | --libdi | --libd)
1199
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1200
libdir=$ac_optarg ;;
1202
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203
| --libexe | --libex | --libe)
1204
ac_prev=libexecdir ;;
1205
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206
| --libexe=* | --libex=* | --libe=*)
1207
libexecdir=$ac_optarg ;;
1209
-localedir | --localedir | --localedi | --localed | --locale)
1210
ac_prev=localedir ;;
1211
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212
localedir=$ac_optarg ;;
1214
-localstatedir | --localstatedir | --localstatedi | --localstated \
1215
| --localstate | --localstat | --localsta | --localst | --locals)
1216
ac_prev=localstatedir ;;
1217
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219
localstatedir=$ac_optarg ;;
1221
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224
mandir=$ac_optarg ;;
1226
-nfp | --nfp | --nf)
1227
# Obsolete; use --without-fp.
1230
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231
| --no-cr | --no-c | -n)
1234
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240
| --oldin | --oldi | --old | --ol | --o)
1241
ac_prev=oldincludedir ;;
1242
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245
oldincludedir=$ac_optarg ;;
1247
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250
prefix=$ac_optarg ;;
1252
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1253
| --program-pre | --program-pr | --program-p)
1254
ac_prev=program_prefix ;;
1255
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1256
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257
program_prefix=$ac_optarg ;;
1259
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1260
| --program-suf | --program-su | --program-s)
1261
ac_prev=program_suffix ;;
1262
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1263
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264
program_suffix=$ac_optarg ;;
1266
-program-transform-name | --program-transform-name \
1267
| --program-transform-nam | --program-transform-na \
1268
| --program-transform-n | --program-transform- \
1269
| --program-transform | --program-transfor \
1270
| --program-transfo | --program-transf \
1271
| --program-trans | --program-tran \
1272
| --progr-tra | --program-tr | --program-t)
1273
ac_prev=program_transform_name ;;
1274
-program-transform-name=* | --program-transform-name=* \
1275
| --program-transform-nam=* | --program-transform-na=* \
1276
| --program-transform-n=* | --program-transform-=* \
1277
| --program-transform=* | --program-transfor=* \
1278
| --program-transfo=* | --program-transf=* \
1279
| --program-trans=* | --program-tran=* \
1280
| --progr-tra=* | --program-tr=* | --program-t=*)
1281
program_transform_name=$ac_optarg ;;
1283
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286
pdfdir=$ac_optarg ;;
1288
-psdir | --psdir | --psdi | --psd | --ps)
1290
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294
| -silent | --silent | --silen | --sile | --sil)
1297
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301
sbindir=$ac_optarg ;;
1303
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1304
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305
| --sharedst | --shareds | --shared | --share | --shar \
1307
ac_prev=sharedstatedir ;;
1308
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312
sharedstatedir=$ac_optarg ;;
1314
-site | --site | --sit)
1316
-site=* | --site=* | --sit=*)
1319
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322
srcdir=$ac_optarg ;;
1324
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325
| --syscon | --sysco | --sysc | --sys | --sy)
1326
ac_prev=sysconfdir ;;
1327
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329
sysconfdir=$ac_optarg ;;
1331
-target | --target | --targe | --targ | --tar | --ta | --t)
1332
ac_prev=target_alias ;;
1333
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334
target_alias=$ac_optarg ;;
1336
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1339
-version | --version | --versio | --versi | --vers | -V)
1340
ac_init_version=: ;;
1343
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344
# Reject names that are not valid shell variable names.
1345
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1347
{ (exit 1); exit 1; }; }
1348
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1349
eval with_$ac_package=\$ac_optarg ;;
1351
-without-* | --without-*)
1352
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353
# Reject names that are not valid shell variable names.
1354
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1356
{ (exit 1); exit 1; }; }
1357
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1358
eval with_$ac_package=no ;;
1361
# Obsolete; use --with-x.
1364
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365
| --x-incl | --x-inc | --x-in | --x-i)
1366
ac_prev=x_includes ;;
1367
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369
x_includes=$ac_optarg ;;
1371
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1372
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373
ac_prev=x_libraries ;;
1374
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376
x_libraries=$ac_optarg ;;
1378
-*) { echo "$as_me: error: unrecognized option: $ac_option
1379
Try \`$0 --help' for more information." >&2
1380
{ (exit 1); exit 1; }; }
1384
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385
# Reject names that are not valid shell variable names.
1386
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388
{ (exit 1); exit 1; }; }
1389
eval $ac_envvar=\$ac_optarg
1390
export $ac_envvar ;;
1393
# FIXME: should be removed in autoconf 3.0.
1394
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403
if test -n "$ac_prev"; then
1404
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405
{ echo "$as_me: error: missing argument to $ac_option" >&2
1406
{ (exit 1); exit 1; }; }
1409
# Be sure to have absolute directory names.
1410
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411
datadir sysconfdir sharedstatedir localstatedir includedir \
1412
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413
libdir localedir mandir
1415
eval ac_val=\$$ac_var
1417
[\\/$]* | ?:[\\/]* ) continue;;
1418
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1421
{ (exit 1); exit 1; }; }
1424
# There might be people who depend on the old broken behavior: `$host'
1425
# used to hold the argument of --host etc.
1426
# FIXME: To remove some day.
1429
target=$target_alias
1431
# FIXME: To remove some day.
1432
if test "x$host_alias" != x; then
1433
if test "x$build_alias" = x; then
1434
cross_compiling=maybe
1435
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1436
If a cross compiler is detected then cross compile mode will be used." >&2
1437
elif test "x$build_alias" != "x$host_alias"; then
1443
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
test "$silent" = yes && exec 6>/dev/null
1448
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449
ac_ls_di=`ls -di .` &&
1450
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451
{ echo "$as_me: error: Working directory cannot be determined" >&2
1452
{ (exit 1); exit 1; }; }
1453
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1455
{ (exit 1); exit 1; }; }
1458
# Find the source files, if location was not specified.
1459
if test -z "$srcdir"; then
1460
ac_srcdir_defaulted=yes
1461
# Try the directory containing this script, then the parent directory.
1462
ac_confdir=`$as_dirname -- "$0" ||
1463
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464
X"$0" : 'X\(//\)[^/]' \| \
1465
X"$0" : 'X\(//\)$' \| \
1466
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1468
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486
if test ! -r "$srcdir/$ac_unique_file"; then
1490
ac_srcdir_defaulted=no
1492
if test ! -r "$srcdir/$ac_unique_file"; then
1493
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1495
{ (exit 1); exit 1; }; }
1497
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1500
{ (exit 1); exit 1; }; }
1502
# When building in place, set srcdir=.
1503
if test "$ac_abs_confdir" = "$ac_pwd"; then
1506
# Remove unnecessary trailing slashes from srcdir.
1507
# Double slashes in file names in object file debugging info
1508
# mess up M-x gdb in Emacs.
1510
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512
for ac_var in $ac_precious_vars; do
1513
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514
eval ac_env_${ac_var}_value=\$${ac_var}
1515
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520
# Report the --help message.
1522
if test "$ac_init_help" = "long"; then
1523
# Omit some internal or obsolete options to make the list less imposing.
1524
# This message is too long to be a string in the A/UX 3.1 sh.
1526
\`configure' configures libdap 3.9.3 to adapt to many kinds of systems.
1528
Usage: $0 [OPTION]... [VAR=VALUE]...
1530
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531
VAR=VALUE. See below for descriptions of some of the useful variables.
1533
Defaults for the options are specified in brackets.
1536
-h, --help display this help and exit
1537
--help=short display options specific to this package
1538
--help=recursive display the short help of all the included packages
1539
-V, --version display version information and exit
1540
-q, --quiet, --silent do not print \`checking...' messages
1541
--cache-file=FILE cache test results in FILE [disabled]
1542
-C, --config-cache alias for \`--cache-file=config.cache'
1543
-n, --no-create do not create output files
1544
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1546
Installation directories:
1547
--prefix=PREFIX install architecture-independent files in PREFIX
1548
[$ac_default_prefix]
1549
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1552
By default, \`make install' will install all the files in
1553
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1554
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555
for instance \`--prefix=\$HOME'.
1557
For better control, use the options below.
1559
Fine tuning of the installation directories:
1560
--bindir=DIR user executables [EPREFIX/bin]
1561
--sbindir=DIR system admin executables [EPREFIX/sbin]
1562
--libexecdir=DIR program executables [EPREFIX/libexec]
1563
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1564
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1565
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1566
--libdir=DIR object code libraries [EPREFIX/lib]
1567
--includedir=DIR C header files [PREFIX/include]
1568
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1569
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1570
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1571
--infodir=DIR info documentation [DATAROOTDIR/info]
1572
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1573
--mandir=DIR man documentation [DATAROOTDIR/man]
1574
--docdir=DIR documentation root [DATAROOTDIR/doc/libdap]
1575
--htmldir=DIR html documentation [DOCDIR]
1576
--dvidir=DIR dvi documentation [DOCDIR]
1577
--pdfdir=DIR pdf documentation [DOCDIR]
1578
--psdir=DIR ps documentation [DOCDIR]
1584
--program-prefix=PREFIX prepend PREFIX to installed program names
1585
--program-suffix=SUFFIX append SUFFIX to installed program names
1586
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1589
--build=BUILD configure for building on BUILD [guessed]
1590
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1594
if test -n "$ac_init_help"; then
1595
case $ac_init_help in
1596
short | recursive ) echo "Configuration of libdap 3.9.3:";;
1601
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1602
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1603
--disable-dependency-tracking speeds up one-time build
1604
--enable-dependency-tracking do not reject slow dependency extractors
1605
--enable-shared[=PKGS] build shared libraries [default=yes]
1606
--enable-static[=PKGS] build static libraries [default=yes]
1607
--enable-fast-install[=PKGS]
1608
optimize for fast installation [default=yes]
1609
--disable-libtool-lock avoid locking (might break parallel builds)
1610
--enable-debug=ARG Program instrumentation (1,2)
1613
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1614
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1615
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616
--with-pic try to use only PIC/non-PIC objects [default=use
1618
--with-tags[=TAGS] include additional configurations [automatic]
1619
--without-included-regex
1620
don't compile regex; this is the default on 32-bit
1621
systems with recent-enough versions of the GNU C
1622
Library (use with caution on other systems). On
1623
systems with 64-bit ptrdiff_t and 32-bit int,
1624
--with-included-regex is the default, in case regex
1625
functions operate on very long strings (>2GB)
1626
--with-zlib=DIR root directory path of zlib installation defaults to
1627
/usr/local or /usr if not found in /usr/local
1628
--without-zlib to disable zlib usage completely
1629
--with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1630
--with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1632
Some influential environment variables:
1633
CXX C++ compiler command
1634
CXXFLAGS C++ compiler flags
1635
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636
nonstandard directory <lib dir>
1637
LIBS libraries to pass to the linker, e.g. -l<library>
1638
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1639
you have headers in a nonstandard directory <include dir>
1640
CC C compiler command
1641
CFLAGS C compiler flags
1643
CXXCPP C++ preprocessor
1644
F77 Fortran 77 compiler command
1645
FFLAGS Fortran 77 compiler flags
1646
PKG_CONFIG path to pkg-config utility
1647
CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1648
CURL_LIBS linker flags for CURL, overriding pkg-config
1649
XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1650
XML2_LIBS linker flags for XML2, overriding pkg-config
1652
Use these variables to override the choices made by `configure' or to help
1653
it to find libraries and programs with nonstandard names/locations.
1655
Report bugs to <opendap-tech@opendap.org>.
1660
if test "$ac_init_help" = "recursive"; then
1661
# If there are subdirs, report their specific --help.
1662
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663
test -d "$ac_dir" || continue
1667
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1670
# A ".." for each directory in $ac_dir_suffix.
1671
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1672
case $ac_top_builddir_sub in
1673
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677
ac_abs_top_builddir=$ac_pwd
1678
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679
# for backward compatibility:
1680
ac_top_builddir=$ac_top_build_prefix
1683
.) # We are building in place.
1685
ac_top_srcdir=$ac_top_builddir_sub
1686
ac_abs_top_srcdir=$ac_pwd ;;
1687
[\\/]* | ?:[\\/]* ) # Absolute name.
1688
ac_srcdir=$srcdir$ac_dir_suffix;
1689
ac_top_srcdir=$srcdir
1690
ac_abs_top_srcdir=$srcdir ;;
1692
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693
ac_top_srcdir=$ac_top_build_prefix$srcdir
1694
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
cd "$ac_dir" || { ac_status=$?; continue; }
1699
# Check for guested configure.
1700
if test -f "$ac_srcdir/configure.gnu"; then
1702
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703
elif test -f "$ac_srcdir/configure"; then
1705
$SHELL "$ac_srcdir/configure" --help=recursive
1707
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709
cd "$ac_pwd" || { ac_status=$?; break; }
1713
test -n "$ac_init_help" && exit $ac_status
1714
if $ac_init_version; then
1716
libdap configure 3.9.3
1717
generated by GNU Autoconf 2.61
1719
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1720
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1721
This configure script is free software; the Free Software Foundation
1722
gives unlimited permission to copy, distribute and modify it.
1726
cat >config.log <<_ACEOF
1727
This file contains any messages produced by compilers while
1728
running configure, to aid debugging if configure makes a mistake.
1730
It was created by libdap $as_me 3.9.3, which was
1731
generated by GNU Autoconf 2.61. Invocation command line was
1743
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1745
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1746
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1747
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1752
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1753
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1754
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1756
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1757
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1758
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766
test -z "$as_dir" && as_dir=.
1767
echo "PATH: $as_dir"
1783
# Keep a trace of the command line.
1784
# Strip out --no-create and --no-recursion so they do not pile up.
1785
# Strip out --silent because we don't want to record it for future runs.
1786
# Also quote any args containing shell meta-characters.
1787
# Make two passes to allow for proper duplicate-argument suppression.
1791
ac_must_keep_next=false
1797
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799
| -silent | --silent | --silen | --sile | --sil)
1802
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1807
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1808
if test $ac_must_keep_next = true; then
1809
ac_must_keep_next=false # Got value, back to normal.
1812
*=* | --config-cache | -C | -disable-* | --disable-* \
1813
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815
| -with-* | --with-* | -without-* | --without-* | --x)
1816
case "$ac_configure_args0 " in
1817
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820
-* ) ac_must_keep_next=true ;;
1823
ac_configure_args="$ac_configure_args '$ac_arg'"
1828
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1829
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1831
# When interrupted or exit'd, cleanup temporary files, and complete
1832
# config.log. We remove comments because anyway the quotes in there
1833
# would cause problems or look ugly.
1834
# WARNING: Use '\'' to represent an apostrophe within the trap.
1835
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836
trap 'exit_status=$?
1837
# Save into config.log some information that might help in debugging.
1842
## ---------------- ##
1843
## Cache variables. ##
1844
## ---------------- ##
1847
# The following way of writing the cache mishandles newlines in values,
1849
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850
eval ac_val=\$$ac_var
1854
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1855
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1858
_ | IFS | as_nl) ;; #(
1859
*) $as_unset $ac_var ;;
1864
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1865
*${as_nl}ac_space=\ *)
1867
"s/'\''/'\''\\\\'\'''\''/g;
1868
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1871
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879
## ----------------- ##
1880
## Output variables. ##
1881
## ----------------- ##
1884
for ac_var in $ac_subst_vars
1886
eval ac_val=\$$ac_var
1888
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890
echo "$ac_var='\''$ac_val'\''"
1894
if test -n "$ac_subst_files"; then
1896
## ------------------- ##
1897
## File substitutions. ##
1898
## ------------------- ##
1901
for ac_var in $ac_subst_files
1903
eval ac_val=\$$ac_var
1905
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907
echo "$ac_var='\''$ac_val'\''"
1912
if test -s confdefs.h; then
1922
test "$ac_signal" != 0 &&
1923
echo "$as_me: caught signal $ac_signal"
1924
echo "$as_me: exit $exit_status"
1926
rm -f core *.core core.conftest.* &&
1927
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930
for ac_signal in 1 2 13 15; do
1931
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1935
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1936
rm -f -r conftest* confdefs.h
1938
# Predefined preprocessor variables.
1940
cat >>confdefs.h <<_ACEOF
1941
#define PACKAGE_NAME "$PACKAGE_NAME"
1945
cat >>confdefs.h <<_ACEOF
1946
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950
cat >>confdefs.h <<_ACEOF
1951
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1955
cat >>confdefs.h <<_ACEOF
1956
#define PACKAGE_STRING "$PACKAGE_STRING"
1960
cat >>confdefs.h <<_ACEOF
1961
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965
# Let the site file select an alternate cache file if it wants to.
1966
# Prefer explicitly selected file to automatically selected ones.
1967
if test -n "$CONFIG_SITE"; then
1968
set x "$CONFIG_SITE"
1969
elif test "x$prefix" != xNONE; then
1970
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1972
set x "$ac_default_prefix/share/config.site" \
1973
"$ac_default_prefix/etc/config.site"
1978
if test -r "$ac_site_file"; then
1979
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1980
echo "$as_me: loading site script $ac_site_file" >&6;}
1981
sed 's/^/| /' "$ac_site_file" >&5
1986
if test -r "$cache_file"; then
1987
# Some versions of bash will fail to source /dev/null (special
1988
# files actually), so we avoid doing that.
1989
if test -f "$cache_file"; then
1990
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1991
echo "$as_me: loading cache $cache_file" >&6;}
1993
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1994
*) . "./$cache_file";;
1998
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1999
echo "$as_me: creating cache $cache_file" >&6;}
2003
ac_header_list="$ac_header_list locale.h"
2004
ac_func_list="$ac_func_list isblank"
2005
ac_func_list="$ac_func_list iswctype"
2006
ac_func_list="$ac_func_list mbrtowc"
2007
ac_func_list="$ac_func_list wcrtomb"
2008
ac_func_list="$ac_func_list wcscoll"
2009
ac_header_list="$ac_header_list stdint.h"
2010
ac_header_list="$ac_header_list wchar.h"
2011
ac_header_list="$ac_header_list stdlib.h"
2012
ac_header_list="$ac_header_list unistd.h"
2013
ac_func_list="$ac_func_list iswcntrl"
2014
ac_header_list="$ac_header_list wctype.h"
2015
# Check that the precious variables saved in the cache have kept the same
2017
ac_cache_corrupted=false
2018
for ac_var in $ac_precious_vars; do
2019
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020
eval ac_new_set=\$ac_env_${ac_var}_set
2021
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022
eval ac_new_val=\$ac_env_${ac_var}_value
2023
case $ac_old_set,$ac_new_set in
2025
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027
ac_cache_corrupted=: ;;
2029
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2030
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031
ac_cache_corrupted=: ;;
2034
if test "x$ac_old_val" != "x$ac_new_val"; then
2035
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2036
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2037
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2038
echo "$as_me: former value: $ac_old_val" >&2;}
2039
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2040
echo "$as_me: current value: $ac_new_val" >&2;}
2041
ac_cache_corrupted=:
2044
# Pass precious variables to config.status.
2045
if test "$ac_new_set" = set; then
2047
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2048
*) ac_arg=$ac_var=$ac_new_val ;;
2050
case " $ac_configure_args " in
2051
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2052
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2056
if $ac_cache_corrupted; then
2057
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2058
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2059
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2060
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2061
{ (exit 1); exit 1; }; }
2089
ac_cpp='$CPP $CPPFLAGS'
2090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
cat >>confdefs.h <<\_ACEOF
2097
#define DAP_PROTOCOL_VERSION "3.2"
2104
for ac_dir in conf "$srcdir"/conf; do
2105
if test -f "$ac_dir/install-sh"; then
2107
ac_install_sh="$ac_aux_dir/install-sh -c"
2109
elif test -f "$ac_dir/install.sh"; then
2111
ac_install_sh="$ac_aux_dir/install.sh -c"
2113
elif test -f "$ac_dir/shtool"; then
2115
ac_install_sh="$ac_aux_dir/shtool install -c"
2119
if test -z "$ac_aux_dir"; then
2120
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conf \"$srcdir\"/conf" >&5
2121
echo "$as_me: error: cannot find install-sh or install.sh in conf \"$srcdir\"/conf" >&2;}
2122
{ (exit 1); exit 1; }; }
2125
# These three variables are undocumented and unsupported,
2126
# and are intended to be withdrawn in a future Autoconf release.
2127
# They can cause serious problems if a builder's source tree is in a directory
2128
# whose full name contains unusual characters.
2129
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2130
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2131
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2134
ac_config_headers="$ac_config_headers config.h dods-datatypes-config.h xdr-datatypes-config.h"
2137
am__api_version='1.10'
2139
# Find a good install program. We prefer a C program (faster),
2140
# so one script is as good as another. But avoid the broken or
2141
# incompatible versions:
2142
# SysV /etc/install, /usr/sbin/install
2143
# SunOS /usr/etc/install
2144
# IRIX /sbin/install
2146
# AmigaOS /C/install, which installs bootblocks on floppy discs
2147
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2148
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2149
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2150
# OS/2's system install, which has a completely different semantic
2151
# ./install, which can be erroneously created by make from ./install.sh.
2152
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2153
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2154
if test -z "$INSTALL"; then
2155
if test "${ac_cv_path_install+set}" = set; then
2156
echo $ECHO_N "(cached) $ECHO_C" >&6
2158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162
test -z "$as_dir" && as_dir=.
2163
# Account for people who put trailing slashes in PATH elements.
2165
./ | .// | /cC/* | \
2166
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2167
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2170
# OSF1 and SCO ODT 3.0 have their own names for install.
2171
# Don't use installbsd from OSF since it installs stuff as root
2173
for ac_prog in ginstall scoinst install; do
2174
for ac_exec_ext in '' $ac_executable_extensions; do
2175
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2176
if test $ac_prog = install &&
2177
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2178
# AIX install. It has an incompatible calling convention.
2180
elif test $ac_prog = install &&
2181
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182
# program-specific install script used by HP pwplus--don't use.
2185
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2198
if test "${ac_cv_path_install+set}" = set; then
2199
INSTALL=$ac_cv_path_install
2201
# As a last resort, use the slow shell script. Don't cache a
2202
# value for INSTALL within a source directory, because that will
2203
# break other packages using the cache if that directory is
2204
# removed, or if the value is a relative name.
2205
INSTALL=$ac_install_sh
2208
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2209
echo "${ECHO_T}$INSTALL" >&6; }
2211
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2212
# It thinks the first close brace ends the variable substitution.
2213
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2223
echo timestamp > conftest.file
2224
# Do `set' in a subshell so we don't clobber the current shell's
2225
# arguments. Must try -L first in case configure is actually a
2226
# symlink; some systems play weird games with the mod time of symlinks
2227
# (eg FreeBSD returns the mod time of the symlink's containing
2230
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2231
if test "$*" = "X"; then
2233
set X `ls -t $srcdir/configure conftest.file`
2236
if test "$*" != "X $srcdir/configure conftest.file" \
2237
&& test "$*" != "X conftest.file $srcdir/configure"; then
2239
# If neither matched, then we have a broken ls. This can happen
2240
# if, for instance, CONFIG_SHELL is bash and it inherits a
2241
# broken ls alias from the environment. This has actually
2242
# happened. Such a system could not be considered "sane".
2243
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2244
alias in your environment" >&5
2245
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2246
alias in your environment" >&2;}
2247
{ (exit 1); exit 1; }; }
2250
test "$2" = conftest.file
2256
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2257
Check your system clock" >&5
2258
echo "$as_me: error: newly created file is older than distributed files!
2259
Check your system clock" >&2;}
2260
{ (exit 1); exit 1; }; }
2262
{ echo "$as_me:$LINENO: result: yes" >&5
2263
echo "${ECHO_T}yes" >&6; }
2264
test "$program_prefix" != NONE &&
2265
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2266
# Use a double $ so make ignores it.
2267
test "$program_suffix" != NONE &&
2268
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2269
# Double any \ or $. echo might interpret backslashes.
2270
# By default was `s,x,x', remove it if useless.
2271
cat <<\_ACEOF >conftest.sed
2272
s/[\\$]/&&/g;s/;s,x,x,$//
2274
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2277
# expand $ac_aux_dir to an absolute path
2278
am_aux_dir=`cd $ac_aux_dir && pwd`
2280
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2281
# Use eval to expand $SHELL
2282
if eval "$MISSING --run true"; then
2283
am_missing_run="$MISSING --run "
2286
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2287
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2291
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2292
if test -z "$MKDIR_P"; then
2293
if test "${ac_cv_path_mkdir+set}" = set; then
2294
echo $ECHO_N "(cached) $ECHO_C" >&6
2296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2300
test -z "$as_dir" && as_dir=.
2301
for ac_prog in mkdir gmkdir; do
2302
for ac_exec_ext in '' $ac_executable_extensions; do
2303
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2304
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2305
'mkdir (GNU coreutils) '* | \
2306
'mkdir (coreutils) '* | \
2307
'mkdir (fileutils) '4.1*)
2308
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2318
if test "${ac_cv_path_mkdir+set}" = set; then
2319
MKDIR_P="$ac_cv_path_mkdir -p"
2321
# As a last resort, use the slow shell script. Don't cache a
2322
# value for MKDIR_P within a source directory, because that will
2323
# break other packages using the cache if that directory is
2324
# removed, or if the value is a relative name.
2325
test -d ./--version && rmdir ./--version
2326
MKDIR_P="$ac_install_sh -d"
2329
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2330
echo "${ECHO_T}$MKDIR_P" >&6; }
2334
[\\/$]* | ?:[\\/]*) ;;
2335
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2338
for ac_prog in gawk mawk nawk awk
2340
# Extract the first word of "$ac_prog", so it can be a program name with args.
2341
set dummy $ac_prog; ac_word=$2
2342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344
if test "${ac_cv_prog_AWK+set}" = set; then
2345
echo $ECHO_N "(cached) $ECHO_C" >&6
2347
if test -n "$AWK"; then
2348
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354
test -z "$as_dir" && as_dir=.
2355
for ac_exec_ext in '' $ac_executable_extensions; do
2356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357
ac_cv_prog_AWK="$ac_prog"
2358
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368
if test -n "$AWK"; then
2369
{ echo "$as_me:$LINENO: result: $AWK" >&5
2370
echo "${ECHO_T}$AWK" >&6; }
2372
{ echo "$as_me:$LINENO: result: no" >&5
2373
echo "${ECHO_T}no" >&6; }
2377
test -n "$AWK" && break
2380
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2381
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2382
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384
echo $ECHO_N "(cached) $ECHO_C" >&6
2386
cat >conftest.make <<\_ACEOF
2389
@echo '@@@%%%=$(MAKE)=@@@%%%'
2391
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2394
eval ac_cv_prog_make_${ac_make}_set=yes;;
2396
eval ac_cv_prog_make_${ac_make}_set=no;;
2400
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401
{ echo "$as_me:$LINENO: result: yes" >&5
2402
echo "${ECHO_T}yes" >&6; }
2405
{ echo "$as_me:$LINENO: result: no" >&5
2406
echo "${ECHO_T}no" >&6; }
2407
SET_MAKE="MAKE=${MAKE-make}"
2410
rm -rf .tst 2>/dev/null
2411
mkdir .tst 2>/dev/null
2412
if test -d .tst; then
2417
rmdir .tst 2>/dev/null
2419
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2420
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2421
# is not polluted with repeated "-I."
2422
am__isrc=' -I$(srcdir)'
2423
# test to see if srcdir already configured
2424
if test -f $srcdir/config.status; then
2425
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2426
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2427
{ (exit 1); exit 1; }; }
2431
# test whether we have cygpath
2432
if test -z "$CYGPATH_W"; then
2433
if (cygpath --version) >/dev/null 2>/dev/null; then
2434
CYGPATH_W='cygpath -w'
2441
# Define the identity of the package.
2446
cat >>confdefs.h <<_ACEOF
2447
#define PACKAGE "$PACKAGE"
2451
cat >>confdefs.h <<_ACEOF
2452
#define VERSION "$VERSION"
2455
# Some tools Automake needs.
2457
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2460
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2463
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2466
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2469
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2471
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2473
# Installed binaries are usually stripped using `strip' when the user
2474
# run `make install-strip'. However `strip' might not be the right
2475
# tool to use in cross-compilation environments, therefore Automake
2476
# will honor the `STRIP' environment variable to overrule this program.
2477
if test "$cross_compiling" != no; then
2478
if test -n "$ac_tool_prefix"; then
2479
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480
set dummy ${ac_tool_prefix}strip; ac_word=$2
2481
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483
if test "${ac_cv_prog_STRIP+set}" = set; then
2484
echo $ECHO_N "(cached) $ECHO_C" >&6
2486
if test -n "$STRIP"; then
2487
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493
test -z "$as_dir" && as_dir=.
2494
for ac_exec_ext in '' $ac_executable_extensions; do
2495
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506
STRIP=$ac_cv_prog_STRIP
2507
if test -n "$STRIP"; then
2508
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2509
echo "${ECHO_T}$STRIP" >&6; }
2511
{ echo "$as_me:$LINENO: result: no" >&5
2512
echo "${ECHO_T}no" >&6; }
2517
if test -z "$ac_cv_prog_STRIP"; then
2519
# Extract the first word of "strip", so it can be a program name with args.
2520
set dummy strip; ac_word=$2
2521
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524
echo $ECHO_N "(cached) $ECHO_C" >&6
2526
if test -n "$ac_ct_STRIP"; then
2527
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533
test -z "$as_dir" && as_dir=.
2534
for ac_exec_ext in '' $ac_executable_extensions; do
2535
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536
ac_cv_prog_ac_ct_STRIP="strip"
2537
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547
if test -n "$ac_ct_STRIP"; then
2548
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2551
{ echo "$as_me:$LINENO: result: no" >&5
2552
echo "${ECHO_T}no" >&6; }
2555
if test "x$ac_ct_STRIP" = x; then
2558
case $cross_compiling:$ac_tool_warned in
2560
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2561
whose name does not start with the host triplet. If you think this
2562
configuration is useful to you, please write to autoconf@gnu.org." >&5
2563
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2564
whose name does not start with the host triplet. If you think this
2565
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2566
ac_tool_warned=yes ;;
2571
STRIP="$ac_cv_prog_STRIP"
2575
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2577
# We need awk for the "check" target. The system "awk" is bad on
2579
# Always define AMTAR for backward compatibility.
2581
AMTAR=${AMTAR-"${am_missing_run}tar"}
2583
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2591
cat >>confdefs.h <<\_ACEOF
2592
#define FILE_METHODS 1
2597
cat >>confdefs.h <<\_ACEOF
2598
#define CNAME "libdap"
2602
cat >>confdefs.h <<_ACEOF
2603
#define CVER "$PACKAGE_VERSION"
2607
cat >>confdefs.h <<_ACEOF
2608
#define DVR "libdap/$PACKAGE_VERSION"
2614
cat >>confdefs.h <<\_ACEOF
2621
cat >>confdefs.h <<\_ACEOF
2622
#define COMPRESSION_FOR_SERVER3 0
2628
# Make sure we can run config.sub.
2629
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2631
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2632
{ (exit 1); exit 1; }; }
2634
{ echo "$as_me:$LINENO: checking build system type" >&5
2635
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2636
if test "${ac_cv_build+set}" = set; then
2637
echo $ECHO_N "(cached) $ECHO_C" >&6
2639
ac_build_alias=$build_alias
2640
test "x$ac_build_alias" = x &&
2641
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642
test "x$ac_build_alias" = x &&
2643
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2644
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2645
{ (exit 1); exit 1; }; }
2646
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2648
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2649
{ (exit 1); exit 1; }; }
2652
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2653
echo "${ECHO_T}$ac_cv_build" >&6; }
2654
case $ac_cv_build in
2656
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2657
echo "$as_me: error: invalid value of canonical build" >&2;}
2658
{ (exit 1); exit 1; }; };;
2661
ac_save_IFS=$IFS; IFS='-'
2667
# Remember, the first character of IFS is used to create $*,
2668
# except with old shells:
2671
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2674
{ echo "$as_me:$LINENO: checking host system type" >&5
2675
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2676
if test "${ac_cv_host+set}" = set; then
2677
echo $ECHO_N "(cached) $ECHO_C" >&6
2679
if test "x$host_alias" = x; then
2680
ac_cv_host=$ac_cv_build
2682
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2684
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2685
{ (exit 1); exit 1; }; }
2689
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2690
echo "${ECHO_T}$ac_cv_host" >&6; }
2693
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2694
echo "$as_me: error: invalid value of canonical host" >&2;}
2695
{ (exit 1); exit 1; }; };;
2698
ac_save_IFS=$IFS; IFS='-'
2704
# Remember, the first character of IFS is used to create $*,
2705
# except with old shells:
2708
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720
LIBDAP_VERSION="$DAPLIB_CURRENT:$DAPLIB_REVISION:$DAPLIB_AGE"
2725
CLIENTLIB_REVISION=1
2730
CLIENTLIB_VERSION="$CLIENTLIB_CURRENT:$CLIENTLIB_REVISION:$CLIENTLIB_AGE"
2735
SERVERLIB_REVISION=1
2740
SERVERLIB_VERSION="$SERVERLIB_CURRENT:$SERVERLIB_REVISION:$SERVERLIB_AGE"
2743
for ac_prog in gawk mawk nawk awk
2745
# Extract the first word of "$ac_prog", so it can be a program name with args.
2746
set dummy $ac_prog; ac_word=$2
2747
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749
if test "${ac_cv_prog_AWK+set}" = set; then
2750
echo $ECHO_N "(cached) $ECHO_C" >&6
2752
if test -n "$AWK"; then
2753
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
test -z "$as_dir" && as_dir=.
2760
for ac_exec_ext in '' $ac_executable_extensions; do
2761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762
ac_cv_prog_AWK="$ac_prog"
2763
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
if test -n "$AWK"; then
2774
{ echo "$as_me:$LINENO: result: $AWK" >&5
2775
echo "${ECHO_T}$AWK" >&6; }
2777
{ echo "$as_me:$LINENO: result: no" >&5
2778
echo "${ECHO_T}no" >&6; }
2782
test -n "$AWK" && break
2786
ac_cpp='$CXXCPP $CPPFLAGS'
2787
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790
if test -z "$CXX"; then
2791
if test -n "$CCC"; then
2794
if test -n "$ac_tool_prefix"; then
2795
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2797
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801
if test "${ac_cv_prog_CXX+set}" = set; then
2802
echo $ECHO_N "(cached) $ECHO_C" >&6
2804
if test -n "$CXX"; then
2805
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811
test -z "$as_dir" && as_dir=.
2812
for ac_exec_ext in '' $ac_executable_extensions; do
2813
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2815
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825
if test -n "$CXX"; then
2826
{ echo "$as_me:$LINENO: result: $CXX" >&5
2827
echo "${ECHO_T}$CXX" >&6; }
2829
{ echo "$as_me:$LINENO: result: no" >&5
2830
echo "${ECHO_T}no" >&6; }
2834
test -n "$CXX" && break
2837
if test -z "$CXX"; then
2839
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2841
# Extract the first word of "$ac_prog", so it can be a program name with args.
2842
set dummy $ac_prog; ac_word=$2
2843
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2846
echo $ECHO_N "(cached) $ECHO_C" >&6
2848
if test -n "$ac_ct_CXX"; then
2849
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855
test -z "$as_dir" && as_dir=.
2856
for ac_exec_ext in '' $ac_executable_extensions; do
2857
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858
ac_cv_prog_ac_ct_CXX="$ac_prog"
2859
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2869
if test -n "$ac_ct_CXX"; then
2870
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2871
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2873
{ echo "$as_me:$LINENO: result: no" >&5
2874
echo "${ECHO_T}no" >&6; }
2878
test -n "$ac_ct_CXX" && break
2881
if test "x$ac_ct_CXX" = x; then
2884
case $cross_compiling:$ac_tool_warned in
2886
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887
whose name does not start with the host triplet. If you think this
2888
configuration is useful to you, please write to autoconf@gnu.org." >&5
2889
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890
whose name does not start with the host triplet. If you think this
2891
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892
ac_tool_warned=yes ;;
2900
# Provide some information about the compiler.
2901
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2902
ac_compiler=`set X $ac_compile; echo $2`
2903
{ (ac_try="$ac_compiler --version >&5"
2905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906
*) ac_try_echo=$ac_try;;
2908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909
(eval "$ac_compiler --version >&5") 2>&5
2911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
(exit $ac_status); }
2913
{ (ac_try="$ac_compiler -v >&5"
2915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916
*) ac_try_echo=$ac_try;;
2918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919
(eval "$ac_compiler -v >&5") 2>&5
2921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922
(exit $ac_status); }
2923
{ (ac_try="$ac_compiler -V >&5"
2925
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926
*) ac_try_echo=$ac_try;;
2928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929
(eval "$ac_compiler -V >&5") 2>&5
2931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932
(exit $ac_status); }
2934
cat >conftest.$ac_ext <<_ACEOF
2937
cat confdefs.h >>conftest.$ac_ext
2938
cat >>conftest.$ac_ext <<_ACEOF
2939
/* end confdefs.h. */
2949
ac_clean_files_save=$ac_clean_files
2950
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2951
# Try to create an executable without -o first, disregard a.out.
2952
# It will help us diagnose broken compilers, and finding out an intuition
2954
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2955
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2956
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958
# List of possible output files, starting from the most likely.
2959
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2960
# only as a last resort. b.out is created by i960 compilers.
2961
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2963
# The IRIX 6 linker writes into existing files which may not be
2964
# executable, retaining their permissions. Remove them first so a
2965
# subsequent execution test works.
2967
for ac_file in $ac_files
2970
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2971
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2976
if { (ac_try="$ac_link_default"
2978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979
*) ac_try_echo=$ac_try;;
2981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982
(eval "$ac_link_default") 2>&5
2984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985
(exit $ac_status); }; then
2986
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2989
# so that the user can short-circuit this test for compilers unknown to
2991
for ac_file in $ac_files ''
2993
test -f "$ac_file" || continue
2995
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2998
# We found the default executable, but exeext='' is most
3002
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3004
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006
# We set ac_cv_exeext here because the later test for it is not
3007
# safe: cross compilers may not add the suffix if given an `-o'
3008
# argument, so we may need to know it at that point already.
3009
# Even if this section looks crufty: it has the advantage of
3016
test "$ac_cv_exeext" = no && ac_cv_exeext=
3022
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3023
echo "${ECHO_T}$ac_file" >&6; }
3024
if test -z "$ac_file"; then
3025
echo "$as_me: failed program was:" >&5
3026
sed 's/^/| /' conftest.$ac_ext >&5
3028
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3029
See \`config.log' for more details." >&5
3030
echo "$as_me: error: C++ compiler cannot create executables
3031
See \`config.log' for more details." >&2;}
3032
{ (exit 77); exit 77; }; }
3035
ac_exeext=$ac_cv_exeext
3037
# Check that the compiler produces executables we can run. If not, either
3038
# the compiler is broken, or we cross compile.
3039
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3040
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
3041
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3042
# If not cross compiling, check that we can run a simple program.
3043
if test "$cross_compiling" != yes; then
3044
if { ac_try='./$ac_file'
3045
{ (case "(($ac_try" in
3046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047
*) ac_try_echo=$ac_try;;
3049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050
(eval "$ac_try") 2>&5
3052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053
(exit $ac_status); }; }; then
3056
if test "$cross_compiling" = maybe; then
3059
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3060
If you meant to cross compile, use \`--host'.
3061
See \`config.log' for more details." >&5
3062
echo "$as_me: error: cannot run C++ compiled programs.
3063
If you meant to cross compile, use \`--host'.
3064
See \`config.log' for more details." >&2;}
3065
{ (exit 1); exit 1; }; }
3069
{ echo "$as_me:$LINENO: result: yes" >&5
3070
echo "${ECHO_T}yes" >&6; }
3072
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3073
ac_clean_files=$ac_clean_files_save
3074
# Check that the compiler produces executables we can run. If not, either
3075
# the compiler is broken, or we cross compile.
3076
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3077
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3078
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3079
echo "${ECHO_T}$cross_compiling" >&6; }
3081
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3082
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3083
if { (ac_try="$ac_link"
3085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086
*) ac_try_echo=$ac_try;;
3088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089
(eval "$ac_link") 2>&5
3091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092
(exit $ac_status); }; then
3093
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3094
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095
# work properly (i.e., refer to `conftest.exe'), while it won't with
3097
for ac_file in conftest.exe conftest conftest.*; do
3098
test -f "$ac_file" || continue
3100
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3108
See \`config.log' for more details." >&5
3109
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3110
See \`config.log' for more details." >&2;}
3111
{ (exit 1); exit 1; }; }
3114
rm -f conftest$ac_cv_exeext
3115
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3116
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3118
rm -f conftest.$ac_ext
3119
EXEEXT=$ac_cv_exeext
3121
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3122
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3123
if test "${ac_cv_objext+set}" = set; then
3124
echo $ECHO_N "(cached) $ECHO_C" >&6
3126
cat >conftest.$ac_ext <<_ACEOF
3129
cat confdefs.h >>conftest.$ac_ext
3130
cat >>conftest.$ac_ext <<_ACEOF
3131
/* end confdefs.h. */
3141
rm -f conftest.o conftest.obj
3142
if { (ac_try="$ac_compile"
3144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145
*) ac_try_echo=$ac_try;;
3147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148
(eval "$ac_compile") 2>&5
3150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151
(exit $ac_status); }; then
3152
for ac_file in conftest.o conftest.obj conftest.*; do
3153
test -f "$ac_file" || continue;
3155
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3156
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3161
echo "$as_me: failed program was:" >&5
3162
sed 's/^/| /' conftest.$ac_ext >&5
3164
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3165
See \`config.log' for more details." >&5
3166
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3167
See \`config.log' for more details." >&2;}
3168
{ (exit 1); exit 1; }; }
3171
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3173
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3174
echo "${ECHO_T}$ac_cv_objext" >&6; }
3175
OBJEXT=$ac_cv_objext
3177
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3178
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3179
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3180
echo $ECHO_N "(cached) $ECHO_C" >&6
3182
cat >conftest.$ac_ext <<_ACEOF
3185
cat confdefs.h >>conftest.$ac_ext
3186
cat >>conftest.$ac_ext <<_ACEOF
3187
/* end confdefs.h. */
3200
rm -f conftest.$ac_objext
3201
if { (ac_try="$ac_compile"
3203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204
*) ac_try_echo=$ac_try;;
3206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207
(eval "$ac_compile") 2>conftest.er1
3209
grep -v '^ *+' conftest.er1 >conftest.err
3211
cat conftest.err >&5
3212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213
(exit $ac_status); } && {
3214
test -z "$ac_cxx_werror_flag" ||
3215
test ! -s conftest.err
3216
} && test -s conftest.$ac_objext; then
3219
echo "$as_me: failed program was:" >&5
3220
sed 's/^/| /' conftest.$ac_ext >&5
3225
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3229
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3230
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3231
GXX=`test $ac_compiler_gnu = yes && echo yes`
3232
ac_test_CXXFLAGS=${CXXFLAGS+set}
3233
ac_save_CXXFLAGS=$CXXFLAGS
3234
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3235
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3236
if test "${ac_cv_prog_cxx_g+set}" = set; then
3237
echo $ECHO_N "(cached) $ECHO_C" >&6
3239
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3240
ac_cxx_werror_flag=yes
3243
cat >conftest.$ac_ext <<_ACEOF
3246
cat confdefs.h >>conftest.$ac_ext
3247
cat >>conftest.$ac_ext <<_ACEOF
3248
/* end confdefs.h. */
3258
rm -f conftest.$ac_objext
3259
if { (ac_try="$ac_compile"
3261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262
*) ac_try_echo=$ac_try;;
3264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265
(eval "$ac_compile") 2>conftest.er1
3267
grep -v '^ *+' conftest.er1 >conftest.err
3269
cat conftest.err >&5
3270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271
(exit $ac_status); } && {
3272
test -z "$ac_cxx_werror_flag" ||
3273
test ! -s conftest.err
3274
} && test -s conftest.$ac_objext; then
3275
ac_cv_prog_cxx_g=yes
3277
echo "$as_me: failed program was:" >&5
3278
sed 's/^/| /' conftest.$ac_ext >&5
3281
cat >conftest.$ac_ext <<_ACEOF
3284
cat confdefs.h >>conftest.$ac_ext
3285
cat >>conftest.$ac_ext <<_ACEOF
3286
/* end confdefs.h. */
3296
rm -f conftest.$ac_objext
3297
if { (ac_try="$ac_compile"
3299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300
*) ac_try_echo=$ac_try;;
3302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303
(eval "$ac_compile") 2>conftest.er1
3305
grep -v '^ *+' conftest.er1 >conftest.err
3307
cat conftest.err >&5
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); } && {
3310
test -z "$ac_cxx_werror_flag" ||
3311
test ! -s conftest.err
3312
} && test -s conftest.$ac_objext; then
3315
echo "$as_me: failed program was:" >&5
3316
sed 's/^/| /' conftest.$ac_ext >&5
3318
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3320
cat >conftest.$ac_ext <<_ACEOF
3323
cat confdefs.h >>conftest.$ac_ext
3324
cat >>conftest.$ac_ext <<_ACEOF
3325
/* end confdefs.h. */
3335
rm -f conftest.$ac_objext
3336
if { (ac_try="$ac_compile"
3338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339
*) ac_try_echo=$ac_try;;
3341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342
(eval "$ac_compile") 2>conftest.er1
3344
grep -v '^ *+' conftest.er1 >conftest.err
3346
cat conftest.err >&5
3347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348
(exit $ac_status); } && {
3349
test -z "$ac_cxx_werror_flag" ||
3350
test ! -s conftest.err
3351
} && test -s conftest.$ac_objext; then
3352
ac_cv_prog_cxx_g=yes
3354
echo "$as_me: failed program was:" >&5
3355
sed 's/^/| /' conftest.$ac_ext >&5
3360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3369
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3370
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3371
if test "$ac_test_CXXFLAGS" = set; then
3372
CXXFLAGS=$ac_save_CXXFLAGS
3373
elif test $ac_cv_prog_cxx_g = yes; then
3374
if test "$GXX" = yes; then
3380
if test "$GXX" = yes; then
3387
ac_cpp='$CPP $CPPFLAGS'
3388
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
DEPDIR="${am__leading_dot}deps"
3393
ac_config_commands="$ac_config_commands depfiles"
3396
am_make=${MAKE-make}
3397
cat > confinc << 'END'
3402
# If we don't find an include directive, just comment out the code.
3403
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3404
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3408
# First try GNU make style include.
3409
echo "include confinc" > confmf
3410
# We grep out `Entering directory' and `Leaving directory'
3411
# messages which can occur if `w' ends up in MAKEFLAGS.
3412
# In particular we don't look at `^make:' because GNU make might
3413
# be invoked under some other name (usually "gmake"), in which
3414
# case it prints its new name instead of `make'.
3415
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3420
# Now try BSD make style include.
3421
if test "$am__include" = "#"; then
3422
echo '.include "confinc"' > confmf
3423
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3424
am__include=.include
3431
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3432
echo "${ECHO_T}$_am_result" >&6; }
3433
rm -f confinc confmf
3435
# Check whether --enable-dependency-tracking was given.
3436
if test "${enable_dependency_tracking+set}" = set; then
3437
enableval=$enable_dependency_tracking;
3440
if test "x$enable_dependency_tracking" != xno; then
3441
am_depcomp="$ac_aux_dir/depcomp"
3444
if test "x$enable_dependency_tracking" != xno; then
3454
depcc="$CXX" am_compiler_list=
3456
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3457
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3458
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3459
echo $ECHO_N "(cached) $ECHO_C" >&6
3461
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3462
# We make a subdir and do the tests there. Otherwise we can end up
3463
# making bogus files that we don't know about and never remove. For
3464
# instance it was reported that on HP-UX the gcc test will end up
3465
# making a dummy file named `D' -- because `-MD' means `put the output
3468
# Copy depcomp to subdir because otherwise we won't find it if we're
3469
# using a relative directory.
3470
cp "$am_depcomp" conftest.dir
3472
# We will build objects and dependencies in a subdirectory because
3473
# it helps to detect inapplicable dependency modes. For instance
3474
# both Tru64's cc and ICC support -MD to output dependencies as a
3475
# side effect of compilation, but ICC will put the dependencies in
3476
# the current directory while Tru64 will put them in the object
3480
am_cv_CXX_dependencies_compiler_type=none
3481
if test "$am_compiler_list" = ""; then
3482
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3484
for depmode in $am_compiler_list; do
3485
# Setup a source with many dependencies, because some compilers
3486
# like to wrap large dependency lists on column 80 (with \), and
3487
# we should not choose a depcomp mode which is confused by this.
3489
# We need to recreate these files for each test, as the compiler may
3490
# overwrite some of them when testing with obscure command lines.
3491
# This happens at least with the AIX C compiler.
3493
for i in 1 2 3 4 5 6; do
3494
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3495
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3496
# Solaris 8's {/usr,}/bin/sh.
3497
touch sub/conftst$i.h
3499
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3503
# after this tag, mechanisms are not by side-effect, so they'll
3504
# only be used when explicitly requested
3505
if test "x$enable_dependency_tracking" = xyes; then
3513
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3514
# mode. It turns out that the SunPro C++ compiler does not properly
3515
# handle `-M -o', and we need to detect this.
3516
if depmode=$depmode \
3517
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3518
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3519
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3520
>/dev/null 2>conftest.err &&
3521
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3522
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3523
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3524
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3525
# icc doesn't choke on unknown options, it will just issue warnings
3526
# or remarks (even with -Werror). So we grep stderr for any message
3527
# that says an option was ignored or not supported.
3528
# When given -MP, icc 7.0 and 7.1 complain thusly:
3529
# icc: Command line warning: ignoring option '-M'; no argument required
3530
# The diagnosis changed in icc 8.0:
3531
# icc: Command line remark: option '-MP' not supported
3532
if (grep 'ignoring option' conftest.err ||
3533
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3534
am_cv_CXX_dependencies_compiler_type=$depmode
3543
am_cv_CXX_dependencies_compiler_type=none
3547
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3548
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3549
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3552
test "x$enable_dependency_tracking" != xno \
3553
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3554
am__fastdepCXX_TRUE=
3555
am__fastdepCXX_FALSE='#'
3557
am__fastdepCXX_TRUE='#'
3558
am__fastdepCXX_FALSE=
3563
ac_cpp='$CPP $CPPFLAGS'
3564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
if test -n "$ac_tool_prefix"; then
3568
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3569
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3570
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3572
if test "${ac_cv_prog_CC+set}" = set; then
3573
echo $ECHO_N "(cached) $ECHO_C" >&6
3575
if test -n "$CC"; then
3576
ac_cv_prog_CC="$CC" # Let the user override the test.
3578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582
test -z "$as_dir" && as_dir=.
3583
for ac_exec_ext in '' $ac_executable_extensions; do
3584
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3586
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596
if test -n "$CC"; then
3597
{ echo "$as_me:$LINENO: result: $CC" >&5
3598
echo "${ECHO_T}$CC" >&6; }
3600
{ echo "$as_me:$LINENO: result: no" >&5
3601
echo "${ECHO_T}no" >&6; }
3606
if test -z "$ac_cv_prog_CC"; then
3608
# Extract the first word of "gcc", so it can be a program name with args.
3609
set dummy gcc; ac_word=$2
3610
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3612
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3613
echo $ECHO_N "(cached) $ECHO_C" >&6
3615
if test -n "$ac_ct_CC"; then
3616
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622
test -z "$as_dir" && as_dir=.
3623
for ac_exec_ext in '' $ac_executable_extensions; do
3624
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625
ac_cv_prog_ac_ct_CC="gcc"
3626
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636
if test -n "$ac_ct_CC"; then
3637
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3638
echo "${ECHO_T}$ac_ct_CC" >&6; }
3640
{ echo "$as_me:$LINENO: result: no" >&5
3641
echo "${ECHO_T}no" >&6; }
3644
if test "x$ac_ct_CC" = x; then
3647
case $cross_compiling:$ac_tool_warned in
3649
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3650
whose name does not start with the host triplet. If you think this
3651
configuration is useful to you, please write to autoconf@gnu.org." >&5
3652
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3653
whose name does not start with the host triplet. If you think this
3654
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3655
ac_tool_warned=yes ;;
3663
if test -z "$CC"; then
3664
if test -n "$ac_tool_prefix"; then
3665
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666
set dummy ${ac_tool_prefix}cc; ac_word=$2
3667
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669
if test "${ac_cv_prog_CC+set}" = set; then
3670
echo $ECHO_N "(cached) $ECHO_C" >&6
3672
if test -n "$CC"; then
3673
ac_cv_prog_CC="$CC" # Let the user override the test.
3675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679
test -z "$as_dir" && as_dir=.
3680
for ac_exec_ext in '' $ac_executable_extensions; do
3681
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682
ac_cv_prog_CC="${ac_tool_prefix}cc"
3683
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693
if test -n "$CC"; then
3694
{ echo "$as_me:$LINENO: result: $CC" >&5
3695
echo "${ECHO_T}$CC" >&6; }
3697
{ echo "$as_me:$LINENO: result: no" >&5
3698
echo "${ECHO_T}no" >&6; }
3704
if test -z "$CC"; then
3705
# Extract the first word of "cc", so it can be a program name with args.
3706
set dummy cc; ac_word=$2
3707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3709
if test "${ac_cv_prog_CC+set}" = set; then
3710
echo $ECHO_N "(cached) $ECHO_C" >&6
3712
if test -n "$CC"; then
3713
ac_cv_prog_CC="$CC" # Let the user override the test.
3716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720
test -z "$as_dir" && as_dir=.
3721
for ac_exec_ext in '' $ac_executable_extensions; do
3722
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3724
ac_prog_rejected=yes
3728
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735
if test $ac_prog_rejected = yes; then
3736
# We found a bogon in the path, so make sure we never use it.
3737
set dummy $ac_cv_prog_CC
3739
if test $# != 0; then
3740
# We chose a different compiler from the bogus one.
3741
# However, it has the same basename, so the bogon will be chosen
3742
# first if we set CC to just the basename; use the full file name.
3744
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3750
if test -n "$CC"; then
3751
{ echo "$as_me:$LINENO: result: $CC" >&5
3752
echo "${ECHO_T}$CC" >&6; }
3754
{ echo "$as_me:$LINENO: result: no" >&5
3755
echo "${ECHO_T}no" >&6; }
3760
if test -z "$CC"; then
3761
if test -n "$ac_tool_prefix"; then
3762
for ac_prog in cl.exe
3764
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3765
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3766
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3768
if test "${ac_cv_prog_CC+set}" = set; then
3769
echo $ECHO_N "(cached) $ECHO_C" >&6
3771
if test -n "$CC"; then
3772
ac_cv_prog_CC="$CC" # Let the user override the test.
3774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778
test -z "$as_dir" && as_dir=.
3779
for ac_exec_ext in '' $ac_executable_extensions; do
3780
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3782
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792
if test -n "$CC"; then
3793
{ echo "$as_me:$LINENO: result: $CC" >&5
3794
echo "${ECHO_T}$CC" >&6; }
3796
{ echo "$as_me:$LINENO: result: no" >&5
3797
echo "${ECHO_T}no" >&6; }
3801
test -n "$CC" && break
3804
if test -z "$CC"; then
3806
for ac_prog in cl.exe
3808
# Extract the first word of "$ac_prog", so it can be a program name with args.
3809
set dummy $ac_prog; ac_word=$2
3810
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3812
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3813
echo $ECHO_N "(cached) $ECHO_C" >&6
3815
if test -n "$ac_ct_CC"; then
3816
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822
test -z "$as_dir" && as_dir=.
3823
for ac_exec_ext in '' $ac_executable_extensions; do
3824
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825
ac_cv_prog_ac_ct_CC="$ac_prog"
3826
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836
if test -n "$ac_ct_CC"; then
3837
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3838
echo "${ECHO_T}$ac_ct_CC" >&6; }
3840
{ echo "$as_me:$LINENO: result: no" >&5
3841
echo "${ECHO_T}no" >&6; }
3845
test -n "$ac_ct_CC" && break
3848
if test "x$ac_ct_CC" = x; then
3851
case $cross_compiling:$ac_tool_warned in
3853
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3854
whose name does not start with the host triplet. If you think this
3855
configuration is useful to you, please write to autoconf@gnu.org." >&5
3856
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3857
whose name does not start with the host triplet. If you think this
3858
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3859
ac_tool_warned=yes ;;
3868
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3869
See \`config.log' for more details." >&5
3870
echo "$as_me: error: no acceptable C compiler found in \$PATH
3871
See \`config.log' for more details." >&2;}
3872
{ (exit 1); exit 1; }; }
3874
# Provide some information about the compiler.
3875
echo "$as_me:$LINENO: checking for C compiler version" >&5
3876
ac_compiler=`set X $ac_compile; echo $2`
3877
{ (ac_try="$ac_compiler --version >&5"
3879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880
*) ac_try_echo=$ac_try;;
3882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883
(eval "$ac_compiler --version >&5") 2>&5
3885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
(exit $ac_status); }
3887
{ (ac_try="$ac_compiler -v >&5"
3889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890
*) ac_try_echo=$ac_try;;
3892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893
(eval "$ac_compiler -v >&5") 2>&5
3895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896
(exit $ac_status); }
3897
{ (ac_try="$ac_compiler -V >&5"
3899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900
*) ac_try_echo=$ac_try;;
3902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903
(eval "$ac_compiler -V >&5") 2>&5
3905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906
(exit $ac_status); }
3908
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3909
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3910
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3911
echo $ECHO_N "(cached) $ECHO_C" >&6
3913
cat >conftest.$ac_ext <<_ACEOF
3916
cat confdefs.h >>conftest.$ac_ext
3917
cat >>conftest.$ac_ext <<_ACEOF
3918
/* end confdefs.h. */
3931
rm -f conftest.$ac_objext
3932
if { (ac_try="$ac_compile"
3934
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935
*) ac_try_echo=$ac_try;;
3937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938
(eval "$ac_compile") 2>conftest.er1
3940
grep -v '^ *+' conftest.er1 >conftest.err
3942
cat conftest.err >&5
3943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944
(exit $ac_status); } && {
3945
test -z "$ac_c_werror_flag" ||
3946
test ! -s conftest.err
3947
} && test -s conftest.$ac_objext; then
3950
echo "$as_me: failed program was:" >&5
3951
sed 's/^/| /' conftest.$ac_ext >&5
3956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3961
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3962
GCC=`test $ac_compiler_gnu = yes && echo yes`
3963
ac_test_CFLAGS=${CFLAGS+set}
3964
ac_save_CFLAGS=$CFLAGS
3965
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3966
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3967
if test "${ac_cv_prog_cc_g+set}" = set; then
3968
echo $ECHO_N "(cached) $ECHO_C" >&6
3970
ac_save_c_werror_flag=$ac_c_werror_flag
3971
ac_c_werror_flag=yes
3974
cat >conftest.$ac_ext <<_ACEOF
3977
cat confdefs.h >>conftest.$ac_ext
3978
cat >>conftest.$ac_ext <<_ACEOF
3979
/* end confdefs.h. */
3989
rm -f conftest.$ac_objext
3990
if { (ac_try="$ac_compile"
3992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993
*) ac_try_echo=$ac_try;;
3995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996
(eval "$ac_compile") 2>conftest.er1
3998
grep -v '^ *+' conftest.er1 >conftest.err
4000
cat conftest.err >&5
4001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
(exit $ac_status); } && {
4003
test -z "$ac_c_werror_flag" ||
4004
test ! -s conftest.err
4005
} && test -s conftest.$ac_objext; then
4008
echo "$as_me: failed program was:" >&5
4009
sed 's/^/| /' conftest.$ac_ext >&5
4012
cat >conftest.$ac_ext <<_ACEOF
4015
cat confdefs.h >>conftest.$ac_ext
4016
cat >>conftest.$ac_ext <<_ACEOF
4017
/* end confdefs.h. */
4027
rm -f conftest.$ac_objext
4028
if { (ac_try="$ac_compile"
4030
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031
*) ac_try_echo=$ac_try;;
4033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034
(eval "$ac_compile") 2>conftest.er1
4036
grep -v '^ *+' conftest.er1 >conftest.err
4038
cat conftest.err >&5
4039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040
(exit $ac_status); } && {
4041
test -z "$ac_c_werror_flag" ||
4042
test ! -s conftest.err
4043
} && test -s conftest.$ac_objext; then
4046
echo "$as_me: failed program was:" >&5
4047
sed 's/^/| /' conftest.$ac_ext >&5
4049
ac_c_werror_flag=$ac_save_c_werror_flag
4051
cat >conftest.$ac_ext <<_ACEOF
4054
cat confdefs.h >>conftest.$ac_ext
4055
cat >>conftest.$ac_ext <<_ACEOF
4056
/* end confdefs.h. */
4066
rm -f conftest.$ac_objext
4067
if { (ac_try="$ac_compile"
4069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070
*) ac_try_echo=$ac_try;;
4072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073
(eval "$ac_compile") 2>conftest.er1
4075
grep -v '^ *+' conftest.er1 >conftest.err
4077
cat conftest.err >&5
4078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079
(exit $ac_status); } && {
4080
test -z "$ac_c_werror_flag" ||
4081
test ! -s conftest.err
4082
} && test -s conftest.$ac_objext; then
4085
echo "$as_me: failed program was:" >&5
4086
sed 's/^/| /' conftest.$ac_ext >&5
4091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098
ac_c_werror_flag=$ac_save_c_werror_flag
4100
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4101
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4102
if test "$ac_test_CFLAGS" = set; then
4103
CFLAGS=$ac_save_CFLAGS
4104
elif test $ac_cv_prog_cc_g = yes; then
4105
if test "$GCC" = yes; then
4111
if test "$GCC" = yes; then
4117
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4118
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4119
if test "${ac_cv_prog_cc_c89+set}" = set; then
4120
echo $ECHO_N "(cached) $ECHO_C" >&6
4122
ac_cv_prog_cc_c89=no
4124
cat >conftest.$ac_ext <<_ACEOF
4127
cat confdefs.h >>conftest.$ac_ext
4128
cat >>conftest.$ac_ext <<_ACEOF
4129
/* end confdefs.h. */
4132
#include <sys/types.h>
4133
#include <sys/stat.h>
4134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135
struct buf { int x; };
4136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137
static char *e (p, i)
4143
static char *f (char * (*g) (char **, int), char **p, ...)
4148
s = g (p, va_arg (v,int));
4153
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4154
function prototypes and stuff, but not '\xHH' hex character constants.
4155
These don't provoke an error unfortunately, instead are silently treated
4156
as 'x'. The following induces an error, until -std is added to get
4157
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4158
array size at least. It's necessary to write '\x00'==0 to get something
4159
that's true only with -std. */
4160
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4162
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163
inside strings and character constants. */
4165
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4167
int test (int i, double x);
4168
struct s1 {int (*f) (int a);};
4169
struct s2 {int (*f) (double a);};
4170
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4176
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4181
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4184
CC="$ac_save_CC $ac_arg"
4185
rm -f conftest.$ac_objext
4186
if { (ac_try="$ac_compile"
4188
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189
*) ac_try_echo=$ac_try;;
4191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192
(eval "$ac_compile") 2>conftest.er1
4194
grep -v '^ *+' conftest.er1 >conftest.err
4196
cat conftest.err >&5
4197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
(exit $ac_status); } && {
4199
test -z "$ac_c_werror_flag" ||
4200
test ! -s conftest.err
4201
} && test -s conftest.$ac_objext; then
4202
ac_cv_prog_cc_c89=$ac_arg
4204
echo "$as_me: failed program was:" >&5
4205
sed 's/^/| /' conftest.$ac_ext >&5
4210
rm -f core conftest.err conftest.$ac_objext
4211
test "x$ac_cv_prog_cc_c89" != "xno" && break
4213
rm -f conftest.$ac_ext
4218
case "x$ac_cv_prog_cc_c89" in
4220
{ echo "$as_me:$LINENO: result: none needed" >&5
4221
echo "${ECHO_T}none needed" >&6; } ;;
4223
{ echo "$as_me:$LINENO: result: unsupported" >&5
4224
echo "${ECHO_T}unsupported" >&6; } ;;
4226
CC="$CC $ac_cv_prog_cc_c89"
4227
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4228
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4233
ac_cpp='$CPP $CPPFLAGS'
4234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
depcc="$CC" am_compiler_list=
4240
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4241
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4242
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4243
echo $ECHO_N "(cached) $ECHO_C" >&6
4245
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246
# We make a subdir and do the tests there. Otherwise we can end up
4247
# making bogus files that we don't know about and never remove. For
4248
# instance it was reported that on HP-UX the gcc test will end up
4249
# making a dummy file named `D' -- because `-MD' means `put the output
4252
# Copy depcomp to subdir because otherwise we won't find it if we're
4253
# using a relative directory.
4254
cp "$am_depcomp" conftest.dir
4256
# We will build objects and dependencies in a subdirectory because
4257
# it helps to detect inapplicable dependency modes. For instance
4258
# both Tru64's cc and ICC support -MD to output dependencies as a
4259
# side effect of compilation, but ICC will put the dependencies in
4260
# the current directory while Tru64 will put them in the object
4264
am_cv_CC_dependencies_compiler_type=none
4265
if test "$am_compiler_list" = ""; then
4266
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268
for depmode in $am_compiler_list; do
4269
# Setup a source with many dependencies, because some compilers
4270
# like to wrap large dependency lists on column 80 (with \), and
4271
# we should not choose a depcomp mode which is confused by this.
4273
# We need to recreate these files for each test, as the compiler may
4274
# overwrite some of them when testing with obscure command lines.
4275
# This happens at least with the AIX C compiler.
4277
for i in 1 2 3 4 5 6; do
4278
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280
# Solaris 8's {/usr,}/bin/sh.
4281
touch sub/conftst$i.h
4283
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4287
# after this tag, mechanisms are not by side-effect, so they'll
4288
# only be used when explicitly requested
4289
if test "x$enable_dependency_tracking" = xyes; then
4297
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4298
# mode. It turns out that the SunPro C++ compiler does not properly
4299
# handle `-M -o', and we need to detect this.
4300
if depmode=$depmode \
4301
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4302
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4303
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4304
>/dev/null 2>conftest.err &&
4305
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4306
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4307
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4308
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4309
# icc doesn't choke on unknown options, it will just issue warnings
4310
# or remarks (even with -Werror). So we grep stderr for any message
4311
# that says an option was ignored or not supported.
4312
# When given -MP, icc 7.0 and 7.1 complain thusly:
4313
# icc: Command line warning: ignoring option '-M'; no argument required
4314
# The diagnosis changed in icc 8.0:
4315
# icc: Command line remark: option '-MP' not supported
4316
if (grep 'ignoring option' conftest.err ||
4317
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4318
am_cv_CC_dependencies_compiler_type=$depmode
4327
am_cv_CC_dependencies_compiler_type=none
4331
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4332
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4333
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4336
test "x$enable_dependency_tracking" != xno \
4337
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4339
am__fastdepCC_FALSE='#'
4341
am__fastdepCC_TRUE='#'
4342
am__fastdepCC_FALSE=
4347
if test -n "$ac_tool_prefix"; then
4348
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4350
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4352
if test "${ac_cv_prog_RANLIB+set}" = set; then
4353
echo $ECHO_N "(cached) $ECHO_C" >&6
4355
if test -n "$RANLIB"; then
4356
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362
test -z "$as_dir" && as_dir=.
4363
for ac_exec_ext in '' $ac_executable_extensions; do
4364
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4366
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375
RANLIB=$ac_cv_prog_RANLIB
4376
if test -n "$RANLIB"; then
4377
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4378
echo "${ECHO_T}$RANLIB" >&6; }
4380
{ echo "$as_me:$LINENO: result: no" >&5
4381
echo "${ECHO_T}no" >&6; }
4386
if test -z "$ac_cv_prog_RANLIB"; then
4387
ac_ct_RANLIB=$RANLIB
4388
# Extract the first word of "ranlib", so it can be a program name with args.
4389
set dummy ranlib; ac_word=$2
4390
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4391
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4393
echo $ECHO_N "(cached) $ECHO_C" >&6
4395
if test -n "$ac_ct_RANLIB"; then
4396
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402
test -z "$as_dir" && as_dir=.
4403
for ac_exec_ext in '' $ac_executable_extensions; do
4404
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405
ac_cv_prog_ac_ct_RANLIB="ranlib"
4406
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4416
if test -n "$ac_ct_RANLIB"; then
4417
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4418
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4420
{ echo "$as_me:$LINENO: result: no" >&5
4421
echo "${ECHO_T}no" >&6; }
4424
if test "x$ac_ct_RANLIB" = x; then
4427
case $cross_compiling:$ac_tool_warned in
4429
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4430
whose name does not start with the host triplet. If you think this
4431
configuration is useful to you, please write to autoconf@gnu.org." >&5
4432
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4433
whose name does not start with the host triplet. If you think this
4434
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4435
ac_tool_warned=yes ;;
4437
RANLIB=$ac_ct_RANLIB
4440
RANLIB="$ac_cv_prog_RANLIB"
4444
cat >>confdefs.h <<\_ACEOF
4445
#define _GNU_SOURCE 1
4451
ac_cpp='$CPP $CPPFLAGS'
4452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4456
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4457
# On Suns, sometimes $CPP names a directory.
4458
if test -n "$CPP" && test -d "$CPP"; then
4461
if test -z "$CPP"; then
4462
if test "${ac_cv_prog_CPP+set}" = set; then
4463
echo $ECHO_N "(cached) $ECHO_C" >&6
4465
# Double quotes because CPP needs to be expanded
4466
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4469
for ac_c_preproc_warn_flag in '' yes
4471
# Use a header file that comes with gcc, so configuring glibc
4472
# with a fresh cross-compiler works.
4473
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474
# <limits.h> exists even on freestanding compilers.
4475
# On the NeXT, cc -E runs the code through the compiler's parser,
4476
# not just through cpp. "Syntax error" is here to catch this case.
4477
cat >conftest.$ac_ext <<_ACEOF
4480
cat confdefs.h >>conftest.$ac_ext
4481
cat >>conftest.$ac_ext <<_ACEOF
4482
/* end confdefs.h. */
4484
# include <limits.h>
4486
# include <assert.h>
4490
if { (ac_try="$ac_cpp conftest.$ac_ext"
4492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493
*) ac_try_echo=$ac_try;;
4495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4498
grep -v '^ *+' conftest.er1 >conftest.err
4500
cat conftest.err >&5
4501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502
(exit $ac_status); } >/dev/null && {
4503
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4504
test ! -s conftest.err
4508
echo "$as_me: failed program was:" >&5
4509
sed 's/^/| /' conftest.$ac_ext >&5
4511
# Broken: fails on valid input.
4515
rm -f conftest.err conftest.$ac_ext
4517
# OK, works on sane cases. Now check whether nonexistent headers
4518
# can be detected and how.
4519
cat >conftest.$ac_ext <<_ACEOF
4522
cat confdefs.h >>conftest.$ac_ext
4523
cat >>conftest.$ac_ext <<_ACEOF
4524
/* end confdefs.h. */
4525
#include <ac_nonexistent.h>
4527
if { (ac_try="$ac_cpp conftest.$ac_ext"
4529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530
*) ac_try_echo=$ac_try;;
4532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535
grep -v '^ *+' conftest.er1 >conftest.err
4537
cat conftest.err >&5
4538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
(exit $ac_status); } >/dev/null && {
4540
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541
test ! -s conftest.err
4543
# Broken: success on invalid input.
4546
echo "$as_me: failed program was:" >&5
4547
sed 's/^/| /' conftest.$ac_ext >&5
4549
# Passes both tests.
4554
rm -f conftest.err conftest.$ac_ext
4557
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4558
rm -f conftest.err conftest.$ac_ext
4559
if $ac_preproc_ok; then
4571
{ echo "$as_me:$LINENO: result: $CPP" >&5
4572
echo "${ECHO_T}$CPP" >&6; }
4574
for ac_c_preproc_warn_flag in '' yes
4576
# Use a header file that comes with gcc, so configuring glibc
4577
# with a fresh cross-compiler works.
4578
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4579
# <limits.h> exists even on freestanding compilers.
4580
# On the NeXT, cc -E runs the code through the compiler's parser,
4581
# not just through cpp. "Syntax error" is here to catch this case.
4582
cat >conftest.$ac_ext <<_ACEOF
4585
cat confdefs.h >>conftest.$ac_ext
4586
cat >>conftest.$ac_ext <<_ACEOF
4587
/* end confdefs.h. */
4589
# include <limits.h>
4591
# include <assert.h>
4595
if { (ac_try="$ac_cpp conftest.$ac_ext"
4597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598
*) ac_try_echo=$ac_try;;
4600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603
grep -v '^ *+' conftest.er1 >conftest.err
4605
cat conftest.err >&5
4606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607
(exit $ac_status); } >/dev/null && {
4608
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4609
test ! -s conftest.err
4613
echo "$as_me: failed program was:" >&5
4614
sed 's/^/| /' conftest.$ac_ext >&5
4616
# Broken: fails on valid input.
4620
rm -f conftest.err conftest.$ac_ext
4622
# OK, works on sane cases. Now check whether nonexistent headers
4623
# can be detected and how.
4624
cat >conftest.$ac_ext <<_ACEOF
4627
cat confdefs.h >>conftest.$ac_ext
4628
cat >>conftest.$ac_ext <<_ACEOF
4629
/* end confdefs.h. */
4630
#include <ac_nonexistent.h>
4632
if { (ac_try="$ac_cpp conftest.$ac_ext"
4634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635
*) ac_try_echo=$ac_try;;
4637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640
grep -v '^ *+' conftest.er1 >conftest.err
4642
cat conftest.err >&5
4643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
(exit $ac_status); } >/dev/null && {
4645
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4646
test ! -s conftest.err
4648
# Broken: success on invalid input.
4651
echo "$as_me: failed program was:" >&5
4652
sed 's/^/| /' conftest.$ac_ext >&5
4654
# Passes both tests.
4659
rm -f conftest.err conftest.$ac_ext
4662
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4663
rm -f conftest.err conftest.$ac_ext
4664
if $ac_preproc_ok; then
4667
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4668
See \`config.log' for more details." >&5
4669
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4670
See \`config.log' for more details." >&2;}
4671
{ (exit 1); exit 1; }; }
4675
ac_cpp='$CPP $CPPFLAGS'
4676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4682
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4683
if test "${ac_cv_path_GREP+set}" = set; then
4684
echo $ECHO_N "(cached) $ECHO_C" >&6
4686
# Extract the first word of "grep ggrep" to use in msg output
4687
if test -z "$GREP"; then
4688
set dummy grep ggrep; ac_prog_name=$2
4689
if test "${ac_cv_path_GREP+set}" = set; then
4690
echo $ECHO_N "(cached) $ECHO_C" >&6
4692
ac_path_GREP_found=false
4693
# Loop through the user's path and test for each of PROGNAME-LIST
4694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698
test -z "$as_dir" && as_dir=.
4699
for ac_prog in grep ggrep; do
4700
for ac_exec_ext in '' $ac_executable_extensions; do
4701
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4702
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4703
# Check for GNU ac_path_GREP and select it if it is found.
4704
# Check for GNU $ac_path_GREP
4705
case `"$ac_path_GREP" --version 2>&1` in
4707
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4710
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4713
cat "conftest.in" "conftest.in" >"conftest.tmp"
4714
mv "conftest.tmp" "conftest.in"
4715
cp "conftest.in" "conftest.nl"
4716
echo 'GREP' >> "conftest.nl"
4717
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719
ac_count=`expr $ac_count + 1`
4720
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4721
# Best one so far, save it but keep looking for a better one
4722
ac_cv_path_GREP="$ac_path_GREP"
4723
ac_path_GREP_max=$ac_count
4725
# 10*(2^10) chars as input seems more than enough
4726
test $ac_count -gt 10 && break
4728
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732
$ac_path_GREP_found && break 3
4742
GREP="$ac_cv_path_GREP"
4743
if test -z "$GREP"; then
4744
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4745
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4746
{ (exit 1); exit 1; }; }
4750
ac_cv_path_GREP=$GREP
4755
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4756
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4757
GREP="$ac_cv_path_GREP"
4760
{ echo "$as_me:$LINENO: checking for egrep" >&5
4761
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4762
if test "${ac_cv_path_EGREP+set}" = set; then
4763
echo $ECHO_N "(cached) $ECHO_C" >&6
4765
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4766
then ac_cv_path_EGREP="$GREP -E"
4768
# Extract the first word of "egrep" to use in msg output
4769
if test -z "$EGREP"; then
4770
set dummy egrep; ac_prog_name=$2
4771
if test "${ac_cv_path_EGREP+set}" = set; then
4772
echo $ECHO_N "(cached) $ECHO_C" >&6
4774
ac_path_EGREP_found=false
4775
# Loop through the user's path and test for each of PROGNAME-LIST
4776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4780
test -z "$as_dir" && as_dir=.
4781
for ac_prog in egrep; do
4782
for ac_exec_ext in '' $ac_executable_extensions; do
4783
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4784
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4785
# Check for GNU ac_path_EGREP and select it if it is found.
4786
# Check for GNU $ac_path_EGREP
4787
case `"$ac_path_EGREP" --version 2>&1` in
4789
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4792
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4795
cat "conftest.in" "conftest.in" >"conftest.tmp"
4796
mv "conftest.tmp" "conftest.in"
4797
cp "conftest.in" "conftest.nl"
4798
echo 'EGREP' >> "conftest.nl"
4799
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801
ac_count=`expr $ac_count + 1`
4802
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4803
# Best one so far, save it but keep looking for a better one
4804
ac_cv_path_EGREP="$ac_path_EGREP"
4805
ac_path_EGREP_max=$ac_count
4807
# 10*(2^10) chars as input seems more than enough
4808
test $ac_count -gt 10 && break
4810
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4814
$ac_path_EGREP_found && break 3
4824
EGREP="$ac_cv_path_EGREP"
4825
if test -z "$EGREP"; then
4826
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4827
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4828
{ (exit 1); exit 1; }; }
4832
ac_cv_path_EGREP=$EGREP
4838
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4839
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4840
EGREP="$ac_cv_path_EGREP"
4843
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4844
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4845
if test "${ac_cv_header_stdc+set}" = set; then
4846
echo $ECHO_N "(cached) $ECHO_C" >&6
4848
cat >conftest.$ac_ext <<_ACEOF
4851
cat confdefs.h >>conftest.$ac_ext
4852
cat >>conftest.$ac_ext <<_ACEOF
4853
/* end confdefs.h. */
4867
rm -f conftest.$ac_objext
4868
if { (ac_try="$ac_compile"
4870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871
*) ac_try_echo=$ac_try;;
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874
(eval "$ac_compile") 2>conftest.er1
4876
grep -v '^ *+' conftest.er1 >conftest.err
4878
cat conftest.err >&5
4879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880
(exit $ac_status); } && {
4881
test -z "$ac_c_werror_flag" ||
4882
test ! -s conftest.err
4883
} && test -s conftest.$ac_objext; then
4884
ac_cv_header_stdc=yes
4886
echo "$as_me: failed program was:" >&5
4887
sed 's/^/| /' conftest.$ac_ext >&5
4889
ac_cv_header_stdc=no
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
if test $ac_cv_header_stdc = yes; then
4895
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896
cat >conftest.$ac_ext <<_ACEOF
4899
cat confdefs.h >>conftest.$ac_ext
4900
cat >>conftest.$ac_ext <<_ACEOF
4901
/* end confdefs.h. */
4905
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906
$EGREP "memchr" >/dev/null 2>&1; then
4909
ac_cv_header_stdc=no
4915
if test $ac_cv_header_stdc = yes; then
4916
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917
cat >conftest.$ac_ext <<_ACEOF
4920
cat confdefs.h >>conftest.$ac_ext
4921
cat >>conftest.$ac_ext <<_ACEOF
4922
/* end confdefs.h. */
4926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927
$EGREP "free" >/dev/null 2>&1; then
4930
ac_cv_header_stdc=no
4936
if test $ac_cv_header_stdc = yes; then
4937
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4938
if test "$cross_compiling" = yes; then
4941
cat >conftest.$ac_ext <<_ACEOF
4944
cat confdefs.h >>conftest.$ac_ext
4945
cat >>conftest.$ac_ext <<_ACEOF
4946
/* end confdefs.h. */
4949
#if ((' ' & 0x0FF) == 0x020)
4950
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953
# define ISLOWER(c) \
4954
(('a' <= (c) && (c) <= 'i') \
4955
|| ('j' <= (c) && (c) <= 'r') \
4956
|| ('s' <= (c) && (c) <= 'z'))
4957
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4960
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965
for (i = 0; i < 256; i++)
4966
if (XOR (islower (i), ISLOWER (i))
4967
|| toupper (i) != TOUPPER (i))
4972
rm -f conftest$ac_exeext
4973
if { (ac_try="$ac_link"
4975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976
*) ac_try_echo=$ac_try;;
4978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979
(eval "$ac_link") 2>&5
4981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4983
{ (case "(($ac_try" in
4984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985
*) ac_try_echo=$ac_try;;
4987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988
(eval "$ac_try") 2>&5
4990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991
(exit $ac_status); }; }; then
4994
echo "$as_me: program exited with status $ac_status" >&5
4995
echo "$as_me: failed program was:" >&5
4996
sed 's/^/| /' conftest.$ac_ext >&5
4999
ac_cv_header_stdc=no
5001
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5007
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5008
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5009
if test $ac_cv_header_stdc = yes; then
5011
cat >>confdefs.h <<\_ACEOF
5012
#define STDC_HEADERS 1
5017
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5027
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5028
inttypes.h stdint.h unistd.h
5030
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5032
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034
echo $ECHO_N "(cached) $ECHO_C" >&6
5036
cat >conftest.$ac_ext <<_ACEOF
5039
cat confdefs.h >>conftest.$ac_ext
5040
cat >>conftest.$ac_ext <<_ACEOF
5041
/* end confdefs.h. */
5042
$ac_includes_default
5044
#include <$ac_header>
5046
rm -f conftest.$ac_objext
5047
if { (ac_try="$ac_compile"
5049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
*) ac_try_echo=$ac_try;;
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
(eval "$ac_compile") 2>conftest.er1
5055
grep -v '^ *+' conftest.er1 >conftest.err
5057
cat conftest.err >&5
5058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059
(exit $ac_status); } && {
5060
test -z "$ac_c_werror_flag" ||
5061
test ! -s conftest.err
5062
} && test -s conftest.$ac_objext; then
5063
eval "$as_ac_Header=yes"
5065
echo "$as_me: failed program was:" >&5
5066
sed 's/^/| /' conftest.$ac_ext >&5
5068
eval "$as_ac_Header=no"
5071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073
ac_res=`eval echo '${'$as_ac_Header'}'`
5074
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5075
echo "${ECHO_T}$ac_res" >&6; }
5076
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5077
cat >>confdefs.h <<_ACEOF
5078
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087
if test "${ac_cv_header_minix_config_h+set}" = set; then
5088
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
5089
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5090
if test "${ac_cv_header_minix_config_h+set}" = set; then
5091
echo $ECHO_N "(cached) $ECHO_C" >&6
5093
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5094
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5096
# Is the header compilable?
5097
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5098
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
5099
cat >conftest.$ac_ext <<_ACEOF
5102
cat confdefs.h >>conftest.$ac_ext
5103
cat >>conftest.$ac_ext <<_ACEOF
5104
/* end confdefs.h. */
5105
$ac_includes_default
5106
#include <minix/config.h>
5108
rm -f conftest.$ac_objext
5109
if { (ac_try="$ac_compile"
5111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112
*) ac_try_echo=$ac_try;;
5114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115
(eval "$ac_compile") 2>conftest.er1
5117
grep -v '^ *+' conftest.er1 >conftest.err
5119
cat conftest.err >&5
5120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
(exit $ac_status); } && {
5122
test -z "$ac_c_werror_flag" ||
5123
test ! -s conftest.err
5124
} && test -s conftest.$ac_objext; then
5125
ac_header_compiler=yes
5127
echo "$as_me: failed program was:" >&5
5128
sed 's/^/| /' conftest.$ac_ext >&5
5130
ac_header_compiler=no
5133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5135
echo "${ECHO_T}$ac_header_compiler" >&6; }
5137
# Is the header present?
5138
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5139
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
5140
cat >conftest.$ac_ext <<_ACEOF
5143
cat confdefs.h >>conftest.$ac_ext
5144
cat >>conftest.$ac_ext <<_ACEOF
5145
/* end confdefs.h. */
5146
#include <minix/config.h>
5148
if { (ac_try="$ac_cpp conftest.$ac_ext"
5150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151
*) ac_try_echo=$ac_try;;
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5156
grep -v '^ *+' conftest.er1 >conftest.err
5158
cat conftest.err >&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); } >/dev/null && {
5161
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5162
test ! -s conftest.err
5164
ac_header_preproc=yes
5166
echo "$as_me: failed program was:" >&5
5167
sed 's/^/| /' conftest.$ac_ext >&5
5169
ac_header_preproc=no
5172
rm -f conftest.err conftest.$ac_ext
5173
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5174
echo "${ECHO_T}$ac_header_preproc" >&6; }
5176
# So? What about this header?
5177
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5179
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5180
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5181
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5182
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5183
ac_header_preproc=yes
5186
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5187
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5188
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5189
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5190
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5191
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5192
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5193
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5194
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5195
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5196
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5197
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5199
## --------------------------------------- ##
5200
## Report this to opendap-tech@opendap.org ##
5201
## --------------------------------------- ##
5203
) | sed "s/^/$as_me: WARNING: /" >&2
5206
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
5207
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5208
if test "${ac_cv_header_minix_config_h+set}" = set; then
5209
echo $ECHO_N "(cached) $ECHO_C" >&6
5211
ac_cv_header_minix_config_h=$ac_header_preproc
5213
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5214
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5217
if test $ac_cv_header_minix_config_h = yes; then
5224
if test "$MINIX" = yes; then
5226
cat >>confdefs.h <<\_ACEOF
5227
#define _POSIX_SOURCE 1
5231
cat >>confdefs.h <<\_ACEOF
5232
#define _POSIX_1_SOURCE 2
5236
cat >>confdefs.h <<\_ACEOF
5244
{ echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5245
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5246
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5247
echo $ECHO_N "(cached) $ECHO_C" >&6
5249
cat >conftest.$ac_ext <<_ACEOF
5252
cat confdefs.h >>conftest.$ac_ext
5253
cat >>conftest.$ac_ext <<_ACEOF
5254
/* end confdefs.h. */
5256
# define __EXTENSIONS__ 1
5257
$ac_includes_default
5266
rm -f conftest.$ac_objext
5267
if { (ac_try="$ac_compile"
5269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270
*) ac_try_echo=$ac_try;;
5272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273
(eval "$ac_compile") 2>conftest.er1
5275
grep -v '^ *+' conftest.er1 >conftest.err
5277
cat conftest.err >&5
5278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
(exit $ac_status); } && {
5280
test -z "$ac_c_werror_flag" ||
5281
test ! -s conftest.err
5282
} && test -s conftest.$ac_objext; then
5283
ac_cv_safe_to_define___extensions__=yes
5285
echo "$as_me: failed program was:" >&5
5286
sed 's/^/| /' conftest.$ac_ext >&5
5288
ac_cv_safe_to_define___extensions__=no
5291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5294
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5295
test $ac_cv_safe_to_define___extensions__ = yes &&
5296
cat >>confdefs.h <<\_ACEOF
5297
#define __EXTENSIONS__ 1
5300
cat >>confdefs.h <<\_ACEOF
5301
#define _ALL_SOURCE 1
5304
cat >>confdefs.h <<\_ACEOF
5305
#define _GNU_SOURCE 1
5308
cat >>confdefs.h <<\_ACEOF
5309
#define _POSIX_PTHREAD_SEMANTICS 1
5312
cat >>confdefs.h <<\_ACEOF
5313
#define _TANDEM_SOURCE 1
5324
for ac_prog in flex lex
5326
# Extract the first word of "$ac_prog", so it can be a program name with args.
5327
set dummy $ac_prog; ac_word=$2
5328
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330
if test "${ac_cv_prog_LEX+set}" = set; then
5331
echo $ECHO_N "(cached) $ECHO_C" >&6
5333
if test -n "$LEX"; then
5334
ac_cv_prog_LEX="$LEX" # Let the user override the test.
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340
test -z "$as_dir" && as_dir=.
5341
for ac_exec_ext in '' $ac_executable_extensions; do
5342
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343
ac_cv_prog_LEX="$ac_prog"
5344
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354
if test -n "$LEX"; then
5355
{ echo "$as_me:$LINENO: result: $LEX" >&5
5356
echo "${ECHO_T}$LEX" >&6; }
5358
{ echo "$as_me:$LINENO: result: no" >&5
5359
echo "${ECHO_T}no" >&6; }
5363
test -n "$LEX" && break
5365
test -n "$LEX" || LEX=":"
5367
if test "x$LEX" != "x:"; then
5368
cat >conftest.l <<_ACEOF
5374
e { yyless (input () != 0); }
5375
f { unput (yytext[0]); }
5376
. { BEGIN INITIAL; }
5378
#ifdef YYTEXT_POINTER
5379
extern char *yytext;
5384
return ! yylex () + ! yywrap ();
5387
{ (ac_try="$LEX conftest.l"
5389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390
*) ac_try_echo=$ac_try;;
5392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393
(eval "$LEX conftest.l") 2>&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); }
5397
{ echo "$as_me:$LINENO: checking lex output file root" >&5
5398
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5399
if test "${ac_cv_prog_lex_root+set}" = set; then
5400
echo $ECHO_N "(cached) $ECHO_C" >&6
5403
if test -f lex.yy.c; then
5404
ac_cv_prog_lex_root=lex.yy
5405
elif test -f lexyy.c; then
5406
ac_cv_prog_lex_root=lexyy
5408
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5409
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5410
{ (exit 1); exit 1; }; }
5413
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5414
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5415
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5417
if test -z "${LEXLIB+set}"; then
5418
{ echo "$as_me:$LINENO: checking lex library" >&5
5419
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5420
if test "${ac_cv_lib_lex+set}" = set; then
5421
echo $ECHO_N "(cached) $ECHO_C" >&6
5425
ac_cv_lib_lex='none needed'
5426
for ac_lib in '' -lfl -ll; do
5427
LIBS="$ac_lib $ac_save_LIBS"
5428
cat >conftest.$ac_ext <<_ACEOF
5429
`cat $LEX_OUTPUT_ROOT.c`
5431
rm -f conftest.$ac_objext conftest$ac_exeext
5432
if { (ac_try="$ac_link"
5434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435
*) ac_try_echo=$ac_try;;
5437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438
(eval "$ac_link") 2>conftest.er1
5440
grep -v '^ *+' conftest.er1 >conftest.err
5442
cat conftest.err >&5
5443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444
(exit $ac_status); } && {
5445
test -z "$ac_c_werror_flag" ||
5446
test ! -s conftest.err
5447
} && test -s conftest$ac_exeext &&
5448
$as_test_x conftest$ac_exeext; then
5449
ac_cv_lib_lex=$ac_lib
5451
echo "$as_me: failed program was:" >&5
5452
sed 's/^/| /' conftest.$ac_ext >&5
5457
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5458
conftest$ac_exeext conftest.$ac_ext
5459
test "$ac_cv_lib_lex" != 'none needed' && break
5464
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5465
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5466
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5470
{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5471
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5472
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5473
echo $ECHO_N "(cached) $ECHO_C" >&6
5475
# POSIX says lex can declare yytext either as a pointer or an array; the
5476
# default is implementation-dependent. Figure out which it is, since
5477
# not all implementations provide the %pointer and %array declarations.
5478
ac_cv_prog_lex_yytext_pointer=no
5480
LIBS="$LEXLIB $ac_save_LIBS"
5481
cat >conftest.$ac_ext <<_ACEOF
5482
#define YYTEXT_POINTER 1
5483
`cat $LEX_OUTPUT_ROOT.c`
5485
rm -f conftest.$ac_objext conftest$ac_exeext
5486
if { (ac_try="$ac_link"
5488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489
*) ac_try_echo=$ac_try;;
5491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492
(eval "$ac_link") 2>conftest.er1
5494
grep -v '^ *+' conftest.er1 >conftest.err
5496
cat conftest.err >&5
5497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498
(exit $ac_status); } && {
5499
test -z "$ac_c_werror_flag" ||
5500
test ! -s conftest.err
5501
} && test -s conftest$ac_exeext &&
5502
$as_test_x conftest$ac_exeext; then
5503
ac_cv_prog_lex_yytext_pointer=yes
5505
echo "$as_me: failed program was:" >&5
5506
sed 's/^/| /' conftest.$ac_ext >&5
5511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5512
conftest$ac_exeext conftest.$ac_ext
5516
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5517
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5518
if test $ac_cv_prog_lex_yytext_pointer = yes; then
5520
cat >>confdefs.h <<\_ACEOF
5521
#define YYTEXT_POINTER 1
5525
rm -f conftest.l $LEX_OUTPUT_ROOT.c
5528
if test "$LEX" = :; then
5529
LEX=${am_missing_run}flex
5531
# Find a good install program. We prefer a C program (faster),
5532
# so one script is as good as another. But avoid the broken or
5533
# incompatible versions:
5534
# SysV /etc/install, /usr/sbin/install
5535
# SunOS /usr/etc/install
5536
# IRIX /sbin/install
5538
# AmigaOS /C/install, which installs bootblocks on floppy discs
5539
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5540
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5541
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5542
# OS/2's system install, which has a completely different semantic
5543
# ./install, which can be erroneously created by make from ./install.sh.
5544
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5545
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5546
if test -z "$INSTALL"; then
5547
if test "${ac_cv_path_install+set}" = set; then
5548
echo $ECHO_N "(cached) $ECHO_C" >&6
5550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554
test -z "$as_dir" && as_dir=.
5555
# Account for people who put trailing slashes in PATH elements.
5557
./ | .// | /cC/* | \
5558
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5559
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5562
# OSF1 and SCO ODT 3.0 have their own names for install.
5563
# Don't use installbsd from OSF since it installs stuff as root
5565
for ac_prog in ginstall scoinst install; do
5566
for ac_exec_ext in '' $ac_executable_extensions; do
5567
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5568
if test $ac_prog = install &&
5569
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5570
# AIX install. It has an incompatible calling convention.
5572
elif test $ac_prog = install &&
5573
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5574
# program-specific install script used by HP pwplus--don't use.
5577
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5590
if test "${ac_cv_path_install+set}" = set; then
5591
INSTALL=$ac_cv_path_install
5593
# As a last resort, use the slow shell script. Don't cache a
5594
# value for INSTALL within a source directory, because that will
5595
# break other packages using the cache if that directory is
5596
# removed, or if the value is a relative name.
5597
INSTALL=$ac_install_sh
5600
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5601
echo "${ECHO_T}$INSTALL" >&6; }
5603
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5604
# It thinks the first close brace ends the variable substitution.
5605
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5607
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5609
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5611
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5612
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5614
if test "$LN_S" = "ln -s"; then
5615
{ echo "$as_me:$LINENO: result: yes" >&5
5616
echo "${ECHO_T}yes" >&6; }
5618
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5619
echo "${ECHO_T}no, using $LN_S" >&6; }
5622
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5623
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5624
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5625
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5626
echo $ECHO_N "(cached) $ECHO_C" >&6
5628
cat >conftest.make <<\_ACEOF
5631
@echo '@@@%%%=$(MAKE)=@@@%%%'
5633
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5634
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5636
eval ac_cv_prog_make_${ac_make}_set=yes;;
5638
eval ac_cv_prog_make_${ac_make}_set=no;;
5642
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5643
{ echo "$as_me:$LINENO: result: yes" >&5
5644
echo "${ECHO_T}yes" >&6; }
5647
{ echo "$as_me:$LINENO: result: no" >&5
5648
echo "${ECHO_T}no" >&6; }
5649
SET_MAKE="MAKE=${MAKE-make}"
5652
# Check whether --enable-shared was given.
5653
if test "${enable_shared+set}" = set; then
5654
enableval=$enable_shared; p=${PACKAGE-default}
5656
yes) enable_shared=yes ;;
5657
no) enable_shared=no ;;
5660
# Look at the argument we got. We use all the common list separators.
5661
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5662
for pkg in $enableval; do
5664
if test "X$pkg" = "X$p"; then
5676
# Check whether --enable-static was given.
5677
if test "${enable_static+set}" = set; then
5678
enableval=$enable_static; p=${PACKAGE-default}
5680
yes) enable_static=yes ;;
5681
no) enable_static=no ;;
5684
# Look at the argument we got. We use all the common list separators.
5685
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5686
for pkg in $enableval; do
5688
if test "X$pkg" = "X$p"; then
5700
# Check whether --enable-fast-install was given.
5701
if test "${enable_fast_install+set}" = set; then
5702
enableval=$enable_fast_install; p=${PACKAGE-default}
5704
yes) enable_fast_install=yes ;;
5705
no) enable_fast_install=no ;;
5707
enable_fast_install=no
5708
# Look at the argument we got. We use all the common list separators.
5709
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5710
for pkg in $enableval; do
5712
if test "X$pkg" = "X$p"; then
5713
enable_fast_install=yes
5720
enable_fast_install=yes
5724
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5725
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5726
if test "${lt_cv_path_SED+set}" = set; then
5727
echo $ECHO_N "(cached) $ECHO_C" >&6
5729
# Loop through the user's path and test for sed and gsed.
5730
# Then use that list of sed's as ones to test for truncation.
5731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735
test -z "$as_dir" && as_dir=.
5736
for lt_ac_prog in sed gsed; do
5737
for ac_exec_ext in '' $ac_executable_extensions; do
5738
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5739
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5747
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5748
# along with /bin/sed that truncates output.
5749
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5750
test ! -f $lt_ac_sed && continue
5751
cat /dev/null > conftest.in
5753
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5754
# Check for GNU sed and select it if it is found.
5755
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5756
lt_cv_path_SED=$lt_ac_sed
5760
cat conftest.in conftest.in >conftest.tmp
5761
mv conftest.tmp conftest.in
5762
cp conftest.in conftest.nl
5764
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5765
cmp -s conftest.out conftest.nl || break
5766
# 10000 chars as input seems more than enough
5767
test $lt_ac_count -gt 10 && break
5768
lt_ac_count=`expr $lt_ac_count + 1`
5769
if test $lt_ac_count -gt $lt_ac_max; then
5770
lt_ac_max=$lt_ac_count
5771
lt_cv_path_SED=$lt_ac_sed
5780
{ echo "$as_me:$LINENO: result: $SED" >&5
5781
echo "${ECHO_T}$SED" >&6; }
5784
# Check whether --with-gnu-ld was given.
5785
if test "${with_gnu_ld+set}" = set; then
5786
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5792
if test "$GCC" = yes; then
5793
# Check if gcc -print-prog-name=ld gives a path.
5794
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5795
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5798
# gcc leaves a trailing carriage return which upsets mingw
5799
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5801
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5804
# Accept absolute paths.
5806
re_direlt='/[^/][^/]*/\.\./'
5807
# Canonicalize the pathname of ld
5808
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5809
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5810
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5812
test -z "$LD" && LD="$ac_prog"
5815
# If it fails, then pretend we aren't using GCC.
5819
# If it is relative, then search for the first ld in PATH.
5823
elif test "$with_gnu_ld" = yes; then
5824
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
5825
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5827
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5828
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5830
if test "${lt_cv_path_LD+set}" = set; then
5831
echo $ECHO_N "(cached) $ECHO_C" >&6
5833
if test -z "$LD"; then
5834
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5835
for ac_dir in $PATH; do
5837
test -z "$ac_dir" && ac_dir=.
5838
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5839
lt_cv_path_LD="$ac_dir/$ac_prog"
5840
# Check to see if the program is GNU ld. I'd rather use --version,
5841
# but apparently some variants of GNU ld only accept -v.
5842
# Break only if it was the GNU/non-GNU ld that we prefer.
5843
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5844
*GNU* | *'with BFD'*)
5845
test "$with_gnu_ld" != no && break
5848
test "$with_gnu_ld" != yes && break
5855
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5860
if test -n "$LD"; then
5861
{ echo "$as_me:$LINENO: result: $LD" >&5
5862
echo "${ECHO_T}$LD" >&6; }
5864
{ echo "$as_me:$LINENO: result: no" >&5
5865
echo "${ECHO_T}no" >&6; }
5867
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5868
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5869
{ (exit 1); exit 1; }; }
5870
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5871
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5872
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5873
echo $ECHO_N "(cached) $ECHO_C" >&6
5875
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5876
case `$LD -v 2>&1 </dev/null` in
5877
*GNU* | *'with BFD'*)
5878
lt_cv_prog_gnu_ld=yes
5881
lt_cv_prog_gnu_ld=no
5885
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5886
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5887
with_gnu_ld=$lt_cv_prog_gnu_ld
5890
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5891
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5892
if test "${lt_cv_ld_reload_flag+set}" = set; then
5893
echo $ECHO_N "(cached) $ECHO_C" >&6
5895
lt_cv_ld_reload_flag='-r'
5897
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5898
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5899
reload_flag=$lt_cv_ld_reload_flag
5900
case $reload_flag in
5902
*) reload_flag=" $reload_flag" ;;
5904
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5907
if test "$GCC" = yes; then
5908
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5910
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5915
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5916
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5917
if test "${lt_cv_path_NM+set}" = set; then
5918
echo $ECHO_N "(cached) $ECHO_C" >&6
5920
if test -n "$NM"; then
5921
# Let the user override the test.
5924
lt_nm_to_check="${ac_tool_prefix}nm"
5925
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5926
lt_nm_to_check="$lt_nm_to_check nm"
5928
for lt_tmp_nm in $lt_nm_to_check; do
5929
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5930
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5932
test -z "$ac_dir" && ac_dir=.
5933
tmp_nm="$ac_dir/$lt_tmp_nm"
5934
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5935
# Check to see if the nm accepts a BSD-compat flag.
5936
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5937
# nm: unknown option "B" ignored
5938
# Tru64's nm complains that /dev/null is an invalid object file
5939
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5940
*/dev/null* | *'Invalid file or object type'*)
5941
lt_cv_path_NM="$tmp_nm -B"
5945
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5947
lt_cv_path_NM="$tmp_nm -p"
5951
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5952
continue # so that we can try to find one that supports BSD flags
5961
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5964
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5965
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5968
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5969
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5970
if test "${lt_cv_deplibs_check_method+set}" = set; then
5971
echo $ECHO_N "(cached) $ECHO_C" >&6
5973
lt_cv_file_magic_cmd='$MAGIC_CMD'
5974
lt_cv_file_magic_test_file=
5975
lt_cv_deplibs_check_method='unknown'
5976
# Need to set the preceding variable on all platforms that support
5977
# interlibrary dependencies.
5978
# 'none' -- dependencies not supported.
5979
# `unknown' -- same as none, but documents that we really don't know.
5980
# 'pass_all' -- all dependencies passed with no checks.
5981
# 'test_compile' -- check by making test program.
5982
# 'file_magic [[regex]]' -- check by looking for files in library path
5983
# which responds to the $file_magic_cmd with a given extended regex.
5984
# If you have `file' or equivalent on your system and you're not sure
5985
# whether `pass_all' will *always* work, you probably want this one.
5989
lt_cv_deplibs_check_method=pass_all
5993
lt_cv_deplibs_check_method=pass_all
5997
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5998
lt_cv_file_magic_cmd='/usr/bin/file -L'
5999
lt_cv_file_magic_test_file=/shlib/libc.so
6003
# func_win32_libid is a shell function defined in ltmain.sh
6004
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6005
lt_cv_file_magic_cmd='func_win32_libid'
6009
# Base MSYS/MinGW do not provide the 'file' command needed by
6010
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6011
# unless we find 'file', for example because we are cross-compiling.
6012
if ( file / ) >/dev/null 2>&1; then
6013
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6014
lt_cv_file_magic_cmd='func_win32_libid'
6016
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6017
lt_cv_file_magic_cmd='$OBJDUMP -f'
6021
darwin* | rhapsody*)
6022
lt_cv_deplibs_check_method=pass_all
6025
freebsd* | dragonfly*)
6026
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6029
# Not sure whether the presence of OpenBSD here was a mistake.
6030
# Let's accept both of them until this is cleared up.
6031
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6032
lt_cv_file_magic_cmd=/usr/bin/file
6033
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6037
lt_cv_deplibs_check_method=pass_all
6042
lt_cv_deplibs_check_method=pass_all
6045
hpux10.20* | hpux11*)
6046
lt_cv_file_magic_cmd=/usr/bin/file
6049
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6050
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6053
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]'
6054
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6057
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6058
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6064
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6065
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6068
irix5* | irix6* | nonstopux*)
6070
*-32|*"-32 ") libmagic=32-bit;;
6071
*-n32|*"-n32 ") libmagic=N32;;
6072
*-64|*"-64 ") libmagic=64-bit;;
6073
*) libmagic=never-match;;
6075
lt_cv_deplibs_check_method=pass_all
6078
# This must be Linux ELF.
6079
linux* | k*bsd*-gnu)
6080
lt_cv_deplibs_check_method=pass_all
6084
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6085
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6087
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6092
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6093
lt_cv_file_magic_cmd=/usr/bin/file
6094
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6098
lt_cv_deplibs_check_method=unknown
6102
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6103
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6105
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6109
osf3* | osf4* | osf5*)
6110
lt_cv_deplibs_check_method=pass_all
6114
lt_cv_deplibs_check_method=pass_all
6118
lt_cv_deplibs_check_method=pass_all
6122
case $host_vendor in
6124
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]'
6125
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6128
lt_cv_deplibs_check_method=pass_all
6131
lt_cv_file_magic_cmd='/bin/file'
6132
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6135
lt_cv_file_magic_cmd='/bin/file'
6136
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6137
lt_cv_file_magic_test_file=/lib/libc.so
6140
lt_cv_deplibs_check_method=pass_all
6143
lt_cv_deplibs_check_method=pass_all
6148
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6149
lt_cv_deplibs_check_method=pass_all
6154
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6155
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6156
file_magic_cmd=$lt_cv_file_magic_cmd
6157
deplibs_check_method=$lt_cv_deplibs_check_method
6158
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6163
# If no C compiler was specified, use CC.
6166
# If no C compiler flags were specified, use CFLAGS.
6167
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6169
# Allow CC to be a program name with arguments.
6172
# Check whether --enable-libtool-lock was given.
6173
if test "${enable_libtool_lock+set}" = set; then
6174
enableval=$enable_libtool_lock;
6177
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6179
# Some flags need to be propagated to the compiler or linker for good
6183
# Find out which ABI we are using.
6184
echo 'int i;' > conftest.$ac_ext
6185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186
(eval $ac_compile) 2>&5
6188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189
(exit $ac_status); }; then
6190
case `/usr/bin/file conftest.$ac_objext` in
6202
# Find out which ABI we are using.
6203
echo '#line 6203 "configure"' > conftest.$ac_ext
6204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205
(eval $ac_compile) 2>&5
6207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208
(exit $ac_status); }; then
6209
if test "$lt_cv_prog_gnu_ld" = yes; then
6210
case `/usr/bin/file conftest.$ac_objext` in
6212
LD="${LD-ld} -melf32bsmip"
6215
LD="${LD-ld} -melf32bmipn32"
6218
LD="${LD-ld} -melf64bmip"
6222
case `/usr/bin/file conftest.$ac_objext` in
6238
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6239
s390*-*linux*|sparc*-*linux*)
6240
# Find out which ABI we are using.
6241
echo 'int i;' > conftest.$ac_ext
6242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243
(eval $ac_compile) 2>&5
6245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246
(exit $ac_status); }; then
6247
case `/usr/bin/file conftest.o` in
6250
x86_64-*kfreebsd*-gnu)
6251
LD="${LD-ld} -m elf_i386_fbsd"
6254
LD="${LD-ld} -m elf_i386"
6256
ppc64-*linux*|powerpc64-*linux*)
6257
LD="${LD-ld} -m elf32ppclinux"
6260
LD="${LD-ld} -m elf_s390"
6263
LD="${LD-ld} -m elf32_sparc"
6270
x86_64-*kfreebsd*-gnu)
6271
LD="${LD-ld} -m elf_x86_64_fbsd"
6274
LD="${LD-ld} -m elf_x86_64"
6276
ppc*-*linux*|powerpc*-*linux*)
6277
LD="${LD-ld} -m elf64ppc"
6280
LD="${LD-ld} -m elf64_s390"
6283
LD="${LD-ld} -m elf64_sparc"
6293
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6294
SAVE_CFLAGS="$CFLAGS"
6295
CFLAGS="$CFLAGS -belf"
6296
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6297
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6298
if test "${lt_cv_cc_needs_belf+set}" = set; then
6299
echo $ECHO_N "(cached) $ECHO_C" >&6
6302
ac_cpp='$CPP $CPPFLAGS'
6303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
cat >conftest.$ac_ext <<_ACEOF
6310
cat confdefs.h >>conftest.$ac_ext
6311
cat >>conftest.$ac_ext <<_ACEOF
6312
/* end confdefs.h. */
6322
rm -f conftest.$ac_objext conftest$ac_exeext
6323
if { (ac_try="$ac_link"
6325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326
*) ac_try_echo=$ac_try;;
6328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329
(eval "$ac_link") 2>conftest.er1
6331
grep -v '^ *+' conftest.er1 >conftest.err
6333
cat conftest.err >&5
6334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335
(exit $ac_status); } && {
6336
test -z "$ac_c_werror_flag" ||
6337
test ! -s conftest.err
6338
} && test -s conftest$ac_exeext &&
6339
$as_test_x conftest$ac_exeext; then
6340
lt_cv_cc_needs_belf=yes
6342
echo "$as_me: failed program was:" >&5
6343
sed 's/^/| /' conftest.$ac_ext >&5
6345
lt_cv_cc_needs_belf=no
6348
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6349
conftest$ac_exeext conftest.$ac_ext
6351
ac_cpp='$CPP $CPPFLAGS'
6352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6358
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6359
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6360
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6361
CFLAGS="$SAVE_CFLAGS"
6365
# Find out which ABI we are using.
6366
echo 'int i;' > conftest.$ac_ext
6367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368
(eval $ac_compile) 2>&5
6370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
(exit $ac_status); }; then
6372
case `/usr/bin/file conftest.o` in
6374
case $lt_cv_prog_gnu_ld in
6375
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6376
*) LD="${LD-ld} -64" ;;
6387
need_locks="$enable_libtool_lock"
6391
for ac_header in dlfcn.h
6393
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6395
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6396
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398
echo $ECHO_N "(cached) $ECHO_C" >&6
6400
ac_res=`eval echo '${'$as_ac_Header'}'`
6401
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6402
echo "${ECHO_T}$ac_res" >&6; }
6404
# Is the header compilable?
6405
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6407
cat >conftest.$ac_ext <<_ACEOF
6410
cat confdefs.h >>conftest.$ac_ext
6411
cat >>conftest.$ac_ext <<_ACEOF
6412
/* end confdefs.h. */
6413
$ac_includes_default
6414
#include <$ac_header>
6416
rm -f conftest.$ac_objext
6417
if { (ac_try="$ac_compile"
6419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420
*) ac_try_echo=$ac_try;;
6422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423
(eval "$ac_compile") 2>conftest.er1
6425
grep -v '^ *+' conftest.er1 >conftest.err
6427
cat conftest.err >&5
6428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429
(exit $ac_status); } && {
6430
test -z "$ac_c_werror_flag" ||
6431
test ! -s conftest.err
6432
} && test -s conftest.$ac_objext; then
6433
ac_header_compiler=yes
6435
echo "$as_me: failed program was:" >&5
6436
sed 's/^/| /' conftest.$ac_ext >&5
6438
ac_header_compiler=no
6441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443
echo "${ECHO_T}$ac_header_compiler" >&6; }
6445
# Is the header present?
6446
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6447
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6448
cat >conftest.$ac_ext <<_ACEOF
6451
cat confdefs.h >>conftest.$ac_ext
6452
cat >>conftest.$ac_ext <<_ACEOF
6453
/* end confdefs.h. */
6454
#include <$ac_header>
6456
if { (ac_try="$ac_cpp conftest.$ac_ext"
6458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459
*) ac_try_echo=$ac_try;;
6461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6464
grep -v '^ *+' conftest.er1 >conftest.err
6466
cat conftest.err >&5
6467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
(exit $ac_status); } >/dev/null && {
6469
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6470
test ! -s conftest.err
6472
ac_header_preproc=yes
6474
echo "$as_me: failed program was:" >&5
6475
sed 's/^/| /' conftest.$ac_ext >&5
6477
ac_header_preproc=no
6480
rm -f conftest.err conftest.$ac_ext
6481
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482
echo "${ECHO_T}$ac_header_preproc" >&6; }
6484
# So? What about this header?
6485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6491
ac_header_preproc=yes
6494
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6496
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6497
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6498
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6500
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6501
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6502
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6507
## --------------------------------------- ##
6508
## Report this to opendap-tech@opendap.org ##
6509
## --------------------------------------- ##
6511
) | sed "s/^/$as_me: WARNING: /" >&2
6514
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6517
echo $ECHO_N "(cached) $ECHO_C" >&6
6519
eval "$as_ac_Header=\$ac_header_preproc"
6521
ac_res=`eval echo '${'$as_ac_Header'}'`
6522
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6523
echo "${ECHO_T}$ac_res" >&6; }
6526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6527
cat >>confdefs.h <<_ACEOF
6528
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6538
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6539
(test "X$CXX" != "Xg++"))) ; then
6541
ac_cpp='$CXXCPP $CPPFLAGS'
6542
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6545
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6546
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6547
if test -z "$CXXCPP"; then
6548
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6549
echo $ECHO_N "(cached) $ECHO_C" >&6
6551
# Double quotes because CXXCPP needs to be expanded
6552
for CXXCPP in "$CXX -E" "/lib/cpp"
6555
for ac_cxx_preproc_warn_flag in '' yes
6557
# Use a header file that comes with gcc, so configuring glibc
6558
# with a fresh cross-compiler works.
6559
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560
# <limits.h> exists even on freestanding compilers.
6561
# On the NeXT, cc -E runs the code through the compiler's parser,
6562
# not just through cpp. "Syntax error" is here to catch this case.
6563
cat >conftest.$ac_ext <<_ACEOF
6566
cat confdefs.h >>conftest.$ac_ext
6567
cat >>conftest.$ac_ext <<_ACEOF
6568
/* end confdefs.h. */
6570
# include <limits.h>
6572
# include <assert.h>
6576
if { (ac_try="$ac_cpp conftest.$ac_ext"
6578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579
*) ac_try_echo=$ac_try;;
6581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6584
grep -v '^ *+' conftest.er1 >conftest.err
6586
cat conftest.err >&5
6587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588
(exit $ac_status); } >/dev/null && {
6589
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6590
test ! -s conftest.err
6594
echo "$as_me: failed program was:" >&5
6595
sed 's/^/| /' conftest.$ac_ext >&5
6597
# Broken: fails on valid input.
6601
rm -f conftest.err conftest.$ac_ext
6603
# OK, works on sane cases. Now check whether nonexistent headers
6604
# can be detected and how.
6605
cat >conftest.$ac_ext <<_ACEOF
6608
cat confdefs.h >>conftest.$ac_ext
6609
cat >>conftest.$ac_ext <<_ACEOF
6610
/* end confdefs.h. */
6611
#include <ac_nonexistent.h>
6613
if { (ac_try="$ac_cpp conftest.$ac_ext"
6615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616
*) ac_try_echo=$ac_try;;
6618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6621
grep -v '^ *+' conftest.er1 >conftest.err
6623
cat conftest.err >&5
6624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625
(exit $ac_status); } >/dev/null && {
6626
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6627
test ! -s conftest.err
6629
# Broken: success on invalid input.
6632
echo "$as_me: failed program was:" >&5
6633
sed 's/^/| /' conftest.$ac_ext >&5
6635
# Passes both tests.
6640
rm -f conftest.err conftest.$ac_ext
6643
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6644
rm -f conftest.err conftest.$ac_ext
6645
if $ac_preproc_ok; then
6650
ac_cv_prog_CXXCPP=$CXXCPP
6653
CXXCPP=$ac_cv_prog_CXXCPP
6655
ac_cv_prog_CXXCPP=$CXXCPP
6657
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6658
echo "${ECHO_T}$CXXCPP" >&6; }
6660
for ac_cxx_preproc_warn_flag in '' yes
6662
# Use a header file that comes with gcc, so configuring glibc
6663
# with a fresh cross-compiler works.
6664
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665
# <limits.h> exists even on freestanding compilers.
6666
# On the NeXT, cc -E runs the code through the compiler's parser,
6667
# not just through cpp. "Syntax error" is here to catch this case.
6668
cat >conftest.$ac_ext <<_ACEOF
6671
cat confdefs.h >>conftest.$ac_ext
6672
cat >>conftest.$ac_ext <<_ACEOF
6673
/* end confdefs.h. */
6675
# include <limits.h>
6677
# include <assert.h>
6681
if { (ac_try="$ac_cpp conftest.$ac_ext"
6683
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684
*) ac_try_echo=$ac_try;;
6686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6689
grep -v '^ *+' conftest.er1 >conftest.err
6691
cat conftest.err >&5
6692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693
(exit $ac_status); } >/dev/null && {
6694
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6695
test ! -s conftest.err
6699
echo "$as_me: failed program was:" >&5
6700
sed 's/^/| /' conftest.$ac_ext >&5
6702
# Broken: fails on valid input.
6706
rm -f conftest.err conftest.$ac_ext
6708
# OK, works on sane cases. Now check whether nonexistent headers
6709
# can be detected and how.
6710
cat >conftest.$ac_ext <<_ACEOF
6713
cat confdefs.h >>conftest.$ac_ext
6714
cat >>conftest.$ac_ext <<_ACEOF
6715
/* end confdefs.h. */
6716
#include <ac_nonexistent.h>
6718
if { (ac_try="$ac_cpp conftest.$ac_ext"
6720
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721
*) ac_try_echo=$ac_try;;
6723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6726
grep -v '^ *+' conftest.er1 >conftest.err
6728
cat conftest.err >&5
6729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730
(exit $ac_status); } >/dev/null && {
6731
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6732
test ! -s conftest.err
6734
# Broken: success on invalid input.
6737
echo "$as_me: failed program was:" >&5
6738
sed 's/^/| /' conftest.$ac_ext >&5
6740
# Passes both tests.
6745
rm -f conftest.err conftest.$ac_ext
6748
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749
rm -f conftest.err conftest.$ac_ext
6750
if $ac_preproc_ok; then
6753
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6754
See \`config.log' for more details." >&5
6755
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6756
See \`config.log' for more details." >&2;}
6757
{ (exit 1); exit 1; }; }
6761
ac_cpp='$CXXCPP $CPPFLAGS'
6762
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6770
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6771
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6773
if test -n "$ac_tool_prefix"; then
6774
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6776
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6777
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6778
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780
if test "${ac_cv_prog_F77+set}" = set; then
6781
echo $ECHO_N "(cached) $ECHO_C" >&6
6783
if test -n "$F77"; then
6784
ac_cv_prog_F77="$F77" # Let the user override the test.
6786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790
test -z "$as_dir" && as_dir=.
6791
for ac_exec_ext in '' $ac_executable_extensions; do
6792
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6794
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804
if test -n "$F77"; then
6805
{ echo "$as_me:$LINENO: result: $F77" >&5
6806
echo "${ECHO_T}$F77" >&6; }
6808
{ echo "$as_me:$LINENO: result: no" >&5
6809
echo "${ECHO_T}no" >&6; }
6813
test -n "$F77" && break
6816
if test -z "$F77"; then
6818
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6820
# Extract the first word of "$ac_prog", so it can be a program name with args.
6821
set dummy $ac_prog; ac_word=$2
6822
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6823
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6825
echo $ECHO_N "(cached) $ECHO_C" >&6
6827
if test -n "$ac_ct_F77"; then
6828
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834
test -z "$as_dir" && as_dir=.
6835
for ac_exec_ext in '' $ac_executable_extensions; do
6836
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837
ac_cv_prog_ac_ct_F77="$ac_prog"
6838
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6848
if test -n "$ac_ct_F77"; then
6849
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6850
echo "${ECHO_T}$ac_ct_F77" >&6; }
6852
{ echo "$as_me:$LINENO: result: no" >&5
6853
echo "${ECHO_T}no" >&6; }
6857
test -n "$ac_ct_F77" && break
6860
if test "x$ac_ct_F77" = x; then
6863
case $cross_compiling:$ac_tool_warned in
6865
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6866
whose name does not start with the host triplet. If you think this
6867
configuration is useful to you, please write to autoconf@gnu.org." >&5
6868
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6869
whose name does not start with the host triplet. If you think this
6870
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6871
ac_tool_warned=yes ;;
6878
# Provide some information about the compiler.
6879
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6880
ac_compiler=`set X $ac_compile; echo $2`
6881
{ (ac_try="$ac_compiler --version >&5"
6883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884
*) ac_try_echo=$ac_try;;
6886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887
(eval "$ac_compiler --version >&5") 2>&5
6889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890
(exit $ac_status); }
6891
{ (ac_try="$ac_compiler -v >&5"
6893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894
*) ac_try_echo=$ac_try;;
6896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897
(eval "$ac_compiler -v >&5") 2>&5
6899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900
(exit $ac_status); }
6901
{ (ac_try="$ac_compiler -V >&5"
6903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904
*) ac_try_echo=$ac_try;;
6906
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907
(eval "$ac_compiler -V >&5") 2>&5
6909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910
(exit $ac_status); }
6913
# If we don't use `.F' as extension, the preprocessor is not run on the
6914
# input file. (Note that this only needs to work for GNU compilers.)
6917
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6918
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6919
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6920
echo $ECHO_N "(cached) $ECHO_C" >&6
6922
cat >conftest.$ac_ext <<_ACEOF
6930
rm -f conftest.$ac_objext
6931
if { (ac_try="$ac_compile"
6933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934
*) ac_try_echo=$ac_try;;
6936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937
(eval "$ac_compile") 2>conftest.er1
6939
grep -v '^ *+' conftest.er1 >conftest.err
6941
cat conftest.err >&5
6942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943
(exit $ac_status); } && {
6944
test -z "$ac_f77_werror_flag" ||
6945
test ! -s conftest.err
6946
} && test -s conftest.$ac_objext; then
6949
echo "$as_me: failed program was:" >&5
6950
sed 's/^/| /' conftest.$ac_ext >&5
6955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6959
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6960
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6962
ac_test_FFLAGS=${FFLAGS+set}
6963
ac_save_FFLAGS=$FFLAGS
6965
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6966
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6967
if test "${ac_cv_prog_f77_g+set}" = set; then
6968
echo $ECHO_N "(cached) $ECHO_C" >&6
6971
cat >conftest.$ac_ext <<_ACEOF
6976
rm -f conftest.$ac_objext
6977
if { (ac_try="$ac_compile"
6979
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980
*) ac_try_echo=$ac_try;;
6982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983
(eval "$ac_compile") 2>conftest.er1
6985
grep -v '^ *+' conftest.er1 >conftest.err
6987
cat conftest.err >&5
6988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989
(exit $ac_status); } && {
6990
test -z "$ac_f77_werror_flag" ||
6991
test ! -s conftest.err
6992
} && test -s conftest.$ac_objext; then
6993
ac_cv_prog_f77_g=yes
6995
echo "$as_me: failed program was:" >&5
6996
sed 's/^/| /' conftest.$ac_ext >&5
7001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7005
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7006
if test "$ac_test_FFLAGS" = set; then
7007
FFLAGS=$ac_save_FFLAGS
7008
elif test $ac_cv_prog_f77_g = yes; then
7009
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7015
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7022
G77=`test $ac_compiler_gnu = yes && echo yes`
7024
ac_cpp='$CPP $CPPFLAGS'
7025
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7033
# find the maximum length of command line arguments
7034
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7035
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7036
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7037
echo $ECHO_N "(cached) $ECHO_C" >&6
7044
# On DJGPP, this test can blow up pretty badly due to problems in libc
7045
# (any single argument exceeding 2000 bytes causes a buffer overrun
7046
# during glob expansion). Even if it were fixed, the result of this
7047
# check would be larger than it should be.
7048
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7052
# Under GNU Hurd, this test is not required because there is
7053
# no limit to the length of command line arguments.
7054
# Libtool will interpret -1 as no limit whatsoever
7055
lt_cv_sys_max_cmd_len=-1;
7059
# On Win9x/ME, this test blows up -- it succeeds, but takes
7060
# about 5 minutes as the teststring grows exponentially.
7061
# Worse, since 9x/ME are not pre-emptively multitasking,
7062
# you end up with a "frozen" computer, even though with patience
7063
# the test eventually succeeds (with a max line length of 256k).
7064
# Instead, let's just punt: use the minimum linelength reported by
7065
# all of the supported platforms: 8192 (on NT/2K/XP).
7066
lt_cv_sys_max_cmd_len=8192;
7070
# On AmigaOS with pdksh, this test takes hours, literally.
7071
# So we just punt and use a minimum line length of 8192.
7072
lt_cv_sys_max_cmd_len=8192;
7075
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7076
# This has been around since 386BSD, at least. Likely further.
7077
if test -x /sbin/sysctl; then
7078
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7079
elif test -x /usr/sbin/sysctl; then
7080
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7082
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7084
# And add a safety zone
7085
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7086
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7090
# We know the value 262144 and hardcode it with a safety zone (like BSD)
7091
lt_cv_sys_max_cmd_len=196608
7095
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7096
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7097
# nice to cause kernel panics so lets avoid the loop below.
7098
# First set a reasonable default.
7099
lt_cv_sys_max_cmd_len=16384
7101
if test -x /sbin/sysconfig; then
7102
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7103
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7108
lt_cv_sys_max_cmd_len=102400
7110
sysv5* | sco5v6* | sysv4.2uw2*)
7111
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7112
if test -n "$kargmax"; then
7113
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7115
lt_cv_sys_max_cmd_len=32768
7119
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7120
if test -n "$lt_cv_sys_max_cmd_len"; then
7121
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7122
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7124
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7125
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7126
= "XX$teststring") >/dev/null 2>&1 &&
7127
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7128
lt_cv_sys_max_cmd_len=$new_result &&
7129
test $i != 17 # 1/2 MB should be enough
7132
teststring=$teststring$teststring
7135
# Add a significant safety factor because C++ compilers can tack on massive
7136
# amounts of additional arguments before passing them to the linker.
7137
# It appears as though 1/2 is a usable value.
7138
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7145
if test -n $lt_cv_sys_max_cmd_len ; then
7146
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7147
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7149
{ echo "$as_me:$LINENO: result: none" >&5
7150
echo "${ECHO_T}none" >&6; }
7157
# Check for command to grab the raw symbol name followed by C symbol from nm.
7158
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7159
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7160
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7161
echo $ECHO_N "(cached) $ECHO_C" >&6
7164
# These are sane defaults that work on at least a few old systems.
7165
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7167
# Character class describing NM global symbol codes.
7168
symcode='[BCDEGRST]'
7170
# Regexp to match symbols that can be accessed directly from C.
7171
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7173
# Transform an extracted symbol line into a proper C declaration
7174
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7176
# Transform an extracted symbol line into symbol name and symbol address
7177
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'"
7179
# Define system-specific variables.
7184
cygwin* | mingw* | pw32*)
7185
symcode='[ABCDGISTW]'
7187
hpux*) # Its linker distinguishes data from code symbols
7188
if test "$host_cpu" = ia64; then
7189
symcode='[ABCDEGRST]'
7191
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7192
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'"
7194
linux* | k*bsd*-gnu)
7195
if test "$host_cpu" = ia64; then
7196
symcode='[ABCDGIRSTW]'
7197
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7198
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'"
7202
symcode='[BCDEGRST]'
7205
symcode='[BCDEGQRST]'
7216
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7224
# Handle CRLF in mingw tool chain
7228
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7232
# If we're using GNU nm, then use its standard symbol codes.
7233
case `$NM -V 2>&1` in
7234
*GNU* | *'with BFD'*)
7235
symcode='[ABCDGIRSTW]' ;;
7238
# Try without a prefix undercore, then with it.
7239
for ac_symprfx in "" "_"; do
7241
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7242
symxfrm="\\1 $ac_symprfx\\2 \\2"
7244
# Write the raw and C identifiers.
7245
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7247
# Check to see that the pipe works correctly.
7251
cat > conftest.$ac_ext <<EOF
7256
void nm_test_func(){}
7260
int main(){nm_test_var='a';nm_test_func();return(0);}
7263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264
(eval $ac_compile) 2>&5
7266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267
(exit $ac_status); }; then
7268
# Now try to grab the symbols.
7270
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7271
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274
(exit $ac_status); } && test -s "$nlist"; then
7275
# Try sorting and uniquifying the output.
7276
if sort "$nlist" | uniq > "$nlist"T; then
7277
mv -f "$nlist"T "$nlist"
7282
# Make sure that we snagged all the symbols we need.
7283
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7284
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7285
cat <<EOF > conftest.$ac_ext
7291
# Now generate the symbol file.
7292
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7294
cat <<EOF >> conftest.$ac_ext
7295
#if defined (__STDC__) && __STDC__
7296
# define lt_ptr_t void *
7298
# define lt_ptr_t char *
7302
/* The mapping between symbol names and symbols. */
7307
lt_preloaded_symbols[] =
7310
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7311
cat <<\EOF >> conftest.$ac_ext
7319
# Now try linking the two files.
7320
mv conftest.$ac_objext conftstm.$ac_objext
7321
lt_save_LIBS="$LIBS"
7322
lt_save_CFLAGS="$CFLAGS"
7323
LIBS="conftstm.$ac_objext"
7324
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7326
(eval $ac_link) 2>&5
7328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7332
LIBS="$lt_save_LIBS"
7333
CFLAGS="$lt_save_CFLAGS"
7335
echo "cannot find nm_test_func in $nlist" >&5
7338
echo "cannot find nm_test_var in $nlist" >&5
7341
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7344
echo "$progname: failed program was:" >&5
7345
cat conftest.$ac_ext >&5
7347
rm -f conftest* conftst*
7349
# Do not use the global_symbol_pipe unless it works.
7350
if test "$pipe_works" = yes; then
7353
lt_cv_sys_global_symbol_pipe=
7359
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7360
lt_cv_sys_global_symbol_to_cdecl=
7362
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7363
{ echo "$as_me:$LINENO: result: failed" >&5
7364
echo "${ECHO_T}failed" >&6; }
7366
{ echo "$as_me:$LINENO: result: ok" >&5
7367
echo "${ECHO_T}ok" >&6; }
7370
{ echo "$as_me:$LINENO: checking for objdir" >&5
7371
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7372
if test "${lt_cv_objdir+set}" = set; then
7373
echo $ECHO_N "(cached) $ECHO_C" >&6
7375
rm -f .libs 2>/dev/null
7376
mkdir .libs 2>/dev/null
7377
if test -d .libs; then
7380
# MS-DOS does not allow filenames that begin with a dot.
7383
rmdir .libs 2>/dev/null
7385
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7386
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7387
objdir=$lt_cv_objdir
7395
# AIX sometimes has problems with the GCC collect2 program. For some
7396
# reason, if we set the COLLECT_NAMES environment variable, the problems
7397
# vanish in a puff of smoke.
7398
if test "X${COLLECT_NAMES+set}" != Xset; then
7400
export COLLECT_NAMES
7405
# Sed substitution that helps us do robust quoting. It backslashifies
7406
# metacharacters that are still active within double-quoted strings.
7407
Xsed='sed -e 1s/^X//'
7408
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7410
# Same as above, but do not quote variable references.
7411
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7413
# Sed substitution to delay expansion of an escaped shell variable in a
7414
# double_quote_subst'ed string.
7415
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7417
# Sed substitution to avoid accidental globbing in evaled expressions
7418
no_glob_subst='s/\*/\\\*/g'
7424
default_ofile=libtool
7425
can_build_shared=yes
7427
# All known linkers require a `.a' archive for static linking (except MSVC,
7428
# which needs '.lib').
7430
ltmain="$ac_aux_dir/ltmain.sh"
7431
ofile="$default_ofile"
7432
with_gnu_ld="$lt_cv_prog_gnu_ld"
7434
if test -n "$ac_tool_prefix"; then
7435
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7436
set dummy ${ac_tool_prefix}ar; ac_word=$2
7437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439
if test "${ac_cv_prog_AR+set}" = set; then
7440
echo $ECHO_N "(cached) $ECHO_C" >&6
7442
if test -n "$AR"; then
7443
ac_cv_prog_AR="$AR" # Let the user override the test.
7445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449
test -z "$as_dir" && as_dir=.
7450
for ac_exec_ext in '' $ac_executable_extensions; do
7451
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452
ac_cv_prog_AR="${ac_tool_prefix}ar"
7453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463
if test -n "$AR"; then
7464
{ echo "$as_me:$LINENO: result: $AR" >&5
7465
echo "${ECHO_T}$AR" >&6; }
7467
{ echo "$as_me:$LINENO: result: no" >&5
7468
echo "${ECHO_T}no" >&6; }
7473
if test -z "$ac_cv_prog_AR"; then
7475
# Extract the first word of "ar", so it can be a program name with args.
7476
set dummy ar; ac_word=$2
7477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7480
echo $ECHO_N "(cached) $ECHO_C" >&6
7482
if test -n "$ac_ct_AR"; then
7483
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489
test -z "$as_dir" && as_dir=.
7490
for ac_exec_ext in '' $ac_executable_extensions; do
7491
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492
ac_cv_prog_ac_ct_AR="ar"
7493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7503
if test -n "$ac_ct_AR"; then
7504
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7505
echo "${ECHO_T}$ac_ct_AR" >&6; }
7507
{ echo "$as_me:$LINENO: result: no" >&5
7508
echo "${ECHO_T}no" >&6; }
7511
if test "x$ac_ct_AR" = x; then
7514
case $cross_compiling:$ac_tool_warned in
7516
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7517
whose name does not start with the host triplet. If you think this
7518
configuration is useful to you, please write to autoconf@gnu.org." >&5
7519
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7520
whose name does not start with the host triplet. If you think this
7521
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7522
ac_tool_warned=yes ;;
7530
if test -n "$ac_tool_prefix"; then
7531
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7532
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7533
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535
if test "${ac_cv_prog_RANLIB+set}" = set; then
7536
echo $ECHO_N "(cached) $ECHO_C" >&6
7538
if test -n "$RANLIB"; then
7539
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545
test -z "$as_dir" && as_dir=.
7546
for ac_exec_ext in '' $ac_executable_extensions; do
7547
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7549
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558
RANLIB=$ac_cv_prog_RANLIB
7559
if test -n "$RANLIB"; then
7560
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7561
echo "${ECHO_T}$RANLIB" >&6; }
7563
{ echo "$as_me:$LINENO: result: no" >&5
7564
echo "${ECHO_T}no" >&6; }
7569
if test -z "$ac_cv_prog_RANLIB"; then
7570
ac_ct_RANLIB=$RANLIB
7571
# Extract the first word of "ranlib", so it can be a program name with args.
7572
set dummy ranlib; ac_word=$2
7573
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7576
echo $ECHO_N "(cached) $ECHO_C" >&6
7578
if test -n "$ac_ct_RANLIB"; then
7579
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585
test -z "$as_dir" && as_dir=.
7586
for ac_exec_ext in '' $ac_executable_extensions; do
7587
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588
ac_cv_prog_ac_ct_RANLIB="ranlib"
7589
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7599
if test -n "$ac_ct_RANLIB"; then
7600
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7601
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7603
{ echo "$as_me:$LINENO: result: no" >&5
7604
echo "${ECHO_T}no" >&6; }
7607
if test "x$ac_ct_RANLIB" = x; then
7610
case $cross_compiling:$ac_tool_warned in
7612
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7613
whose name does not start with the host triplet. If you think this
7614
configuration is useful to you, please write to autoconf@gnu.org." >&5
7615
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7616
whose name does not start with the host triplet. If you think this
7617
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7618
ac_tool_warned=yes ;;
7620
RANLIB=$ac_ct_RANLIB
7623
RANLIB="$ac_cv_prog_RANLIB"
7626
if test -n "$ac_tool_prefix"; then
7627
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7628
set dummy ${ac_tool_prefix}strip; ac_word=$2
7629
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631
if test "${ac_cv_prog_STRIP+set}" = set; then
7632
echo $ECHO_N "(cached) $ECHO_C" >&6
7634
if test -n "$STRIP"; then
7635
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641
test -z "$as_dir" && as_dir=.
7642
for ac_exec_ext in '' $ac_executable_extensions; do
7643
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7645
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654
STRIP=$ac_cv_prog_STRIP
7655
if test -n "$STRIP"; then
7656
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7657
echo "${ECHO_T}$STRIP" >&6; }
7659
{ echo "$as_me:$LINENO: result: no" >&5
7660
echo "${ECHO_T}no" >&6; }
7665
if test -z "$ac_cv_prog_STRIP"; then
7667
# Extract the first word of "strip", so it can be a program name with args.
7668
set dummy strip; ac_word=$2
7669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7672
echo $ECHO_N "(cached) $ECHO_C" >&6
7674
if test -n "$ac_ct_STRIP"; then
7675
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681
test -z "$as_dir" && as_dir=.
7682
for ac_exec_ext in '' $ac_executable_extensions; do
7683
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684
ac_cv_prog_ac_ct_STRIP="strip"
7685
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7695
if test -n "$ac_ct_STRIP"; then
7696
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7697
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7699
{ echo "$as_me:$LINENO: result: no" >&5
7700
echo "${ECHO_T}no" >&6; }
7703
if test "x$ac_ct_STRIP" = x; then
7706
case $cross_compiling:$ac_tool_warned in
7708
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7709
whose name does not start with the host triplet. If you think this
7710
configuration is useful to you, please write to autoconf@gnu.org." >&5
7711
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7712
whose name does not start with the host triplet. If you think this
7713
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7714
ac_tool_warned=yes ;;
7719
STRIP="$ac_cv_prog_STRIP"
7724
old_CFLAGS="$CFLAGS"
7726
# Set sane defaults for various variables
7727
test -z "$AR" && AR=ar
7728
test -z "$AR_FLAGS" && AR_FLAGS=cru
7729
test -z "$AS" && AS=as
7730
test -z "$CC" && CC=cc
7731
test -z "$LTCC" && LTCC=$CC
7732
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7733
test -z "$DLLTOOL" && DLLTOOL=dlltool
7734
test -z "$LD" && LD=ld
7735
test -z "$LN_S" && LN_S="ln -s"
7736
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7737
test -z "$NM" && NM=nm
7738
test -z "$SED" && SED=sed
7739
test -z "$OBJDUMP" && OBJDUMP=objdump
7740
test -z "$RANLIB" && RANLIB=:
7741
test -z "$STRIP" && STRIP=:
7742
test -z "$ac_objext" && ac_objext=o
7744
# Determine commands to create old-style static archives.
7745
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7746
old_postinstall_cmds='chmod 644 $oldlib'
7747
old_postuninstall_cmds=
7749
if test -n "$RANLIB"; then
7752
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7755
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7758
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7761
for cc_temp in $compiler""; do
7763
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7764
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7769
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7772
# Only perform the check for file, if the check method requires it
7773
case $deplibs_check_method in
7775
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7776
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7777
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7778
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7779
echo $ECHO_N "(cached) $ECHO_C" >&6
7783
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7786
lt_save_MAGIC_CMD="$MAGIC_CMD"
7787
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7788
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7789
for ac_dir in $ac_dummy; do
7791
test -z "$ac_dir" && ac_dir=.
7792
if test -f $ac_dir/${ac_tool_prefix}file; then
7793
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7794
if test -n "$file_magic_test_file"; then
7795
case $deplibs_check_method in
7797
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7798
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7800
$EGREP "$file_magic_regex" > /dev/null; then
7805
*** Warning: the command libtool uses to detect shared libraries,
7806
*** $file_magic_cmd, produces output that libtool cannot recognize.
7807
*** The result is that libtool may fail to recognize shared libraries
7808
*** as such. This will affect the creation of libtool libraries that
7809
*** depend on shared libraries, but programs linked with such libtool
7810
*** libraries will work regardless of this problem. Nevertheless, you
7811
*** may want to report the problem to your system manager and/or to
7812
*** bug-libtool@gnu.org
7822
MAGIC_CMD="$lt_save_MAGIC_CMD"
7827
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828
if test -n "$MAGIC_CMD"; then
7829
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7830
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7832
{ echo "$as_me:$LINENO: result: no" >&5
7833
echo "${ECHO_T}no" >&6; }
7836
if test -z "$lt_cv_path_MAGIC_CMD"; then
7837
if test -n "$ac_tool_prefix"; then
7838
{ echo "$as_me:$LINENO: checking for file" >&5
7839
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7840
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7841
echo $ECHO_N "(cached) $ECHO_C" >&6
7845
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7848
lt_save_MAGIC_CMD="$MAGIC_CMD"
7849
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7850
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7851
for ac_dir in $ac_dummy; do
7853
test -z "$ac_dir" && ac_dir=.
7854
if test -f $ac_dir/file; then
7855
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7856
if test -n "$file_magic_test_file"; then
7857
case $deplibs_check_method in
7859
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7860
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7862
$EGREP "$file_magic_regex" > /dev/null; then
7867
*** Warning: the command libtool uses to detect shared libraries,
7868
*** $file_magic_cmd, produces output that libtool cannot recognize.
7869
*** The result is that libtool may fail to recognize shared libraries
7870
*** as such. This will affect the creation of libtool libraries that
7871
*** depend on shared libraries, but programs linked with such libtool
7872
*** libraries will work regardless of this problem. Nevertheless, you
7873
*** may want to report the problem to your system manager and/or to
7874
*** bug-libtool@gnu.org
7884
MAGIC_CMD="$lt_save_MAGIC_CMD"
7889
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890
if test -n "$MAGIC_CMD"; then
7891
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7892
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7894
{ echo "$as_me:$LINENO: result: no" >&5
7895
echo "${ECHO_T}no" >&6; }
7910
# Check whether --enable-libtool-lock was given.
7911
if test "${enable_libtool_lock+set}" = set; then
7912
enableval=$enable_libtool_lock;
7915
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7918
# Check whether --with-pic was given.
7919
if test "${with_pic+set}" = set; then
7920
withval=$with_pic; pic_mode="$withval"
7925
test -z "$pic_mode" && pic_mode=default
7927
# Use C for the default configuration in the libtool script
7931
ac_cpp='$CPP $CPPFLAGS'
7932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
# Source file extension for C test sources.
7940
# Object file extension for compiled C test sources.
7944
# Code to be used in simple compile tests
7945
lt_simple_compile_test_code="int some_variable = 0;"
7947
# Code to be used in simple link tests
7948
lt_simple_link_test_code='int main(){return(0);}'
7951
# If no C compiler was specified, use CC.
7954
# If no C compiler flags were specified, use CFLAGS.
7955
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7957
# Allow CC to be a program name with arguments.
7961
# save warnings/boilerplate of simple test code
7962
ac_outfile=conftest.$ac_objext
7963
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7964
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7965
_lt_compiler_boilerplate=`cat conftest.err`
7968
ac_outfile=conftest.$ac_objext
7969
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7970
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7971
_lt_linker_boilerplate=`cat conftest.err`
7976
lt_prog_compiler_no_builtin_flag=
7978
if test "$GCC" = yes; then
7979
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7982
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7983
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7984
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7985
echo $ECHO_N "(cached) $ECHO_C" >&6
7987
lt_cv_prog_compiler_rtti_exceptions=no
7988
ac_outfile=conftest.$ac_objext
7989
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990
lt_compiler_flag="-fno-rtti -fno-exceptions"
7991
# Insert the option either (1) after the last *FLAGS variable, or
7992
# (2) before a word containing "conftest.", or (3) at the end.
7993
# Note that $ac_compile itself does not contain backslashes and begins
7994
# with a dollar sign (not a hyphen), so the echo should work correctly.
7995
# The option is referenced via a variable to avoid confusing sed.
7996
lt_compile=`echo "$ac_compile" | $SED \
7997
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7998
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7999
-e 's:$: $lt_compiler_flag:'`
8000
(eval echo "\"\$as_me:8000: $lt_compile\"" >&5)
8001
(eval "$lt_compile" 2>conftest.err)
8003
cat conftest.err >&5
8004
echo "$as_me:8004: \$? = $ac_status" >&5
8005
if (exit $ac_status) && test -s "$ac_outfile"; then
8006
# The compiler can only warn and ignore the option if not recognized
8007
# So say no if there are warnings other than the usual output.
8008
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8009
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8010
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8011
lt_cv_prog_compiler_rtti_exceptions=yes
8017
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8018
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8020
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8021
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8028
lt_prog_compiler_wl=
8029
lt_prog_compiler_pic=
8030
lt_prog_compiler_static=
8032
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8033
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8035
if test "$GCC" = yes; then
8036
lt_prog_compiler_wl='-Wl,'
8037
lt_prog_compiler_static='-static'
8041
# All AIX code is PIC.
8042
if test "$host_cpu" = ia64; then
8043
# AIX 5 now supports IA64 processor
8044
lt_prog_compiler_static='-Bstatic'
8049
# FIXME: we need at least 68020 code to build shared libraries, but
8050
# adding the `-m68020' flag to GCC prevents building anything better,
8052
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8055
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8056
# PIC is the default for these OSes.
8059
mingw* | cygwin* | pw32* | os2*)
8060
# This hack is so that the source file can tell whether it is being
8061
# built for inclusion in a dll (and should export symbols for example).
8062
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8063
# (--disable-auto-import) libraries
8064
lt_prog_compiler_pic='-DDLL_EXPORT'
8067
darwin* | rhapsody*)
8068
# PIC is the default on this platform
8069
# Common symbols not allowed in MH_DYLIB files
8070
lt_prog_compiler_pic='-fno-common'
8074
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8075
# Instead, we relocate shared libraries at runtime.
8079
# Just because we use GCC doesn't mean we suddenly get shared libraries
8080
# on systems that don't support them.
8081
lt_prog_compiler_can_build_shared=no
8086
if test -d /usr/nec; then
8087
lt_prog_compiler_pic=-Kconform_pic
8092
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8099
lt_prog_compiler_pic='-fPIC'
8105
lt_prog_compiler_pic='-fPIC'
8109
# PORTME Check for flag to pass linker flags through the system compiler.
8112
lt_prog_compiler_wl='-Wl,'
8113
if test "$host_cpu" = ia64; then
8114
# AIX 5 now supports IA64 processor
8115
lt_prog_compiler_static='-Bstatic'
8117
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8121
# PIC is the default on this platform
8122
# Common symbols not allowed in MH_DYLIB files
8123
case $cc_basename in
8125
lt_prog_compiler_pic='-qnocommon'
8126
lt_prog_compiler_wl='-Wl,'
8131
mingw* | cygwin* | pw32* | os2*)
8132
# This hack is so that the source file can tell whether it is being
8133
# built for inclusion in a dll (and should export symbols for example).
8134
lt_prog_compiler_pic='-DDLL_EXPORT'
8137
hpux9* | hpux10* | hpux11*)
8138
lt_prog_compiler_wl='-Wl,'
8139
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8146
lt_prog_compiler_pic='+Z'
8149
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8150
lt_prog_compiler_static='${wl}-a ${wl}archive'
8153
irix5* | irix6* | nonstopux*)
8154
lt_prog_compiler_wl='-Wl,'
8155
# PIC (with -KPIC) is the default.
8156
lt_prog_compiler_static='-non_shared'
8160
lt_prog_compiler_pic='-KPIC'
8161
lt_prog_compiler_static='-Bstatic'
8164
linux* | k*bsd*-gnu)
8165
case $cc_basename in
8167
lt_prog_compiler_wl='-Wl,'
8168
lt_prog_compiler_pic='-KPIC'
8169
lt_prog_compiler_static='-static'
8171
pgcc* | pgf77* | pgf90* | pgf95*)
8172
# Portland Group compilers (*not* the Pentium gcc compiler,
8173
# which looks to be a dead project)
8174
lt_prog_compiler_wl='-Wl,'
8175
lt_prog_compiler_pic='-fpic'
8176
lt_prog_compiler_static='-Bstatic'
8179
lt_prog_compiler_wl='-Wl,'
8180
# All Alpha code is PIC.
8181
lt_prog_compiler_static='-non_shared'
8184
case `$CC -V 2>&1 | sed 5q` in
8187
lt_prog_compiler_pic='-KPIC'
8188
lt_prog_compiler_static='-Bstatic'
8189
lt_prog_compiler_wl='-Wl,'
8192
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8193
lt_prog_compiler_pic='-KPIC'
8194
lt_prog_compiler_static='-Bstatic'
8195
lt_prog_compiler_wl=''
8202
osf3* | osf4* | osf5*)
8203
lt_prog_compiler_wl='-Wl,'
8204
# All OSF/1 code is PIC.
8205
lt_prog_compiler_static='-non_shared'
8209
lt_prog_compiler_static='-non_shared'
8213
lt_prog_compiler_pic='-KPIC'
8214
lt_prog_compiler_static='-Bstatic'
8215
case $cc_basename in
8217
lt_prog_compiler_wl='-Qoption ld ';;
8219
lt_prog_compiler_wl='-Wl,';;
8224
lt_prog_compiler_wl='-Qoption ld '
8225
lt_prog_compiler_pic='-PIC'
8226
lt_prog_compiler_static='-Bstatic'
8229
sysv4 | sysv4.2uw2* | sysv4.3*)
8230
lt_prog_compiler_wl='-Wl,'
8231
lt_prog_compiler_pic='-KPIC'
8232
lt_prog_compiler_static='-Bstatic'
8236
if test -d /usr/nec ;then
8237
lt_prog_compiler_pic='-Kconform_pic'
8238
lt_prog_compiler_static='-Bstatic'
8242
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8243
lt_prog_compiler_wl='-Wl,'
8244
lt_prog_compiler_pic='-KPIC'
8245
lt_prog_compiler_static='-Bstatic'
8249
lt_prog_compiler_wl='-Wl,'
8250
lt_prog_compiler_can_build_shared=no
8254
lt_prog_compiler_pic='-pic'
8255
lt_prog_compiler_static='-Bstatic'
8259
lt_prog_compiler_can_build_shared=no
8264
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8265
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8268
# Check to make sure the PIC flag actually works.
8270
if test -n "$lt_prog_compiler_pic"; then
8272
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8273
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8274
if test "${lt_prog_compiler_pic_works+set}" = set; then
8275
echo $ECHO_N "(cached) $ECHO_C" >&6
8277
lt_prog_compiler_pic_works=no
8278
ac_outfile=conftest.$ac_objext
8279
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8280
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8281
# Insert the option either (1) after the last *FLAGS variable, or
8282
# (2) before a word containing "conftest.", or (3) at the end.
8283
# Note that $ac_compile itself does not contain backslashes and begins
8284
# with a dollar sign (not a hyphen), so the echo should work correctly.
8285
# The option is referenced via a variable to avoid confusing sed.
8286
lt_compile=`echo "$ac_compile" | $SED \
8287
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8288
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289
-e 's:$: $lt_compiler_flag:'`
8290
(eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
8291
(eval "$lt_compile" 2>conftest.err)
8293
cat conftest.err >&5
8294
echo "$as_me:8294: \$? = $ac_status" >&5
8295
if (exit $ac_status) && test -s "$ac_outfile"; then
8296
# The compiler can only warn and ignore the option if not recognized
8297
# So say no if there are warnings other than the usual output.
8298
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8299
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8301
lt_prog_compiler_pic_works=yes
8307
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8308
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8310
if test x"$lt_prog_compiler_pic_works" = xyes; then
8311
case $lt_prog_compiler_pic in
8313
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8316
lt_prog_compiler_pic=
8317
lt_prog_compiler_can_build_shared=no
8322
# For platforms which do not support PIC, -DPIC is meaningless:
8324
lt_prog_compiler_pic=
8327
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8332
# Check to make sure the static flag actually works.
8334
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8335
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8336
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8337
if test "${lt_prog_compiler_static_works+set}" = set; then
8338
echo $ECHO_N "(cached) $ECHO_C" >&6
8340
lt_prog_compiler_static_works=no
8341
save_LDFLAGS="$LDFLAGS"
8342
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8343
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8344
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8345
# The linker can only warn and ignore the option if not recognized
8346
# So say no if there are warnings
8347
if test -s conftest.err; then
8348
# Append any errors to the config.log.
8349
cat conftest.err 1>&5
8350
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8351
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352
if diff conftest.exp conftest.er2 >/dev/null; then
8353
lt_prog_compiler_static_works=yes
8356
lt_prog_compiler_static_works=yes
8360
LDFLAGS="$save_LDFLAGS"
8363
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8364
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8366
if test x"$lt_prog_compiler_static_works" = xyes; then
8369
lt_prog_compiler_static=
8373
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8374
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8375
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8376
echo $ECHO_N "(cached) $ECHO_C" >&6
8378
lt_cv_prog_compiler_c_o=no
8379
$rm -r conftest 2>/dev/null
8383
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8385
lt_compiler_flag="-o out/conftest2.$ac_objext"
8386
# Insert the option either (1) after the last *FLAGS variable, or
8387
# (2) before a word containing "conftest.", or (3) at the end.
8388
# Note that $ac_compile itself does not contain backslashes and begins
8389
# with a dollar sign (not a hyphen), so the echo should work correctly.
8390
lt_compile=`echo "$ac_compile" | $SED \
8391
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393
-e 's:$: $lt_compiler_flag:'`
8394
(eval echo "\"\$as_me:8394: $lt_compile\"" >&5)
8395
(eval "$lt_compile" 2>out/conftest.err)
8397
cat out/conftest.err >&5
8398
echo "$as_me:8398: \$? = $ac_status" >&5
8399
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8401
# The compiler can only warn and ignore the option if not recognized
8402
# So say no if there are warnings
8403
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8404
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8405
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8406
lt_cv_prog_compiler_c_o=yes
8411
# SGI C++ compiler will create directory out/ii_files/ for
8412
# template instantiation
8413
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8414
$rm out/* && rmdir out
8420
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8421
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8424
hard_links="nottested"
8425
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8426
# do not overwrite the value of need_locks provided by the user
8427
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8428
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8431
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8433
ln conftest.a conftest.b 2>&5 || hard_links=no
8434
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8435
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8436
echo "${ECHO_T}$hard_links" >&6; }
8437
if test "$hard_links" = no; then
8438
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8439
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8446
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8447
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8450
allow_undefined_flag=
8451
enable_shared_with_static_runtimes=no
8453
archive_expsym_cmds=
8454
old_archive_From_new_cmds=
8455
old_archive_from_expsyms_cmds=
8456
export_dynamic_flag_spec=
8457
whole_archive_flag_spec=
8458
thread_safe_flag_spec=
8459
hardcode_libdir_flag_spec=
8460
hardcode_libdir_flag_spec_ld=
8461
hardcode_libdir_separator=
8464
hardcode_shlibpath_var=unsupported
8465
link_all_deplibs=unknown
8466
hardcode_automatic=no
8469
always_export_symbols=no
8470
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8471
# include_expsyms should be a list of space-separated symbols to be *always*
8472
# included in the symbol list
8474
# exclude_expsyms can be an extended regexp of symbols to exclude
8475
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8476
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8477
# as well as any symbol that contains `d'.
8478
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8479
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8480
# platforms (ab)use it in PIC code, but their linkers get confused if
8481
# the symbol is explicitly referenced. Since portable code cannot
8482
# rely on this symbol name, it's probably fine to never include it in
8483
# preloaded symbol tables.
8484
extract_expsyms_cmds=
8485
# Just being paranoid about ensuring that cc_basename is set.
8486
for cc_temp in $compiler""; do
8488
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8489
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8497
cygwin* | mingw* | pw32*)
8498
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8499
# When not using gcc, we currently assume that we are using
8500
# Microsoft Visual C++.
8501
if test "$GCC" != yes; then
8506
# we just hope/assume this is gcc and not c89 (= MSVC++)
8515
if test "$with_gnu_ld" = yes; then
8516
# If archive_cmds runs LD, not CC, wlarc should be empty
8519
# Set some defaults for GNU ld with shared library support. These
8520
# are reset later if shared libraries are not supported. Putting them
8521
# here allows them to be overridden if necessary.
8522
runpath_var=LD_RUN_PATH
8523
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8524
export_dynamic_flag_spec='${wl}--export-dynamic'
8525
# ancient GNU ld didn't support --whole-archive et. al.
8526
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8527
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8529
whole_archive_flag_spec=
8531
supports_anon_versioning=no
8532
case `$LD -v 2>/dev/null` in
8533
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8534
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8535
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8536
*\ 2.11.*) ;; # other 2.11 versions
8537
*) supports_anon_versioning=yes ;;
8540
# See if GNU ld supports shared libraries.
8542
aix3* | aix4* | aix5*)
8543
# On AIX/PPC, the GNU linker is very broken
8544
if test "$host_cpu" != ia64; then
8548
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8549
*** to be unable to reliably create shared libraries on AIX.
8550
*** Therefore, libtool is disabling shared libraries support. If you
8551
*** really care for shared libraries, you may want to modify your PATH
8552
*** so that a non-GNU linker is found, and then restart.
8559
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)'
8560
hardcode_libdir_flag_spec='-L$libdir'
8561
hardcode_minus_L=yes
8563
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8564
# that the semantics of dynamic libraries on AmigaOS, at least up
8565
# to version 4, is to share data among multiple programs linked
8566
# with the same dynamic library. Since this doesn't match the
8567
# behavior of shared libraries on other platforms, we can't use
8573
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8574
allow_undefined_flag=unsupported
8575
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8576
# support --undefined. This deserves some investigation. FIXME
8577
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583
cygwin* | mingw* | pw32*)
8584
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8585
# as there is no search path for DLLs.
8586
hardcode_libdir_flag_spec='-L$libdir'
8587
allow_undefined_flag=unsupported
8588
always_export_symbols=no
8589
enable_shared_with_static_runtimes=yes
8590
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8592
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8593
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8594
# If the export-symbols file already is a .def file (1st line
8595
# is EXPORTS), use it as is; otherwise, prepend...
8596
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8597
cp $export_symbols $output_objdir/$soname.def;
8599
echo EXPORTS > $output_objdir/$soname.def;
8600
cat $export_symbols >> $output_objdir/$soname.def;
8602
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610
hardcode_shlibpath_var=no
8611
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8612
export_dynamic_flag_spec='${wl}-E'
8613
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8614
# Instead, shared libraries are loaded at an image base (0x10000000 by
8615
# default) and relocated if they conflict, which is a slow very memory
8616
# consuming and fragmenting process. To avoid this, we pick a random,
8617
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8618
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8619
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8620
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'
8623
gnu* | linux* | k*bsd*-gnu)
8624
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8626
case $cc_basename,$host_cpu in
8627
pgcc*) # Portland Group C compiler
8628
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'
8629
tmp_addflag=' $pic_flag'
8631
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8632
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'
8633
tmp_addflag=' $pic_flag -Mnomain' ;;
8634
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8635
tmp_addflag=' -i_dynamic' ;;
8636
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8637
tmp_addflag=' -i_dynamic -nofor_main' ;;
8638
ifc* | ifort*) # Intel Fortran compiler
8639
tmp_addflag=' -nofor_main' ;;
8641
case `$CC -V 2>&1 | sed 5q` in
8642
*Sun\ C*) # Sun C 5.9
8643
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8644
tmp_sharedflag='-G' ;;
8645
*Sun\ F*) # Sun Fortran 8.3
8646
tmp_sharedflag='-G' ;;
8648
tmp_sharedflag='-shared' ;;
8650
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652
if test $supports_anon_versioning = yes; then
8653
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8654
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8655
$echo "local: *; };" >> $output_objdir/$libname.ver~
8656
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8664
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8665
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8668
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8678
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8679
*** create shared libraries on Solaris systems. Therefore, libtool
8680
*** is disabling shared libraries support. We urge you to upgrade GNU
8681
*** binutils to release 2.9.1 or newer. Another option is to modify
8682
*** your PATH or compiler configuration so that the native linker is
8683
*** used, and then restart.
8686
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8687
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8695
case `$LD -v 2>&1` in
8696
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8700
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8701
*** reliably create shared libraries on SCO systems. Therefore, libtool
8702
*** is disabling shared libraries support. We urge you to upgrade GNU
8703
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8704
*** your PATH or compiler configuration so that the native linker is
8705
*** used, and then restart.
8710
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8711
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8712
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8713
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8722
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8725
hardcode_shlibpath_var=no
8729
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8730
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738
if test "$ld_shlibs" = no; then
8740
hardcode_libdir_flag_spec=
8741
export_dynamic_flag_spec=
8742
whole_archive_flag_spec=
8745
# PORTME fill in a description of your system's linker (not GNU ld)
8748
allow_undefined_flag=unsupported
8749
always_export_symbols=yes
8750
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'
8751
# Note: this linker hardcodes the directories in LIBPATH if there
8752
# are no directories specified by -L.
8753
hardcode_minus_L=yes
8754
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8755
# Neither direct hardcoding nor static linking is supported with a
8757
hardcode_direct=unsupported
8762
if test "$host_cpu" = ia64; then
8763
# On IA64, the linker does run time linking by default, so we don't
8764
# have to do anything special.
8765
aix_use_runtimelinking=no
8766
exp_sym_flag='-Bexport'
8769
# If we're using GNU nm, then we don't want the "-C" option.
8770
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8771
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8772
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'
8774
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'
8776
aix_use_runtimelinking=no
8778
# Test if we are trying to use run time linking or normal
8779
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8780
# need to do runtime linking.
8781
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8782
for ld_flag in $LDFLAGS; do
8783
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8784
aix_use_runtimelinking=yes
8791
exp_sym_flag='-bexport'
8792
no_entry_flag='-bnoentry'
8795
# When large executables or shared objects are built, AIX ld can
8796
# have problems creating the table of contents. If linking a library
8797
# or program results in "error TOC overflow" add -mminimal-toc to
8798
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8799
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8803
hardcode_libdir_separator=':'
8804
link_all_deplibs=yes
8806
if test "$GCC" = yes; then
8807
case $host_os in aix4.[012]|aix4.[012].*)
8808
# We only want to do this on AIX 4.2 and lower, the check
8809
# below for broken collect2 doesn't work under 4.3+
8810
collect2name=`${CC} -print-prog-name=collect2`
8811
if test -f "$collect2name" && \
8812
strings "$collect2name" | grep resolve_lib_name >/dev/null
8814
# We have reworked collect2
8817
# We have old collect2
8818
hardcode_direct=unsupported
8819
# It fails to find uninstalled libraries when the uninstalled
8820
# path is not listed in the libpath. Setting hardcode_minus_L
8821
# to unsupported forces relinking
8822
hardcode_minus_L=yes
8823
hardcode_libdir_flag_spec='-L$libdir'
8824
hardcode_libdir_separator=
8828
shared_flag='-shared'
8829
if test "$aix_use_runtimelinking" = yes; then
8830
shared_flag="$shared_flag "'${wl}-G'
8834
if test "$host_cpu" = ia64; then
8835
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8836
# chokes on -Wl,-G. The following line is correct:
8839
if test "$aix_use_runtimelinking" = yes; then
8840
shared_flag='${wl}-G'
8842
shared_flag='${wl}-bM:SRE'
8847
# It seems that -bexpall does not export symbols beginning with
8848
# underscore (_), so it is better to generate a list of symbols to export.
8849
always_export_symbols=yes
8850
if test "$aix_use_runtimelinking" = yes; then
8851
# Warning - without using the other runtime loading flags (-brtl),
8852
# -berok will link without error, but may produce a broken library.
8853
allow_undefined_flag='-berok'
8854
# Determine the default libpath from the value encoded in an empty executable.
8855
cat >conftest.$ac_ext <<_ACEOF
8858
cat confdefs.h >>conftest.$ac_ext
8859
cat >>conftest.$ac_ext <<_ACEOF
8860
/* end confdefs.h. */
8870
rm -f conftest.$ac_objext conftest$ac_exeext
8871
if { (ac_try="$ac_link"
8873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874
*) ac_try_echo=$ac_try;;
8876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877
(eval "$ac_link") 2>conftest.er1
8879
grep -v '^ *+' conftest.er1 >conftest.err
8881
cat conftest.err >&5
8882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883
(exit $ac_status); } && {
8884
test -z "$ac_c_werror_flag" ||
8885
test ! -s conftest.err
8886
} && test -s conftest$ac_exeext &&
8887
$as_test_x conftest$ac_exeext; then
8889
lt_aix_libpath_sed='
8890
/Import File Strings/,/^$/ {
8896
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897
# Check for a 64-bit object if we didn't find anything.
8898
if test -z "$aix_libpath"; then
8899
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902
echo "$as_me: failed program was:" >&5
8903
sed 's/^/| /' conftest.$ac_ext >&5
8908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909
conftest$ac_exeext conftest.$ac_ext
8910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8912
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913
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"
8915
if test "$host_cpu" = ia64; then
8916
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917
allow_undefined_flag="-z nodefs"
8918
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"
8920
# Determine the default libpath from the value encoded in an empty executable.
8921
cat >conftest.$ac_ext <<_ACEOF
8924
cat confdefs.h >>conftest.$ac_ext
8925
cat >>conftest.$ac_ext <<_ACEOF
8926
/* end confdefs.h. */
8936
rm -f conftest.$ac_objext conftest$ac_exeext
8937
if { (ac_try="$ac_link"
8939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940
*) ac_try_echo=$ac_try;;
8942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943
(eval "$ac_link") 2>conftest.er1
8945
grep -v '^ *+' conftest.er1 >conftest.err
8947
cat conftest.err >&5
8948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949
(exit $ac_status); } && {
8950
test -z "$ac_c_werror_flag" ||
8951
test ! -s conftest.err
8952
} && test -s conftest$ac_exeext &&
8953
$as_test_x conftest$ac_exeext; then
8955
lt_aix_libpath_sed='
8956
/Import File Strings/,/^$/ {
8962
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963
# Check for a 64-bit object if we didn't find anything.
8964
if test -z "$aix_libpath"; then
8965
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968
echo "$as_me: failed program was:" >&5
8969
sed 's/^/| /' conftest.$ac_ext >&5
8974
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8975
conftest$ac_exeext conftest.$ac_ext
8976
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8978
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8979
# Warning - without using the other run time loading flags,
8980
# -berok will link without error, but may produce a broken library.
8981
no_undefined_flag=' ${wl}-bernotok'
8982
allow_undefined_flag=' ${wl}-berok'
8983
# Exported symbols can be pulled into shared objects from archives
8984
whole_archive_flag_spec='$convenience'
8985
archive_cmds_need_lc=yes
8986
# This is similar to how AIX traditionally builds its shared libraries.
8987
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'
8993
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)'
8994
hardcode_libdir_flag_spec='-L$libdir'
8995
hardcode_minus_L=yes
8996
# see comment about different semantics on the GNU ld section
9001
export_dynamic_flag_spec=-rdynamic
9004
cygwin* | mingw* | pw32*)
9005
# When not using gcc, we currently assume that we are using
9006
# Microsoft Visual C++.
9007
# hardcode_libdir_flag_spec is actually meaningless, as there is
9008
# no search path for DLLs.
9009
hardcode_libdir_flag_spec=' '
9010
allow_undefined_flag=unsupported
9011
# Tell ltmain to make .lib files, not .a files.
9013
# Tell ltmain to make .dll files, not .so files.
9015
# FIXME: Setting linknames here is a bad hack.
9016
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9017
# The linker will automatically build a .lib file if we build a DLL.
9018
old_archive_From_new_cmds='true'
9019
# FIXME: Should let the user specify the lib program.
9020
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9021
fix_srcfile_path='`cygpath -w "$srcfile"`'
9022
enable_shared_with_static_runtimes=yes
9025
darwin* | rhapsody*)
9027
rhapsody* | darwin1.[012])
9028
allow_undefined_flag='${wl}-undefined ${wl}suppress'
9031
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9032
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9034
case ${MACOSX_DEPLOYMENT_TARGET} in
9036
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9039
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9045
archive_cmds_need_lc=no
9047
hardcode_automatic=yes
9048
hardcode_shlibpath_var=unsupported
9049
whole_archive_flag_spec=''
9050
link_all_deplibs=yes
9051
if test "$GCC" = yes ; then
9052
output_verbose_link_cmd='echo'
9053
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9054
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9055
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9056
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}'
9057
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}'
9059
case $cc_basename in
9061
output_verbose_link_cmd='echo'
9062
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9063
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9064
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9065
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9066
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}'
9076
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077
hardcode_libdir_flag_spec='-L$libdir'
9078
hardcode_shlibpath_var=no
9085
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9086
# support. Future versions do this automatically, but an explicit c++rt0.o
9087
# does not break anything, and helps significantly (at the cost of a little
9090
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9091
hardcode_libdir_flag_spec='-R$libdir'
9093
hardcode_shlibpath_var=no
9096
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9098
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9100
hardcode_minus_L=yes
9101
hardcode_shlibpath_var=no
9104
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9105
freebsd* | dragonfly*)
9106
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9107
hardcode_libdir_flag_spec='-R$libdir'
9109
hardcode_shlibpath_var=no
9113
if test "$GCC" = yes; then
9114
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'
9116
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'
9118
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119
hardcode_libdir_separator=:
9122
# hardcode_minus_L: Not really in the search PATH,
9123
# but as the default location of the library.
9124
hardcode_minus_L=yes
9125
export_dynamic_flag_spec='${wl}-E'
9129
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9130
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9134
if test "$with_gnu_ld" = no; then
9135
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9136
hardcode_libdir_separator=:
9139
export_dynamic_flag_spec='${wl}-E'
9141
# hardcode_minus_L: Not really in the search PATH,
9142
# but as the default location of the library.
9143
hardcode_minus_L=yes
9148
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9151
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9157
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9166
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9169
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173
if test "$with_gnu_ld" = no; then
9174
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175
hardcode_libdir_separator=:
9179
hardcode_libdir_flag_spec_ld='+b $libdir'
9181
hardcode_shlibpath_var=no
9185
export_dynamic_flag_spec='${wl}-E'
9187
# hardcode_minus_L: Not really in the search PATH,
9188
# but as the default location of the library.
9189
hardcode_minus_L=yes
9195
irix5* | irix6* | nonstopux*)
9196
if test "$GCC" = yes; then
9197
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'
9199
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'
9200
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9202
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9203
hardcode_libdir_separator=:
9204
link_all_deplibs=yes
9208
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9211
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9213
hardcode_libdir_flag_spec='-R$libdir'
9215
hardcode_shlibpath_var=no
9219
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222
hardcode_libdir_separator=:
9223
hardcode_shlibpath_var=no
9227
if test -f /usr/libexec/ld.so; then
9229
hardcode_shlibpath_var=no
9230
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9231
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9233
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9234
export_dynamic_flag_spec='${wl}-E'
9237
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9238
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239
hardcode_libdir_flag_spec='-R$libdir'
9242
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9253
hardcode_libdir_flag_spec='-L$libdir'
9254
hardcode_minus_L=yes
9255
allow_undefined_flag=unsupported
9256
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'
9257
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9261
if test "$GCC" = yes; then
9262
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263
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'
9265
allow_undefined_flag=' -expect_unresolved \*'
9266
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'
9268
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269
hardcode_libdir_separator=:
9272
osf4* | osf5*) # as osf3* with the addition of -msym flag
9273
if test "$GCC" = yes; then
9274
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9275
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'
9276
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278
allow_undefined_flag=' -expect_unresolved \*'
9279
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'
9280
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9281
$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'
9283
# Both c and cxx compiler support -rpath directly
9284
hardcode_libdir_flag_spec='-rpath $libdir'
9286
hardcode_libdir_separator=:
9290
no_undefined_flag=' -z text'
9291
if test "$GCC" = yes; then
9293
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9294
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9295
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9298
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9300
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9302
hardcode_libdir_flag_spec='-R$libdir'
9303
hardcode_shlibpath_var=no
9305
solaris2.[0-5] | solaris2.[0-5].*) ;;
9307
# The compiler driver will combine and reorder linker options,
9308
# but understands `-z linker_flag'. GCC discards it without `$wl',
9309
# but is careful enough not to reorder.
9310
# Supported since Solaris 2.6 (maybe 2.5.1?)
9311
if test "$GCC" = yes; then
9312
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9314
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9318
link_all_deplibs=yes
9322
if test "x$host_vendor" = xsequent; then
9323
# Use $CC to link under sequent, because it throws in some extra .o
9324
# files that make .init and .fini sections work.
9325
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9329
hardcode_libdir_flag_spec='-L$libdir'
9331
hardcode_minus_L=yes
9332
hardcode_shlibpath_var=no
9336
case $host_vendor in
9338
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339
hardcode_direct=yes # is this really true???
9342
## LD is ld it makes a PLAMLIB
9343
## CC just makes a GrossModule.
9344
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9345
reload_cmds='$CC -r -o $output$reload_objs'
9349
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9353
runpath_var='LD_RUN_PATH'
9354
hardcode_shlibpath_var=no
9358
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359
hardcode_shlibpath_var=no
9360
export_dynamic_flag_spec='-Bexport'
9364
if test -d /usr/nec; then
9365
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366
hardcode_shlibpath_var=no
9367
runpath_var=LD_RUN_PATH
9368
hardcode_runpath_var=yes
9373
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9374
no_undefined_flag='${wl}-z,text'
9375
archive_cmds_need_lc=no
9376
hardcode_shlibpath_var=no
9377
runpath_var='LD_RUN_PATH'
9379
if test "$GCC" = yes; then
9380
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388
sysv5* | sco3.2v5* | sco5v6*)
9389
# Note: We can NOT use -z defs as we might desire, because we do not
9390
# link with -lc, and that would cause any symbols used from libc to
9391
# always be unresolved, which means just about no library would
9392
# ever link correctly. If we're not using GNU ld we use -z text
9393
# though, which does catch some bad symbols but isn't as heavy-handed
9395
no_undefined_flag='${wl}-z,text'
9396
allow_undefined_flag='${wl}-z,nodefs'
9397
archive_cmds_need_lc=no
9398
hardcode_shlibpath_var=no
9399
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9400
hardcode_libdir_separator=':'
9401
link_all_deplibs=yes
9402
export_dynamic_flag_spec='${wl}-Bexport'
9403
runpath_var='LD_RUN_PATH'
9405
if test "$GCC" = yes; then
9406
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416
hardcode_libdir_flag_spec='-L$libdir'
9417
hardcode_shlibpath_var=no
9426
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9427
echo "${ECHO_T}$ld_shlibs" >&6; }
9428
test "$ld_shlibs" = no && can_build_shared=no
9431
# Do we need to explicitly link libc?
9433
case "x$archive_cmds_need_lc" in
9435
# Assume -lc should be added
9436
archive_cmds_need_lc=yes
9438
if test "$enable_shared" = yes && test "$GCC" = yes; then
9439
case $archive_cmds in
9441
# FIXME: we may have to deal with multi-command sequences.
9444
# Test whether the compiler implicitly links with -lc since on some
9445
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9446
# to ld, don't add -lc before -lgcc.
9447
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9448
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9450
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453
(eval $ac_compile) 2>&5
9455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456
(exit $ac_status); } 2>conftest.err; then
9459
libobjs=conftest.$ac_objext
9461
wl=$lt_prog_compiler_wl
9462
pic_flag=$lt_prog_compiler_pic
9468
lt_save_allow_undefined_flag=$allow_undefined_flag
9469
allow_undefined_flag=
9470
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9471
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474
(exit $ac_status); }
9476
archive_cmds_need_lc=no
9478
archive_cmds_need_lc=yes
9480
allow_undefined_flag=$lt_save_allow_undefined_flag
9482
cat conftest.err 1>&5
9485
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9486
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9493
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9494
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9496
libname_spec='lib$name'
9504
shlibpath_overrides_runpath=unknown
9506
dynamic_linker="$host_os ld.so"
9507
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9509
if test "$GCC" = yes; then
9511
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9512
*) lt_awk_arg="/^libraries:/" ;;
9514
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9515
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9516
# if the path contains ";" then we assume it to be the separator
9517
# otherwise default to the standard path separator (i.e. ":") - it is
9518
# assumed that no part of a normal pathname contains ";" but that should
9519
# okay in the real world where ";" in dirpaths is itself problematic.
9520
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9522
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9524
# Ok, now we have the path, separated by spaces, we can step through it
9525
# and add multilib dir if necessary.
9526
lt_tmp_lt_search_path_spec=
9527
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9528
for lt_sys_path in $lt_search_path_spec; do
9529
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9530
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9532
test -d "$lt_sys_path" && \
9533
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9536
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9537
BEGIN {RS=" "; FS="/|\n";} {
9540
for (lt_i = NF; lt_i > 0; lt_i--) {
9541
if ($lt_i != "" && $lt_i != ".") {
9542
if ($lt_i == "..") {
9545
if (lt_count == 0) {
9546
lt_foo="/" $lt_i lt_foo;
9553
if (lt_foo != "") { lt_freq[lt_foo]++; }
9554
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9556
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9558
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9560
need_lib_prefix=unknown
9561
hardcode_into_libs=no
9563
# when you set need_version to no, make sure it does not cause -set_version
9564
# flags to be left without arguments
9565
need_version=unknown
9570
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9571
shlibpath_var=LIBPATH
9573
# AIX 3 has no versioning support, so we append a major version to the name.
9574
soname_spec='${libname}${release}${shared_ext}$major'
9581
hardcode_into_libs=yes
9582
if test "$host_cpu" = ia64; then
9583
# AIX 5 supports IA64
9584
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9585
shlibpath_var=LD_LIBRARY_PATH
9587
# With GCC up to 2.95.x, collect2 would create an import file
9588
# for dependence libraries. The import file would start with
9589
# the line `#! .'. This would cause the generated library to
9590
# depend on `.', always an invalid library. This was fixed in
9591
# development snapshots of GCC prior to 3.0.
9593
aix4 | aix4.[01] | aix4.[01].*)
9594
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9596
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9603
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9604
# soname into executable. Probably we can add versioning support to
9605
# collect2, so additional links can be useful in future.
9606
if test "$aix_use_runtimelinking" = yes; then
9607
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9608
# instead of lib<name>.a to let people know that these are not
9609
# typical AIX shared libraries.
9610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612
# We preserve .a as extension for shared libraries through AIX4.2
9613
# and later when we are not doing run time linking.
9614
library_names_spec='${libname}${release}.a $libname.a'
9615
soname_spec='${libname}${release}${shared_ext}$major'
9617
shlibpath_var=LIBPATH
9622
library_names_spec='$libname.ixlibrary $libname.a'
9623
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9624
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'
9628
library_names_spec='${libname}${shared_ext}'
9629
dynamic_linker="$host_os ld.so"
9630
shlibpath_var=LIBRARY_PATH
9636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637
soname_spec='${libname}${release}${shared_ext}$major'
9638
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9639
shlibpath_var=LD_LIBRARY_PATH
9640
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9641
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9642
# the default ld.so.conf also contains /usr/contrib/lib and
9643
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9644
# libtool to hard-code these into programs
9647
cygwin* | mingw* | pw32*)
9648
version_type=windows
9653
case $GCC,$host_os in
9654
yes,cygwin* | yes,mingw* | yes,pw32*)
9655
library_names_spec='$libname.dll.a'
9656
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9657
postinstall_cmds='base_file=`basename \${file}`~
9658
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9659
dldir=$destdir/`dirname \$dlpath`~
9660
test -d \$dldir || mkdir -p \$dldir~
9661
$install_prog $dir/$dlname \$dldir/$dlname~
9662
chmod a+x \$dldir/$dlname'
9663
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9664
dlpath=$dir/\$dldll~
9666
shlibpath_overrides_runpath=yes
9670
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9671
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9672
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9675
# MinGW DLLs use traditional 'lib' prefix
9676
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9677
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9678
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9679
# It is most probably a Windows format PATH printed by
9680
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9681
# path with ; separators, and with drive letters. We can handle the
9682
# drive letters (cygwin fileutils understands them), so leave them,
9683
# especially as we might pass files found there to a mingw objdump,
9684
# which wouldn't understand a cygwinified path. Ahh.
9685
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9687
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9691
# pw32 DLLs use 'pw' prefix rather than 'lib'
9692
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9698
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9701
dynamic_linker='Win32 ld.exe'
9702
# FIXME: first we should search . and the directory the executable is in
9706
darwin* | rhapsody*)
9707
dynamic_linker="$host_os dyld"
9711
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9712
soname_spec='${libname}${release}${major}$shared_ext'
9713
shlibpath_overrides_runpath=yes
9714
shlibpath_var=DYLD_LIBRARY_PATH
9715
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9717
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9718
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9726
soname_spec='${libname}${release}${shared_ext}$major'
9727
shlibpath_var=LD_LIBRARY_PATH
9734
freebsd* | dragonfly*)
9735
# DragonFly does not have aout. When/if they implement a new
9736
# versioning mechanism, adjust this.
9737
if test -x /usr/bin/objformat; then
9738
objformat=`/usr/bin/objformat`
9741
freebsd[123]*) objformat=aout ;;
9745
version_type=freebsd-$objformat
9746
case $version_type in
9748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9753
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9757
shlibpath_var=LD_LIBRARY_PATH
9760
shlibpath_overrides_runpath=yes
9762
freebsd3.[01]* | freebsdelf3.[01]*)
9763
shlibpath_overrides_runpath=yes
9764
hardcode_into_libs=yes
9766
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9767
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9768
shlibpath_overrides_runpath=no
9769
hardcode_into_libs=yes
9771
*) # from 4.6 on, and DragonFly
9772
shlibpath_overrides_runpath=yes
9773
hardcode_into_libs=yes
9782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9783
soname_spec='${libname}${release}${shared_ext}$major'
9784
shlibpath_var=LD_LIBRARY_PATH
9785
hardcode_into_libs=yes
9788
hpux9* | hpux10* | hpux11*)
9789
# Give a soname corresponding to the major version so that dld.sl refuses to
9790
# link against other versions.
9797
hardcode_into_libs=yes
9798
dynamic_linker="$host_os dld.so"
9799
shlibpath_var=LD_LIBRARY_PATH
9800
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802
soname_spec='${libname}${release}${shared_ext}$major'
9803
if test "X$HPUX_IA64_MODE" = X32; then
9804
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9806
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9808
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9812
hardcode_into_libs=yes
9813
dynamic_linker="$host_os dld.sl"
9814
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9815
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817
soname_spec='${libname}${release}${shared_ext}$major'
9818
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9819
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9823
dynamic_linker="$host_os dld.sl"
9824
shlibpath_var=SHLIB_PATH
9825
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827
soname_spec='${libname}${release}${shared_ext}$major'
9830
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9831
postinstall_cmds='chmod 555 $lib'
9838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9839
soname_spec='${libname}${release}${shared_ext}$major'
9840
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9841
shlibpath_var=LD_LIBRARY_PATH
9842
shlibpath_overrides_runpath=no
9843
hardcode_into_libs=yes
9846
irix5* | irix6* | nonstopux*)
9848
nonstopux*) version_type=nonstopux ;;
9850
if test "$lt_cv_prog_gnu_ld" = yes; then
9858
soname_spec='${libname}${release}${shared_ext}$major'
9859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9861
irix5* | nonstopux*)
9865
case $LD in # libtool.m4 will add one of these switches to LD
9866
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9867
libsuff= shlibsuff= libmagic=32-bit;;
9868
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9869
libsuff=32 shlibsuff=N32 libmagic=N32;;
9870
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9871
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9872
*) libsuff= shlibsuff= libmagic=never-match;;
9876
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9877
shlibpath_overrides_runpath=no
9878
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9879
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9880
hardcode_into_libs=yes
9883
# No shared lib support for Linux oldld, aout, or coff.
9884
linux*oldld* | linux*aout* | linux*coff*)
9888
# This must be Linux ELF.
9889
linux* | k*bsd*-gnu)
9893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894
soname_spec='${libname}${release}${shared_ext}$major'
9895
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9896
shlibpath_var=LD_LIBRARY_PATH
9897
shlibpath_overrides_runpath=no
9898
# This implies no fast_install, which is unacceptable.
9899
# Some rework will be needed to allow for fast_install
9900
# before this can be enabled.
9901
hardcode_into_libs=yes
9902
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9903
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9905
# Append ld.so.conf contents to the search path
9906
if test -f /etc/ld.so.conf; then
9907
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9908
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9911
# We used to test for /lib/ld.so.1 and disable shared libraries on
9912
# powerpc, because MkLinux only supported shared libraries with the
9913
# GNU dynamic linker. Since this was broken with cross compilers,
9914
# most powerpc-linux boxes support dynamic linking these days and
9915
# people can always --disable-shared, the test was removed, and we
9916
# assume the GNU/Linux dynamic linker is in use.
9917
dynamic_linker='GNU/Linux ld.so'
9924
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9926
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9927
dynamic_linker='NetBSD (a.out) ld.so'
9929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9930
soname_spec='${libname}${release}${shared_ext}$major'
9931
dynamic_linker='NetBSD ld.elf_so'
9933
shlibpath_var=LD_LIBRARY_PATH
9934
shlibpath_overrides_runpath=yes
9935
hardcode_into_libs=yes
9940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941
shlibpath_var=LD_LIBRARY_PATH
9942
shlibpath_overrides_runpath=yes
9949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950
soname_spec='${libname}${release}${shared_ext}$major'
9951
shlibpath_var=LD_LIBRARY_PATH
9952
shlibpath_overrides_runpath=yes
9957
sys_lib_dlsearch_path_spec="/usr/lib"
9959
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9961
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9962
*) need_version=no ;;
9964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9965
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9966
shlibpath_var=LD_LIBRARY_PATH
9967
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9969
openbsd2.[89] | openbsd2.[89].*)
9970
shlibpath_overrides_runpath=no
9973
shlibpath_overrides_runpath=yes
9977
shlibpath_overrides_runpath=yes
9982
libname_spec='$name'
9985
library_names_spec='$libname${shared_ext} $libname.a'
9986
dynamic_linker='OS/2 ld.exe'
9987
shlibpath_var=LIBPATH
9990
osf3* | osf4* | osf5*)
9994
soname_spec='${libname}${release}${shared_ext}$major'
9995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996
shlibpath_var=LD_LIBRARY_PATH
9997
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9998
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010
soname_spec='${libname}${release}${shared_ext}$major'
10011
shlibpath_var=LD_LIBRARY_PATH
10012
shlibpath_overrides_runpath=yes
10013
hardcode_into_libs=yes
10014
# ldd complains unless libraries are executable
10015
postinstall_cmds='chmod +x $lib'
10020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10022
shlibpath_var=LD_LIBRARY_PATH
10023
shlibpath_overrides_runpath=yes
10024
if test "$with_gnu_ld" = yes; then
10032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033
soname_spec='${libname}${release}${shared_ext}$major'
10034
shlibpath_var=LD_LIBRARY_PATH
10035
case $host_vendor in
10037
shlibpath_overrides_runpath=no
10039
export_dynamic_flag_spec='${wl}-Blargedynsym'
10040
runpath_var=LD_RUN_PATH
10048
shlibpath_overrides_runpath=no
10049
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10055
if test -d /usr/nec ;then
10057
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10058
soname_spec='$libname${shared_ext}.$major'
10059
shlibpath_var=LD_LIBRARY_PATH
10063
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10064
version_type=freebsd-elf
10067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10068
soname_spec='${libname}${release}${shared_ext}$major'
10069
shlibpath_var=LD_LIBRARY_PATH
10070
hardcode_into_libs=yes
10071
if test "$with_gnu_ld" = yes; then
10072
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10073
shlibpath_overrides_runpath=no
10075
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10076
shlibpath_overrides_runpath=yes
10079
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10083
sys_lib_dlsearch_path_spec='/usr/lib'
10088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089
soname_spec='${libname}${release}${shared_ext}$major'
10090
shlibpath_var=LD_LIBRARY_PATH
10097
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10098
echo "${ECHO_T}$dynamic_linker" >&6; }
10099
test "$dynamic_linker" = no && can_build_shared=no
10101
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10102
if test "$GCC" = yes; then
10103
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10106
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10107
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10109
if test -n "$hardcode_libdir_flag_spec" || \
10110
test -n "$runpath_var" || \
10111
test "X$hardcode_automatic" = "Xyes" ; then
10113
# We can hardcode non-existant directories.
10114
if test "$hardcode_direct" != no &&
10115
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10116
# have to relink, otherwise we might link with an installed library
10117
# when we should be linking with a yet-to-be-installed one
10118
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10119
test "$hardcode_minus_L" != no; then
10120
# Linking always hardcodes the temporary library directory.
10121
hardcode_action=relink
10123
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10124
hardcode_action=immediate
10127
# We cannot hardcode anything, or else we can only hardcode existing
10129
hardcode_action=unsupported
10131
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10132
echo "${ECHO_T}$hardcode_action" >&6; }
10134
if test "$hardcode_action" = relink; then
10135
# Fast installation is not supported
10136
enable_fast_install=no
10137
elif test "$shlibpath_overrides_runpath" = yes ||
10138
test "$enable_shared" = no; then
10139
# Fast installation is not necessary
10140
enable_fast_install=needless
10145
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10146
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10147
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10148
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10149
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10150
{ echo "$as_me:$LINENO: result: yes" >&5
10151
echo "${ECHO_T}yes" >&6; }
10153
# FIXME - insert some real tests, host_os isn't really good enough
10156
if test -n "$STRIP" ; then
10157
striplib="$STRIP -x"
10158
old_striplib="$STRIP -S"
10159
{ echo "$as_me:$LINENO: result: yes" >&5
10160
echo "${ECHO_T}yes" >&6; }
10162
{ echo "$as_me:$LINENO: result: no" >&5
10163
echo "${ECHO_T}no" >&6; }
10167
{ echo "$as_me:$LINENO: result: no" >&5
10168
echo "${ECHO_T}no" >&6; }
10173
if test "x$enable_dlopen" != xyes; then
10174
enable_dlopen=unknown
10175
enable_dlopen_self=unknown
10176
enable_dlopen_self_static=unknown
10183
lt_cv_dlopen="load_add_on"
10185
lt_cv_dlopen_self=yes
10189
lt_cv_dlopen="LoadLibrary"
10194
lt_cv_dlopen="dlopen"
10199
# if libdl is installed we need to link against it
10200
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203
echo $ECHO_N "(cached) $ECHO_C" >&6
10205
ac_check_lib_save_LIBS=$LIBS
10207
cat >conftest.$ac_ext <<_ACEOF
10210
cat confdefs.h >>conftest.$ac_ext
10211
cat >>conftest.$ac_ext <<_ACEOF
10212
/* end confdefs.h. */
10214
/* Override any GCC internal prototype to avoid an error.
10215
Use char because int might match the return type of a GCC
10216
builtin and then its argument prototype would still apply. */
10229
rm -f conftest.$ac_objext conftest$ac_exeext
10230
if { (ac_try="$ac_link"
10231
case "(($ac_try" in
10232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233
*) ac_try_echo=$ac_try;;
10235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236
(eval "$ac_link") 2>conftest.er1
10238
grep -v '^ *+' conftest.er1 >conftest.err
10240
cat conftest.err >&5
10241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242
(exit $ac_status); } && {
10243
test -z "$ac_c_werror_flag" ||
10244
test ! -s conftest.err
10245
} && test -s conftest$ac_exeext &&
10246
$as_test_x conftest$ac_exeext; then
10247
ac_cv_lib_dl_dlopen=yes
10249
echo "$as_me: failed program was:" >&5
10250
sed 's/^/| /' conftest.$ac_ext >&5
10252
ac_cv_lib_dl_dlopen=no
10255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256
conftest$ac_exeext conftest.$ac_ext
10257
LIBS=$ac_check_lib_save_LIBS
10259
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261
if test $ac_cv_lib_dl_dlopen = yes; then
10262
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265
lt_cv_dlopen="dyld"
10267
lt_cv_dlopen_self=yes
10274
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10275
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10276
if test "${ac_cv_func_shl_load+set}" = set; then
10277
echo $ECHO_N "(cached) $ECHO_C" >&6
10279
cat >conftest.$ac_ext <<_ACEOF
10282
cat confdefs.h >>conftest.$ac_ext
10283
cat >>conftest.$ac_ext <<_ACEOF
10284
/* end confdefs.h. */
10285
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10286
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287
#define shl_load innocuous_shl_load
10289
/* System header to define __stub macros and hopefully few prototypes,
10290
which can conflict with char shl_load (); below.
10291
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292
<limits.h> exists even on freestanding compilers. */
10295
# include <limits.h>
10297
# include <assert.h>
10302
/* Override any GCC internal prototype to avoid an error.
10303
Use char because int might match the return type of a GCC
10304
builtin and then its argument prototype would still apply. */
10309
/* The GNU C library defines this for functions which it implements
10310
to always fail with ENOSYS. Some functions are actually named
10311
something starting with __ and the normal name is an alias. */
10312
#if defined __stub_shl_load || defined __stub___shl_load
10319
return shl_load ();
10324
rm -f conftest.$ac_objext conftest$ac_exeext
10325
if { (ac_try="$ac_link"
10326
case "(($ac_try" in
10327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328
*) ac_try_echo=$ac_try;;
10330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331
(eval "$ac_link") 2>conftest.er1
10333
grep -v '^ *+' conftest.er1 >conftest.err
10335
cat conftest.err >&5
10336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337
(exit $ac_status); } && {
10338
test -z "$ac_c_werror_flag" ||
10339
test ! -s conftest.err
10340
} && test -s conftest$ac_exeext &&
10341
$as_test_x conftest$ac_exeext; then
10342
ac_cv_func_shl_load=yes
10344
echo "$as_me: failed program was:" >&5
10345
sed 's/^/| /' conftest.$ac_ext >&5
10347
ac_cv_func_shl_load=no
10350
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351
conftest$ac_exeext conftest.$ac_ext
10353
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10354
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10355
if test $ac_cv_func_shl_load = yes; then
10356
lt_cv_dlopen="shl_load"
10358
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10359
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10360
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10361
echo $ECHO_N "(cached) $ECHO_C" >&6
10363
ac_check_lib_save_LIBS=$LIBS
10365
cat >conftest.$ac_ext <<_ACEOF
10368
cat confdefs.h >>conftest.$ac_ext
10369
cat >>conftest.$ac_ext <<_ACEOF
10370
/* end confdefs.h. */
10372
/* Override any GCC internal prototype to avoid an error.
10373
Use char because int might match the return type of a GCC
10374
builtin and then its argument prototype would still apply. */
10382
return shl_load ();
10387
rm -f conftest.$ac_objext conftest$ac_exeext
10388
if { (ac_try="$ac_link"
10389
case "(($ac_try" in
10390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391
*) ac_try_echo=$ac_try;;
10393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394
(eval "$ac_link") 2>conftest.er1
10396
grep -v '^ *+' conftest.er1 >conftest.err
10398
cat conftest.err >&5
10399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400
(exit $ac_status); } && {
10401
test -z "$ac_c_werror_flag" ||
10402
test ! -s conftest.err
10403
} && test -s conftest$ac_exeext &&
10404
$as_test_x conftest$ac_exeext; then
10405
ac_cv_lib_dld_shl_load=yes
10407
echo "$as_me: failed program was:" >&5
10408
sed 's/^/| /' conftest.$ac_ext >&5
10410
ac_cv_lib_dld_shl_load=no
10413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414
conftest$ac_exeext conftest.$ac_ext
10415
LIBS=$ac_check_lib_save_LIBS
10417
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10418
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10419
if test $ac_cv_lib_dld_shl_load = yes; then
10420
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10422
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10423
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10424
if test "${ac_cv_func_dlopen+set}" = set; then
10425
echo $ECHO_N "(cached) $ECHO_C" >&6
10427
cat >conftest.$ac_ext <<_ACEOF
10430
cat confdefs.h >>conftest.$ac_ext
10431
cat >>conftest.$ac_ext <<_ACEOF
10432
/* end confdefs.h. */
10433
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10434
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10435
#define dlopen innocuous_dlopen
10437
/* System header to define __stub macros and hopefully few prototypes,
10438
which can conflict with char dlopen (); below.
10439
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440
<limits.h> exists even on freestanding compilers. */
10443
# include <limits.h>
10445
# include <assert.h>
10450
/* Override any GCC internal prototype to avoid an error.
10451
Use char because int might match the return type of a GCC
10452
builtin and then its argument prototype would still apply. */
10457
/* The GNU C library defines this for functions which it implements
10458
to always fail with ENOSYS. Some functions are actually named
10459
something starting with __ and the normal name is an alias. */
10460
#if defined __stub_dlopen || defined __stub___dlopen
10472
rm -f conftest.$ac_objext conftest$ac_exeext
10473
if { (ac_try="$ac_link"
10474
case "(($ac_try" in
10475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476
*) ac_try_echo=$ac_try;;
10478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479
(eval "$ac_link") 2>conftest.er1
10481
grep -v '^ *+' conftest.er1 >conftest.err
10483
cat conftest.err >&5
10484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485
(exit $ac_status); } && {
10486
test -z "$ac_c_werror_flag" ||
10487
test ! -s conftest.err
10488
} && test -s conftest$ac_exeext &&
10489
$as_test_x conftest$ac_exeext; then
10490
ac_cv_func_dlopen=yes
10492
echo "$as_me: failed program was:" >&5
10493
sed 's/^/| /' conftest.$ac_ext >&5
10495
ac_cv_func_dlopen=no
10498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499
conftest$ac_exeext conftest.$ac_ext
10501
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10502
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10503
if test $ac_cv_func_dlopen = yes; then
10504
lt_cv_dlopen="dlopen"
10506
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509
echo $ECHO_N "(cached) $ECHO_C" >&6
10511
ac_check_lib_save_LIBS=$LIBS
10513
cat >conftest.$ac_ext <<_ACEOF
10516
cat confdefs.h >>conftest.$ac_ext
10517
cat >>conftest.$ac_ext <<_ACEOF
10518
/* end confdefs.h. */
10520
/* Override any GCC internal prototype to avoid an error.
10521
Use char because int might match the return type of a GCC
10522
builtin and then its argument prototype would still apply. */
10535
rm -f conftest.$ac_objext conftest$ac_exeext
10536
if { (ac_try="$ac_link"
10537
case "(($ac_try" in
10538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539
*) ac_try_echo=$ac_try;;
10541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542
(eval "$ac_link") 2>conftest.er1
10544
grep -v '^ *+' conftest.er1 >conftest.err
10546
cat conftest.err >&5
10547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548
(exit $ac_status); } && {
10549
test -z "$ac_c_werror_flag" ||
10550
test ! -s conftest.err
10551
} && test -s conftest$ac_exeext &&
10552
$as_test_x conftest$ac_exeext; then
10553
ac_cv_lib_dl_dlopen=yes
10555
echo "$as_me: failed program was:" >&5
10556
sed 's/^/| /' conftest.$ac_ext >&5
10558
ac_cv_lib_dl_dlopen=no
10561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562
conftest$ac_exeext conftest.$ac_ext
10563
LIBS=$ac_check_lib_save_LIBS
10565
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10567
if test $ac_cv_lib_dl_dlopen = yes; then
10568
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10571
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10572
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10573
echo $ECHO_N "(cached) $ECHO_C" >&6
10575
ac_check_lib_save_LIBS=$LIBS
10576
LIBS="-lsvld $LIBS"
10577
cat >conftest.$ac_ext <<_ACEOF
10580
cat confdefs.h >>conftest.$ac_ext
10581
cat >>conftest.$ac_ext <<_ACEOF
10582
/* end confdefs.h. */
10584
/* Override any GCC internal prototype to avoid an error.
10585
Use char because int might match the return type of a GCC
10586
builtin and then its argument prototype would still apply. */
10599
rm -f conftest.$ac_objext conftest$ac_exeext
10600
if { (ac_try="$ac_link"
10601
case "(($ac_try" in
10602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603
*) ac_try_echo=$ac_try;;
10605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606
(eval "$ac_link") 2>conftest.er1
10608
grep -v '^ *+' conftest.er1 >conftest.err
10610
cat conftest.err >&5
10611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612
(exit $ac_status); } && {
10613
test -z "$ac_c_werror_flag" ||
10614
test ! -s conftest.err
10615
} && test -s conftest$ac_exeext &&
10616
$as_test_x conftest$ac_exeext; then
10617
ac_cv_lib_svld_dlopen=yes
10619
echo "$as_me: failed program was:" >&5
10620
sed 's/^/| /' conftest.$ac_ext >&5
10622
ac_cv_lib_svld_dlopen=no
10625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626
conftest$ac_exeext conftest.$ac_ext
10627
LIBS=$ac_check_lib_save_LIBS
10629
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10630
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10631
if test $ac_cv_lib_svld_dlopen = yes; then
10632
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10634
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10635
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10636
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10637
echo $ECHO_N "(cached) $ECHO_C" >&6
10639
ac_check_lib_save_LIBS=$LIBS
10641
cat >conftest.$ac_ext <<_ACEOF
10644
cat confdefs.h >>conftest.$ac_ext
10645
cat >>conftest.$ac_ext <<_ACEOF
10646
/* end confdefs.h. */
10648
/* Override any GCC internal prototype to avoid an error.
10649
Use char because int might match the return type of a GCC
10650
builtin and then its argument prototype would still apply. */
10658
return dld_link ();
10663
rm -f conftest.$ac_objext conftest$ac_exeext
10664
if { (ac_try="$ac_link"
10665
case "(($ac_try" in
10666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667
*) ac_try_echo=$ac_try;;
10669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670
(eval "$ac_link") 2>conftest.er1
10672
grep -v '^ *+' conftest.er1 >conftest.err
10674
cat conftest.err >&5
10675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676
(exit $ac_status); } && {
10677
test -z "$ac_c_werror_flag" ||
10678
test ! -s conftest.err
10679
} && test -s conftest$ac_exeext &&
10680
$as_test_x conftest$ac_exeext; then
10681
ac_cv_lib_dld_dld_link=yes
10683
echo "$as_me: failed program was:" >&5
10684
sed 's/^/| /' conftest.$ac_ext >&5
10686
ac_cv_lib_dld_dld_link=no
10689
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690
conftest$ac_exeext conftest.$ac_ext
10691
LIBS=$ac_check_lib_save_LIBS
10693
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10694
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10695
if test $ac_cv_lib_dld_dld_link = yes; then
10696
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10717
if test "x$lt_cv_dlopen" != xno; then
10723
case $lt_cv_dlopen in
10725
save_CPPFLAGS="$CPPFLAGS"
10726
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10728
save_LDFLAGS="$LDFLAGS"
10729
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10732
LIBS="$lt_cv_dlopen_libs $LIBS"
10734
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10735
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10736
if test "${lt_cv_dlopen_self+set}" = set; then
10737
echo $ECHO_N "(cached) $ECHO_C" >&6
10739
if test "$cross_compiling" = yes; then :
10740
lt_cv_dlopen_self=cross
10742
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10743
lt_status=$lt_dlunknown
10744
cat > conftest.$ac_ext <<EOF
10745
#line 10745 "configure"
10746
#include "confdefs.h"
10755
# define LT_DLGLOBAL RTLD_GLOBAL
10758
# define LT_DLGLOBAL DL_GLOBAL
10760
# define LT_DLGLOBAL 0
10764
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10765
find out it does not work in some platform. */
10766
#ifndef LT_DLLAZY_OR_NOW
10768
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10771
# define LT_DLLAZY_OR_NOW DL_LAZY
10774
# define LT_DLLAZY_OR_NOW RTLD_NOW
10777
# define LT_DLLAZY_OR_NOW DL_NOW
10779
# define LT_DLLAZY_OR_NOW 0
10787
extern "C" void exit (int);
10790
void fnord() { int i=42;}
10793
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10794
int status = $lt_dlunknown;
10798
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10799
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10800
/* dlclose (self); */
10808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809
(eval $ac_link) 2>&5
10811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10813
(./conftest; exit; ) >&5 2>/dev/null
10815
case x$lt_status in
10816
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10821
# compilation failed
10822
lt_cv_dlopen_self=no
10829
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10830
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10832
if test "x$lt_cv_dlopen_self" = xyes; then
10833
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10834
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10835
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10836
if test "${lt_cv_dlopen_self_static+set}" = set; then
10837
echo $ECHO_N "(cached) $ECHO_C" >&6
10839
if test "$cross_compiling" = yes; then :
10840
lt_cv_dlopen_self_static=cross
10842
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843
lt_status=$lt_dlunknown
10844
cat > conftest.$ac_ext <<EOF
10845
#line 10845 "configure"
10846
#include "confdefs.h"
10855
# define LT_DLGLOBAL RTLD_GLOBAL
10858
# define LT_DLGLOBAL DL_GLOBAL
10860
# define LT_DLGLOBAL 0
10864
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865
find out it does not work in some platform. */
10866
#ifndef LT_DLLAZY_OR_NOW
10868
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10871
# define LT_DLLAZY_OR_NOW DL_LAZY
10874
# define LT_DLLAZY_OR_NOW RTLD_NOW
10877
# define LT_DLLAZY_OR_NOW DL_NOW
10879
# define LT_DLLAZY_OR_NOW 0
10887
extern "C" void exit (int);
10890
void fnord() { int i=42;}
10893
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10894
int status = $lt_dlunknown;
10898
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10899
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900
/* dlclose (self); */
10908
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909
(eval $ac_link) 2>&5
10911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10913
(./conftest; exit; ) >&5 2>/dev/null
10915
case x$lt_status in
10916
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10917
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10918
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10921
# compilation failed
10922
lt_cv_dlopen_self_static=no
10929
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10930
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10933
CPPFLAGS="$save_CPPFLAGS"
10934
LDFLAGS="$save_LDFLAGS"
10939
case $lt_cv_dlopen_self in
10940
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10941
*) enable_dlopen_self=unknown ;;
10944
case $lt_cv_dlopen_self_static in
10945
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10946
*) enable_dlopen_self_static=unknown ;;
10951
# Report which library types will actually be built
10952
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10953
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10954
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10955
echo "${ECHO_T}$can_build_shared" >&6; }
10957
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10958
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10959
test "$can_build_shared" = "no" && enable_shared=no
10961
# On AIX, shared libraries and static libraries use the same namespace, and
10962
# are all built from PIC.
10965
test "$enable_shared" = yes && enable_static=no
10966
if test -n "$RANLIB"; then
10967
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10968
postinstall_cmds='$RANLIB $lib'
10973
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10974
test "$enable_shared" = yes && enable_static=no
10978
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10979
echo "${ECHO_T}$enable_shared" >&6; }
10981
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10982
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10983
# Make sure either enable_shared or enable_static is yes.
10984
test "$enable_shared" = yes || enable_static=yes
10985
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10986
echo "${ECHO_T}$enable_static" >&6; }
10988
# The else clause should only fire when bootstrapping the
10989
# libtool distribution, otherwise you forgot to ship ltmain.sh
10990
# with your package, and you will get complaints that there are
10991
# no rules to generate ltmain.sh.
10992
if test -f "$ltmain"; then
10993
# See if we are running on zsh, and set the options which allow our commands through
10994
# without removal of \ escapes.
10995
if test -n "${ZSH_VERSION+set}" ; then
10996
setopt NO_GLOB_SUBST
10998
# Now quote all the things that may contain metacharacters while being
10999
# careful not to overquote the AC_SUBSTed values. We take copies of the
11000
# variables and quote the copies for generation of the libtool script.
11001
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11003
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11004
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11005
deplibs_check_method reload_flag reload_cmds need_locks \
11006
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11007
lt_cv_sys_global_symbol_to_c_name_address \
11008
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11009
old_postinstall_cmds old_postuninstall_cmds \
11013
lt_prog_compiler_wl \
11014
lt_prog_compiler_pic \
11015
lt_prog_compiler_static \
11016
lt_prog_compiler_no_builtin_flag \
11017
export_dynamic_flag_spec \
11018
thread_safe_flag_spec \
11019
whole_archive_flag_spec \
11020
enable_shared_with_static_runtimes \
11022
old_archive_from_new_cmds \
11027
compiler_lib_search_path \
11029
archive_expsym_cmds \
11031
postuninstall_cmds \
11032
old_archive_from_expsyms_cmds \
11033
allow_undefined_flag \
11034
no_undefined_flag \
11035
export_symbols_cmds \
11036
hardcode_libdir_flag_spec \
11037
hardcode_libdir_flag_spec_ld \
11038
hardcode_libdir_separator \
11039
hardcode_automatic \
11041
module_expsym_cmds \
11042
lt_cv_prog_compiler_c_o \
11045
include_expsyms; do
11048
old_archive_cmds | \
11049
old_archive_from_new_cmds | \
11051
archive_expsym_cmds | \
11053
module_expsym_cmds | \
11054
old_archive_from_expsyms_cmds | \
11055
export_symbols_cmds | \
11056
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11057
postinstall_cmds | postuninstall_cmds | \
11058
old_postinstall_cmds | old_postuninstall_cmds | \
11059
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11060
# Double-quote double-evaled strings.
11061
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11064
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11070
*'\$0 --fallback-echo"')
11071
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11075
cfgfile="${ofile}T"
11076
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11078
{ echo "$as_me:$LINENO: creating $ofile" >&5
11079
echo "$as_me: creating $ofile" >&6;}
11081
cat <<__EOF__ >> "$cfgfile"
11084
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11085
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11086
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11088
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11089
# Free Software Foundation, Inc.
11091
# This file is part of GNU Libtool:
11092
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11094
# This program is free software; you can redistribute it and/or modify
11095
# it under the terms of the GNU General Public License as published by
11096
# the Free Software Foundation; either version 2 of the License, or
11097
# (at your option) any later version.
11099
# This program is distributed in the hope that it will be useful, but
11100
# WITHOUT ANY WARRANTY; without even the implied warranty of
11101
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11102
# General Public License for more details.
11104
# You should have received a copy of the GNU General Public License
11105
# along with this program; if not, write to the Free Software
11106
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11108
# As a special exception to the GNU General Public License, if you
11109
# distribute this file as part of a program that contains a
11110
# configuration script generated by Autoconf, you may include it under
11111
# the same distribution terms that you use for the rest of that program.
11113
# A sed program that does not truncate output.
11116
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11117
Xsed="$SED -e 1s/^X//"
11119
# The HP-UX ksh and POSIX shell print the target directory to stdout
11120
# if CDPATH is set.
11121
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11123
# The names of the tagged configurations supported by this script.
11126
# ### BEGIN LIBTOOL CONFIG
11128
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11130
# Shell to use when invoking shell scripts.
11133
# Whether or not to build shared libraries.
11134
build_libtool_libs=$enable_shared
11136
# Whether or not to build static libraries.
11137
build_old_libs=$enable_static
11139
# Whether or not to add -lc for building shared libraries.
11140
build_libtool_need_lc=$archive_cmds_need_lc
11142
# Whether or not to disallow shared libs when runtime libs are static
11143
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11145
# Whether or not to optimize for fast installation.
11146
fast_install=$enable_fast_install
11149
host_alias=$host_alias
11153
# The build system.
11154
build_alias=$build_alias
11158
# An echo program that does not interpret backslashes.
11163
AR_FLAGS=$lt_AR_FLAGS
11168
# LTCC compiler flags.
11169
LTCFLAGS=$lt_LTCFLAGS
11171
# A language-specific compiler.
11174
# Is the compiler the GNU C compiler?
11180
# The linker used to build libraries.
11183
# Whether we need hard or soft links.
11186
# A BSD-compatible nm program.
11189
# A symbol stripping program
11192
# Used to examine libraries when file_magic_cmd begins "file"
11193
MAGIC_CMD=$MAGIC_CMD
11195
# Used on cygwin: DLL creation program.
11198
# Used on cygwin: object dumper.
11201
# Used on cygwin: assembler.
11204
# The name of the directory that contains temporary libtool files.
11207
# How to create reloadable object files.
11208
reload_flag=$lt_reload_flag
11209
reload_cmds=$lt_reload_cmds
11211
# How to pass a linker flag through the compiler.
11212
wl=$lt_lt_prog_compiler_wl
11214
# Object file suffix (normally "o").
11215
objext="$ac_objext"
11217
# Old archive suffix (normally "a").
11220
# Shared library suffix (normally ".so").
11221
shrext_cmds='$shrext_cmds'
11223
# Executable file suffix (normally "").
11226
# Additional compiler flags for building library objects.
11227
pic_flag=$lt_lt_prog_compiler_pic
11230
# What is the maximum length of a command?
11231
max_cmd_len=$lt_cv_sys_max_cmd_len
11233
# Does compiler simultaneously support -c and -o options?
11234
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11236
# Must we lock files when doing compilation?
11237
need_locks=$lt_need_locks
11239
# Do we need the lib prefix for modules?
11240
need_lib_prefix=$need_lib_prefix
11242
# Do we need a version for libraries?
11243
need_version=$need_version
11245
# Whether dlopen is supported.
11246
dlopen_support=$enable_dlopen
11248
# Whether dlopen of programs is supported.
11249
dlopen_self=$enable_dlopen_self
11251
# Whether dlopen of statically linked programs is supported.
11252
dlopen_self_static=$enable_dlopen_self_static
11254
# Compiler flag to prevent dynamic linking.
11255
link_static_flag=$lt_lt_prog_compiler_static
11257
# Compiler flag to turn off builtin functions.
11258
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11260
# Compiler flag to allow reflexive dlopens.
11261
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11263
# Compiler flag to generate shared objects directly from archives.
11264
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11266
# Compiler flag to generate thread-safe objects.
11267
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11269
# Library versioning type.
11270
version_type=$version_type
11272
# Format of library name prefix.
11273
libname_spec=$lt_libname_spec
11275
# List of archive names. First name is the real one, the rest are links.
11276
# The last name is the one that the linker finds with -lNAME.
11277
library_names_spec=$lt_library_names_spec
11279
# The coded name of the library, if different from the real name.
11280
soname_spec=$lt_soname_spec
11282
# Commands used to build and install an old-style archive.
11284
old_archive_cmds=$lt_old_archive_cmds
11285
old_postinstall_cmds=$lt_old_postinstall_cmds
11286
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11288
# Create an old-style archive from a shared archive.
11289
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11291
# Create a temporary old-style archive to link instead of a shared archive.
11292
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11294
# Commands used to build and install a shared archive.
11295
archive_cmds=$lt_archive_cmds
11296
archive_expsym_cmds=$lt_archive_expsym_cmds
11297
postinstall_cmds=$lt_postinstall_cmds
11298
postuninstall_cmds=$lt_postuninstall_cmds
11300
# Commands used to build a loadable module (assumed same as above if empty)
11301
module_cmds=$lt_module_cmds
11302
module_expsym_cmds=$lt_module_expsym_cmds
11304
# Commands to strip libraries.
11305
old_striplib=$lt_old_striplib
11306
striplib=$lt_striplib
11308
# Dependencies to place before the objects being linked to create a
11310
predep_objects=$lt_predep_objects
11312
# Dependencies to place after the objects being linked to create a
11314
postdep_objects=$lt_postdep_objects
11316
# Dependencies to place before the objects being linked to create a
11318
predeps=$lt_predeps
11320
# Dependencies to place after the objects being linked to create a
11322
postdeps=$lt_postdeps
11324
# The library search path used internally by the compiler when linking
11325
# a shared library.
11326
compiler_lib_search_path=$lt_compiler_lib_search_path
11328
# Method to check whether dependent libraries are shared objects.
11329
deplibs_check_method=$lt_deplibs_check_method
11331
# Command to use when deplibs_check_method == file_magic.
11332
file_magic_cmd=$lt_file_magic_cmd
11334
# Flag that allows shared libraries with undefined symbols to be built.
11335
allow_undefined_flag=$lt_allow_undefined_flag
11337
# Flag that forces no undefined symbols.
11338
no_undefined_flag=$lt_no_undefined_flag
11340
# Commands used to finish a libtool library installation in a directory.
11341
finish_cmds=$lt_finish_cmds
11343
# Same as above, but a single script fragment to be evaled but not shown.
11344
finish_eval=$lt_finish_eval
11346
# Take the output of nm and produce a listing of raw symbols and C names.
11347
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11349
# Transform the output of nm in a proper C declaration
11350
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11352
# Transform the output of nm in a C name address pair
11353
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11355
# This is the shared library runtime path variable.
11356
runpath_var=$runpath_var
11358
# This is the shared library path variable.
11359
shlibpath_var=$shlibpath_var
11361
# Is shlibpath searched before the hard-coded library search path?
11362
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11364
# How to hardcode a shared library path into an executable.
11365
hardcode_action=$hardcode_action
11367
# Whether we should hardcode library paths into libraries.
11368
hardcode_into_libs=$hardcode_into_libs
11370
# Flag to hardcode \$libdir into a binary during linking.
11371
# This must work even if \$libdir does not exist.
11372
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11374
# If ld is used when linking, flag to hardcode \$libdir into
11375
# a binary during linking. This must work even if \$libdir does
11377
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11379
# Whether we need a single -rpath flag with a separated argument.
11380
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11382
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11383
# resulting binary.
11384
hardcode_direct=$hardcode_direct
11386
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11387
# resulting binary.
11388
hardcode_minus_L=$hardcode_minus_L
11390
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11391
# the resulting binary.
11392
hardcode_shlibpath_var=$hardcode_shlibpath_var
11394
# Set to yes if building a shared library automatically hardcodes DIR into the library
11395
# and all subsequent libraries and executables linked against it.
11396
hardcode_automatic=$hardcode_automatic
11398
# Variables whose values should be saved in libtool wrapper scripts and
11399
# restored at relink time.
11400
variables_saved_for_relink="$variables_saved_for_relink"
11402
# Whether libtool must link a program against all its dependency libraries.
11403
link_all_deplibs=$link_all_deplibs
11405
# Compile-time system search path for libraries
11406
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11408
# Run-time system search path for libraries
11409
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11411
# Fix the shell variable \$srcfile for the compiler.
11412
fix_srcfile_path=$lt_fix_srcfile_path
11414
# Set to yes if exported symbols are required.
11415
always_export_symbols=$always_export_symbols
11417
# The commands to list exported symbols.
11418
export_symbols_cmds=$lt_export_symbols_cmds
11420
# The commands to extract the exported symbol list from a shared archive.
11421
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11423
# Symbols that should not be listed in the preloaded symbols.
11424
exclude_expsyms=$lt_exclude_expsyms
11426
# Symbols that must always be exported.
11427
include_expsyms=$lt_include_expsyms
11429
# ### END LIBTOOL CONFIG
11436
cat <<\EOF >> "$cfgfile"
11438
# AIX sometimes has problems with the GCC collect2 program. For some
11439
# reason, if we set the COLLECT_NAMES environment variable, the problems
11440
# vanish in a puff of smoke.
11441
if test "X${COLLECT_NAMES+set}" != Xset; then
11443
export COLLECT_NAMES
11449
# We use sed instead of cat because bash on DJGPP gets confused if
11450
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11451
# text mode, it properly converts lines to CR/LF. This bash problem
11452
# is reportedly fixed, but why not run on old versions too?
11453
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11455
mv -f "$cfgfile" "$ofile" || \
11456
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11460
# If there is no Makefile yet, we rely on a make rule to execute
11461
# `config.status --recheck' to rerun these tests and create the
11462
# libtool script then.
11463
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11464
if test -f "$ltmain_in"; then
11465
test -f Makefile && make "$ltmain"
11471
ac_cpp='$CPP $CPPFLAGS'
11472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11479
# Check whether --with-tags was given.
11480
if test "${with_tags+set}" = set; then
11481
withval=$with_tags; tagnames="$withval"
11485
if test -f "$ltmain" && test -n "$tagnames"; then
11486
if test ! -f "${ofile}"; then
11487
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11488
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11491
if test -z "$LTCC"; then
11492
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11493
if test -z "$LTCC"; then
11494
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11495
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11497
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11498
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11501
if test -z "$LTCFLAGS"; then
11502
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11505
# Extract list of available tagged configurations in $ofile.
11506
# Note that this assumes the entire list is on one line.
11507
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11509
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11510
for tagname in $tagnames; do
11512
# Check whether tagname contains only valid characters
11513
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11515
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11516
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11517
{ (exit 1); exit 1; }; }
11521
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11523
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11524
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11525
{ (exit 1); exit 1; }; }
11528
# Update the list of available tags.
11529
if test -n "$tagname"; then
11530
echo appending configuration tag \"$tagname\" to $ofile
11534
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11535
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11536
(test "X$CXX" != "Xg++"))) ; then
11538
ac_cpp='$CXXCPP $CPPFLAGS'
11539
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11546
archive_cmds_need_lc_CXX=no
11547
allow_undefined_flag_CXX=
11548
always_export_symbols_CXX=no
11549
archive_expsym_cmds_CXX=
11550
export_dynamic_flag_spec_CXX=
11551
hardcode_direct_CXX=no
11552
hardcode_libdir_flag_spec_CXX=
11553
hardcode_libdir_flag_spec_ld_CXX=
11554
hardcode_libdir_separator_CXX=
11555
hardcode_minus_L_CXX=no
11556
hardcode_shlibpath_var_CXX=unsupported
11557
hardcode_automatic_CXX=no
11559
module_expsym_cmds_CXX=
11560
link_all_deplibs_CXX=unknown
11561
old_archive_cmds_CXX=$old_archive_cmds
11562
no_undefined_flag_CXX=
11563
whole_archive_flag_spec_CXX=
11564
enable_shared_with_static_runtimes_CXX=no
11566
# Dependencies to place before and after the object being linked:
11567
predep_objects_CXX=
11568
postdep_objects_CXX=
11571
compiler_lib_search_path_CXX=
11573
# Source file extension for C++ test sources.
11576
# Object file extension for compiled C++ test sources.
11580
# Code to be used in simple compile tests
11581
lt_simple_compile_test_code="int some_variable = 0;"
11583
# Code to be used in simple link tests
11584
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11586
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11588
# If no C compiler was specified, use CC.
11591
# If no C compiler flags were specified, use CFLAGS.
11592
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11594
# Allow CC to be a program name with arguments.
11598
# save warnings/boilerplate of simple test code
11599
ac_outfile=conftest.$ac_objext
11600
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11601
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11602
_lt_compiler_boilerplate=`cat conftest.err`
11605
ac_outfile=conftest.$ac_objext
11606
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11607
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11608
_lt_linker_boilerplate=`cat conftest.err`
11612
# Allow CC to be a program name with arguments.
11617
lt_save_with_gnu_ld=$with_gnu_ld
11618
lt_save_path_LD=$lt_cv_path_LD
11619
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11620
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11622
$as_unset lt_cv_prog_gnu_ld
11624
if test -n "${lt_cv_path_LDCXX+set}"; then
11625
lt_cv_path_LD=$lt_cv_path_LDCXX
11627
$as_unset lt_cv_path_LD
11629
test -z "${LDCXX+set}" || LD=$LDCXX
11633
for cc_temp in $compiler""; do
11635
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11636
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11641
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11644
# We don't want -fno-exception wen compiling C++ code, so set the
11645
# no_builtin_flag separately
11646
if test "$GXX" = yes; then
11647
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11649
lt_prog_compiler_no_builtin_flag_CXX=
11652
if test "$GXX" = yes; then
11653
# Set up default GNU C++ configuration
11656
# Check whether --with-gnu-ld was given.
11657
if test "${with_gnu_ld+set}" = set; then
11658
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11664
if test "$GCC" = yes; then
11665
# Check if gcc -print-prog-name=ld gives a path.
11666
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11667
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11670
# gcc leaves a trailing carriage return which upsets mingw
11671
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11673
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11676
# Accept absolute paths.
11678
re_direlt='/[^/][^/]*/\.\./'
11679
# Canonicalize the pathname of ld
11680
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11681
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11682
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11684
test -z "$LD" && LD="$ac_prog"
11687
# If it fails, then pretend we aren't using GCC.
11691
# If it is relative, then search for the first ld in PATH.
11692
with_gnu_ld=unknown
11695
elif test "$with_gnu_ld" = yes; then
11696
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11697
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11699
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11700
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11702
if test "${lt_cv_path_LD+set}" = set; then
11703
echo $ECHO_N "(cached) $ECHO_C" >&6
11705
if test -z "$LD"; then
11706
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11707
for ac_dir in $PATH; do
11709
test -z "$ac_dir" && ac_dir=.
11710
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11711
lt_cv_path_LD="$ac_dir/$ac_prog"
11712
# Check to see if the program is GNU ld. I'd rather use --version,
11713
# but apparently some variants of GNU ld only accept -v.
11714
# Break only if it was the GNU/non-GNU ld that we prefer.
11715
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11716
*GNU* | *'with BFD'*)
11717
test "$with_gnu_ld" != no && break
11720
test "$with_gnu_ld" != yes && break
11727
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11731
LD="$lt_cv_path_LD"
11732
if test -n "$LD"; then
11733
{ echo "$as_me:$LINENO: result: $LD" >&5
11734
echo "${ECHO_T}$LD" >&6; }
11736
{ echo "$as_me:$LINENO: result: no" >&5
11737
echo "${ECHO_T}no" >&6; }
11739
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11740
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11741
{ (exit 1); exit 1; }; }
11742
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11743
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11744
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11745
echo $ECHO_N "(cached) $ECHO_C" >&6
11747
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11748
case `$LD -v 2>&1 </dev/null` in
11749
*GNU* | *'with BFD'*)
11750
lt_cv_prog_gnu_ld=yes
11753
lt_cv_prog_gnu_ld=no
11757
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11758
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11759
with_gnu_ld=$lt_cv_prog_gnu_ld
11763
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11764
# archiving commands below assume that GNU ld is being used.
11765
if test "$with_gnu_ld" = yes; then
11766
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11767
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'
11769
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11770
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11772
# If archive_cmds runs LD, not CC, wlarc should be empty
11773
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11774
# investigate it a little bit more. (MM)
11777
# ancient GNU ld didn't support --whole-archive et. al.
11778
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11779
grep 'no-whole-archive' > /dev/null; then
11780
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11782
whole_archive_flag_spec_CXX=
11788
# A generic and very simple default shared library creation
11789
# command for GNU C++ for the case where it uses the native
11790
# linker, instead of GNU ld. If possible, this setting should
11791
# overridden to take advantage of the native linker features on
11792
# the platform it is being used on.
11793
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11796
# Commands to make compiler produce verbose output that lists
11797
# what "hidden" libraries, object files and flags are used when
11798
# linking a shared library.
11799
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11807
# PORTME: fill in a description of your system's C++ link characteristics
11808
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11809
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11813
# FIXME: insert proper C++ library support
11817
if test "$host_cpu" = ia64; then
11818
# On IA64, the linker does run time linking by default, so we don't
11819
# have to do anything special.
11820
aix_use_runtimelinking=no
11821
exp_sym_flag='-Bexport'
11824
aix_use_runtimelinking=no
11826
# Test if we are trying to use run time linking or normal
11827
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11828
# need to do runtime linking.
11829
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11830
for ld_flag in $LDFLAGS; do
11833
aix_use_runtimelinking=yes
11841
exp_sym_flag='-bexport'
11842
no_entry_flag='-bnoentry'
11845
# When large executables or shared objects are built, AIX ld can
11846
# have problems creating the table of contents. If linking a library
11847
# or program results in "error TOC overflow" add -mminimal-toc to
11848
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11849
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11851
archive_cmds_CXX=''
11852
hardcode_direct_CXX=yes
11853
hardcode_libdir_separator_CXX=':'
11854
link_all_deplibs_CXX=yes
11856
if test "$GXX" = yes; then
11857
case $host_os in aix4.[012]|aix4.[012].*)
11858
# We only want to do this on AIX 4.2 and lower, the check
11859
# below for broken collect2 doesn't work under 4.3+
11860
collect2name=`${CC} -print-prog-name=collect2`
11861
if test -f "$collect2name" && \
11862
strings "$collect2name" | grep resolve_lib_name >/dev/null
11864
# We have reworked collect2
11867
# We have old collect2
11868
hardcode_direct_CXX=unsupported
11869
# It fails to find uninstalled libraries when the uninstalled
11870
# path is not listed in the libpath. Setting hardcode_minus_L
11871
# to unsupported forces relinking
11872
hardcode_minus_L_CXX=yes
11873
hardcode_libdir_flag_spec_CXX='-L$libdir'
11874
hardcode_libdir_separator_CXX=
11878
shared_flag='-shared'
11879
if test "$aix_use_runtimelinking" = yes; then
11880
shared_flag="$shared_flag "'${wl}-G'
11884
if test "$host_cpu" = ia64; then
11885
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11886
# chokes on -Wl,-G. The following line is correct:
11889
if test "$aix_use_runtimelinking" = yes; then
11890
shared_flag='${wl}-G'
11892
shared_flag='${wl}-bM:SRE'
11897
# It seems that -bexpall does not export symbols beginning with
11898
# underscore (_), so it is better to generate a list of symbols to export.
11899
always_export_symbols_CXX=yes
11900
if test "$aix_use_runtimelinking" = yes; then
11901
# Warning - without using the other runtime loading flags (-brtl),
11902
# -berok will link without error, but may produce a broken library.
11903
allow_undefined_flag_CXX='-berok'
11904
# Determine the default libpath from the value encoded in an empty executable.
11905
cat >conftest.$ac_ext <<_ACEOF
11908
cat confdefs.h >>conftest.$ac_ext
11909
cat >>conftest.$ac_ext <<_ACEOF
11910
/* end confdefs.h. */
11920
rm -f conftest.$ac_objext conftest$ac_exeext
11921
if { (ac_try="$ac_link"
11922
case "(($ac_try" in
11923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924
*) ac_try_echo=$ac_try;;
11926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927
(eval "$ac_link") 2>conftest.er1
11929
grep -v '^ *+' conftest.er1 >conftest.err
11931
cat conftest.err >&5
11932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933
(exit $ac_status); } && {
11934
test -z "$ac_cxx_werror_flag" ||
11935
test ! -s conftest.err
11936
} && test -s conftest$ac_exeext &&
11937
$as_test_x conftest$ac_exeext; then
11939
lt_aix_libpath_sed='
11940
/Import File Strings/,/^$/ {
11946
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11947
# Check for a 64-bit object if we didn't find anything.
11948
if test -z "$aix_libpath"; then
11949
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11952
echo "$as_me: failed program was:" >&5
11953
sed 's/^/| /' conftest.$ac_ext >&5
11958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959
conftest$ac_exeext conftest.$ac_ext
11960
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11962
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11964
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"
11966
if test "$host_cpu" = ia64; then
11967
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11968
allow_undefined_flag_CXX="-z nodefs"
11969
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"
11971
# Determine the default libpath from the value encoded in an empty executable.
11972
cat >conftest.$ac_ext <<_ACEOF
11975
cat confdefs.h >>conftest.$ac_ext
11976
cat >>conftest.$ac_ext <<_ACEOF
11977
/* end confdefs.h. */
11987
rm -f conftest.$ac_objext conftest$ac_exeext
11988
if { (ac_try="$ac_link"
11989
case "(($ac_try" in
11990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991
*) ac_try_echo=$ac_try;;
11993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994
(eval "$ac_link") 2>conftest.er1
11996
grep -v '^ *+' conftest.er1 >conftest.err
11998
cat conftest.err >&5
11999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000
(exit $ac_status); } && {
12001
test -z "$ac_cxx_werror_flag" ||
12002
test ! -s conftest.err
12003
} && test -s conftest$ac_exeext &&
12004
$as_test_x conftest$ac_exeext; then
12006
lt_aix_libpath_sed='
12007
/Import File Strings/,/^$/ {
12013
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12014
# Check for a 64-bit object if we didn't find anything.
12015
if test -z "$aix_libpath"; then
12016
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12019
echo "$as_me: failed program was:" >&5
12020
sed 's/^/| /' conftest.$ac_ext >&5
12025
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12026
conftest$ac_exeext conftest.$ac_ext
12027
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12029
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12030
# Warning - without using the other run time loading flags,
12031
# -berok will link without error, but may produce a broken library.
12032
no_undefined_flag_CXX=' ${wl}-bernotok'
12033
allow_undefined_flag_CXX=' ${wl}-berok'
12034
# Exported symbols can be pulled into shared objects from archives
12035
whole_archive_flag_spec_CXX='$convenience'
12036
archive_cmds_need_lc_CXX=yes
12037
# This is similar to how AIX traditionally builds its shared libraries.
12038
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'
12044
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12045
allow_undefined_flag_CXX=unsupported
12046
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12047
# support --undefined. This deserves some investigation. FIXME
12048
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055
case $cc_basename in
12057
# FIXME: insert proper C++ library support
12063
cygwin* | mingw* | pw32*)
12064
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12065
# as there is no search path for DLLs.
12066
hardcode_libdir_flag_spec_CXX='-L$libdir'
12067
allow_undefined_flag_CXX=unsupported
12068
always_export_symbols_CXX=no
12069
enable_shared_with_static_runtimes_CXX=yes
12071
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12072
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'
12073
# If the export-symbols file already is a .def file (1st line
12074
# is EXPORTS), use it as is; otherwise, prepend...
12075
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12076
cp $export_symbols $output_objdir/$soname.def;
12078
echo EXPORTS > $output_objdir/$soname.def;
12079
cat $export_symbols >> $output_objdir/$soname.def;
12081
$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'
12086
darwin* | rhapsody*)
12088
rhapsody* | darwin1.[012])
12089
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12092
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12093
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12095
case ${MACOSX_DEPLOYMENT_TARGET} in
12097
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12100
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12106
archive_cmds_need_lc_CXX=no
12107
hardcode_direct_CXX=no
12108
hardcode_automatic_CXX=yes
12109
hardcode_shlibpath_var_CXX=unsupported
12110
whole_archive_flag_spec_CXX=''
12111
link_all_deplibs_CXX=yes
12113
if test "$GXX" = yes ; then
12114
lt_int_apple_cc_single_mod=no
12115
output_verbose_link_cmd='echo'
12116
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12117
lt_int_apple_cc_single_mod=yes
12119
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12120
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12122
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'
12124
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12125
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12126
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12127
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}'
12129
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}'
12131
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}'
12133
case $cc_basename in
12135
output_verbose_link_cmd='echo'
12136
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12137
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12138
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12139
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12140
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}'
12150
case $cc_basename in
12152
# FIXME: insert proper C++ library support
12156
# Green Hills C++ Compiler
12157
# FIXME: insert proper C++ library support
12161
# FIXME: insert proper C++ library support
12167
# C++ shared libraries reported to be fairly broken before switch to ELF
12171
archive_cmds_need_lc_CXX=no
12173
freebsd* | dragonfly*)
12174
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12181
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12182
hardcode_libdir_separator_CXX=:
12183
export_dynamic_flag_spec_CXX='${wl}-E'
12184
hardcode_direct_CXX=yes
12185
hardcode_minus_L_CXX=yes # Not in the search PATH,
12186
# but as the default
12187
# location of the library.
12189
case $cc_basename in
12191
# FIXME: insert proper C++ library support
12195
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'
12196
# Commands to make compiler produce verbose output that lists
12197
# what "hidden" libraries, object files and flags are used when
12198
# linking a shared library.
12200
# There doesn't appear to be a way to prevent this compiler from
12201
# explicitly linking system object files so we need to strip them
12202
# from the output so that they don't get included in the library
12204
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'
12207
if test "$GXX" = yes; then
12208
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'
12210
# FIXME: insert proper C++ library support
12217
if test $with_gnu_ld = no; then
12218
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12219
hardcode_libdir_separator_CXX=:
12224
export_dynamic_flag_spec_CXX='${wl}-E'
12230
hardcode_direct_CXX=no
12231
hardcode_shlibpath_var_CXX=no
12234
hardcode_direct_CXX=yes
12235
hardcode_minus_L_CXX=yes # Not in the search PATH,
12236
# but as the default
12237
# location of the library.
12241
case $cc_basename in
12243
# FIXME: insert proper C++ library support
12249
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12252
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12255
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12258
# Commands to make compiler produce verbose output that lists
12259
# what "hidden" libraries, object files and flags are used when
12260
# linking a shared library.
12262
# There doesn't appear to be a way to prevent this compiler from
12263
# explicitly linking system object files so we need to strip them
12264
# from the output so that they don't get included in the library
12266
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'
12269
if test "$GXX" = yes; then
12270
if test $with_gnu_ld = no; then
12273
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12276
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12279
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'
12284
# FIXME: insert proper C++ library support
12291
hardcode_direct_CXX=no
12292
hardcode_shlibpath_var_CXX=no
12293
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12294
export_dynamic_flag_spec_CXX='${wl}-E'
12295
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12296
# Instead, shared libraries are loaded at an image base (0x10000000 by
12297
# default) and relocated if they conflict, which is a slow very memory
12298
# consuming and fragmenting process. To avoid this, we pick a random,
12299
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12300
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12301
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'
12302
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'
12305
case $cc_basename in
12308
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'
12310
# Archives containing C++ object files must be created using
12311
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12312
# necessary to make sure instantiated templates are included
12314
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12317
if test "$GXX" = yes; then
12318
if test "$with_gnu_ld" = no; then
12319
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'
12321
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'
12324
link_all_deplibs_CXX=yes
12327
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12328
hardcode_libdir_separator_CXX=:
12330
linux* | k*bsd*-gnu)
12331
case $cc_basename in
12333
# Kuck and Associates, Inc. (KAI) C++ Compiler
12335
# KCC will only create a shared library if the output file
12336
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12337
# to its proper name (with version) after linking.
12338
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'
12339
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'
12340
# Commands to make compiler produce verbose output that lists
12341
# what "hidden" libraries, object files and flags are used when
12342
# linking a shared library.
12344
# There doesn't appear to be a way to prevent this compiler from
12345
# explicitly linking system object files so we need to strip them
12346
# from the output so that they don't get included in the library
12348
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'
12350
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12351
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12353
# Archives containing C++ object files must be created using
12354
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12355
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12360
# version 8.0 and above of icpc choke on multiply defined symbols
12361
# if we add $predep_objects and $postdep_objects, however 7.1 and
12362
# earlier do not add the objects themselves.
12363
case `$CC -V 2>&1` in
12365
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12366
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'
12368
*) # Version 8.0 or newer
12371
ia64*) tmp_idyn=' -i_dynamic';;
12373
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374
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'
12377
archive_cmds_need_lc_CXX=no
12378
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12379
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12380
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12383
# Portland Group C++ compiler
12384
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12385
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'
12387
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12388
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12389
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'
12393
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12394
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'
12396
runpath_var=LD_RUN_PATH
12397
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12398
hardcode_libdir_separator_CXX=:
12400
# Commands to make compiler produce verbose output that lists
12401
# what "hidden" libraries, object files and flags are used when
12402
# linking a shared library.
12404
# There doesn't appear to be a way to prevent this compiler from
12405
# explicitly linking system object files so we need to strip them
12406
# from the output so that they don't get included in the library
12408
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'
12411
case `$CC -V 2>&1 | sed 5q` in
12414
no_undefined_flag_CXX=' -zdefs'
12415
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12416
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12417
hardcode_libdir_flag_spec_CXX='-R$libdir'
12418
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12420
# Not sure whether something based on
12421
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12423
output_verbose_link_cmd='echo'
12425
# Archives containing C++ object files must be created using
12426
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12427
# necessary to make sure instantiated templates are included
12429
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12436
# FIXME: insert proper C++ library support
12440
# FIXME: insert proper C++ library support
12444
case $cc_basename in
12446
# FIXME: insert proper C++ library support
12450
# FIXME: insert proper C++ library support
12456
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12459
hardcode_libdir_flag_spec_CXX='-R$libdir'
12460
hardcode_direct_CXX=yes
12461
hardcode_shlibpath_var_CXX=no
12463
# Workaround some broken pre-1.5 toolchains
12464
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12467
# C++ shared libraries are fairly broken
12471
if test -f /usr/libexec/ld.so; then
12472
hardcode_direct_CXX=yes
12473
hardcode_shlibpath_var_CXX=no
12474
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12475
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12476
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12477
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12478
export_dynamic_flag_spec_CXX='${wl}-E'
12479
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12481
output_verbose_link_cmd='echo'
12487
case $cc_basename in
12489
# Kuck and Associates, Inc. (KAI) C++ Compiler
12491
# KCC will only create a shared library if the output file
12492
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12493
# to its proper name (with version) after linking.
12494
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'
12496
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12497
hardcode_libdir_separator_CXX=:
12499
# Archives containing C++ object files must be created using
12500
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12501
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12505
# Rational C++ 2.4.1
12506
# FIXME: insert proper C++ library support
12510
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12511
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'
12513
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12514
hardcode_libdir_separator_CXX=:
12516
# Commands to make compiler produce verbose output that lists
12517
# what "hidden" libraries, object files and flags are used when
12518
# linking a shared library.
12520
# There doesn't appear to be a way to prevent this compiler from
12521
# explicitly linking system object files so we need to strip them
12522
# from the output so that they don't get included in the library
12524
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'
12527
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12528
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12529
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'
12531
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12532
hardcode_libdir_separator_CXX=:
12534
# Commands to make compiler produce verbose output that lists
12535
# what "hidden" libraries, object files and flags are used when
12536
# linking a shared library.
12537
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12540
# FIXME: insert proper C++ library support
12547
case $cc_basename in
12549
# Kuck and Associates, Inc. (KAI) C++ Compiler
12551
# KCC will only create a shared library if the output file
12552
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12553
# to its proper name (with version) after linking.
12554
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'
12556
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12557
hardcode_libdir_separator_CXX=:
12559
# Archives containing C++ object files must be created using
12560
# the KAI C++ compiler.
12561
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12564
# Rational C++ 2.4.1
12565
# FIXME: insert proper C++ library support
12569
allow_undefined_flag_CXX=' -expect_unresolved \*'
12570
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'
12571
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12572
echo "-hidden">> $lib.exp~
12573
$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~
12576
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12577
hardcode_libdir_separator_CXX=:
12579
# Commands to make compiler produce verbose output that lists
12580
# what "hidden" libraries, object files and flags are used when
12581
# linking a shared library.
12583
# There doesn't appear to be a way to prevent this compiler from
12584
# explicitly linking system object files so we need to strip them
12585
# from the output so that they don't get included in the library
12587
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'
12590
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12591
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12592
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'
12594
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595
hardcode_libdir_separator_CXX=:
12597
# Commands to make compiler produce verbose output that lists
12598
# what "hidden" libraries, object files and flags are used when
12599
# linking a shared library.
12600
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12603
# FIXME: insert proper C++ library support
12610
# FIXME: insert proper C++ library support
12614
case $cc_basename in
12617
# FIXME: insert proper C++ library support
12622
# FIXME: insert proper C++ library support
12626
# FIXME: insert proper C++ library support
12632
case $cc_basename in
12634
# Sun C++ 4.2, 5.x and Centerline C++
12635
archive_cmds_need_lc_CXX=yes
12636
no_undefined_flag_CXX=' -zdefs'
12637
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12638
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12639
$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'
12641
hardcode_libdir_flag_spec_CXX='-R$libdir'
12642
hardcode_shlibpath_var_CXX=no
12644
solaris2.[0-5] | solaris2.[0-5].*) ;;
12646
# The compiler driver will combine and reorder linker options,
12647
# but understands `-z linker_flag'.
12648
# Supported since Solaris 2.6 (maybe 2.5.1?)
12649
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12652
link_all_deplibs_CXX=yes
12654
output_verbose_link_cmd='echo'
12656
# Archives containing C++ object files must be created using
12657
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12658
# necessary to make sure instantiated templates are included
12660
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12663
# Green Hills C++ Compiler
12664
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12666
# The C++ compiler must be used to create the archive.
12667
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12670
# GNU C++ compiler with Solaris linker
12671
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12672
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12673
if $CC --version | grep -v '^2\.7' > /dev/null; then
12674
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12675
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12676
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12678
# Commands to make compiler produce verbose output that lists
12679
# what "hidden" libraries, object files and flags are used when
12680
# linking a shared library.
12681
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12683
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12685
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12686
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12687
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12689
# Commands to make compiler produce verbose output that lists
12690
# what "hidden" libraries, object files and flags are used when
12691
# linking a shared library.
12692
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12695
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12697
solaris2.[0-5] | solaris2.[0-5].*) ;;
12699
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12706
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12707
no_undefined_flag_CXX='${wl}-z,text'
12708
archive_cmds_need_lc_CXX=no
12709
hardcode_shlibpath_var_CXX=no
12710
runpath_var='LD_RUN_PATH'
12712
case $cc_basename in
12714
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12718
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723
sysv5* | sco3.2v5* | sco5v6*)
12724
# Note: We can NOT use -z defs as we might desire, because we do not
12725
# link with -lc, and that would cause any symbols used from libc to
12726
# always be unresolved, which means just about no library would
12727
# ever link correctly. If we're not using GNU ld we use -z text
12728
# though, which does catch some bad symbols but isn't as heavy-handed
12730
# For security reasons, it is highly recommended that you always
12731
# use absolute paths for naming shared libraries, and exclude the
12732
# DT_RUNPATH tag from executables and libraries. But doing so
12733
# requires that you compile everything twice, which is a pain.
12734
# So that behaviour is only enabled if SCOABSPATH is set to a
12735
# non-empty value in the environment. Most likely only useful for
12736
# creating official distributions of packages.
12737
# This is a hack until libtool officially supports absolute path
12738
# names for shared libraries.
12739
no_undefined_flag_CXX='${wl}-z,text'
12740
allow_undefined_flag_CXX='${wl}-z,nodefs'
12741
archive_cmds_need_lc_CXX=no
12742
hardcode_shlibpath_var_CXX=no
12743
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12744
hardcode_libdir_separator_CXX=':'
12745
link_all_deplibs_CXX=yes
12746
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12747
runpath_var='LD_RUN_PATH'
12749
case $cc_basename in
12751
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12752
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12755
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12756
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12761
case $cc_basename in
12763
# NonStop-UX NCC 3.20
12764
# FIXME: insert proper C++ library support
12768
# FIXME: insert proper C++ library support
12774
# FIXME: insert proper C++ library support
12778
# FIXME: insert proper C++ library support
12782
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12783
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12784
test "$ld_shlibs_CXX" = no && can_build_shared=no
12790
cat > conftest.$ac_ext <<EOF
12794
Foo (void) { a = 0; }
12800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801
(eval $ac_compile) 2>&5
12803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804
(exit $ac_status); }; then
12805
# Parse the compiler output and extract the necessary
12806
# objects, libraries and library flags.
12808
# Sentinel used to keep track of whether or not we are before
12809
# the conftest object file.
12810
pre_test_object_deps_done=no
12812
# The `*' in the case matches for architectures that use `case' in
12813
# $output_verbose_cmd can trigger glob expansion during the loop
12814
# eval without this substitution.
12815
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12817
for p in `eval $output_verbose_link_cmd`; do
12821
# Some compilers place space between "-{L,R}" and the path.
12822
# Remove the space.
12823
if test $p = "-L" \
12824
|| test $p = "-R"; then
12831
if test "$pre_test_object_deps_done" = no; then
12834
# Internal compiler library paths should come after those
12835
# provided the user. The postdeps already come after the
12836
# user supplied libs so there is no need to process them.
12837
if test -z "$compiler_lib_search_path_CXX"; then
12838
compiler_lib_search_path_CXX="${prev}${p}"
12840
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12843
# The "-l" case would never come before the object being
12844
# linked, so don't bother handling this case.
12847
if test -z "$postdeps_CXX"; then
12848
postdeps_CXX="${prev}${p}"
12850
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12856
# This assumes that the test object file only shows up
12857
# once in the compiler output.
12858
if test "$p" = "conftest.$objext"; then
12859
pre_test_object_deps_done=yes
12863
if test "$pre_test_object_deps_done" = no; then
12864
if test -z "$predep_objects_CXX"; then
12865
predep_objects_CXX="$p"
12867
predep_objects_CXX="$predep_objects_CXX $p"
12870
if test -z "$postdep_objects_CXX"; then
12871
postdep_objects_CXX="$p"
12873
postdep_objects_CXX="$postdep_objects_CXX $p"
12878
*) ;; # Ignore the rest.
12886
echo "libtool.m4: error: problem compiling CXX test program"
12889
$rm -f confest.$objext
12891
# PORTME: override above test on systems where it is broken
12894
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12895
# hack all around it, let's just trust "g++" to DTRT.
12896
predep_objects_CXX=
12897
postdep_objects_CXX=
12902
case `$CC -V 2>&1 | sed 5q` in
12906
# The more standards-conforming stlport4 library is
12907
# incompatible with the Cstd library. Avoid specifying
12908
# it if it's in CXXFLAGS. Ignore libCrun as
12909
# -library=stlport4 depends on it.
12910
case " $CXX $CXXFLAGS " in
12911
*" -library=stlport4 "*)
12912
solaris_use_stlport4=yes
12915
if test "$solaris_use_stlport4" != yes; then
12916
postdeps_CXX='-library=Cstd -library=Crun'
12923
case $cc_basename in
12925
# The more standards-conforming stlport4 library is
12926
# incompatible with the Cstd library. Avoid specifying
12927
# it if it's in CXXFLAGS. Ignore libCrun as
12928
# -library=stlport4 depends on it.
12929
case " $CXX $CXXFLAGS " in
12930
*" -library=stlport4 "*)
12931
solaris_use_stlport4=yes
12935
# Adding this requires a known-good setup of shared libraries for
12936
# Sun compiler versions before 5.6, else PIC objects from an old
12937
# archive will be linked into the output, leading to subtle bugs.
12938
if test "$solaris_use_stlport4" != yes; then
12939
postdeps_CXX='-library=Cstd -library=Crun'
12947
case " $postdeps_CXX " in
12948
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12951
lt_prog_compiler_wl_CXX=
12952
lt_prog_compiler_pic_CXX=
12953
lt_prog_compiler_static_CXX=
12955
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12956
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12958
# C++ specific cases for pic, static, wl, etc.
12959
if test "$GXX" = yes; then
12960
lt_prog_compiler_wl_CXX='-Wl,'
12961
lt_prog_compiler_static_CXX='-static'
12965
# All AIX code is PIC.
12966
if test "$host_cpu" = ia64; then
12967
# AIX 5 now supports IA64 processor
12968
lt_prog_compiler_static_CXX='-Bstatic'
12972
# FIXME: we need at least 68020 code to build shared libraries, but
12973
# adding the `-m68020' flag to GCC prevents building anything better,
12975
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12977
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12978
# PIC is the default for these OSes.
12980
mingw* | cygwin* | os2* | pw32*)
12981
# This hack is so that the source file can tell whether it is being
12982
# built for inclusion in a dll (and should export symbols for example).
12983
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12984
# (--disable-auto-import) libraries
12985
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12987
darwin* | rhapsody*)
12988
# PIC is the default on this platform
12989
# Common symbols not allowed in MH_DYLIB files
12990
lt_prog_compiler_pic_CXX='-fno-common'
12993
# DJGPP does not support shared libraries at all
12994
lt_prog_compiler_pic_CXX=
12997
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12998
# Instead, we relocate shared libraries at runtime.
13001
if test -d /usr/nec; then
13002
lt_prog_compiler_pic_CXX=-Kconform_pic
13006
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13007
# not for PA HP-UX.
13012
lt_prog_compiler_pic_CXX='-fPIC'
13017
lt_prog_compiler_pic_CXX='-fPIC'
13023
# All AIX code is PIC.
13024
if test "$host_cpu" = ia64; then
13025
# AIX 5 now supports IA64 processor
13026
lt_prog_compiler_static_CXX='-Bstatic'
13028
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13032
case $cc_basename in
13034
# Green Hills C++ Compiler
13035
# _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"
13040
# PIC is the default on this platform
13041
# Common symbols not allowed in MH_DYLIB files
13042
case $cc_basename in
13044
lt_prog_compiler_pic_CXX='-qnocommon'
13045
lt_prog_compiler_wl_CXX='-Wl,'
13050
case $cc_basename in
13052
lt_prog_compiler_pic_CXX='-KPIC'
13055
# Green Hills C++ Compiler
13056
lt_prog_compiler_pic_CXX='-pic'
13062
freebsd* | dragonfly*)
13063
# FreeBSD uses GNU C++
13065
hpux9* | hpux10* | hpux11*)
13066
case $cc_basename in
13068
lt_prog_compiler_wl_CXX='-Wl,'
13069
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13070
if test "$host_cpu" != ia64; then
13071
lt_prog_compiler_pic_CXX='+Z'
13075
lt_prog_compiler_wl_CXX='-Wl,'
13076
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13082
lt_prog_compiler_pic_CXX='+Z'
13091
# This is c89, which is MS Visual C++ (no shared libs)
13092
# Anyone wants to do a port?
13094
irix5* | irix6* | nonstopux*)
13095
case $cc_basename in
13097
lt_prog_compiler_wl_CXX='-Wl,'
13098
lt_prog_compiler_static_CXX='-non_shared'
13099
# CC pic flag -KPIC is the default.
13105
linux* | k*bsd*-gnu)
13106
case $cc_basename in
13109
lt_prog_compiler_wl_CXX='--backend -Wl,'
13110
lt_prog_compiler_pic_CXX='-fPIC'
13114
lt_prog_compiler_wl_CXX='-Wl,'
13115
lt_prog_compiler_pic_CXX='-KPIC'
13116
lt_prog_compiler_static_CXX='-static'
13119
# Portland Group C++ compiler.
13120
lt_prog_compiler_wl_CXX='-Wl,'
13121
lt_prog_compiler_pic_CXX='-fpic'
13122
lt_prog_compiler_static_CXX='-Bstatic'
13126
# Make sure the PIC flag is empty. It appears that all Alpha
13127
# Linux and Compaq Tru64 Unix objects are PIC.
13128
lt_prog_compiler_pic_CXX=
13129
lt_prog_compiler_static_CXX='-non_shared'
13132
case `$CC -V 2>&1 | sed 5q` in
13135
lt_prog_compiler_pic_CXX='-KPIC'
13136
lt_prog_compiler_static_CXX='-Bstatic'
13137
lt_prog_compiler_wl_CXX='-Qoption ld '
13148
case $cc_basename in
13150
lt_prog_compiler_pic_CXX='-W c,exportall'
13158
osf3* | osf4* | osf5*)
13159
case $cc_basename in
13161
lt_prog_compiler_wl_CXX='--backend -Wl,'
13164
# Rational C++ 2.4.1
13165
lt_prog_compiler_pic_CXX='-pic'
13168
# Digital/Compaq C++
13169
lt_prog_compiler_wl_CXX='-Wl,'
13170
# Make sure the PIC flag is empty. It appears that all Alpha
13171
# Linux and Compaq Tru64 Unix objects are PIC.
13172
lt_prog_compiler_pic_CXX=
13173
lt_prog_compiler_static_CXX='-non_shared'
13182
case $cc_basename in
13184
# Sun C++ 4.2, 5.x and Centerline C++
13185
lt_prog_compiler_pic_CXX='-KPIC'
13186
lt_prog_compiler_static_CXX='-Bstatic'
13187
lt_prog_compiler_wl_CXX='-Qoption ld '
13190
# Green Hills C++ Compiler
13191
lt_prog_compiler_pic_CXX='-PIC'
13198
case $cc_basename in
13201
lt_prog_compiler_pic_CXX='-pic'
13202
lt_prog_compiler_static_CXX='-Bstatic'
13206
lt_prog_compiler_pic_CXX='-pic'
13213
case $cc_basename in
13215
# NonStop-UX NCC 3.20
13216
lt_prog_compiler_pic_CXX='-KPIC'
13222
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13223
case $cc_basename in
13225
lt_prog_compiler_wl_CXX='-Wl,'
13226
lt_prog_compiler_pic_CXX='-KPIC'
13227
lt_prog_compiler_static_CXX='-Bstatic'
13234
lt_prog_compiler_can_build_shared_CXX=no
13239
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13240
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13243
# Check to make sure the PIC flag actually works.
13245
if test -n "$lt_prog_compiler_pic_CXX"; then
13247
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13248
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13249
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13250
echo $ECHO_N "(cached) $ECHO_C" >&6
13252
lt_prog_compiler_pic_works_CXX=no
13253
ac_outfile=conftest.$ac_objext
13254
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13255
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13256
# Insert the option either (1) after the last *FLAGS variable, or
13257
# (2) before a word containing "conftest.", or (3) at the end.
13258
# Note that $ac_compile itself does not contain backslashes and begins
13259
# with a dollar sign (not a hyphen), so the echo should work correctly.
13260
# The option is referenced via a variable to avoid confusing sed.
13261
lt_compile=`echo "$ac_compile" | $SED \
13262
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13263
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13264
-e 's:$: $lt_compiler_flag:'`
13265
(eval echo "\"\$as_me:13265: $lt_compile\"" >&5)
13266
(eval "$lt_compile" 2>conftest.err)
13268
cat conftest.err >&5
13269
echo "$as_me:13269: \$? = $ac_status" >&5
13270
if (exit $ac_status) && test -s "$ac_outfile"; then
13271
# The compiler can only warn and ignore the option if not recognized
13272
# So say no if there are warnings other than the usual output.
13273
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13274
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13275
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13276
lt_prog_compiler_pic_works_CXX=yes
13282
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13283
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13285
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13286
case $lt_prog_compiler_pic_CXX in
13288
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13291
lt_prog_compiler_pic_CXX=
13292
lt_prog_compiler_can_build_shared_CXX=no
13297
# For platforms which do not support PIC, -DPIC is meaningless:
13299
lt_prog_compiler_pic_CXX=
13302
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13307
# Check to make sure the static flag actually works.
13309
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13310
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13311
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13312
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13313
echo $ECHO_N "(cached) $ECHO_C" >&6
13315
lt_prog_compiler_static_works_CXX=no
13316
save_LDFLAGS="$LDFLAGS"
13317
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13318
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13319
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13320
# The linker can only warn and ignore the option if not recognized
13321
# So say no if there are warnings
13322
if test -s conftest.err; then
13323
# Append any errors to the config.log.
13324
cat conftest.err 1>&5
13325
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13326
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13327
if diff conftest.exp conftest.er2 >/dev/null; then
13328
lt_prog_compiler_static_works_CXX=yes
13331
lt_prog_compiler_static_works_CXX=yes
13335
LDFLAGS="$save_LDFLAGS"
13338
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13339
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13341
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13344
lt_prog_compiler_static_CXX=
13348
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13349
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13350
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13351
echo $ECHO_N "(cached) $ECHO_C" >&6
13353
lt_cv_prog_compiler_c_o_CXX=no
13354
$rm -r conftest 2>/dev/null
13358
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13360
lt_compiler_flag="-o out/conftest2.$ac_objext"
13361
# Insert the option either (1) after the last *FLAGS variable, or
13362
# (2) before a word containing "conftest.", or (3) at the end.
13363
# Note that $ac_compile itself does not contain backslashes and begins
13364
# with a dollar sign (not a hyphen), so the echo should work correctly.
13365
lt_compile=`echo "$ac_compile" | $SED \
13366
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13367
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13368
-e 's:$: $lt_compiler_flag:'`
13369
(eval echo "\"\$as_me:13369: $lt_compile\"" >&5)
13370
(eval "$lt_compile" 2>out/conftest.err)
13372
cat out/conftest.err >&5
13373
echo "$as_me:13373: \$? = $ac_status" >&5
13374
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13376
# The compiler can only warn and ignore the option if not recognized
13377
# So say no if there are warnings
13378
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13379
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13380
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13381
lt_cv_prog_compiler_c_o_CXX=yes
13386
# SGI C++ compiler will create directory out/ii_files/ for
13387
# template instantiation
13388
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13389
$rm out/* && rmdir out
13395
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13396
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13399
hard_links="nottested"
13400
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13401
# do not overwrite the value of need_locks provided by the user
13402
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13403
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13406
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13408
ln conftest.a conftest.b 2>&5 || hard_links=no
13409
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13410
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13411
echo "${ECHO_T}$hard_links" >&6; }
13412
if test "$hard_links" = no; then
13413
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13414
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13421
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13422
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13424
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13427
# If we're using GNU nm, then we don't want the "-C" option.
13428
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13429
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13430
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'
13432
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'
13436
export_symbols_cmds_CXX="$ltdll_cmds"
13439
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'
13442
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13446
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13447
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13448
test "$ld_shlibs_CXX" = no && can_build_shared=no
13451
# Do we need to explicitly link libc?
13453
case "x$archive_cmds_need_lc_CXX" in
13455
# Assume -lc should be added
13456
archive_cmds_need_lc_CXX=yes
13458
if test "$enable_shared" = yes && test "$GCC" = yes; then
13459
case $archive_cmds_CXX in
13461
# FIXME: we may have to deal with multi-command sequences.
13464
# Test whether the compiler implicitly links with -lc since on some
13465
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13466
# to ld, don't add -lc before -lgcc.
13467
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13468
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13470
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13472
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473
(eval $ac_compile) 2>&5
13475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476
(exit $ac_status); } 2>conftest.err; then
13479
libobjs=conftest.$ac_objext
13481
wl=$lt_prog_compiler_wl_CXX
13482
pic_flag=$lt_prog_compiler_pic_CXX
13488
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13489
allow_undefined_flag_CXX=
13490
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13491
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494
(exit $ac_status); }
13496
archive_cmds_need_lc_CXX=no
13498
archive_cmds_need_lc_CXX=yes
13500
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13502
cat conftest.err 1>&5
13505
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13506
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13513
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13514
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13515
library_names_spec=
13516
libname_spec='lib$name'
13520
postuninstall_cmds=
13524
shlibpath_overrides_runpath=unknown
13526
dynamic_linker="$host_os ld.so"
13527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13529
need_lib_prefix=unknown
13530
hardcode_into_libs=no
13532
# when you set need_version to no, make sure it does not cause -set_version
13533
# flags to be left without arguments
13534
need_version=unknown
13539
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13540
shlibpath_var=LIBPATH
13542
# AIX 3 has no versioning support, so we append a major version to the name.
13543
soname_spec='${libname}${release}${shared_ext}$major'
13550
hardcode_into_libs=yes
13551
if test "$host_cpu" = ia64; then
13552
# AIX 5 supports IA64
13553
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13554
shlibpath_var=LD_LIBRARY_PATH
13556
# With GCC up to 2.95.x, collect2 would create an import file
13557
# for dependence libraries. The import file would start with
13558
# the line `#! .'. This would cause the generated library to
13559
# depend on `.', always an invalid library. This was fixed in
13560
# development snapshots of GCC prior to 3.0.
13562
aix4 | aix4.[01] | aix4.[01].*)
13563
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13565
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13568
can_build_shared=no
13572
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13573
# soname into executable. Probably we can add versioning support to
13574
# collect2, so additional links can be useful in future.
13575
if test "$aix_use_runtimelinking" = yes; then
13576
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13577
# instead of lib<name>.a to let people know that these are not
13578
# typical AIX shared libraries.
13579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581
# We preserve .a as extension for shared libraries through AIX4.2
13582
# and later when we are not doing run time linking.
13583
library_names_spec='${libname}${release}.a $libname.a'
13584
soname_spec='${libname}${release}${shared_ext}$major'
13586
shlibpath_var=LIBPATH
13591
library_names_spec='$libname.ixlibrary $libname.a'
13592
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13593
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'
13597
library_names_spec='${libname}${shared_ext}'
13598
dynamic_linker="$host_os ld.so"
13599
shlibpath_var=LIBRARY_PATH
13605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606
soname_spec='${libname}${release}${shared_ext}$major'
13607
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13608
shlibpath_var=LD_LIBRARY_PATH
13609
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13610
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13611
# the default ld.so.conf also contains /usr/contrib/lib and
13612
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13613
# libtool to hard-code these into programs
13616
cygwin* | mingw* | pw32*)
13617
version_type=windows
13622
case $GCC,$host_os in
13623
yes,cygwin* | yes,mingw* | yes,pw32*)
13624
library_names_spec='$libname.dll.a'
13625
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13626
postinstall_cmds='base_file=`basename \${file}`~
13627
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13628
dldir=$destdir/`dirname \$dlpath`~
13629
test -d \$dldir || mkdir -p \$dldir~
13630
$install_prog $dir/$dlname \$dldir/$dlname~
13631
chmod a+x \$dldir/$dlname'
13632
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13633
dlpath=$dir/\$dldll~
13635
shlibpath_overrides_runpath=yes
13639
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13640
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13644
# MinGW DLLs use traditional 'lib' prefix
13645
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13647
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13648
# It is most probably a Windows format PATH printed by
13649
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13650
# path with ; separators, and with drive letters. We can handle the
13651
# drive letters (cygwin fileutils understands them), so leave them,
13652
# especially as we might pass files found there to a mingw objdump,
13653
# which wouldn't understand a cygwinified path. Ahh.
13654
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13656
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13660
# pw32 DLLs use 'pw' prefix rather than 'lib'
13661
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13667
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13670
dynamic_linker='Win32 ld.exe'
13671
# FIXME: first we should search . and the directory the executable is in
13675
darwin* | rhapsody*)
13676
dynamic_linker="$host_os dyld"
13677
version_type=darwin
13680
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13681
soname_spec='${libname}${release}${major}$shared_ext'
13682
shlibpath_overrides_runpath=yes
13683
shlibpath_var=DYLD_LIBRARY_PATH
13684
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13686
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13694
soname_spec='${libname}${release}${shared_ext}$major'
13695
shlibpath_var=LD_LIBRARY_PATH
13702
freebsd* | dragonfly*)
13703
# DragonFly does not have aout. When/if they implement a new
13704
# versioning mechanism, adjust this.
13705
if test -x /usr/bin/objformat; then
13706
objformat=`/usr/bin/objformat`
13709
freebsd[123]*) objformat=aout ;;
13710
*) objformat=elf ;;
13713
version_type=freebsd-$objformat
13714
case $version_type in
13716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13721
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13725
shlibpath_var=LD_LIBRARY_PATH
13728
shlibpath_overrides_runpath=yes
13730
freebsd3.[01]* | freebsdelf3.[01]*)
13731
shlibpath_overrides_runpath=yes
13732
hardcode_into_libs=yes
13734
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13735
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13736
shlibpath_overrides_runpath=no
13737
hardcode_into_libs=yes
13739
*) # from 4.6 on, and DragonFly
13740
shlibpath_overrides_runpath=yes
13741
hardcode_into_libs=yes
13750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13751
soname_spec='${libname}${release}${shared_ext}$major'
13752
shlibpath_var=LD_LIBRARY_PATH
13753
hardcode_into_libs=yes
13756
hpux9* | hpux10* | hpux11*)
13757
# Give a soname corresponding to the major version so that dld.sl refuses to
13758
# link against other versions.
13765
hardcode_into_libs=yes
13766
dynamic_linker="$host_os dld.so"
13767
shlibpath_var=LD_LIBRARY_PATH
13768
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770
soname_spec='${libname}${release}${shared_ext}$major'
13771
if test "X$HPUX_IA64_MODE" = X32; then
13772
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13774
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13776
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13780
hardcode_into_libs=yes
13781
dynamic_linker="$host_os dld.sl"
13782
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13783
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785
soname_spec='${libname}${release}${shared_ext}$major'
13786
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13787
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13791
dynamic_linker="$host_os dld.sl"
13792
shlibpath_var=SHLIB_PATH
13793
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795
soname_spec='${libname}${release}${shared_ext}$major'
13798
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13799
postinstall_cmds='chmod 555 $lib'
13806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13807
soname_spec='${libname}${release}${shared_ext}$major'
13808
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13809
shlibpath_var=LD_LIBRARY_PATH
13810
shlibpath_overrides_runpath=no
13811
hardcode_into_libs=yes
13814
irix5* | irix6* | nonstopux*)
13816
nonstopux*) version_type=nonstopux ;;
13818
if test "$lt_cv_prog_gnu_ld" = yes; then
13826
soname_spec='${libname}${release}${shared_ext}$major'
13827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13829
irix5* | nonstopux*)
13830
libsuff= shlibsuff=
13833
case $LD in # libtool.m4 will add one of these switches to LD
13834
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13835
libsuff= shlibsuff= libmagic=32-bit;;
13836
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13837
libsuff=32 shlibsuff=N32 libmagic=N32;;
13838
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13839
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13840
*) libsuff= shlibsuff= libmagic=never-match;;
13844
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13845
shlibpath_overrides_runpath=no
13846
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13847
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13848
hardcode_into_libs=yes
13851
# No shared lib support for Linux oldld, aout, or coff.
13852
linux*oldld* | linux*aout* | linux*coff*)
13856
# This must be Linux ELF.
13857
linux* | k*bsd*-gnu)
13861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862
soname_spec='${libname}${release}${shared_ext}$major'
13863
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13864
shlibpath_var=LD_LIBRARY_PATH
13865
shlibpath_overrides_runpath=no
13866
# This implies no fast_install, which is unacceptable.
13867
# Some rework will be needed to allow for fast_install
13868
# before this can be enabled.
13869
hardcode_into_libs=yes
13870
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13871
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13873
# Append ld.so.conf contents to the search path
13874
if test -f /etc/ld.so.conf; then
13875
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13876
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13879
# We used to test for /lib/ld.so.1 and disable shared libraries on
13880
# powerpc, because MkLinux only supported shared libraries with the
13881
# GNU dynamic linker. Since this was broken with cross compilers,
13882
# most powerpc-linux boxes support dynamic linking these days and
13883
# people can always --disable-shared, the test was removed, and we
13884
# assume the GNU/Linux dynamic linker is in use.
13885
dynamic_linker='GNU/Linux ld.so'
13892
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13894
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13895
dynamic_linker='NetBSD (a.out) ld.so'
13897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13898
soname_spec='${libname}${release}${shared_ext}$major'
13899
dynamic_linker='NetBSD ld.elf_so'
13901
shlibpath_var=LD_LIBRARY_PATH
13902
shlibpath_overrides_runpath=yes
13903
hardcode_into_libs=yes
13908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909
shlibpath_var=LD_LIBRARY_PATH
13910
shlibpath_overrides_runpath=yes
13917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918
soname_spec='${libname}${release}${shared_ext}$major'
13919
shlibpath_var=LD_LIBRARY_PATH
13920
shlibpath_overrides_runpath=yes
13925
sys_lib_dlsearch_path_spec="/usr/lib"
13927
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13929
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13930
*) need_version=no ;;
13932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13933
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13934
shlibpath_var=LD_LIBRARY_PATH
13935
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13937
openbsd2.[89] | openbsd2.[89].*)
13938
shlibpath_overrides_runpath=no
13941
shlibpath_overrides_runpath=yes
13945
shlibpath_overrides_runpath=yes
13950
libname_spec='$name'
13953
library_names_spec='$libname${shared_ext} $libname.a'
13954
dynamic_linker='OS/2 ld.exe'
13955
shlibpath_var=LIBPATH
13958
osf3* | osf4* | osf5*)
13962
soname_spec='${libname}${release}${shared_ext}$major'
13963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964
shlibpath_var=LD_LIBRARY_PATH
13965
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13966
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978
soname_spec='${libname}${release}${shared_ext}$major'
13979
shlibpath_var=LD_LIBRARY_PATH
13980
shlibpath_overrides_runpath=yes
13981
hardcode_into_libs=yes
13982
# ldd complains unless libraries are executable
13983
postinstall_cmds='chmod +x $lib'
13988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990
shlibpath_var=LD_LIBRARY_PATH
13991
shlibpath_overrides_runpath=yes
13992
if test "$with_gnu_ld" = yes; then
14000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001
soname_spec='${libname}${release}${shared_ext}$major'
14002
shlibpath_var=LD_LIBRARY_PATH
14003
case $host_vendor in
14005
shlibpath_overrides_runpath=no
14007
export_dynamic_flag_spec='${wl}-Blargedynsym'
14008
runpath_var=LD_RUN_PATH
14016
shlibpath_overrides_runpath=no
14017
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14023
if test -d /usr/nec ;then
14025
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14026
soname_spec='$libname${shared_ext}.$major'
14027
shlibpath_var=LD_LIBRARY_PATH
14031
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14032
version_type=freebsd-elf
14035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14036
soname_spec='${libname}${release}${shared_ext}$major'
14037
shlibpath_var=LD_LIBRARY_PATH
14038
hardcode_into_libs=yes
14039
if test "$with_gnu_ld" = yes; then
14040
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14041
shlibpath_overrides_runpath=no
14043
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14044
shlibpath_overrides_runpath=yes
14047
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14051
sys_lib_dlsearch_path_spec='/usr/lib'
14056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057
soname_spec='${libname}${release}${shared_ext}$major'
14058
shlibpath_var=LD_LIBRARY_PATH
14065
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14066
echo "${ECHO_T}$dynamic_linker" >&6; }
14067
test "$dynamic_linker" = no && can_build_shared=no
14069
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14070
if test "$GCC" = yes; then
14071
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14074
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14075
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14076
hardcode_action_CXX=
14077
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14078
test -n "$runpath_var_CXX" || \
14079
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14081
# We can hardcode non-existant directories.
14082
if test "$hardcode_direct_CXX" != no &&
14083
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14084
# have to relink, otherwise we might link with an installed library
14085
# when we should be linking with a yet-to-be-installed one
14086
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14087
test "$hardcode_minus_L_CXX" != no; then
14088
# Linking always hardcodes the temporary library directory.
14089
hardcode_action_CXX=relink
14091
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14092
hardcode_action_CXX=immediate
14095
# We cannot hardcode anything, or else we can only hardcode existing
14097
hardcode_action_CXX=unsupported
14099
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14100
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14102
if test "$hardcode_action_CXX" = relink; then
14103
# Fast installation is not supported
14104
enable_fast_install=no
14105
elif test "$shlibpath_overrides_runpath" = yes ||
14106
test "$enable_shared" = no; then
14107
# Fast installation is not necessary
14108
enable_fast_install=needless
14112
# The else clause should only fire when bootstrapping the
14113
# libtool distribution, otherwise you forgot to ship ltmain.sh
14114
# with your package, and you will get complaints that there are
14115
# no rules to generate ltmain.sh.
14116
if test -f "$ltmain"; then
14117
# See if we are running on zsh, and set the options which allow our commands through
14118
# without removal of \ escapes.
14119
if test -n "${ZSH_VERSION+set}" ; then
14120
setopt NO_GLOB_SUBST
14122
# Now quote all the things that may contain metacharacters while being
14123
# careful not to overquote the AC_SUBSTed values. We take copies of the
14124
# variables and quote the copies for generation of the libtool script.
14125
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14127
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14128
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14129
deplibs_check_method reload_flag reload_cmds need_locks \
14130
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14131
lt_cv_sys_global_symbol_to_c_name_address \
14132
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14133
old_postinstall_cmds old_postuninstall_cmds \
14137
lt_prog_compiler_wl_CXX \
14138
lt_prog_compiler_pic_CXX \
14139
lt_prog_compiler_static_CXX \
14140
lt_prog_compiler_no_builtin_flag_CXX \
14141
export_dynamic_flag_spec_CXX \
14142
thread_safe_flag_spec_CXX \
14143
whole_archive_flag_spec_CXX \
14144
enable_shared_with_static_runtimes_CXX \
14145
old_archive_cmds_CXX \
14146
old_archive_from_new_cmds_CXX \
14147
predep_objects_CXX \
14148
postdep_objects_CXX \
14151
compiler_lib_search_path_CXX \
14153
archive_expsym_cmds_CXX \
14154
postinstall_cmds_CXX \
14155
postuninstall_cmds_CXX \
14156
old_archive_from_expsyms_cmds_CXX \
14157
allow_undefined_flag_CXX \
14158
no_undefined_flag_CXX \
14159
export_symbols_cmds_CXX \
14160
hardcode_libdir_flag_spec_CXX \
14161
hardcode_libdir_flag_spec_ld_CXX \
14162
hardcode_libdir_separator_CXX \
14163
hardcode_automatic_CXX \
14165
module_expsym_cmds_CXX \
14166
lt_cv_prog_compiler_c_o_CXX \
14167
fix_srcfile_path_CXX \
14168
exclude_expsyms_CXX \
14169
include_expsyms_CXX; do
14172
old_archive_cmds_CXX | \
14173
old_archive_from_new_cmds_CXX | \
14174
archive_cmds_CXX | \
14175
archive_expsym_cmds_CXX | \
14176
module_cmds_CXX | \
14177
module_expsym_cmds_CXX | \
14178
old_archive_from_expsyms_cmds_CXX | \
14179
export_symbols_cmds_CXX | \
14180
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14181
postinstall_cmds | postuninstall_cmds | \
14182
old_postinstall_cmds | old_postuninstall_cmds | \
14183
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14184
# Double-quote double-evaled strings.
14185
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14188
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14194
*'\$0 --fallback-echo"')
14195
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14201
cat <<__EOF__ >> "$cfgfile"
14202
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14204
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14206
# Shell to use when invoking shell scripts.
14209
# Whether or not to build shared libraries.
14210
build_libtool_libs=$enable_shared
14212
# Whether or not to build static libraries.
14213
build_old_libs=$enable_static
14215
# Whether or not to add -lc for building shared libraries.
14216
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14218
# Whether or not to disallow shared libs when runtime libs are static
14219
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14221
# Whether or not to optimize for fast installation.
14222
fast_install=$enable_fast_install
14225
host_alias=$host_alias
14229
# The build system.
14230
build_alias=$build_alias
14234
# An echo program that does not interpret backslashes.
14239
AR_FLAGS=$lt_AR_FLAGS
14244
# LTCC compiler flags.
14245
LTCFLAGS=$lt_LTCFLAGS
14247
# A language-specific compiler.
14248
CC=$lt_compiler_CXX
14250
# Is the compiler the GNU C compiler?
14256
# The linker used to build libraries.
14259
# Whether we need hard or soft links.
14262
# A BSD-compatible nm program.
14265
# A symbol stripping program
14268
# Used to examine libraries when file_magic_cmd begins "file"
14269
MAGIC_CMD=$MAGIC_CMD
14271
# Used on cygwin: DLL creation program.
14274
# Used on cygwin: object dumper.
14277
# Used on cygwin: assembler.
14280
# The name of the directory that contains temporary libtool files.
14283
# How to create reloadable object files.
14284
reload_flag=$lt_reload_flag
14285
reload_cmds=$lt_reload_cmds
14287
# How to pass a linker flag through the compiler.
14288
wl=$lt_lt_prog_compiler_wl_CXX
14290
# Object file suffix (normally "o").
14291
objext="$ac_objext"
14293
# Old archive suffix (normally "a").
14296
# Shared library suffix (normally ".so").
14297
shrext_cmds='$shrext_cmds'
14299
# Executable file suffix (normally "").
14302
# Additional compiler flags for building library objects.
14303
pic_flag=$lt_lt_prog_compiler_pic_CXX
14306
# What is the maximum length of a command?
14307
max_cmd_len=$lt_cv_sys_max_cmd_len
14309
# Does compiler simultaneously support -c and -o options?
14310
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14312
# Must we lock files when doing compilation?
14313
need_locks=$lt_need_locks
14315
# Do we need the lib prefix for modules?
14316
need_lib_prefix=$need_lib_prefix
14318
# Do we need a version for libraries?
14319
need_version=$need_version
14321
# Whether dlopen is supported.
14322
dlopen_support=$enable_dlopen
14324
# Whether dlopen of programs is supported.
14325
dlopen_self=$enable_dlopen_self
14327
# Whether dlopen of statically linked programs is supported.
14328
dlopen_self_static=$enable_dlopen_self_static
14330
# Compiler flag to prevent dynamic linking.
14331
link_static_flag=$lt_lt_prog_compiler_static_CXX
14333
# Compiler flag to turn off builtin functions.
14334
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14336
# Compiler flag to allow reflexive dlopens.
14337
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14339
# Compiler flag to generate shared objects directly from archives.
14340
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14342
# Compiler flag to generate thread-safe objects.
14343
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14345
# Library versioning type.
14346
version_type=$version_type
14348
# Format of library name prefix.
14349
libname_spec=$lt_libname_spec
14351
# List of archive names. First name is the real one, the rest are links.
14352
# The last name is the one that the linker finds with -lNAME.
14353
library_names_spec=$lt_library_names_spec
14355
# The coded name of the library, if different from the real name.
14356
soname_spec=$lt_soname_spec
14358
# Commands used to build and install an old-style archive.
14360
old_archive_cmds=$lt_old_archive_cmds_CXX
14361
old_postinstall_cmds=$lt_old_postinstall_cmds
14362
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14364
# Create an old-style archive from a shared archive.
14365
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14367
# Create a temporary old-style archive to link instead of a shared archive.
14368
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14370
# Commands used to build and install a shared archive.
14371
archive_cmds=$lt_archive_cmds_CXX
14372
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14373
postinstall_cmds=$lt_postinstall_cmds
14374
postuninstall_cmds=$lt_postuninstall_cmds
14376
# Commands used to build a loadable module (assumed same as above if empty)
14377
module_cmds=$lt_module_cmds_CXX
14378
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14380
# Commands to strip libraries.
14381
old_striplib=$lt_old_striplib
14382
striplib=$lt_striplib
14384
# Dependencies to place before the objects being linked to create a
14386
predep_objects=$lt_predep_objects_CXX
14388
# Dependencies to place after the objects being linked to create a
14390
postdep_objects=$lt_postdep_objects_CXX
14392
# Dependencies to place before the objects being linked to create a
14394
predeps=$lt_predeps_CXX
14396
# Dependencies to place after the objects being linked to create a
14398
postdeps=$lt_postdeps_CXX
14400
# The library search path used internally by the compiler when linking
14401
# a shared library.
14402
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14404
# Method to check whether dependent libraries are shared objects.
14405
deplibs_check_method=$lt_deplibs_check_method
14407
# Command to use when deplibs_check_method == file_magic.
14408
file_magic_cmd=$lt_file_magic_cmd
14410
# Flag that allows shared libraries with undefined symbols to be built.
14411
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14413
# Flag that forces no undefined symbols.
14414
no_undefined_flag=$lt_no_undefined_flag_CXX
14416
# Commands used to finish a libtool library installation in a directory.
14417
finish_cmds=$lt_finish_cmds
14419
# Same as above, but a single script fragment to be evaled but not shown.
14420
finish_eval=$lt_finish_eval
14422
# Take the output of nm and produce a listing of raw symbols and C names.
14423
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14425
# Transform the output of nm in a proper C declaration
14426
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14428
# Transform the output of nm in a C name address pair
14429
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14431
# This is the shared library runtime path variable.
14432
runpath_var=$runpath_var
14434
# This is the shared library path variable.
14435
shlibpath_var=$shlibpath_var
14437
# Is shlibpath searched before the hard-coded library search path?
14438
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14440
# How to hardcode a shared library path into an executable.
14441
hardcode_action=$hardcode_action_CXX
14443
# Whether we should hardcode library paths into libraries.
14444
hardcode_into_libs=$hardcode_into_libs
14446
# Flag to hardcode \$libdir into a binary during linking.
14447
# This must work even if \$libdir does not exist.
14448
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14450
# If ld is used when linking, flag to hardcode \$libdir into
14451
# a binary during linking. This must work even if \$libdir does
14453
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14455
# Whether we need a single -rpath flag with a separated argument.
14456
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14458
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14459
# resulting binary.
14460
hardcode_direct=$hardcode_direct_CXX
14462
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14463
# resulting binary.
14464
hardcode_minus_L=$hardcode_minus_L_CXX
14466
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14467
# the resulting binary.
14468
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14470
# Set to yes if building a shared library automatically hardcodes DIR into the library
14471
# and all subsequent libraries and executables linked against it.
14472
hardcode_automatic=$hardcode_automatic_CXX
14474
# Variables whose values should be saved in libtool wrapper scripts and
14475
# restored at relink time.
14476
variables_saved_for_relink="$variables_saved_for_relink"
14478
# Whether libtool must link a program against all its dependency libraries.
14479
link_all_deplibs=$link_all_deplibs_CXX
14481
# Compile-time system search path for libraries
14482
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14484
# Run-time system search path for libraries
14485
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14487
# Fix the shell variable \$srcfile for the compiler.
14488
fix_srcfile_path=$lt_fix_srcfile_path
14490
# Set to yes if exported symbols are required.
14491
always_export_symbols=$always_export_symbols_CXX
14493
# The commands to list exported symbols.
14494
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14496
# The commands to extract the exported symbol list from a shared archive.
14497
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14499
# Symbols that should not be listed in the preloaded symbols.
14500
exclude_expsyms=$lt_exclude_expsyms_CXX
14502
# Symbols that must always be exported.
14503
include_expsyms=$lt_include_expsyms_CXX
14505
# ### END LIBTOOL TAG CONFIG: $tagname
14511
# If there is no Makefile yet, we rely on a make rule to execute
14512
# `config.status --recheck' to rerun these tests and create the
14513
# libtool script then.
14514
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14515
if test -f "$ltmain_in"; then
14516
test -f Makefile && make "$ltmain"
14522
ac_cpp='$CPP $CPPFLAGS'
14523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14531
with_gnu_ldcxx=$with_gnu_ld
14532
with_gnu_ld=$lt_save_with_gnu_ld
14533
lt_cv_path_LDCXX=$lt_cv_path_LD
14534
lt_cv_path_LD=$lt_save_path_LD
14535
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14536
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14544
if test -n "$F77" && test "X$F77" != "Xno"; then
14547
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14548
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14549
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14552
archive_cmds_need_lc_F77=no
14553
allow_undefined_flag_F77=
14554
always_export_symbols_F77=no
14555
archive_expsym_cmds_F77=
14556
export_dynamic_flag_spec_F77=
14557
hardcode_direct_F77=no
14558
hardcode_libdir_flag_spec_F77=
14559
hardcode_libdir_flag_spec_ld_F77=
14560
hardcode_libdir_separator_F77=
14561
hardcode_minus_L_F77=no
14562
hardcode_automatic_F77=no
14564
module_expsym_cmds_F77=
14565
link_all_deplibs_F77=unknown
14566
old_archive_cmds_F77=$old_archive_cmds
14567
no_undefined_flag_F77=
14568
whole_archive_flag_spec_F77=
14569
enable_shared_with_static_runtimes_F77=no
14571
# Source file extension for f77 test sources.
14574
# Object file extension for compiled f77 test sources.
14578
# Code to be used in simple compile tests
14579
lt_simple_compile_test_code="\
14585
# Code to be used in simple link tests
14586
lt_simple_link_test_code="\
14591
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14593
# If no C compiler was specified, use CC.
14596
# If no C compiler flags were specified, use CFLAGS.
14597
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14599
# Allow CC to be a program name with arguments.
14603
# save warnings/boilerplate of simple test code
14604
ac_outfile=conftest.$ac_objext
14605
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14606
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14607
_lt_compiler_boilerplate=`cat conftest.err`
14610
ac_outfile=conftest.$ac_objext
14611
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14612
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14613
_lt_linker_boilerplate=`cat conftest.err`
14617
# Allow CC to be a program name with arguments.
14622
for cc_temp in $compiler""; do
14624
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14625
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14630
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14633
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14634
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14635
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14636
echo "${ECHO_T}$can_build_shared" >&6; }
14638
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14639
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14640
test "$can_build_shared" = "no" && enable_shared=no
14642
# On AIX, shared libraries and static libraries use the same namespace, and
14643
# are all built from PIC.
14646
test "$enable_shared" = yes && enable_static=no
14647
if test -n "$RANLIB"; then
14648
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14649
postinstall_cmds='$RANLIB $lib'
14653
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14654
test "$enable_shared" = yes && enable_static=no
14658
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14659
echo "${ECHO_T}$enable_shared" >&6; }
14661
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14662
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14663
# Make sure either enable_shared or enable_static is yes.
14664
test "$enable_shared" = yes || enable_static=yes
14665
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14666
echo "${ECHO_T}$enable_static" >&6; }
14671
lt_prog_compiler_wl_F77=
14672
lt_prog_compiler_pic_F77=
14673
lt_prog_compiler_static_F77=
14675
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14676
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14678
if test "$GCC" = yes; then
14679
lt_prog_compiler_wl_F77='-Wl,'
14680
lt_prog_compiler_static_F77='-static'
14684
# All AIX code is PIC.
14685
if test "$host_cpu" = ia64; then
14686
# AIX 5 now supports IA64 processor
14687
lt_prog_compiler_static_F77='-Bstatic'
14692
# FIXME: we need at least 68020 code to build shared libraries, but
14693
# adding the `-m68020' flag to GCC prevents building anything better,
14695
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14698
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14699
# PIC is the default for these OSes.
14702
mingw* | cygwin* | pw32* | os2*)
14703
# This hack is so that the source file can tell whether it is being
14704
# built for inclusion in a dll (and should export symbols for example).
14705
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14706
# (--disable-auto-import) libraries
14707
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14710
darwin* | rhapsody*)
14711
# PIC is the default on this platform
14712
# Common symbols not allowed in MH_DYLIB files
14713
lt_prog_compiler_pic_F77='-fno-common'
14717
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14718
# Instead, we relocate shared libraries at runtime.
14722
# Just because we use GCC doesn't mean we suddenly get shared libraries
14723
# on systems that don't support them.
14724
lt_prog_compiler_can_build_shared_F77=no
14729
if test -d /usr/nec; then
14730
lt_prog_compiler_pic_F77=-Kconform_pic
14735
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14736
# not for PA HP-UX.
14742
lt_prog_compiler_pic_F77='-fPIC'
14748
lt_prog_compiler_pic_F77='-fPIC'
14752
# PORTME Check for flag to pass linker flags through the system compiler.
14755
lt_prog_compiler_wl_F77='-Wl,'
14756
if test "$host_cpu" = ia64; then
14757
# AIX 5 now supports IA64 processor
14758
lt_prog_compiler_static_F77='-Bstatic'
14760
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14764
# PIC is the default on this platform
14765
# Common symbols not allowed in MH_DYLIB files
14766
case $cc_basename in
14768
lt_prog_compiler_pic_F77='-qnocommon'
14769
lt_prog_compiler_wl_F77='-Wl,'
14774
mingw* | cygwin* | pw32* | os2*)
14775
# This hack is so that the source file can tell whether it is being
14776
# built for inclusion in a dll (and should export symbols for example).
14777
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14780
hpux9* | hpux10* | hpux11*)
14781
lt_prog_compiler_wl_F77='-Wl,'
14782
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14783
# not for PA HP-UX.
14789
lt_prog_compiler_pic_F77='+Z'
14792
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14793
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14796
irix5* | irix6* | nonstopux*)
14797
lt_prog_compiler_wl_F77='-Wl,'
14798
# PIC (with -KPIC) is the default.
14799
lt_prog_compiler_static_F77='-non_shared'
14803
lt_prog_compiler_pic_F77='-KPIC'
14804
lt_prog_compiler_static_F77='-Bstatic'
14807
linux* | k*bsd*-gnu)
14808
case $cc_basename in
14810
lt_prog_compiler_wl_F77='-Wl,'
14811
lt_prog_compiler_pic_F77='-KPIC'
14812
lt_prog_compiler_static_F77='-static'
14814
pgcc* | pgf77* | pgf90* | pgf95*)
14815
# Portland Group compilers (*not* the Pentium gcc compiler,
14816
# which looks to be a dead project)
14817
lt_prog_compiler_wl_F77='-Wl,'
14818
lt_prog_compiler_pic_F77='-fpic'
14819
lt_prog_compiler_static_F77='-Bstatic'
14822
lt_prog_compiler_wl_F77='-Wl,'
14823
# All Alpha code is PIC.
14824
lt_prog_compiler_static_F77='-non_shared'
14827
case `$CC -V 2>&1 | sed 5q` in
14830
lt_prog_compiler_pic_F77='-KPIC'
14831
lt_prog_compiler_static_F77='-Bstatic'
14832
lt_prog_compiler_wl_F77='-Wl,'
14835
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14836
lt_prog_compiler_pic_F77='-KPIC'
14837
lt_prog_compiler_static_F77='-Bstatic'
14838
lt_prog_compiler_wl_F77=''
14845
osf3* | osf4* | osf5*)
14846
lt_prog_compiler_wl_F77='-Wl,'
14847
# All OSF/1 code is PIC.
14848
lt_prog_compiler_static_F77='-non_shared'
14852
lt_prog_compiler_static_F77='-non_shared'
14856
lt_prog_compiler_pic_F77='-KPIC'
14857
lt_prog_compiler_static_F77='-Bstatic'
14858
case $cc_basename in
14859
f77* | f90* | f95*)
14860
lt_prog_compiler_wl_F77='-Qoption ld ';;
14862
lt_prog_compiler_wl_F77='-Wl,';;
14867
lt_prog_compiler_wl_F77='-Qoption ld '
14868
lt_prog_compiler_pic_F77='-PIC'
14869
lt_prog_compiler_static_F77='-Bstatic'
14872
sysv4 | sysv4.2uw2* | sysv4.3*)
14873
lt_prog_compiler_wl_F77='-Wl,'
14874
lt_prog_compiler_pic_F77='-KPIC'
14875
lt_prog_compiler_static_F77='-Bstatic'
14879
if test -d /usr/nec ;then
14880
lt_prog_compiler_pic_F77='-Kconform_pic'
14881
lt_prog_compiler_static_F77='-Bstatic'
14885
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14886
lt_prog_compiler_wl_F77='-Wl,'
14887
lt_prog_compiler_pic_F77='-KPIC'
14888
lt_prog_compiler_static_F77='-Bstatic'
14892
lt_prog_compiler_wl_F77='-Wl,'
14893
lt_prog_compiler_can_build_shared_F77=no
14897
lt_prog_compiler_pic_F77='-pic'
14898
lt_prog_compiler_static_F77='-Bstatic'
14902
lt_prog_compiler_can_build_shared_F77=no
14907
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14908
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14911
# Check to make sure the PIC flag actually works.
14913
if test -n "$lt_prog_compiler_pic_F77"; then
14915
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14916
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14917
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14918
echo $ECHO_N "(cached) $ECHO_C" >&6
14920
lt_prog_compiler_pic_works_F77=no
14921
ac_outfile=conftest.$ac_objext
14922
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14923
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14924
# Insert the option either (1) after the last *FLAGS variable, or
14925
# (2) before a word containing "conftest.", or (3) at the end.
14926
# Note that $ac_compile itself does not contain backslashes and begins
14927
# with a dollar sign (not a hyphen), so the echo should work correctly.
14928
# The option is referenced via a variable to avoid confusing sed.
14929
lt_compile=`echo "$ac_compile" | $SED \
14930
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14931
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14932
-e 's:$: $lt_compiler_flag:'`
14933
(eval echo "\"\$as_me:14933: $lt_compile\"" >&5)
14934
(eval "$lt_compile" 2>conftest.err)
14936
cat conftest.err >&5
14937
echo "$as_me:14937: \$? = $ac_status" >&5
14938
if (exit $ac_status) && test -s "$ac_outfile"; then
14939
# The compiler can only warn and ignore the option if not recognized
14940
# So say no if there are warnings other than the usual output.
14941
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14942
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14943
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14944
lt_prog_compiler_pic_works_F77=yes
14950
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14951
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14953
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14954
case $lt_prog_compiler_pic_F77 in
14956
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14959
lt_prog_compiler_pic_F77=
14960
lt_prog_compiler_can_build_shared_F77=no
14965
# For platforms which do not support PIC, -DPIC is meaningless:
14967
lt_prog_compiler_pic_F77=
14970
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14975
# Check to make sure the static flag actually works.
14977
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14978
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14979
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14980
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14981
echo $ECHO_N "(cached) $ECHO_C" >&6
14983
lt_prog_compiler_static_works_F77=no
14984
save_LDFLAGS="$LDFLAGS"
14985
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14986
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14987
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14988
# The linker can only warn and ignore the option if not recognized
14989
# So say no if there are warnings
14990
if test -s conftest.err; then
14991
# Append any errors to the config.log.
14992
cat conftest.err 1>&5
14993
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14994
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14995
if diff conftest.exp conftest.er2 >/dev/null; then
14996
lt_prog_compiler_static_works_F77=yes
14999
lt_prog_compiler_static_works_F77=yes
15003
LDFLAGS="$save_LDFLAGS"
15006
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15007
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15009
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15012
lt_prog_compiler_static_F77=
15016
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15017
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15018
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15019
echo $ECHO_N "(cached) $ECHO_C" >&6
15021
lt_cv_prog_compiler_c_o_F77=no
15022
$rm -r conftest 2>/dev/null
15026
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
lt_compiler_flag="-o out/conftest2.$ac_objext"
15029
# Insert the option either (1) after the last *FLAGS variable, or
15030
# (2) before a word containing "conftest.", or (3) at the end.
15031
# Note that $ac_compile itself does not contain backslashes and begins
15032
# with a dollar sign (not a hyphen), so the echo should work correctly.
15033
lt_compile=`echo "$ac_compile" | $SED \
15034
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15035
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15036
-e 's:$: $lt_compiler_flag:'`
15037
(eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
15038
(eval "$lt_compile" 2>out/conftest.err)
15040
cat out/conftest.err >&5
15041
echo "$as_me:15041: \$? = $ac_status" >&5
15042
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15044
# The compiler can only warn and ignore the option if not recognized
15045
# So say no if there are warnings
15046
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15047
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15048
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15049
lt_cv_prog_compiler_c_o_F77=yes
15054
# SGI C++ compiler will create directory out/ii_files/ for
15055
# template instantiation
15056
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15057
$rm out/* && rmdir out
15063
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15064
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15067
hard_links="nottested"
15068
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15069
# do not overwrite the value of need_locks provided by the user
15070
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15071
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15074
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15076
ln conftest.a conftest.b 2>&5 || hard_links=no
15077
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15078
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15079
echo "${ECHO_T}$hard_links" >&6; }
15080
if test "$hard_links" = no; then
15081
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15082
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15089
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15090
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15093
allow_undefined_flag_F77=
15094
enable_shared_with_static_runtimes_F77=no
15096
archive_expsym_cmds_F77=
15097
old_archive_From_new_cmds_F77=
15098
old_archive_from_expsyms_cmds_F77=
15099
export_dynamic_flag_spec_F77=
15100
whole_archive_flag_spec_F77=
15101
thread_safe_flag_spec_F77=
15102
hardcode_libdir_flag_spec_F77=
15103
hardcode_libdir_flag_spec_ld_F77=
15104
hardcode_libdir_separator_F77=
15105
hardcode_direct_F77=no
15106
hardcode_minus_L_F77=no
15107
hardcode_shlibpath_var_F77=unsupported
15108
link_all_deplibs_F77=unknown
15109
hardcode_automatic_F77=no
15111
module_expsym_cmds_F77=
15112
always_export_symbols_F77=no
15113
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15114
# include_expsyms should be a list of space-separated symbols to be *always*
15115
# included in the symbol list
15116
include_expsyms_F77=
15117
# exclude_expsyms can be an extended regexp of symbols to exclude
15118
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15119
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15120
# as well as any symbol that contains `d'.
15121
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15122
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15123
# platforms (ab)use it in PIC code, but their linkers get confused if
15124
# the symbol is explicitly referenced. Since portable code cannot
15125
# rely on this symbol name, it's probably fine to never include it in
15126
# preloaded symbol tables.
15127
extract_expsyms_cmds=
15128
# Just being paranoid about ensuring that cc_basename is set.
15129
for cc_temp in $compiler""; do
15131
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15132
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15137
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15140
cygwin* | mingw* | pw32*)
15141
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15142
# When not using gcc, we currently assume that we are using
15143
# Microsoft Visual C++.
15144
if test "$GCC" != yes; then
15149
# we just hope/assume this is gcc and not c89 (= MSVC++)
15158
if test "$with_gnu_ld" = yes; then
15159
# If archive_cmds runs LD, not CC, wlarc should be empty
15162
# Set some defaults for GNU ld with shared library support. These
15163
# are reset later if shared libraries are not supported. Putting them
15164
# here allows them to be overridden if necessary.
15165
runpath_var=LD_RUN_PATH
15166
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15167
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15168
# ancient GNU ld didn't support --whole-archive et. al.
15169
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15170
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15172
whole_archive_flag_spec_F77=
15174
supports_anon_versioning=no
15175
case `$LD -v 2>/dev/null` in
15176
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15177
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15178
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15179
*\ 2.11.*) ;; # other 2.11 versions
15180
*) supports_anon_versioning=yes ;;
15183
# See if GNU ld supports shared libraries.
15185
aix3* | aix4* | aix5*)
15186
# On AIX/PPC, the GNU linker is very broken
15187
if test "$host_cpu" != ia64; then
15191
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15192
*** to be unable to reliably create shared libraries on AIX.
15193
*** Therefore, libtool is disabling shared libraries support. If you
15194
*** really care for shared libraries, you may want to modify your PATH
15195
*** so that a non-GNU linker is found, and then restart.
15202
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)'
15203
hardcode_libdir_flag_spec_F77='-L$libdir'
15204
hardcode_minus_L_F77=yes
15206
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15207
# that the semantics of dynamic libraries on AmigaOS, at least up
15208
# to version 4, is to share data among multiple programs linked
15209
# with the same dynamic library. Since this doesn't match the
15210
# behavior of shared libraries on other platforms, we can't use
15216
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15217
allow_undefined_flag_F77=unsupported
15218
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15219
# support --undefined. This deserves some investigation. FIXME
15220
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226
cygwin* | mingw* | pw32*)
15227
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15228
# as there is no search path for DLLs.
15229
hardcode_libdir_flag_spec_F77='-L$libdir'
15230
allow_undefined_flag_F77=unsupported
15231
always_export_symbols_F77=no
15232
enable_shared_with_static_runtimes_F77=yes
15233
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15235
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15236
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15237
# If the export-symbols file already is a .def file (1st line
15238
# is EXPORTS), use it as is; otherwise, prepend...
15239
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15240
cp $export_symbols $output_objdir/$soname.def;
15242
echo EXPORTS > $output_objdir/$soname.def;
15243
cat $export_symbols >> $output_objdir/$soname.def;
15245
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15252
hardcode_direct_F77=no
15253
hardcode_shlibpath_var_F77=no
15254
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15255
export_dynamic_flag_spec_F77='${wl}-E'
15256
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15257
# Instead, shared libraries are loaded at an image base (0x10000000 by
15258
# default) and relocated if they conflict, which is a slow very memory
15259
# consuming and fragmenting process. To avoid this, we pick a random,
15260
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15261
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15262
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'
15263
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'
15266
gnu* | linux* | k*bsd*-gnu)
15267
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15269
case $cc_basename,$host_cpu in
15270
pgcc*) # Portland Group C compiler
15271
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'
15272
tmp_addflag=' $pic_flag'
15274
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15275
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'
15276
tmp_addflag=' $pic_flag -Mnomain' ;;
15277
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15278
tmp_addflag=' -i_dynamic' ;;
15279
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15280
tmp_addflag=' -i_dynamic -nofor_main' ;;
15281
ifc* | ifort*) # Intel Fortran compiler
15282
tmp_addflag=' -nofor_main' ;;
15284
case `$CC -V 2>&1 | sed 5q` in
15285
*Sun\ C*) # Sun C 5.9
15286
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15287
tmp_sharedflag='-G' ;;
15288
*Sun\ F*) # Sun Fortran 8.3
15289
tmp_sharedflag='-G' ;;
15291
tmp_sharedflag='-shared' ;;
15293
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15295
if test $supports_anon_versioning = yes; then
15296
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15297
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15298
$echo "local: *; };" >> $output_objdir/$libname.ver~
15299
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15307
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15308
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15311
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15312
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15317
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15321
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15322
*** create shared libraries on Solaris systems. Therefore, libtool
15323
*** is disabling shared libraries support. We urge you to upgrade GNU
15324
*** binutils to release 2.9.1 or newer. Another option is to modify
15325
*** your PATH or compiler configuration so that the native linker is
15326
*** used, and then restart.
15329
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15331
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15337
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15338
case `$LD -v 2>&1` in
15339
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15343
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15344
*** reliably create shared libraries on SCO systems. Therefore, libtool
15345
*** is disabling shared libraries support. We urge you to upgrade GNU
15346
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15347
*** your PATH or compiler configuration so that the native linker is
15348
*** used, and then restart.
15353
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15354
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15355
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15356
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15365
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15367
hardcode_direct_F77=yes
15368
hardcode_shlibpath_var_F77=no
15372
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15373
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15374
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15381
if test "$ld_shlibs_F77" = no; then
15383
hardcode_libdir_flag_spec_F77=
15384
export_dynamic_flag_spec_F77=
15385
whole_archive_flag_spec_F77=
15388
# PORTME fill in a description of your system's linker (not GNU ld)
15391
allow_undefined_flag_F77=unsupported
15392
always_export_symbols_F77=yes
15393
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'
15394
# Note: this linker hardcodes the directories in LIBPATH if there
15395
# are no directories specified by -L.
15396
hardcode_minus_L_F77=yes
15397
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15398
# Neither direct hardcoding nor static linking is supported with a
15400
hardcode_direct_F77=unsupported
15405
if test "$host_cpu" = ia64; then
15406
# On IA64, the linker does run time linking by default, so we don't
15407
# have to do anything special.
15408
aix_use_runtimelinking=no
15409
exp_sym_flag='-Bexport'
15412
# If we're using GNU nm, then we don't want the "-C" option.
15413
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15414
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15415
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'
15417
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'
15419
aix_use_runtimelinking=no
15421
# Test if we are trying to use run time linking or normal
15422
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15423
# need to do runtime linking.
15424
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15425
for ld_flag in $LDFLAGS; do
15426
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15427
aix_use_runtimelinking=yes
15434
exp_sym_flag='-bexport'
15435
no_entry_flag='-bnoentry'
15438
# When large executables or shared objects are built, AIX ld can
15439
# have problems creating the table of contents. If linking a library
15440
# or program results in "error TOC overflow" add -mminimal-toc to
15441
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15442
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15444
archive_cmds_F77=''
15445
hardcode_direct_F77=yes
15446
hardcode_libdir_separator_F77=':'
15447
link_all_deplibs_F77=yes
15449
if test "$GCC" = yes; then
15450
case $host_os in aix4.[012]|aix4.[012].*)
15451
# We only want to do this on AIX 4.2 and lower, the check
15452
# below for broken collect2 doesn't work under 4.3+
15453
collect2name=`${CC} -print-prog-name=collect2`
15454
if test -f "$collect2name" && \
15455
strings "$collect2name" | grep resolve_lib_name >/dev/null
15457
# We have reworked collect2
15460
# We have old collect2
15461
hardcode_direct_F77=unsupported
15462
# It fails to find uninstalled libraries when the uninstalled
15463
# path is not listed in the libpath. Setting hardcode_minus_L
15464
# to unsupported forces relinking
15465
hardcode_minus_L_F77=yes
15466
hardcode_libdir_flag_spec_F77='-L$libdir'
15467
hardcode_libdir_separator_F77=
15471
shared_flag='-shared'
15472
if test "$aix_use_runtimelinking" = yes; then
15473
shared_flag="$shared_flag "'${wl}-G'
15477
if test "$host_cpu" = ia64; then
15478
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15479
# chokes on -Wl,-G. The following line is correct:
15482
if test "$aix_use_runtimelinking" = yes; then
15483
shared_flag='${wl}-G'
15485
shared_flag='${wl}-bM:SRE'
15490
# It seems that -bexpall does not export symbols beginning with
15491
# underscore (_), so it is better to generate a list of symbols to export.
15492
always_export_symbols_F77=yes
15493
if test "$aix_use_runtimelinking" = yes; then
15494
# Warning - without using the other runtime loading flags (-brtl),
15495
# -berok will link without error, but may produce a broken library.
15496
allow_undefined_flag_F77='-berok'
15497
# Determine the default libpath from the value encoded in an empty executable.
15498
cat >conftest.$ac_ext <<_ACEOF
15503
rm -f conftest.$ac_objext conftest$ac_exeext
15504
if { (ac_try="$ac_link"
15505
case "(($ac_try" in
15506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507
*) ac_try_echo=$ac_try;;
15509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510
(eval "$ac_link") 2>conftest.er1
15512
grep -v '^ *+' conftest.er1 >conftest.err
15514
cat conftest.err >&5
15515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516
(exit $ac_status); } && {
15517
test -z "$ac_f77_werror_flag" ||
15518
test ! -s conftest.err
15519
} && test -s conftest$ac_exeext &&
15520
$as_test_x conftest$ac_exeext; then
15522
lt_aix_libpath_sed='
15523
/Import File Strings/,/^$/ {
15529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15530
# Check for a 64-bit object if we didn't find anything.
15531
if test -z "$aix_libpath"; then
15532
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15535
echo "$as_me: failed program was:" >&5
15536
sed 's/^/| /' conftest.$ac_ext >&5
15541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15542
conftest$ac_exeext conftest.$ac_ext
15543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15545
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15546
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"
15548
if test "$host_cpu" = ia64; then
15549
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15550
allow_undefined_flag_F77="-z nodefs"
15551
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"
15553
# Determine the default libpath from the value encoded in an empty executable.
15554
cat >conftest.$ac_ext <<_ACEOF
15559
rm -f conftest.$ac_objext conftest$ac_exeext
15560
if { (ac_try="$ac_link"
15561
case "(($ac_try" in
15562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563
*) ac_try_echo=$ac_try;;
15565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566
(eval "$ac_link") 2>conftest.er1
15568
grep -v '^ *+' conftest.er1 >conftest.err
15570
cat conftest.err >&5
15571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572
(exit $ac_status); } && {
15573
test -z "$ac_f77_werror_flag" ||
15574
test ! -s conftest.err
15575
} && test -s conftest$ac_exeext &&
15576
$as_test_x conftest$ac_exeext; then
15578
lt_aix_libpath_sed='
15579
/Import File Strings/,/^$/ {
15585
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15586
# Check for a 64-bit object if we didn't find anything.
15587
if test -z "$aix_libpath"; then
15588
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15591
echo "$as_me: failed program was:" >&5
15592
sed 's/^/| /' conftest.$ac_ext >&5
15597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15598
conftest$ac_exeext conftest.$ac_ext
15599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15601
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15602
# Warning - without using the other run time loading flags,
15603
# -berok will link without error, but may produce a broken library.
15604
no_undefined_flag_F77=' ${wl}-bernotok'
15605
allow_undefined_flag_F77=' ${wl}-berok'
15606
# Exported symbols can be pulled into shared objects from archives
15607
whole_archive_flag_spec_F77='$convenience'
15608
archive_cmds_need_lc_F77=yes
15609
# This is similar to how AIX traditionally builds its shared libraries.
15610
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'
15616
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)'
15617
hardcode_libdir_flag_spec_F77='-L$libdir'
15618
hardcode_minus_L_F77=yes
15619
# see comment about different semantics on the GNU ld section
15624
export_dynamic_flag_spec_F77=-rdynamic
15627
cygwin* | mingw* | pw32*)
15628
# When not using gcc, we currently assume that we are using
15629
# Microsoft Visual C++.
15630
# hardcode_libdir_flag_spec is actually meaningless, as there is
15631
# no search path for DLLs.
15632
hardcode_libdir_flag_spec_F77=' '
15633
allow_undefined_flag_F77=unsupported
15634
# Tell ltmain to make .lib files, not .a files.
15636
# Tell ltmain to make .dll files, not .so files.
15638
# FIXME: Setting linknames here is a bad hack.
15639
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15640
# The linker will automatically build a .lib file if we build a DLL.
15641
old_archive_From_new_cmds_F77='true'
15642
# FIXME: Should let the user specify the lib program.
15643
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15644
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15645
enable_shared_with_static_runtimes_F77=yes
15648
darwin* | rhapsody*)
15650
rhapsody* | darwin1.[012])
15651
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15654
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15655
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15657
case ${MACOSX_DEPLOYMENT_TARGET} in
15659
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15662
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15668
archive_cmds_need_lc_F77=no
15669
hardcode_direct_F77=no
15670
hardcode_automatic_F77=yes
15671
hardcode_shlibpath_var_F77=unsupported
15672
whole_archive_flag_spec_F77=''
15673
link_all_deplibs_F77=yes
15674
if test "$GCC" = yes ; then
15675
output_verbose_link_cmd='echo'
15676
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15677
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15678
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15679
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}'
15680
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}'
15682
case $cc_basename in
15684
output_verbose_link_cmd='echo'
15685
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15686
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15687
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15688
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15689
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}'
15699
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700
hardcode_libdir_flag_spec_F77='-L$libdir'
15701
hardcode_shlibpath_var_F77=no
15708
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15709
# support. Future versions do this automatically, but an explicit c++rt0.o
15710
# does not break anything, and helps significantly (at the cost of a little
15713
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15714
hardcode_libdir_flag_spec_F77='-R$libdir'
15715
hardcode_direct_F77=yes
15716
hardcode_shlibpath_var_F77=no
15719
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15721
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15722
hardcode_direct_F77=yes
15723
hardcode_minus_L_F77=yes
15724
hardcode_shlibpath_var_F77=no
15727
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15728
freebsd* | dragonfly*)
15729
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15730
hardcode_libdir_flag_spec_F77='-R$libdir'
15731
hardcode_direct_F77=yes
15732
hardcode_shlibpath_var_F77=no
15736
if test "$GCC" = yes; then
15737
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'
15739
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'
15741
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15742
hardcode_libdir_separator_F77=:
15743
hardcode_direct_F77=yes
15745
# hardcode_minus_L: Not really in the search PATH,
15746
# but as the default location of the library.
15747
hardcode_minus_L_F77=yes
15748
export_dynamic_flag_spec_F77='${wl}-E'
15752
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15753
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15755
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15757
if test "$with_gnu_ld" = no; then
15758
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15759
hardcode_libdir_separator_F77=:
15761
hardcode_direct_F77=yes
15762
export_dynamic_flag_spec_F77='${wl}-E'
15764
# hardcode_minus_L: Not really in the search PATH,
15765
# but as the default location of the library.
15766
hardcode_minus_L_F77=yes
15771
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15774
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15780
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15786
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15792
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15796
if test "$with_gnu_ld" = no; then
15797
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15798
hardcode_libdir_separator_F77=:
15802
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15803
hardcode_direct_F77=no
15804
hardcode_shlibpath_var_F77=no
15807
hardcode_direct_F77=yes
15808
export_dynamic_flag_spec_F77='${wl}-E'
15810
# hardcode_minus_L: Not really in the search PATH,
15811
# but as the default location of the library.
15812
hardcode_minus_L_F77=yes
15818
irix5* | irix6* | nonstopux*)
15819
if test "$GCC" = yes; then
15820
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'
15822
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'
15823
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15825
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15826
hardcode_libdir_separator_F77=:
15827
link_all_deplibs_F77=yes
15831
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15832
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15834
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15836
hardcode_libdir_flag_spec_F77='-R$libdir'
15837
hardcode_direct_F77=yes
15838
hardcode_shlibpath_var_F77=no
15842
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843
hardcode_direct_F77=yes
15844
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15845
hardcode_libdir_separator_F77=:
15846
hardcode_shlibpath_var_F77=no
15850
if test -f /usr/libexec/ld.so; then
15851
hardcode_direct_F77=yes
15852
hardcode_shlibpath_var_F77=no
15853
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15854
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15855
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15856
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15857
export_dynamic_flag_spec_F77='${wl}-E'
15860
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15861
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15862
hardcode_libdir_flag_spec_F77='-R$libdir'
15865
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15866
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15876
hardcode_libdir_flag_spec_F77='-L$libdir'
15877
hardcode_minus_L_F77=yes
15878
allow_undefined_flag_F77=unsupported
15879
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'
15880
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15884
if test "$GCC" = yes; then
15885
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15886
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'
15888
allow_undefined_flag_F77=' -expect_unresolved \*'
15889
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'
15891
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15892
hardcode_libdir_separator_F77=:
15895
osf4* | osf5*) # as osf3* with the addition of -msym flag
15896
if test "$GCC" = yes; then
15897
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15898
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'
15899
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15901
allow_undefined_flag_F77=' -expect_unresolved \*'
15902
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'
15903
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~
15904
$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'
15906
# Both c and cxx compiler support -rpath directly
15907
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15909
hardcode_libdir_separator_F77=:
15913
no_undefined_flag_F77=' -z text'
15914
if test "$GCC" = yes; then
15916
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15918
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15921
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15923
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15925
hardcode_libdir_flag_spec_F77='-R$libdir'
15926
hardcode_shlibpath_var_F77=no
15928
solaris2.[0-5] | solaris2.[0-5].*) ;;
15930
# The compiler driver will combine and reorder linker options,
15931
# but understands `-z linker_flag'. GCC discards it without `$wl',
15932
# but is careful enough not to reorder.
15933
# Supported since Solaris 2.6 (maybe 2.5.1?)
15934
if test "$GCC" = yes; then
15935
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15937
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15941
link_all_deplibs_F77=yes
15945
if test "x$host_vendor" = xsequent; then
15946
# Use $CC to link under sequent, because it throws in some extra .o
15947
# files that make .init and .fini sections work.
15948
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15950
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15952
hardcode_libdir_flag_spec_F77='-L$libdir'
15953
hardcode_direct_F77=yes
15954
hardcode_minus_L_F77=yes
15955
hardcode_shlibpath_var_F77=no
15959
case $host_vendor in
15961
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15962
hardcode_direct_F77=yes # is this really true???
15965
## LD is ld it makes a PLAMLIB
15966
## CC just makes a GrossModule.
15967
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15968
reload_cmds_F77='$CC -r -o $output$reload_objs'
15969
hardcode_direct_F77=no
15972
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15976
runpath_var='LD_RUN_PATH'
15977
hardcode_shlibpath_var_F77=no
15981
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15982
hardcode_shlibpath_var_F77=no
15983
export_dynamic_flag_spec_F77='-Bexport'
15987
if test -d /usr/nec; then
15988
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989
hardcode_shlibpath_var_F77=no
15990
runpath_var=LD_RUN_PATH
15991
hardcode_runpath_var=yes
15996
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15997
no_undefined_flag_F77='${wl}-z,text'
15998
archive_cmds_need_lc_F77=no
15999
hardcode_shlibpath_var_F77=no
16000
runpath_var='LD_RUN_PATH'
16002
if test "$GCC" = yes; then
16003
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16004
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16006
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011
sysv5* | sco3.2v5* | sco5v6*)
16012
# Note: We can NOT use -z defs as we might desire, because we do not
16013
# link with -lc, and that would cause any symbols used from libc to
16014
# always be unresolved, which means just about no library would
16015
# ever link correctly. If we're not using GNU ld we use -z text
16016
# though, which does catch some bad symbols but isn't as heavy-handed
16018
no_undefined_flag_F77='${wl}-z,text'
16019
allow_undefined_flag_F77='${wl}-z,nodefs'
16020
archive_cmds_need_lc_F77=no
16021
hardcode_shlibpath_var_F77=no
16022
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16023
hardcode_libdir_separator_F77=':'
16024
link_all_deplibs_F77=yes
16025
export_dynamic_flag_spec_F77='${wl}-Bexport'
16026
runpath_var='LD_RUN_PATH'
16028
if test "$GCC" = yes; then
16029
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16030
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16032
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16033
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16039
hardcode_libdir_flag_spec_F77='-L$libdir'
16040
hardcode_shlibpath_var_F77=no
16049
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16050
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16051
test "$ld_shlibs_F77" = no && can_build_shared=no
16054
# Do we need to explicitly link libc?
16056
case "x$archive_cmds_need_lc_F77" in
16058
# Assume -lc should be added
16059
archive_cmds_need_lc_F77=yes
16061
if test "$enable_shared" = yes && test "$GCC" = yes; then
16062
case $archive_cmds_F77 in
16064
# FIXME: we may have to deal with multi-command sequences.
16067
# Test whether the compiler implicitly links with -lc since on some
16068
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16069
# to ld, don't add -lc before -lgcc.
16070
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16071
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16073
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16076
(eval $ac_compile) 2>&5
16078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079
(exit $ac_status); } 2>conftest.err; then
16082
libobjs=conftest.$ac_objext
16084
wl=$lt_prog_compiler_wl_F77
16085
pic_flag=$lt_prog_compiler_pic_F77
16091
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16092
allow_undefined_flag_F77=
16093
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16094
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097
(exit $ac_status); }
16099
archive_cmds_need_lc_F77=no
16101
archive_cmds_need_lc_F77=yes
16103
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16105
cat conftest.err 1>&5
16108
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16109
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16116
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16117
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16118
library_names_spec=
16119
libname_spec='lib$name'
16123
postuninstall_cmds=
16127
shlibpath_overrides_runpath=unknown
16129
dynamic_linker="$host_os ld.so"
16130
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16132
need_lib_prefix=unknown
16133
hardcode_into_libs=no
16135
# when you set need_version to no, make sure it does not cause -set_version
16136
# flags to be left without arguments
16137
need_version=unknown
16142
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16143
shlibpath_var=LIBPATH
16145
# AIX 3 has no versioning support, so we append a major version to the name.
16146
soname_spec='${libname}${release}${shared_ext}$major'
16153
hardcode_into_libs=yes
16154
if test "$host_cpu" = ia64; then
16155
# AIX 5 supports IA64
16156
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16157
shlibpath_var=LD_LIBRARY_PATH
16159
# With GCC up to 2.95.x, collect2 would create an import file
16160
# for dependence libraries. The import file would start with
16161
# the line `#! .'. This would cause the generated library to
16162
# depend on `.', always an invalid library. This was fixed in
16163
# development snapshots of GCC prior to 3.0.
16165
aix4 | aix4.[01] | aix4.[01].*)
16166
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16168
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16171
can_build_shared=no
16175
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16176
# soname into executable. Probably we can add versioning support to
16177
# collect2, so additional links can be useful in future.
16178
if test "$aix_use_runtimelinking" = yes; then
16179
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16180
# instead of lib<name>.a to let people know that these are not
16181
# typical AIX shared libraries.
16182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184
# We preserve .a as extension for shared libraries through AIX4.2
16185
# and later when we are not doing run time linking.
16186
library_names_spec='${libname}${release}.a $libname.a'
16187
soname_spec='${libname}${release}${shared_ext}$major'
16189
shlibpath_var=LIBPATH
16194
library_names_spec='$libname.ixlibrary $libname.a'
16195
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16196
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'
16200
library_names_spec='${libname}${shared_ext}'
16201
dynamic_linker="$host_os ld.so"
16202
shlibpath_var=LIBRARY_PATH
16208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209
soname_spec='${libname}${release}${shared_ext}$major'
16210
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16211
shlibpath_var=LD_LIBRARY_PATH
16212
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16213
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16214
# the default ld.so.conf also contains /usr/contrib/lib and
16215
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16216
# libtool to hard-code these into programs
16219
cygwin* | mingw* | pw32*)
16220
version_type=windows
16225
case $GCC,$host_os in
16226
yes,cygwin* | yes,mingw* | yes,pw32*)
16227
library_names_spec='$libname.dll.a'
16228
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16229
postinstall_cmds='base_file=`basename \${file}`~
16230
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16231
dldir=$destdir/`dirname \$dlpath`~
16232
test -d \$dldir || mkdir -p \$dldir~
16233
$install_prog $dir/$dlname \$dldir/$dlname~
16234
chmod a+x \$dldir/$dlname'
16235
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16236
dlpath=$dir/\$dldll~
16238
shlibpath_overrides_runpath=yes
16242
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16243
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16244
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16247
# MinGW DLLs use traditional 'lib' prefix
16248
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16249
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16250
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16251
# It is most probably a Windows format PATH printed by
16252
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16253
# path with ; separators, and with drive letters. We can handle the
16254
# drive letters (cygwin fileutils understands them), so leave them,
16255
# especially as we might pass files found there to a mingw objdump,
16256
# which wouldn't understand a cygwinified path. Ahh.
16257
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16259
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16263
# pw32 DLLs use 'pw' prefix rather than 'lib'
16264
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16270
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16273
dynamic_linker='Win32 ld.exe'
16274
# FIXME: first we should search . and the directory the executable is in
16278
darwin* | rhapsody*)
16279
dynamic_linker="$host_os dyld"
16280
version_type=darwin
16283
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16284
soname_spec='${libname}${release}${major}$shared_ext'
16285
shlibpath_overrides_runpath=yes
16286
shlibpath_var=DYLD_LIBRARY_PATH
16287
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16289
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16297
soname_spec='${libname}${release}${shared_ext}$major'
16298
shlibpath_var=LD_LIBRARY_PATH
16305
freebsd* | dragonfly*)
16306
# DragonFly does not have aout. When/if they implement a new
16307
# versioning mechanism, adjust this.
16308
if test -x /usr/bin/objformat; then
16309
objformat=`/usr/bin/objformat`
16312
freebsd[123]*) objformat=aout ;;
16313
*) objformat=elf ;;
16316
version_type=freebsd-$objformat
16317
case $version_type in
16319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16324
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16328
shlibpath_var=LD_LIBRARY_PATH
16331
shlibpath_overrides_runpath=yes
16333
freebsd3.[01]* | freebsdelf3.[01]*)
16334
shlibpath_overrides_runpath=yes
16335
hardcode_into_libs=yes
16337
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16338
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16339
shlibpath_overrides_runpath=no
16340
hardcode_into_libs=yes
16342
*) # from 4.6 on, and DragonFly
16343
shlibpath_overrides_runpath=yes
16344
hardcode_into_libs=yes
16353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16354
soname_spec='${libname}${release}${shared_ext}$major'
16355
shlibpath_var=LD_LIBRARY_PATH
16356
hardcode_into_libs=yes
16359
hpux9* | hpux10* | hpux11*)
16360
# Give a soname corresponding to the major version so that dld.sl refuses to
16361
# link against other versions.
16368
hardcode_into_libs=yes
16369
dynamic_linker="$host_os dld.so"
16370
shlibpath_var=LD_LIBRARY_PATH
16371
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373
soname_spec='${libname}${release}${shared_ext}$major'
16374
if test "X$HPUX_IA64_MODE" = X32; then
16375
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16377
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16379
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16383
hardcode_into_libs=yes
16384
dynamic_linker="$host_os dld.sl"
16385
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16386
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388
soname_spec='${libname}${release}${shared_ext}$major'
16389
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16390
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16394
dynamic_linker="$host_os dld.sl"
16395
shlibpath_var=SHLIB_PATH
16396
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398
soname_spec='${libname}${release}${shared_ext}$major'
16401
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16402
postinstall_cmds='chmod 555 $lib'
16409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16410
soname_spec='${libname}${release}${shared_ext}$major'
16411
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16412
shlibpath_var=LD_LIBRARY_PATH
16413
shlibpath_overrides_runpath=no
16414
hardcode_into_libs=yes
16417
irix5* | irix6* | nonstopux*)
16419
nonstopux*) version_type=nonstopux ;;
16421
if test "$lt_cv_prog_gnu_ld" = yes; then
16429
soname_spec='${libname}${release}${shared_ext}$major'
16430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16432
irix5* | nonstopux*)
16433
libsuff= shlibsuff=
16436
case $LD in # libtool.m4 will add one of these switches to LD
16437
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16438
libsuff= shlibsuff= libmagic=32-bit;;
16439
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16440
libsuff=32 shlibsuff=N32 libmagic=N32;;
16441
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16442
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16443
*) libsuff= shlibsuff= libmagic=never-match;;
16447
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16448
shlibpath_overrides_runpath=no
16449
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16450
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16451
hardcode_into_libs=yes
16454
# No shared lib support for Linux oldld, aout, or coff.
16455
linux*oldld* | linux*aout* | linux*coff*)
16459
# This must be Linux ELF.
16460
linux* | k*bsd*-gnu)
16464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465
soname_spec='${libname}${release}${shared_ext}$major'
16466
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16467
shlibpath_var=LD_LIBRARY_PATH
16468
shlibpath_overrides_runpath=no
16469
# This implies no fast_install, which is unacceptable.
16470
# Some rework will be needed to allow for fast_install
16471
# before this can be enabled.
16472
hardcode_into_libs=yes
16473
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16474
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16476
# Append ld.so.conf contents to the search path
16477
if test -f /etc/ld.so.conf; then
16478
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16479
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16482
# We used to test for /lib/ld.so.1 and disable shared libraries on
16483
# powerpc, because MkLinux only supported shared libraries with the
16484
# GNU dynamic linker. Since this was broken with cross compilers,
16485
# most powerpc-linux boxes support dynamic linking these days and
16486
# people can always --disable-shared, the test was removed, and we
16487
# assume the GNU/Linux dynamic linker is in use.
16488
dynamic_linker='GNU/Linux ld.so'
16495
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16498
dynamic_linker='NetBSD (a.out) ld.so'
16500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16501
soname_spec='${libname}${release}${shared_ext}$major'
16502
dynamic_linker='NetBSD ld.elf_so'
16504
shlibpath_var=LD_LIBRARY_PATH
16505
shlibpath_overrides_runpath=yes
16506
hardcode_into_libs=yes
16511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512
shlibpath_var=LD_LIBRARY_PATH
16513
shlibpath_overrides_runpath=yes
16520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521
soname_spec='${libname}${release}${shared_ext}$major'
16522
shlibpath_var=LD_LIBRARY_PATH
16523
shlibpath_overrides_runpath=yes
16528
sys_lib_dlsearch_path_spec="/usr/lib"
16530
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16532
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16533
*) need_version=no ;;
16535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16536
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16537
shlibpath_var=LD_LIBRARY_PATH
16538
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16540
openbsd2.[89] | openbsd2.[89].*)
16541
shlibpath_overrides_runpath=no
16544
shlibpath_overrides_runpath=yes
16548
shlibpath_overrides_runpath=yes
16553
libname_spec='$name'
16556
library_names_spec='$libname${shared_ext} $libname.a'
16557
dynamic_linker='OS/2 ld.exe'
16558
shlibpath_var=LIBPATH
16561
osf3* | osf4* | osf5*)
16565
soname_spec='${libname}${release}${shared_ext}$major'
16566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567
shlibpath_var=LD_LIBRARY_PATH
16568
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16569
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581
soname_spec='${libname}${release}${shared_ext}$major'
16582
shlibpath_var=LD_LIBRARY_PATH
16583
shlibpath_overrides_runpath=yes
16584
hardcode_into_libs=yes
16585
# ldd complains unless libraries are executable
16586
postinstall_cmds='chmod +x $lib'
16591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16592
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16593
shlibpath_var=LD_LIBRARY_PATH
16594
shlibpath_overrides_runpath=yes
16595
if test "$with_gnu_ld" = yes; then
16603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604
soname_spec='${libname}${release}${shared_ext}$major'
16605
shlibpath_var=LD_LIBRARY_PATH
16606
case $host_vendor in
16608
shlibpath_overrides_runpath=no
16610
export_dynamic_flag_spec='${wl}-Blargedynsym'
16611
runpath_var=LD_RUN_PATH
16619
shlibpath_overrides_runpath=no
16620
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16626
if test -d /usr/nec ;then
16628
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16629
soname_spec='$libname${shared_ext}.$major'
16630
shlibpath_var=LD_LIBRARY_PATH
16634
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16635
version_type=freebsd-elf
16638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16639
soname_spec='${libname}${release}${shared_ext}$major'
16640
shlibpath_var=LD_LIBRARY_PATH
16641
hardcode_into_libs=yes
16642
if test "$with_gnu_ld" = yes; then
16643
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16644
shlibpath_overrides_runpath=no
16646
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16647
shlibpath_overrides_runpath=yes
16650
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16654
sys_lib_dlsearch_path_spec='/usr/lib'
16659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
soname_spec='${libname}${release}${shared_ext}$major'
16661
shlibpath_var=LD_LIBRARY_PATH
16668
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16669
echo "${ECHO_T}$dynamic_linker" >&6; }
16670
test "$dynamic_linker" = no && can_build_shared=no
16672
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673
if test "$GCC" = yes; then
16674
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16678
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16679
hardcode_action_F77=
16680
if test -n "$hardcode_libdir_flag_spec_F77" || \
16681
test -n "$runpath_var_F77" || \
16682
test "X$hardcode_automatic_F77" = "Xyes" ; then
16684
# We can hardcode non-existant directories.
16685
if test "$hardcode_direct_F77" != no &&
16686
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16687
# have to relink, otherwise we might link with an installed library
16688
# when we should be linking with a yet-to-be-installed one
16689
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16690
test "$hardcode_minus_L_F77" != no; then
16691
# Linking always hardcodes the temporary library directory.
16692
hardcode_action_F77=relink
16694
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16695
hardcode_action_F77=immediate
16698
# We cannot hardcode anything, or else we can only hardcode existing
16700
hardcode_action_F77=unsupported
16702
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16703
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16705
if test "$hardcode_action_F77" = relink; then
16706
# Fast installation is not supported
16707
enable_fast_install=no
16708
elif test "$shlibpath_overrides_runpath" = yes ||
16709
test "$enable_shared" = no; then
16710
# Fast installation is not necessary
16711
enable_fast_install=needless
16715
# The else clause should only fire when bootstrapping the
16716
# libtool distribution, otherwise you forgot to ship ltmain.sh
16717
# with your package, and you will get complaints that there are
16718
# no rules to generate ltmain.sh.
16719
if test -f "$ltmain"; then
16720
# See if we are running on zsh, and set the options which allow our commands through
16721
# without removal of \ escapes.
16722
if test -n "${ZSH_VERSION+set}" ; then
16723
setopt NO_GLOB_SUBST
16725
# Now quote all the things that may contain metacharacters while being
16726
# careful not to overquote the AC_SUBSTed values. We take copies of the
16727
# variables and quote the copies for generation of the libtool script.
16728
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16730
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16731
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16732
deplibs_check_method reload_flag reload_cmds need_locks \
16733
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16734
lt_cv_sys_global_symbol_to_c_name_address \
16735
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16736
old_postinstall_cmds old_postuninstall_cmds \
16740
lt_prog_compiler_wl_F77 \
16741
lt_prog_compiler_pic_F77 \
16742
lt_prog_compiler_static_F77 \
16743
lt_prog_compiler_no_builtin_flag_F77 \
16744
export_dynamic_flag_spec_F77 \
16745
thread_safe_flag_spec_F77 \
16746
whole_archive_flag_spec_F77 \
16747
enable_shared_with_static_runtimes_F77 \
16748
old_archive_cmds_F77 \
16749
old_archive_from_new_cmds_F77 \
16750
predep_objects_F77 \
16751
postdep_objects_F77 \
16754
compiler_lib_search_path_F77 \
16756
archive_expsym_cmds_F77 \
16757
postinstall_cmds_F77 \
16758
postuninstall_cmds_F77 \
16759
old_archive_from_expsyms_cmds_F77 \
16760
allow_undefined_flag_F77 \
16761
no_undefined_flag_F77 \
16762
export_symbols_cmds_F77 \
16763
hardcode_libdir_flag_spec_F77 \
16764
hardcode_libdir_flag_spec_ld_F77 \
16765
hardcode_libdir_separator_F77 \
16766
hardcode_automatic_F77 \
16768
module_expsym_cmds_F77 \
16769
lt_cv_prog_compiler_c_o_F77 \
16770
fix_srcfile_path_F77 \
16771
exclude_expsyms_F77 \
16772
include_expsyms_F77; do
16775
old_archive_cmds_F77 | \
16776
old_archive_from_new_cmds_F77 | \
16777
archive_cmds_F77 | \
16778
archive_expsym_cmds_F77 | \
16779
module_cmds_F77 | \
16780
module_expsym_cmds_F77 | \
16781
old_archive_from_expsyms_cmds_F77 | \
16782
export_symbols_cmds_F77 | \
16783
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16784
postinstall_cmds | postuninstall_cmds | \
16785
old_postinstall_cmds | old_postuninstall_cmds | \
16786
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16787
# Double-quote double-evaled strings.
16788
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16791
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16797
*'\$0 --fallback-echo"')
16798
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16804
cat <<__EOF__ >> "$cfgfile"
16805
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16807
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16809
# Shell to use when invoking shell scripts.
16812
# Whether or not to build shared libraries.
16813
build_libtool_libs=$enable_shared
16815
# Whether or not to build static libraries.
16816
build_old_libs=$enable_static
16818
# Whether or not to add -lc for building shared libraries.
16819
build_libtool_need_lc=$archive_cmds_need_lc_F77
16821
# Whether or not to disallow shared libs when runtime libs are static
16822
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16824
# Whether or not to optimize for fast installation.
16825
fast_install=$enable_fast_install
16828
host_alias=$host_alias
16832
# The build system.
16833
build_alias=$build_alias
16837
# An echo program that does not interpret backslashes.
16842
AR_FLAGS=$lt_AR_FLAGS
16847
# LTCC compiler flags.
16848
LTCFLAGS=$lt_LTCFLAGS
16850
# A language-specific compiler.
16851
CC=$lt_compiler_F77
16853
# Is the compiler the GNU C compiler?
16859
# The linker used to build libraries.
16862
# Whether we need hard or soft links.
16865
# A BSD-compatible nm program.
16868
# A symbol stripping program
16871
# Used to examine libraries when file_magic_cmd begins "file"
16872
MAGIC_CMD=$MAGIC_CMD
16874
# Used on cygwin: DLL creation program.
16877
# Used on cygwin: object dumper.
16880
# Used on cygwin: assembler.
16883
# The name of the directory that contains temporary libtool files.
16886
# How to create reloadable object files.
16887
reload_flag=$lt_reload_flag
16888
reload_cmds=$lt_reload_cmds
16890
# How to pass a linker flag through the compiler.
16891
wl=$lt_lt_prog_compiler_wl_F77
16893
# Object file suffix (normally "o").
16894
objext="$ac_objext"
16896
# Old archive suffix (normally "a").
16899
# Shared library suffix (normally ".so").
16900
shrext_cmds='$shrext_cmds'
16902
# Executable file suffix (normally "").
16905
# Additional compiler flags for building library objects.
16906
pic_flag=$lt_lt_prog_compiler_pic_F77
16909
# What is the maximum length of a command?
16910
max_cmd_len=$lt_cv_sys_max_cmd_len
16912
# Does compiler simultaneously support -c and -o options?
16913
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16915
# Must we lock files when doing compilation?
16916
need_locks=$lt_need_locks
16918
# Do we need the lib prefix for modules?
16919
need_lib_prefix=$need_lib_prefix
16921
# Do we need a version for libraries?
16922
need_version=$need_version
16924
# Whether dlopen is supported.
16925
dlopen_support=$enable_dlopen
16927
# Whether dlopen of programs is supported.
16928
dlopen_self=$enable_dlopen_self
16930
# Whether dlopen of statically linked programs is supported.
16931
dlopen_self_static=$enable_dlopen_self_static
16933
# Compiler flag to prevent dynamic linking.
16934
link_static_flag=$lt_lt_prog_compiler_static_F77
16936
# Compiler flag to turn off builtin functions.
16937
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16939
# Compiler flag to allow reflexive dlopens.
16940
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16942
# Compiler flag to generate shared objects directly from archives.
16943
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16945
# Compiler flag to generate thread-safe objects.
16946
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16948
# Library versioning type.
16949
version_type=$version_type
16951
# Format of library name prefix.
16952
libname_spec=$lt_libname_spec
16954
# List of archive names. First name is the real one, the rest are links.
16955
# The last name is the one that the linker finds with -lNAME.
16956
library_names_spec=$lt_library_names_spec
16958
# The coded name of the library, if different from the real name.
16959
soname_spec=$lt_soname_spec
16961
# Commands used to build and install an old-style archive.
16963
old_archive_cmds=$lt_old_archive_cmds_F77
16964
old_postinstall_cmds=$lt_old_postinstall_cmds
16965
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16967
# Create an old-style archive from a shared archive.
16968
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16970
# Create a temporary old-style archive to link instead of a shared archive.
16971
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16973
# Commands used to build and install a shared archive.
16974
archive_cmds=$lt_archive_cmds_F77
16975
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16976
postinstall_cmds=$lt_postinstall_cmds
16977
postuninstall_cmds=$lt_postuninstall_cmds
16979
# Commands used to build a loadable module (assumed same as above if empty)
16980
module_cmds=$lt_module_cmds_F77
16981
module_expsym_cmds=$lt_module_expsym_cmds_F77
16983
# Commands to strip libraries.
16984
old_striplib=$lt_old_striplib
16985
striplib=$lt_striplib
16987
# Dependencies to place before the objects being linked to create a
16989
predep_objects=$lt_predep_objects_F77
16991
# Dependencies to place after the objects being linked to create a
16993
postdep_objects=$lt_postdep_objects_F77
16995
# Dependencies to place before the objects being linked to create a
16997
predeps=$lt_predeps_F77
16999
# Dependencies to place after the objects being linked to create a
17001
postdeps=$lt_postdeps_F77
17003
# The library search path used internally by the compiler when linking
17004
# a shared library.
17005
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17007
# Method to check whether dependent libraries are shared objects.
17008
deplibs_check_method=$lt_deplibs_check_method
17010
# Command to use when deplibs_check_method == file_magic.
17011
file_magic_cmd=$lt_file_magic_cmd
17013
# Flag that allows shared libraries with undefined symbols to be built.
17014
allow_undefined_flag=$lt_allow_undefined_flag_F77
17016
# Flag that forces no undefined symbols.
17017
no_undefined_flag=$lt_no_undefined_flag_F77
17019
# Commands used to finish a libtool library installation in a directory.
17020
finish_cmds=$lt_finish_cmds
17022
# Same as above, but a single script fragment to be evaled but not shown.
17023
finish_eval=$lt_finish_eval
17025
# Take the output of nm and produce a listing of raw symbols and C names.
17026
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17028
# Transform the output of nm in a proper C declaration
17029
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17031
# Transform the output of nm in a C name address pair
17032
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17034
# This is the shared library runtime path variable.
17035
runpath_var=$runpath_var
17037
# This is the shared library path variable.
17038
shlibpath_var=$shlibpath_var
17040
# Is shlibpath searched before the hard-coded library search path?
17041
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17043
# How to hardcode a shared library path into an executable.
17044
hardcode_action=$hardcode_action_F77
17046
# Whether we should hardcode library paths into libraries.
17047
hardcode_into_libs=$hardcode_into_libs
17049
# Flag to hardcode \$libdir into a binary during linking.
17050
# This must work even if \$libdir does not exist.
17051
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17053
# If ld is used when linking, flag to hardcode \$libdir into
17054
# a binary during linking. This must work even if \$libdir does
17056
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17058
# Whether we need a single -rpath flag with a separated argument.
17059
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17061
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17062
# resulting binary.
17063
hardcode_direct=$hardcode_direct_F77
17065
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17066
# resulting binary.
17067
hardcode_minus_L=$hardcode_minus_L_F77
17069
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17070
# the resulting binary.
17071
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17073
# Set to yes if building a shared library automatically hardcodes DIR into the library
17074
# and all subsequent libraries and executables linked against it.
17075
hardcode_automatic=$hardcode_automatic_F77
17077
# Variables whose values should be saved in libtool wrapper scripts and
17078
# restored at relink time.
17079
variables_saved_for_relink="$variables_saved_for_relink"
17081
# Whether libtool must link a program against all its dependency libraries.
17082
link_all_deplibs=$link_all_deplibs_F77
17084
# Compile-time system search path for libraries
17085
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17087
# Run-time system search path for libraries
17088
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17090
# Fix the shell variable \$srcfile for the compiler.
17091
fix_srcfile_path=$lt_fix_srcfile_path
17093
# Set to yes if exported symbols are required.
17094
always_export_symbols=$always_export_symbols_F77
17096
# The commands to list exported symbols.
17097
export_symbols_cmds=$lt_export_symbols_cmds_F77
17099
# The commands to extract the exported symbol list from a shared archive.
17100
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17102
# Symbols that should not be listed in the preloaded symbols.
17103
exclude_expsyms=$lt_exclude_expsyms_F77
17105
# Symbols that must always be exported.
17106
include_expsyms=$lt_include_expsyms_F77
17108
# ### END LIBTOOL TAG CONFIG: $tagname
17114
# If there is no Makefile yet, we rely on a make rule to execute
17115
# `config.status --recheck' to rerun these tests and create the
17116
# libtool script then.
17117
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17118
if test -f "$ltmain_in"; then
17119
test -f Makefile && make "$ltmain"
17125
ac_cpp='$CPP $CPPFLAGS'
17126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17138
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17141
# Source file extension for Java test sources.
17144
# Object file extension for compiled Java test sources.
17148
# Code to be used in simple compile tests
17149
lt_simple_compile_test_code="class foo {}"
17151
# Code to be used in simple link tests
17152
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17154
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17156
# If no C compiler was specified, use CC.
17159
# If no C compiler flags were specified, use CFLAGS.
17160
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17162
# Allow CC to be a program name with arguments.
17166
# save warnings/boilerplate of simple test code
17167
ac_outfile=conftest.$ac_objext
17168
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17169
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17170
_lt_compiler_boilerplate=`cat conftest.err`
17173
ac_outfile=conftest.$ac_objext
17174
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17175
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17176
_lt_linker_boilerplate=`cat conftest.err`
17180
# Allow CC to be a program name with arguments.
17185
for cc_temp in $compiler""; do
17187
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17188
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17193
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17196
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17197
archive_cmds_need_lc_GCJ=no
17199
old_archive_cmds_GCJ=$old_archive_cmds
17202
lt_prog_compiler_no_builtin_flag_GCJ=
17204
if test "$GCC" = yes; then
17205
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17208
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17209
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17210
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17211
echo $ECHO_N "(cached) $ECHO_C" >&6
17213
lt_cv_prog_compiler_rtti_exceptions=no
17214
ac_outfile=conftest.$ac_objext
17215
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17216
lt_compiler_flag="-fno-rtti -fno-exceptions"
17217
# Insert the option either (1) after the last *FLAGS variable, or
17218
# (2) before a word containing "conftest.", or (3) at the end.
17219
# Note that $ac_compile itself does not contain backslashes and begins
17220
# with a dollar sign (not a hyphen), so the echo should work correctly.
17221
# The option is referenced via a variable to avoid confusing sed.
17222
lt_compile=`echo "$ac_compile" | $SED \
17223
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17224
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17225
-e 's:$: $lt_compiler_flag:'`
17226
(eval echo "\"\$as_me:17226: $lt_compile\"" >&5)
17227
(eval "$lt_compile" 2>conftest.err)
17229
cat conftest.err >&5
17230
echo "$as_me:17230: \$? = $ac_status" >&5
17231
if (exit $ac_status) && test -s "$ac_outfile"; then
17232
# The compiler can only warn and ignore the option if not recognized
17233
# So say no if there are warnings other than the usual output.
17234
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17235
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17236
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17237
lt_cv_prog_compiler_rtti_exceptions=yes
17243
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17244
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17246
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17247
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17254
lt_prog_compiler_wl_GCJ=
17255
lt_prog_compiler_pic_GCJ=
17256
lt_prog_compiler_static_GCJ=
17258
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17259
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17261
if test "$GCC" = yes; then
17262
lt_prog_compiler_wl_GCJ='-Wl,'
17263
lt_prog_compiler_static_GCJ='-static'
17267
# All AIX code is PIC.
17268
if test "$host_cpu" = ia64; then
17269
# AIX 5 now supports IA64 processor
17270
lt_prog_compiler_static_GCJ='-Bstatic'
17275
# FIXME: we need at least 68020 code to build shared libraries, but
17276
# adding the `-m68020' flag to GCC prevents building anything better,
17278
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17281
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17282
# PIC is the default for these OSes.
17285
mingw* | cygwin* | pw32* | os2*)
17286
# This hack is so that the source file can tell whether it is being
17287
# built for inclusion in a dll (and should export symbols for example).
17288
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17289
# (--disable-auto-import) libraries
17290
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17293
darwin* | rhapsody*)
17294
# PIC is the default on this platform
17295
# Common symbols not allowed in MH_DYLIB files
17296
lt_prog_compiler_pic_GCJ='-fno-common'
17300
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17301
# Instead, we relocate shared libraries at runtime.
17305
# Just because we use GCC doesn't mean we suddenly get shared libraries
17306
# on systems that don't support them.
17307
lt_prog_compiler_can_build_shared_GCJ=no
17312
if test -d /usr/nec; then
17313
lt_prog_compiler_pic_GCJ=-Kconform_pic
17318
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17319
# not for PA HP-UX.
17325
lt_prog_compiler_pic_GCJ='-fPIC'
17331
lt_prog_compiler_pic_GCJ='-fPIC'
17335
# PORTME Check for flag to pass linker flags through the system compiler.
17338
lt_prog_compiler_wl_GCJ='-Wl,'
17339
if test "$host_cpu" = ia64; then
17340
# AIX 5 now supports IA64 processor
17341
lt_prog_compiler_static_GCJ='-Bstatic'
17343
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17347
# PIC is the default on this platform
17348
# Common symbols not allowed in MH_DYLIB files
17349
case $cc_basename in
17351
lt_prog_compiler_pic_GCJ='-qnocommon'
17352
lt_prog_compiler_wl_GCJ='-Wl,'
17357
mingw* | cygwin* | pw32* | os2*)
17358
# This hack is so that the source file can tell whether it is being
17359
# built for inclusion in a dll (and should export symbols for example).
17360
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17363
hpux9* | hpux10* | hpux11*)
17364
lt_prog_compiler_wl_GCJ='-Wl,'
17365
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17366
# not for PA HP-UX.
17372
lt_prog_compiler_pic_GCJ='+Z'
17375
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17376
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17379
irix5* | irix6* | nonstopux*)
17380
lt_prog_compiler_wl_GCJ='-Wl,'
17381
# PIC (with -KPIC) is the default.
17382
lt_prog_compiler_static_GCJ='-non_shared'
17386
lt_prog_compiler_pic_GCJ='-KPIC'
17387
lt_prog_compiler_static_GCJ='-Bstatic'
17390
linux* | k*bsd*-gnu)
17391
case $cc_basename in
17393
lt_prog_compiler_wl_GCJ='-Wl,'
17394
lt_prog_compiler_pic_GCJ='-KPIC'
17395
lt_prog_compiler_static_GCJ='-static'
17397
pgcc* | pgf77* | pgf90* | pgf95*)
17398
# Portland Group compilers (*not* the Pentium gcc compiler,
17399
# which looks to be a dead project)
17400
lt_prog_compiler_wl_GCJ='-Wl,'
17401
lt_prog_compiler_pic_GCJ='-fpic'
17402
lt_prog_compiler_static_GCJ='-Bstatic'
17405
lt_prog_compiler_wl_GCJ='-Wl,'
17406
# All Alpha code is PIC.
17407
lt_prog_compiler_static_GCJ='-non_shared'
17410
case `$CC -V 2>&1 | sed 5q` in
17413
lt_prog_compiler_pic_GCJ='-KPIC'
17414
lt_prog_compiler_static_GCJ='-Bstatic'
17415
lt_prog_compiler_wl_GCJ='-Wl,'
17418
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17419
lt_prog_compiler_pic_GCJ='-KPIC'
17420
lt_prog_compiler_static_GCJ='-Bstatic'
17421
lt_prog_compiler_wl_GCJ=''
17428
osf3* | osf4* | osf5*)
17429
lt_prog_compiler_wl_GCJ='-Wl,'
17430
# All OSF/1 code is PIC.
17431
lt_prog_compiler_static_GCJ='-non_shared'
17435
lt_prog_compiler_static_GCJ='-non_shared'
17439
lt_prog_compiler_pic_GCJ='-KPIC'
17440
lt_prog_compiler_static_GCJ='-Bstatic'
17441
case $cc_basename in
17442
f77* | f90* | f95*)
17443
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17445
lt_prog_compiler_wl_GCJ='-Wl,';;
17450
lt_prog_compiler_wl_GCJ='-Qoption ld '
17451
lt_prog_compiler_pic_GCJ='-PIC'
17452
lt_prog_compiler_static_GCJ='-Bstatic'
17455
sysv4 | sysv4.2uw2* | sysv4.3*)
17456
lt_prog_compiler_wl_GCJ='-Wl,'
17457
lt_prog_compiler_pic_GCJ='-KPIC'
17458
lt_prog_compiler_static_GCJ='-Bstatic'
17462
if test -d /usr/nec ;then
17463
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17464
lt_prog_compiler_static_GCJ='-Bstatic'
17468
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17469
lt_prog_compiler_wl_GCJ='-Wl,'
17470
lt_prog_compiler_pic_GCJ='-KPIC'
17471
lt_prog_compiler_static_GCJ='-Bstatic'
17475
lt_prog_compiler_wl_GCJ='-Wl,'
17476
lt_prog_compiler_can_build_shared_GCJ=no
17480
lt_prog_compiler_pic_GCJ='-pic'
17481
lt_prog_compiler_static_GCJ='-Bstatic'
17485
lt_prog_compiler_can_build_shared_GCJ=no
17490
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17491
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17494
# Check to make sure the PIC flag actually works.
17496
if test -n "$lt_prog_compiler_pic_GCJ"; then
17498
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17499
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17500
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17501
echo $ECHO_N "(cached) $ECHO_C" >&6
17503
lt_prog_compiler_pic_works_GCJ=no
17504
ac_outfile=conftest.$ac_objext
17505
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17506
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17507
# Insert the option either (1) after the last *FLAGS variable, or
17508
# (2) before a word containing "conftest.", or (3) at the end.
17509
# Note that $ac_compile itself does not contain backslashes and begins
17510
# with a dollar sign (not a hyphen), so the echo should work correctly.
17511
# The option is referenced via a variable to avoid confusing sed.
17512
lt_compile=`echo "$ac_compile" | $SED \
17513
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17514
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515
-e 's:$: $lt_compiler_flag:'`
17516
(eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517
(eval "$lt_compile" 2>conftest.err)
17519
cat conftest.err >&5
17520
echo "$as_me:17520: \$? = $ac_status" >&5
17521
if (exit $ac_status) && test -s "$ac_outfile"; then
17522
# The compiler can only warn and ignore the option if not recognized
17523
# So say no if there are warnings other than the usual output.
17524
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17525
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17526
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17527
lt_prog_compiler_pic_works_GCJ=yes
17533
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17534
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17536
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17537
case $lt_prog_compiler_pic_GCJ in
17539
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17542
lt_prog_compiler_pic_GCJ=
17543
lt_prog_compiler_can_build_shared_GCJ=no
17548
# For platforms which do not support PIC, -DPIC is meaningless:
17550
lt_prog_compiler_pic_GCJ=
17553
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17558
# Check to make sure the static flag actually works.
17560
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17561
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17562
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17563
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17564
echo $ECHO_N "(cached) $ECHO_C" >&6
17566
lt_prog_compiler_static_works_GCJ=no
17567
save_LDFLAGS="$LDFLAGS"
17568
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17569
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17570
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17571
# The linker can only warn and ignore the option if not recognized
17572
# So say no if there are warnings
17573
if test -s conftest.err; then
17574
# Append any errors to the config.log.
17575
cat conftest.err 1>&5
17576
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17577
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17578
if diff conftest.exp conftest.er2 >/dev/null; then
17579
lt_prog_compiler_static_works_GCJ=yes
17582
lt_prog_compiler_static_works_GCJ=yes
17586
LDFLAGS="$save_LDFLAGS"
17589
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17590
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17592
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17595
lt_prog_compiler_static_GCJ=
17599
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17600
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17601
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17602
echo $ECHO_N "(cached) $ECHO_C" >&6
17604
lt_cv_prog_compiler_c_o_GCJ=no
17605
$rm -r conftest 2>/dev/null
17609
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17611
lt_compiler_flag="-o out/conftest2.$ac_objext"
17612
# Insert the option either (1) after the last *FLAGS variable, or
17613
# (2) before a word containing "conftest.", or (3) at the end.
17614
# Note that $ac_compile itself does not contain backslashes and begins
17615
# with a dollar sign (not a hyphen), so the echo should work correctly.
17616
lt_compile=`echo "$ac_compile" | $SED \
17617
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17618
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17619
-e 's:$: $lt_compiler_flag:'`
17620
(eval echo "\"\$as_me:17620: $lt_compile\"" >&5)
17621
(eval "$lt_compile" 2>out/conftest.err)
17623
cat out/conftest.err >&5
17624
echo "$as_me:17624: \$? = $ac_status" >&5
17625
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17627
# The compiler can only warn and ignore the option if not recognized
17628
# So say no if there are warnings
17629
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17630
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17631
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17632
lt_cv_prog_compiler_c_o_GCJ=yes
17637
# SGI C++ compiler will create directory out/ii_files/ for
17638
# template instantiation
17639
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17640
$rm out/* && rmdir out
17646
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17647
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17650
hard_links="nottested"
17651
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17652
# do not overwrite the value of need_locks provided by the user
17653
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17654
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17657
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17659
ln conftest.a conftest.b 2>&5 || hard_links=no
17660
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17661
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17662
echo "${ECHO_T}$hard_links" >&6; }
17663
if test "$hard_links" = no; then
17664
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17665
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17672
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17673
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17676
allow_undefined_flag_GCJ=
17677
enable_shared_with_static_runtimes_GCJ=no
17679
archive_expsym_cmds_GCJ=
17680
old_archive_From_new_cmds_GCJ=
17681
old_archive_from_expsyms_cmds_GCJ=
17682
export_dynamic_flag_spec_GCJ=
17683
whole_archive_flag_spec_GCJ=
17684
thread_safe_flag_spec_GCJ=
17685
hardcode_libdir_flag_spec_GCJ=
17686
hardcode_libdir_flag_spec_ld_GCJ=
17687
hardcode_libdir_separator_GCJ=
17688
hardcode_direct_GCJ=no
17689
hardcode_minus_L_GCJ=no
17690
hardcode_shlibpath_var_GCJ=unsupported
17691
link_all_deplibs_GCJ=unknown
17692
hardcode_automatic_GCJ=no
17694
module_expsym_cmds_GCJ=
17695
always_export_symbols_GCJ=no
17696
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17697
# include_expsyms should be a list of space-separated symbols to be *always*
17698
# included in the symbol list
17699
include_expsyms_GCJ=
17700
# exclude_expsyms can be an extended regexp of symbols to exclude
17701
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17702
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17703
# as well as any symbol that contains `d'.
17704
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17705
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17706
# platforms (ab)use it in PIC code, but their linkers get confused if
17707
# the symbol is explicitly referenced. Since portable code cannot
17708
# rely on this symbol name, it's probably fine to never include it in
17709
# preloaded symbol tables.
17710
extract_expsyms_cmds=
17711
# Just being paranoid about ensuring that cc_basename is set.
17712
for cc_temp in $compiler""; do
17714
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17720
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17723
cygwin* | mingw* | pw32*)
17724
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17725
# When not using gcc, we currently assume that we are using
17726
# Microsoft Visual C++.
17727
if test "$GCC" != yes; then
17732
# we just hope/assume this is gcc and not c89 (= MSVC++)
17741
if test "$with_gnu_ld" = yes; then
17742
# If archive_cmds runs LD, not CC, wlarc should be empty
17745
# Set some defaults for GNU ld with shared library support. These
17746
# are reset later if shared libraries are not supported. Putting them
17747
# here allows them to be overridden if necessary.
17748
runpath_var=LD_RUN_PATH
17749
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17750
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17751
# ancient GNU ld didn't support --whole-archive et. al.
17752
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17753
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17755
whole_archive_flag_spec_GCJ=
17757
supports_anon_versioning=no
17758
case `$LD -v 2>/dev/null` in
17759
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17760
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17761
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17762
*\ 2.11.*) ;; # other 2.11 versions
17763
*) supports_anon_versioning=yes ;;
17766
# See if GNU ld supports shared libraries.
17768
aix3* | aix4* | aix5*)
17769
# On AIX/PPC, the GNU linker is very broken
17770
if test "$host_cpu" != ia64; then
17774
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17775
*** to be unable to reliably create shared libraries on AIX.
17776
*** Therefore, libtool is disabling shared libraries support. If you
17777
*** really care for shared libraries, you may want to modify your PATH
17778
*** so that a non-GNU linker is found, and then restart.
17785
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)'
17786
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17787
hardcode_minus_L_GCJ=yes
17789
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17790
# that the semantics of dynamic libraries on AmigaOS, at least up
17791
# to version 4, is to share data among multiple programs linked
17792
# with the same dynamic library. Since this doesn't match the
17793
# behavior of shared libraries on other platforms, we can't use
17799
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800
allow_undefined_flag_GCJ=unsupported
17801
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17802
# support --undefined. This deserves some investigation. FIXME
17803
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809
cygwin* | mingw* | pw32*)
17810
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17811
# as there is no search path for DLLs.
17812
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813
allow_undefined_flag_GCJ=unsupported
17814
always_export_symbols_GCJ=no
17815
enable_shared_with_static_runtimes_GCJ=yes
17816
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17818
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17819
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17820
# If the export-symbols file already is a .def file (1st line
17821
# is EXPORTS), use it as is; otherwise, prepend...
17822
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17823
cp $export_symbols $output_objdir/$soname.def;
17825
echo EXPORTS > $output_objdir/$soname.def;
17826
cat $export_symbols >> $output_objdir/$soname.def;
17828
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17835
hardcode_direct_GCJ=no
17836
hardcode_shlibpath_var_GCJ=no
17837
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17838
export_dynamic_flag_spec_GCJ='${wl}-E'
17839
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17840
# Instead, shared libraries are loaded at an image base (0x10000000 by
17841
# default) and relocated if they conflict, which is a slow very memory
17842
# consuming and fragmenting process. To avoid this, we pick a random,
17843
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17844
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17845
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'
17846
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'
17849
gnu* | linux* | k*bsd*-gnu)
17850
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17852
case $cc_basename,$host_cpu in
17853
pgcc*) # Portland Group C compiler
17854
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'
17855
tmp_addflag=' $pic_flag'
17857
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17858
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'
17859
tmp_addflag=' $pic_flag -Mnomain' ;;
17860
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17861
tmp_addflag=' -i_dynamic' ;;
17862
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17863
tmp_addflag=' -i_dynamic -nofor_main' ;;
17864
ifc* | ifort*) # Intel Fortran compiler
17865
tmp_addflag=' -nofor_main' ;;
17867
case `$CC -V 2>&1 | sed 5q` in
17868
*Sun\ C*) # Sun C 5.9
17869
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17870
tmp_sharedflag='-G' ;;
17871
*Sun\ F*) # Sun Fortran 8.3
17872
tmp_sharedflag='-G' ;;
17874
tmp_sharedflag='-shared' ;;
17876
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17878
if test $supports_anon_versioning = yes; then
17879
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17880
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17881
$echo "local: *; };" >> $output_objdir/$libname.ver~
17882
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17890
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17891
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17894
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17895
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17900
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17904
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17905
*** create shared libraries on Solaris systems. Therefore, libtool
17906
*** is disabling shared libraries support. We urge you to upgrade GNU
17907
*** binutils to release 2.9.1 or newer. Another option is to modify
17908
*** your PATH or compiler configuration so that the native linker is
17909
*** used, and then restart.
17912
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17913
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17914
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17920
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17921
case `$LD -v 2>&1` in
17922
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17926
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17927
*** reliably create shared libraries on SCO systems. Therefore, libtool
17928
*** is disabling shared libraries support. We urge you to upgrade GNU
17929
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17930
*** your PATH or compiler configuration so that the native linker is
17931
*** used, and then restart.
17936
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17937
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17938
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17939
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17948
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17950
hardcode_direct_GCJ=yes
17951
hardcode_shlibpath_var_GCJ=no
17955
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17956
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17957
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17964
if test "$ld_shlibs_GCJ" = no; then
17966
hardcode_libdir_flag_spec_GCJ=
17967
export_dynamic_flag_spec_GCJ=
17968
whole_archive_flag_spec_GCJ=
17971
# PORTME fill in a description of your system's linker (not GNU ld)
17974
allow_undefined_flag_GCJ=unsupported
17975
always_export_symbols_GCJ=yes
17976
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'
17977
# Note: this linker hardcodes the directories in LIBPATH if there
17978
# are no directories specified by -L.
17979
hardcode_minus_L_GCJ=yes
17980
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17981
# Neither direct hardcoding nor static linking is supported with a
17983
hardcode_direct_GCJ=unsupported
17988
if test "$host_cpu" = ia64; then
17989
# On IA64, the linker does run time linking by default, so we don't
17990
# have to do anything special.
17991
aix_use_runtimelinking=no
17992
exp_sym_flag='-Bexport'
17995
# If we're using GNU nm, then we don't want the "-C" option.
17996
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17997
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17998
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'
18000
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'
18002
aix_use_runtimelinking=no
18004
# Test if we are trying to use run time linking or normal
18005
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18006
# need to do runtime linking.
18007
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18008
for ld_flag in $LDFLAGS; do
18009
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18010
aix_use_runtimelinking=yes
18017
exp_sym_flag='-bexport'
18018
no_entry_flag='-bnoentry'
18021
# When large executables or shared objects are built, AIX ld can
18022
# have problems creating the table of contents. If linking a library
18023
# or program results in "error TOC overflow" add -mminimal-toc to
18024
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18025
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18027
archive_cmds_GCJ=''
18028
hardcode_direct_GCJ=yes
18029
hardcode_libdir_separator_GCJ=':'
18030
link_all_deplibs_GCJ=yes
18032
if test "$GCC" = yes; then
18033
case $host_os in aix4.[012]|aix4.[012].*)
18034
# We only want to do this on AIX 4.2 and lower, the check
18035
# below for broken collect2 doesn't work under 4.3+
18036
collect2name=`${CC} -print-prog-name=collect2`
18037
if test -f "$collect2name" && \
18038
strings "$collect2name" | grep resolve_lib_name >/dev/null
18040
# We have reworked collect2
18043
# We have old collect2
18044
hardcode_direct_GCJ=unsupported
18045
# It fails to find uninstalled libraries when the uninstalled
18046
# path is not listed in the libpath. Setting hardcode_minus_L
18047
# to unsupported forces relinking
18048
hardcode_minus_L_GCJ=yes
18049
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18050
hardcode_libdir_separator_GCJ=
18054
shared_flag='-shared'
18055
if test "$aix_use_runtimelinking" = yes; then
18056
shared_flag="$shared_flag "'${wl}-G'
18060
if test "$host_cpu" = ia64; then
18061
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18062
# chokes on -Wl,-G. The following line is correct:
18065
if test "$aix_use_runtimelinking" = yes; then
18066
shared_flag='${wl}-G'
18068
shared_flag='${wl}-bM:SRE'
18073
# It seems that -bexpall does not export symbols beginning with
18074
# underscore (_), so it is better to generate a list of symbols to export.
18075
always_export_symbols_GCJ=yes
18076
if test "$aix_use_runtimelinking" = yes; then
18077
# Warning - without using the other runtime loading flags (-brtl),
18078
# -berok will link without error, but may produce a broken library.
18079
allow_undefined_flag_GCJ='-berok'
18080
# Determine the default libpath from the value encoded in an empty executable.
18081
cat >conftest.$ac_ext <<_ACEOF
18084
cat confdefs.h >>conftest.$ac_ext
18085
cat >>conftest.$ac_ext <<_ACEOF
18086
/* end confdefs.h. */
18096
rm -f conftest.$ac_objext conftest$ac_exeext
18097
if { (ac_try="$ac_link"
18098
case "(($ac_try" in
18099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100
*) ac_try_echo=$ac_try;;
18102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103
(eval "$ac_link") 2>conftest.er1
18105
grep -v '^ *+' conftest.er1 >conftest.err
18107
cat conftest.err >&5
18108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109
(exit $ac_status); } && {
18110
test -z "$ac_c_werror_flag" ||
18111
test ! -s conftest.err
18112
} && test -s conftest$ac_exeext &&
18113
$as_test_x conftest$ac_exeext; then
18115
lt_aix_libpath_sed='
18116
/Import File Strings/,/^$/ {
18122
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18123
# Check for a 64-bit object if we didn't find anything.
18124
if test -z "$aix_libpath"; then
18125
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18128
echo "$as_me: failed program was:" >&5
18129
sed 's/^/| /' conftest.$ac_ext >&5
18134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18135
conftest$ac_exeext conftest.$ac_ext
18136
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18138
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18139
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"
18141
if test "$host_cpu" = ia64; then
18142
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18143
allow_undefined_flag_GCJ="-z nodefs"
18144
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"
18146
# Determine the default libpath from the value encoded in an empty executable.
18147
cat >conftest.$ac_ext <<_ACEOF
18150
cat confdefs.h >>conftest.$ac_ext
18151
cat >>conftest.$ac_ext <<_ACEOF
18152
/* end confdefs.h. */
18162
rm -f conftest.$ac_objext conftest$ac_exeext
18163
if { (ac_try="$ac_link"
18164
case "(($ac_try" in
18165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166
*) ac_try_echo=$ac_try;;
18168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169
(eval "$ac_link") 2>conftest.er1
18171
grep -v '^ *+' conftest.er1 >conftest.err
18173
cat conftest.err >&5
18174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175
(exit $ac_status); } && {
18176
test -z "$ac_c_werror_flag" ||
18177
test ! -s conftest.err
18178
} && test -s conftest$ac_exeext &&
18179
$as_test_x conftest$ac_exeext; then
18181
lt_aix_libpath_sed='
18182
/Import File Strings/,/^$/ {
18188
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18189
# Check for a 64-bit object if we didn't find anything.
18190
if test -z "$aix_libpath"; then
18191
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18194
echo "$as_me: failed program was:" >&5
18195
sed 's/^/| /' conftest.$ac_ext >&5
18200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18201
conftest$ac_exeext conftest.$ac_ext
18202
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18204
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18205
# Warning - without using the other run time loading flags,
18206
# -berok will link without error, but may produce a broken library.
18207
no_undefined_flag_GCJ=' ${wl}-bernotok'
18208
allow_undefined_flag_GCJ=' ${wl}-berok'
18209
# Exported symbols can be pulled into shared objects from archives
18210
whole_archive_flag_spec_GCJ='$convenience'
18211
archive_cmds_need_lc_GCJ=yes
18212
# This is similar to how AIX traditionally builds its shared libraries.
18213
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'
18219
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)'
18220
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18221
hardcode_minus_L_GCJ=yes
18222
# see comment about different semantics on the GNU ld section
18227
export_dynamic_flag_spec_GCJ=-rdynamic
18230
cygwin* | mingw* | pw32*)
18231
# When not using gcc, we currently assume that we are using
18232
# Microsoft Visual C++.
18233
# hardcode_libdir_flag_spec is actually meaningless, as there is
18234
# no search path for DLLs.
18235
hardcode_libdir_flag_spec_GCJ=' '
18236
allow_undefined_flag_GCJ=unsupported
18237
# Tell ltmain to make .lib files, not .a files.
18239
# Tell ltmain to make .dll files, not .so files.
18241
# FIXME: Setting linknames here is a bad hack.
18242
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18243
# The linker will automatically build a .lib file if we build a DLL.
18244
old_archive_From_new_cmds_GCJ='true'
18245
# FIXME: Should let the user specify the lib program.
18246
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18247
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18248
enable_shared_with_static_runtimes_GCJ=yes
18251
darwin* | rhapsody*)
18253
rhapsody* | darwin1.[012])
18254
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18257
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18258
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18260
case ${MACOSX_DEPLOYMENT_TARGET} in
18262
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18265
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18271
archive_cmds_need_lc_GCJ=no
18272
hardcode_direct_GCJ=no
18273
hardcode_automatic_GCJ=yes
18274
hardcode_shlibpath_var_GCJ=unsupported
18275
whole_archive_flag_spec_GCJ=''
18276
link_all_deplibs_GCJ=yes
18277
if test "$GCC" = yes ; then
18278
output_verbose_link_cmd='echo'
18279
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18280
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18281
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18282
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}'
18283
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}'
18285
case $cc_basename in
18287
output_verbose_link_cmd='echo'
18288
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18289
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18290
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18291
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18292
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}'
18302
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304
hardcode_shlibpath_var_GCJ=no
18311
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18312
# support. Future versions do this automatically, but an explicit c++rt0.o
18313
# does not break anything, and helps significantly (at the cost of a little
18316
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18317
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18318
hardcode_direct_GCJ=yes
18319
hardcode_shlibpath_var_GCJ=no
18322
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18324
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18325
hardcode_direct_GCJ=yes
18326
hardcode_minus_L_GCJ=yes
18327
hardcode_shlibpath_var_GCJ=no
18330
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18331
freebsd* | dragonfly*)
18332
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18333
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18334
hardcode_direct_GCJ=yes
18335
hardcode_shlibpath_var_GCJ=no
18339
if test "$GCC" = yes; then
18340
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'
18342
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'
18344
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18345
hardcode_libdir_separator_GCJ=:
18346
hardcode_direct_GCJ=yes
18348
# hardcode_minus_L: Not really in the search PATH,
18349
# but as the default location of the library.
18350
hardcode_minus_L_GCJ=yes
18351
export_dynamic_flag_spec_GCJ='${wl}-E'
18355
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18356
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18358
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18360
if test "$with_gnu_ld" = no; then
18361
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18362
hardcode_libdir_separator_GCJ=:
18364
hardcode_direct_GCJ=yes
18365
export_dynamic_flag_spec_GCJ='${wl}-E'
18367
# hardcode_minus_L: Not really in the search PATH,
18368
# but as the default location of the library.
18369
hardcode_minus_L_GCJ=yes
18374
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18377
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18380
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18383
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18389
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18395
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18399
if test "$with_gnu_ld" = no; then
18400
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18401
hardcode_libdir_separator_GCJ=:
18405
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18406
hardcode_direct_GCJ=no
18407
hardcode_shlibpath_var_GCJ=no
18410
hardcode_direct_GCJ=yes
18411
export_dynamic_flag_spec_GCJ='${wl}-E'
18413
# hardcode_minus_L: Not really in the search PATH,
18414
# but as the default location of the library.
18415
hardcode_minus_L_GCJ=yes
18421
irix5* | irix6* | nonstopux*)
18422
if test "$GCC" = yes; then
18423
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'
18425
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'
18426
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18428
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18429
hardcode_libdir_separator_GCJ=:
18430
link_all_deplibs_GCJ=yes
18434
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18435
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18437
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18439
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18440
hardcode_direct_GCJ=yes
18441
hardcode_shlibpath_var_GCJ=no
18445
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18446
hardcode_direct_GCJ=yes
18447
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18448
hardcode_libdir_separator_GCJ=:
18449
hardcode_shlibpath_var_GCJ=no
18453
if test -f /usr/libexec/ld.so; then
18454
hardcode_direct_GCJ=yes
18455
hardcode_shlibpath_var_GCJ=no
18456
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18457
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18458
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18459
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18460
export_dynamic_flag_spec_GCJ='${wl}-E'
18463
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18464
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18465
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18468
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18469
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18479
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480
hardcode_minus_L_GCJ=yes
18481
allow_undefined_flag_GCJ=unsupported
18482
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'
18483
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18487
if test "$GCC" = yes; then
18488
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18489
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'
18491
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18492
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'
18494
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18495
hardcode_libdir_separator_GCJ=:
18498
osf4* | osf5*) # as osf3* with the addition of -msym flag
18499
if test "$GCC" = yes; then
18500
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18501
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'
18502
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18504
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18505
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'
18506
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~
18507
$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'
18509
# Both c and cxx compiler support -rpath directly
18510
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18512
hardcode_libdir_separator_GCJ=:
18516
no_undefined_flag_GCJ=' -z text'
18517
if test "$GCC" = yes; then
18519
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18521
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18524
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18525
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18526
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18528
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18529
hardcode_shlibpath_var_GCJ=no
18531
solaris2.[0-5] | solaris2.[0-5].*) ;;
18533
# The compiler driver will combine and reorder linker options,
18534
# but understands `-z linker_flag'. GCC discards it without `$wl',
18535
# but is careful enough not to reorder.
18536
# Supported since Solaris 2.6 (maybe 2.5.1?)
18537
if test "$GCC" = yes; then
18538
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18540
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18544
link_all_deplibs_GCJ=yes
18548
if test "x$host_vendor" = xsequent; then
18549
# Use $CC to link under sequent, because it throws in some extra .o
18550
# files that make .init and .fini sections work.
18551
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18553
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18555
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18556
hardcode_direct_GCJ=yes
18557
hardcode_minus_L_GCJ=yes
18558
hardcode_shlibpath_var_GCJ=no
18562
case $host_vendor in
18564
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18565
hardcode_direct_GCJ=yes # is this really true???
18568
## LD is ld it makes a PLAMLIB
18569
## CC just makes a GrossModule.
18570
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18571
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18572
hardcode_direct_GCJ=no
18575
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18579
runpath_var='LD_RUN_PATH'
18580
hardcode_shlibpath_var_GCJ=no
18584
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18585
hardcode_shlibpath_var_GCJ=no
18586
export_dynamic_flag_spec_GCJ='-Bexport'
18590
if test -d /usr/nec; then
18591
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18592
hardcode_shlibpath_var_GCJ=no
18593
runpath_var=LD_RUN_PATH
18594
hardcode_runpath_var=yes
18599
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18600
no_undefined_flag_GCJ='${wl}-z,text'
18601
archive_cmds_need_lc_GCJ=no
18602
hardcode_shlibpath_var_GCJ=no
18603
runpath_var='LD_RUN_PATH'
18605
if test "$GCC" = yes; then
18606
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18607
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18610
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18614
sysv5* | sco3.2v5* | sco5v6*)
18615
# Note: We can NOT use -z defs as we might desire, because we do not
18616
# link with -lc, and that would cause any symbols used from libc to
18617
# always be unresolved, which means just about no library would
18618
# ever link correctly. If we're not using GNU ld we use -z text
18619
# though, which does catch some bad symbols but isn't as heavy-handed
18621
no_undefined_flag_GCJ='${wl}-z,text'
18622
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18623
archive_cmds_need_lc_GCJ=no
18624
hardcode_shlibpath_var_GCJ=no
18625
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18626
hardcode_libdir_separator_GCJ=':'
18627
link_all_deplibs_GCJ=yes
18628
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18629
runpath_var='LD_RUN_PATH'
18631
if test "$GCC" = yes; then
18632
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18633
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18635
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18636
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18641
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18643
hardcode_shlibpath_var_GCJ=no
18652
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18653
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18654
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18657
# Do we need to explicitly link libc?
18659
case "x$archive_cmds_need_lc_GCJ" in
18661
# Assume -lc should be added
18662
archive_cmds_need_lc_GCJ=yes
18664
if test "$enable_shared" = yes && test "$GCC" = yes; then
18665
case $archive_cmds_GCJ in
18667
# FIXME: we may have to deal with multi-command sequences.
18670
# Test whether the compiler implicitly links with -lc since on some
18671
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18672
# to ld, don't add -lc before -lgcc.
18673
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18674
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18676
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679
(eval $ac_compile) 2>&5
18681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682
(exit $ac_status); } 2>conftest.err; then
18685
libobjs=conftest.$ac_objext
18687
wl=$lt_prog_compiler_wl_GCJ
18688
pic_flag=$lt_prog_compiler_pic_GCJ
18694
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18695
allow_undefined_flag_GCJ=
18696
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18697
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700
(exit $ac_status); }
18702
archive_cmds_need_lc_GCJ=no
18704
archive_cmds_need_lc_GCJ=yes
18706
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18708
cat conftest.err 1>&5
18711
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18712
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18719
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18720
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18721
library_names_spec=
18722
libname_spec='lib$name'
18726
postuninstall_cmds=
18730
shlibpath_overrides_runpath=unknown
18732
dynamic_linker="$host_os ld.so"
18733
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18735
need_lib_prefix=unknown
18736
hardcode_into_libs=no
18738
# when you set need_version to no, make sure it does not cause -set_version
18739
# flags to be left without arguments
18740
need_version=unknown
18745
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18746
shlibpath_var=LIBPATH
18748
# AIX 3 has no versioning support, so we append a major version to the name.
18749
soname_spec='${libname}${release}${shared_ext}$major'
18756
hardcode_into_libs=yes
18757
if test "$host_cpu" = ia64; then
18758
# AIX 5 supports IA64
18759
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18760
shlibpath_var=LD_LIBRARY_PATH
18762
# With GCC up to 2.95.x, collect2 would create an import file
18763
# for dependence libraries. The import file would start with
18764
# the line `#! .'. This would cause the generated library to
18765
# depend on `.', always an invalid library. This was fixed in
18766
# development snapshots of GCC prior to 3.0.
18768
aix4 | aix4.[01] | aix4.[01].*)
18769
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18771
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18774
can_build_shared=no
18778
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18779
# soname into executable. Probably we can add versioning support to
18780
# collect2, so additional links can be useful in future.
18781
if test "$aix_use_runtimelinking" = yes; then
18782
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18783
# instead of lib<name>.a to let people know that these are not
18784
# typical AIX shared libraries.
18785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787
# We preserve .a as extension for shared libraries through AIX4.2
18788
# and later when we are not doing run time linking.
18789
library_names_spec='${libname}${release}.a $libname.a'
18790
soname_spec='${libname}${release}${shared_ext}$major'
18792
shlibpath_var=LIBPATH
18797
library_names_spec='$libname.ixlibrary $libname.a'
18798
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18799
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'
18803
library_names_spec='${libname}${shared_ext}'
18804
dynamic_linker="$host_os ld.so"
18805
shlibpath_var=LIBRARY_PATH
18811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
soname_spec='${libname}${release}${shared_ext}$major'
18813
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18814
shlibpath_var=LD_LIBRARY_PATH
18815
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18816
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18817
# the default ld.so.conf also contains /usr/contrib/lib and
18818
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18819
# libtool to hard-code these into programs
18822
cygwin* | mingw* | pw32*)
18823
version_type=windows
18828
case $GCC,$host_os in
18829
yes,cygwin* | yes,mingw* | yes,pw32*)
18830
library_names_spec='$libname.dll.a'
18831
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18832
postinstall_cmds='base_file=`basename \${file}`~
18833
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18834
dldir=$destdir/`dirname \$dlpath`~
18835
test -d \$dldir || mkdir -p \$dldir~
18836
$install_prog $dir/$dlname \$dldir/$dlname~
18837
chmod a+x \$dldir/$dlname'
18838
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18839
dlpath=$dir/\$dldll~
18841
shlibpath_overrides_runpath=yes
18845
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18846
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18847
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18850
# MinGW DLLs use traditional 'lib' prefix
18851
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18852
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18853
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18854
# It is most probably a Windows format PATH printed by
18855
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18856
# path with ; separators, and with drive letters. We can handle the
18857
# drive letters (cygwin fileutils understands them), so leave them,
18858
# especially as we might pass files found there to a mingw objdump,
18859
# which wouldn't understand a cygwinified path. Ahh.
18860
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18862
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18866
# pw32 DLLs use 'pw' prefix rather than 'lib'
18867
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18873
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18876
dynamic_linker='Win32 ld.exe'
18877
# FIXME: first we should search . and the directory the executable is in
18881
darwin* | rhapsody*)
18882
dynamic_linker="$host_os dyld"
18883
version_type=darwin
18886
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18887
soname_spec='${libname}${release}${major}$shared_ext'
18888
shlibpath_overrides_runpath=yes
18889
shlibpath_var=DYLD_LIBRARY_PATH
18890
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18892
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18900
soname_spec='${libname}${release}${shared_ext}$major'
18901
shlibpath_var=LD_LIBRARY_PATH
18908
freebsd* | dragonfly*)
18909
# DragonFly does not have aout. When/if they implement a new
18910
# versioning mechanism, adjust this.
18911
if test -x /usr/bin/objformat; then
18912
objformat=`/usr/bin/objformat`
18915
freebsd[123]*) objformat=aout ;;
18916
*) objformat=elf ;;
18919
version_type=freebsd-$objformat
18920
case $version_type in
18922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18927
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18931
shlibpath_var=LD_LIBRARY_PATH
18934
shlibpath_overrides_runpath=yes
18936
freebsd3.[01]* | freebsdelf3.[01]*)
18937
shlibpath_overrides_runpath=yes
18938
hardcode_into_libs=yes
18940
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18941
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18942
shlibpath_overrides_runpath=no
18943
hardcode_into_libs=yes
18945
*) # from 4.6 on, and DragonFly
18946
shlibpath_overrides_runpath=yes
18947
hardcode_into_libs=yes
18956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18957
soname_spec='${libname}${release}${shared_ext}$major'
18958
shlibpath_var=LD_LIBRARY_PATH
18959
hardcode_into_libs=yes
18962
hpux9* | hpux10* | hpux11*)
18963
# Give a soname corresponding to the major version so that dld.sl refuses to
18964
# link against other versions.
18971
hardcode_into_libs=yes
18972
dynamic_linker="$host_os dld.so"
18973
shlibpath_var=LD_LIBRARY_PATH
18974
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18976
soname_spec='${libname}${release}${shared_ext}$major'
18977
if test "X$HPUX_IA64_MODE" = X32; then
18978
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18980
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18982
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18986
hardcode_into_libs=yes
18987
dynamic_linker="$host_os dld.sl"
18988
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18989
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991
soname_spec='${libname}${release}${shared_ext}$major'
18992
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18993
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18997
dynamic_linker="$host_os dld.sl"
18998
shlibpath_var=SHLIB_PATH
18999
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001
soname_spec='${libname}${release}${shared_ext}$major'
19004
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19005
postinstall_cmds='chmod 555 $lib'
19012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19013
soname_spec='${libname}${release}${shared_ext}$major'
19014
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19015
shlibpath_var=LD_LIBRARY_PATH
19016
shlibpath_overrides_runpath=no
19017
hardcode_into_libs=yes
19020
irix5* | irix6* | nonstopux*)
19022
nonstopux*) version_type=nonstopux ;;
19024
if test "$lt_cv_prog_gnu_ld" = yes; then
19032
soname_spec='${libname}${release}${shared_ext}$major'
19033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19035
irix5* | nonstopux*)
19036
libsuff= shlibsuff=
19039
case $LD in # libtool.m4 will add one of these switches to LD
19040
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19041
libsuff= shlibsuff= libmagic=32-bit;;
19042
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19043
libsuff=32 shlibsuff=N32 libmagic=N32;;
19044
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19045
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19046
*) libsuff= shlibsuff= libmagic=never-match;;
19050
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19051
shlibpath_overrides_runpath=no
19052
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19053
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19054
hardcode_into_libs=yes
19057
# No shared lib support for Linux oldld, aout, or coff.
19058
linux*oldld* | linux*aout* | linux*coff*)
19062
# This must be Linux ELF.
19063
linux* | k*bsd*-gnu)
19067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19068
soname_spec='${libname}${release}${shared_ext}$major'
19069
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19070
shlibpath_var=LD_LIBRARY_PATH
19071
shlibpath_overrides_runpath=no
19072
# This implies no fast_install, which is unacceptable.
19073
# Some rework will be needed to allow for fast_install
19074
# before this can be enabled.
19075
hardcode_into_libs=yes
19076
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19077
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19079
# Append ld.so.conf contents to the search path
19080
if test -f /etc/ld.so.conf; then
19081
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19082
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19085
# We used to test for /lib/ld.so.1 and disable shared libraries on
19086
# powerpc, because MkLinux only supported shared libraries with the
19087
# GNU dynamic linker. Since this was broken with cross compilers,
19088
# most powerpc-linux boxes support dynamic linking these days and
19089
# people can always --disable-shared, the test was removed, and we
19090
# assume the GNU/Linux dynamic linker is in use.
19091
dynamic_linker='GNU/Linux ld.so'
19098
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19100
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19101
dynamic_linker='NetBSD (a.out) ld.so'
19103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19104
soname_spec='${libname}${release}${shared_ext}$major'
19105
dynamic_linker='NetBSD ld.elf_so'
19107
shlibpath_var=LD_LIBRARY_PATH
19108
shlibpath_overrides_runpath=yes
19109
hardcode_into_libs=yes
19114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115
shlibpath_var=LD_LIBRARY_PATH
19116
shlibpath_overrides_runpath=yes
19123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19124
soname_spec='${libname}${release}${shared_ext}$major'
19125
shlibpath_var=LD_LIBRARY_PATH
19126
shlibpath_overrides_runpath=yes
19131
sys_lib_dlsearch_path_spec="/usr/lib"
19133
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19135
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19136
*) need_version=no ;;
19138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19139
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19140
shlibpath_var=LD_LIBRARY_PATH
19141
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19143
openbsd2.[89] | openbsd2.[89].*)
19144
shlibpath_overrides_runpath=no
19147
shlibpath_overrides_runpath=yes
19151
shlibpath_overrides_runpath=yes
19156
libname_spec='$name'
19159
library_names_spec='$libname${shared_ext} $libname.a'
19160
dynamic_linker='OS/2 ld.exe'
19161
shlibpath_var=LIBPATH
19164
osf3* | osf4* | osf5*)
19168
soname_spec='${libname}${release}${shared_ext}$major'
19169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19170
shlibpath_var=LD_LIBRARY_PATH
19171
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19172
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19184
soname_spec='${libname}${release}${shared_ext}$major'
19185
shlibpath_var=LD_LIBRARY_PATH
19186
shlibpath_overrides_runpath=yes
19187
hardcode_into_libs=yes
19188
# ldd complains unless libraries are executable
19189
postinstall_cmds='chmod +x $lib'
19194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19195
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19196
shlibpath_var=LD_LIBRARY_PATH
19197
shlibpath_overrides_runpath=yes
19198
if test "$with_gnu_ld" = yes; then
19206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19207
soname_spec='${libname}${release}${shared_ext}$major'
19208
shlibpath_var=LD_LIBRARY_PATH
19209
case $host_vendor in
19211
shlibpath_overrides_runpath=no
19213
export_dynamic_flag_spec='${wl}-Blargedynsym'
19214
runpath_var=LD_RUN_PATH
19222
shlibpath_overrides_runpath=no
19223
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19229
if test -d /usr/nec ;then
19231
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19232
soname_spec='$libname${shared_ext}.$major'
19233
shlibpath_var=LD_LIBRARY_PATH
19237
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19238
version_type=freebsd-elf
19241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19242
soname_spec='${libname}${release}${shared_ext}$major'
19243
shlibpath_var=LD_LIBRARY_PATH
19244
hardcode_into_libs=yes
19245
if test "$with_gnu_ld" = yes; then
19246
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19247
shlibpath_overrides_runpath=no
19249
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19250
shlibpath_overrides_runpath=yes
19253
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19257
sys_lib_dlsearch_path_spec='/usr/lib'
19262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19263
soname_spec='${libname}${release}${shared_ext}$major'
19264
shlibpath_var=LD_LIBRARY_PATH
19271
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19272
echo "${ECHO_T}$dynamic_linker" >&6; }
19273
test "$dynamic_linker" = no && can_build_shared=no
19275
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19276
if test "$GCC" = yes; then
19277
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19280
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19281
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19282
hardcode_action_GCJ=
19283
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19284
test -n "$runpath_var_GCJ" || \
19285
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19287
# We can hardcode non-existant directories.
19288
if test "$hardcode_direct_GCJ" != no &&
19289
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19290
# have to relink, otherwise we might link with an installed library
19291
# when we should be linking with a yet-to-be-installed one
19292
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19293
test "$hardcode_minus_L_GCJ" != no; then
19294
# Linking always hardcodes the temporary library directory.
19295
hardcode_action_GCJ=relink
19297
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19298
hardcode_action_GCJ=immediate
19301
# We cannot hardcode anything, or else we can only hardcode existing
19303
hardcode_action_GCJ=unsupported
19305
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19306
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19308
if test "$hardcode_action_GCJ" = relink; then
19309
# Fast installation is not supported
19310
enable_fast_install=no
19311
elif test "$shlibpath_overrides_runpath" = yes ||
19312
test "$enable_shared" = no; then
19313
# Fast installation is not necessary
19314
enable_fast_install=needless
19318
# The else clause should only fire when bootstrapping the
19319
# libtool distribution, otherwise you forgot to ship ltmain.sh
19320
# with your package, and you will get complaints that there are
19321
# no rules to generate ltmain.sh.
19322
if test -f "$ltmain"; then
19323
# See if we are running on zsh, and set the options which allow our commands through
19324
# without removal of \ escapes.
19325
if test -n "${ZSH_VERSION+set}" ; then
19326
setopt NO_GLOB_SUBST
19328
# Now quote all the things that may contain metacharacters while being
19329
# careful not to overquote the AC_SUBSTed values. We take copies of the
19330
# variables and quote the copies for generation of the libtool script.
19331
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19333
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19334
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19335
deplibs_check_method reload_flag reload_cmds need_locks \
19336
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19337
lt_cv_sys_global_symbol_to_c_name_address \
19338
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19339
old_postinstall_cmds old_postuninstall_cmds \
19343
lt_prog_compiler_wl_GCJ \
19344
lt_prog_compiler_pic_GCJ \
19345
lt_prog_compiler_static_GCJ \
19346
lt_prog_compiler_no_builtin_flag_GCJ \
19347
export_dynamic_flag_spec_GCJ \
19348
thread_safe_flag_spec_GCJ \
19349
whole_archive_flag_spec_GCJ \
19350
enable_shared_with_static_runtimes_GCJ \
19351
old_archive_cmds_GCJ \
19352
old_archive_from_new_cmds_GCJ \
19353
predep_objects_GCJ \
19354
postdep_objects_GCJ \
19357
compiler_lib_search_path_GCJ \
19359
archive_expsym_cmds_GCJ \
19360
postinstall_cmds_GCJ \
19361
postuninstall_cmds_GCJ \
19362
old_archive_from_expsyms_cmds_GCJ \
19363
allow_undefined_flag_GCJ \
19364
no_undefined_flag_GCJ \
19365
export_symbols_cmds_GCJ \
19366
hardcode_libdir_flag_spec_GCJ \
19367
hardcode_libdir_flag_spec_ld_GCJ \
19368
hardcode_libdir_separator_GCJ \
19369
hardcode_automatic_GCJ \
19371
module_expsym_cmds_GCJ \
19372
lt_cv_prog_compiler_c_o_GCJ \
19373
fix_srcfile_path_GCJ \
19374
exclude_expsyms_GCJ \
19375
include_expsyms_GCJ; do
19378
old_archive_cmds_GCJ | \
19379
old_archive_from_new_cmds_GCJ | \
19380
archive_cmds_GCJ | \
19381
archive_expsym_cmds_GCJ | \
19382
module_cmds_GCJ | \
19383
module_expsym_cmds_GCJ | \
19384
old_archive_from_expsyms_cmds_GCJ | \
19385
export_symbols_cmds_GCJ | \
19386
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19387
postinstall_cmds | postuninstall_cmds | \
19388
old_postinstall_cmds | old_postuninstall_cmds | \
19389
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19390
# Double-quote double-evaled strings.
19391
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19394
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19400
*'\$0 --fallback-echo"')
19401
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19407
cat <<__EOF__ >> "$cfgfile"
19408
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19410
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19412
# Shell to use when invoking shell scripts.
19415
# Whether or not to build shared libraries.
19416
build_libtool_libs=$enable_shared
19418
# Whether or not to build static libraries.
19419
build_old_libs=$enable_static
19421
# Whether or not to add -lc for building shared libraries.
19422
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19424
# Whether or not to disallow shared libs when runtime libs are static
19425
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19427
# Whether or not to optimize for fast installation.
19428
fast_install=$enable_fast_install
19431
host_alias=$host_alias
19435
# The build system.
19436
build_alias=$build_alias
19440
# An echo program that does not interpret backslashes.
19445
AR_FLAGS=$lt_AR_FLAGS
19450
# LTCC compiler flags.
19451
LTCFLAGS=$lt_LTCFLAGS
19453
# A language-specific compiler.
19454
CC=$lt_compiler_GCJ
19456
# Is the compiler the GNU C compiler?
19462
# The linker used to build libraries.
19465
# Whether we need hard or soft links.
19468
# A BSD-compatible nm program.
19471
# A symbol stripping program
19474
# Used to examine libraries when file_magic_cmd begins "file"
19475
MAGIC_CMD=$MAGIC_CMD
19477
# Used on cygwin: DLL creation program.
19480
# Used on cygwin: object dumper.
19483
# Used on cygwin: assembler.
19486
# The name of the directory that contains temporary libtool files.
19489
# How to create reloadable object files.
19490
reload_flag=$lt_reload_flag
19491
reload_cmds=$lt_reload_cmds
19493
# How to pass a linker flag through the compiler.
19494
wl=$lt_lt_prog_compiler_wl_GCJ
19496
# Object file suffix (normally "o").
19497
objext="$ac_objext"
19499
# Old archive suffix (normally "a").
19502
# Shared library suffix (normally ".so").
19503
shrext_cmds='$shrext_cmds'
19505
# Executable file suffix (normally "").
19508
# Additional compiler flags for building library objects.
19509
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19512
# What is the maximum length of a command?
19513
max_cmd_len=$lt_cv_sys_max_cmd_len
19515
# Does compiler simultaneously support -c and -o options?
19516
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19518
# Must we lock files when doing compilation?
19519
need_locks=$lt_need_locks
19521
# Do we need the lib prefix for modules?
19522
need_lib_prefix=$need_lib_prefix
19524
# Do we need a version for libraries?
19525
need_version=$need_version
19527
# Whether dlopen is supported.
19528
dlopen_support=$enable_dlopen
19530
# Whether dlopen of programs is supported.
19531
dlopen_self=$enable_dlopen_self
19533
# Whether dlopen of statically linked programs is supported.
19534
dlopen_self_static=$enable_dlopen_self_static
19536
# Compiler flag to prevent dynamic linking.
19537
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19539
# Compiler flag to turn off builtin functions.
19540
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19542
# Compiler flag to allow reflexive dlopens.
19543
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19545
# Compiler flag to generate shared objects directly from archives.
19546
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19548
# Compiler flag to generate thread-safe objects.
19549
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19551
# Library versioning type.
19552
version_type=$version_type
19554
# Format of library name prefix.
19555
libname_spec=$lt_libname_spec
19557
# List of archive names. First name is the real one, the rest are links.
19558
# The last name is the one that the linker finds with -lNAME.
19559
library_names_spec=$lt_library_names_spec
19561
# The coded name of the library, if different from the real name.
19562
soname_spec=$lt_soname_spec
19564
# Commands used to build and install an old-style archive.
19566
old_archive_cmds=$lt_old_archive_cmds_GCJ
19567
old_postinstall_cmds=$lt_old_postinstall_cmds
19568
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19570
# Create an old-style archive from a shared archive.
19571
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19573
# Create a temporary old-style archive to link instead of a shared archive.
19574
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19576
# Commands used to build and install a shared archive.
19577
archive_cmds=$lt_archive_cmds_GCJ
19578
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19579
postinstall_cmds=$lt_postinstall_cmds
19580
postuninstall_cmds=$lt_postuninstall_cmds
19582
# Commands used to build a loadable module (assumed same as above if empty)
19583
module_cmds=$lt_module_cmds_GCJ
19584
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19586
# Commands to strip libraries.
19587
old_striplib=$lt_old_striplib
19588
striplib=$lt_striplib
19590
# Dependencies to place before the objects being linked to create a
19592
predep_objects=$lt_predep_objects_GCJ
19594
# Dependencies to place after the objects being linked to create a
19596
postdep_objects=$lt_postdep_objects_GCJ
19598
# Dependencies to place before the objects being linked to create a
19600
predeps=$lt_predeps_GCJ
19602
# Dependencies to place after the objects being linked to create a
19604
postdeps=$lt_postdeps_GCJ
19606
# The library search path used internally by the compiler when linking
19607
# a shared library.
19608
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19610
# Method to check whether dependent libraries are shared objects.
19611
deplibs_check_method=$lt_deplibs_check_method
19613
# Command to use when deplibs_check_method == file_magic.
19614
file_magic_cmd=$lt_file_magic_cmd
19616
# Flag that allows shared libraries with undefined symbols to be built.
19617
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19619
# Flag that forces no undefined symbols.
19620
no_undefined_flag=$lt_no_undefined_flag_GCJ
19622
# Commands used to finish a libtool library installation in a directory.
19623
finish_cmds=$lt_finish_cmds
19625
# Same as above, but a single script fragment to be evaled but not shown.
19626
finish_eval=$lt_finish_eval
19628
# Take the output of nm and produce a listing of raw symbols and C names.
19629
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19631
# Transform the output of nm in a proper C declaration
19632
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19634
# Transform the output of nm in a C name address pair
19635
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19637
# This is the shared library runtime path variable.
19638
runpath_var=$runpath_var
19640
# This is the shared library path variable.
19641
shlibpath_var=$shlibpath_var
19643
# Is shlibpath searched before the hard-coded library search path?
19644
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19646
# How to hardcode a shared library path into an executable.
19647
hardcode_action=$hardcode_action_GCJ
19649
# Whether we should hardcode library paths into libraries.
19650
hardcode_into_libs=$hardcode_into_libs
19652
# Flag to hardcode \$libdir into a binary during linking.
19653
# This must work even if \$libdir does not exist.
19654
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19656
# If ld is used when linking, flag to hardcode \$libdir into
19657
# a binary during linking. This must work even if \$libdir does
19659
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19661
# Whether we need a single -rpath flag with a separated argument.
19662
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19664
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19665
# resulting binary.
19666
hardcode_direct=$hardcode_direct_GCJ
19668
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19669
# resulting binary.
19670
hardcode_minus_L=$hardcode_minus_L_GCJ
19672
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19673
# the resulting binary.
19674
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19676
# Set to yes if building a shared library automatically hardcodes DIR into the library
19677
# and all subsequent libraries and executables linked against it.
19678
hardcode_automatic=$hardcode_automatic_GCJ
19680
# Variables whose values should be saved in libtool wrapper scripts and
19681
# restored at relink time.
19682
variables_saved_for_relink="$variables_saved_for_relink"
19684
# Whether libtool must link a program against all its dependency libraries.
19685
link_all_deplibs=$link_all_deplibs_GCJ
19687
# Compile-time system search path for libraries
19688
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19690
# Run-time system search path for libraries
19691
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19693
# Fix the shell variable \$srcfile for the compiler.
19694
fix_srcfile_path=$lt_fix_srcfile_path
19696
# Set to yes if exported symbols are required.
19697
always_export_symbols=$always_export_symbols_GCJ
19699
# The commands to list exported symbols.
19700
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19702
# The commands to extract the exported symbol list from a shared archive.
19703
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19705
# Symbols that should not be listed in the preloaded symbols.
19706
exclude_expsyms=$lt_exclude_expsyms_GCJ
19708
# Symbols that must always be exported.
19709
include_expsyms=$lt_include_expsyms_GCJ
19711
# ### END LIBTOOL TAG CONFIG: $tagname
19717
# If there is no Makefile yet, we rely on a make rule to execute
19718
# `config.status --recheck' to rerun these tests and create the
19719
# libtool script then.
19720
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19721
if test -f "$ltmain_in"; then
19722
test -f Makefile && make "$ltmain"
19728
ac_cpp='$CPP $CPPFLAGS'
19729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
# Source file extension for RC test sources.
19746
# Object file extension for compiled RC test sources.
19750
# Code to be used in simple compile tests
19751
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19753
# Code to be used in simple link tests
19754
lt_simple_link_test_code="$lt_simple_compile_test_code"
19756
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19758
# If no C compiler was specified, use CC.
19761
# If no C compiler flags were specified, use CFLAGS.
19762
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19764
# Allow CC to be a program name with arguments.
19768
# save warnings/boilerplate of simple test code
19769
ac_outfile=conftest.$ac_objext
19770
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19771
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19772
_lt_compiler_boilerplate=`cat conftest.err`
19775
ac_outfile=conftest.$ac_objext
19776
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19777
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19778
_lt_linker_boilerplate=`cat conftest.err`
19782
# Allow CC to be a program name with arguments.
19787
for cc_temp in $compiler""; do
19789
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19790
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19795
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19797
lt_cv_prog_compiler_c_o_RC=yes
19799
# The else clause should only fire when bootstrapping the
19800
# libtool distribution, otherwise you forgot to ship ltmain.sh
19801
# with your package, and you will get complaints that there are
19802
# no rules to generate ltmain.sh.
19803
if test -f "$ltmain"; then
19804
# See if we are running on zsh, and set the options which allow our commands through
19805
# without removal of \ escapes.
19806
if test -n "${ZSH_VERSION+set}" ; then
19807
setopt NO_GLOB_SUBST
19809
# Now quote all the things that may contain metacharacters while being
19810
# careful not to overquote the AC_SUBSTed values. We take copies of the
19811
# variables and quote the copies for generation of the libtool script.
19812
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19814
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19815
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19816
deplibs_check_method reload_flag reload_cmds need_locks \
19817
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19818
lt_cv_sys_global_symbol_to_c_name_address \
19819
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19820
old_postinstall_cmds old_postuninstall_cmds \
19824
lt_prog_compiler_wl_RC \
19825
lt_prog_compiler_pic_RC \
19826
lt_prog_compiler_static_RC \
19827
lt_prog_compiler_no_builtin_flag_RC \
19828
export_dynamic_flag_spec_RC \
19829
thread_safe_flag_spec_RC \
19830
whole_archive_flag_spec_RC \
19831
enable_shared_with_static_runtimes_RC \
19832
old_archive_cmds_RC \
19833
old_archive_from_new_cmds_RC \
19834
predep_objects_RC \
19835
postdep_objects_RC \
19838
compiler_lib_search_path_RC \
19840
archive_expsym_cmds_RC \
19841
postinstall_cmds_RC \
19842
postuninstall_cmds_RC \
19843
old_archive_from_expsyms_cmds_RC \
19844
allow_undefined_flag_RC \
19845
no_undefined_flag_RC \
19846
export_symbols_cmds_RC \
19847
hardcode_libdir_flag_spec_RC \
19848
hardcode_libdir_flag_spec_ld_RC \
19849
hardcode_libdir_separator_RC \
19850
hardcode_automatic_RC \
19852
module_expsym_cmds_RC \
19853
lt_cv_prog_compiler_c_o_RC \
19854
fix_srcfile_path_RC \
19855
exclude_expsyms_RC \
19856
include_expsyms_RC; do
19859
old_archive_cmds_RC | \
19860
old_archive_from_new_cmds_RC | \
19861
archive_cmds_RC | \
19862
archive_expsym_cmds_RC | \
19864
module_expsym_cmds_RC | \
19865
old_archive_from_expsyms_cmds_RC | \
19866
export_symbols_cmds_RC | \
19867
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19868
postinstall_cmds | postuninstall_cmds | \
19869
old_postinstall_cmds | old_postuninstall_cmds | \
19870
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19871
# Double-quote double-evaled strings.
19872
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19875
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19881
*'\$0 --fallback-echo"')
19882
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19888
cat <<__EOF__ >> "$cfgfile"
19889
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19891
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19893
# Shell to use when invoking shell scripts.
19896
# Whether or not to build shared libraries.
19897
build_libtool_libs=$enable_shared
19899
# Whether or not to build static libraries.
19900
build_old_libs=$enable_static
19902
# Whether or not to add -lc for building shared libraries.
19903
build_libtool_need_lc=$archive_cmds_need_lc_RC
19905
# Whether or not to disallow shared libs when runtime libs are static
19906
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19908
# Whether or not to optimize for fast installation.
19909
fast_install=$enable_fast_install
19912
host_alias=$host_alias
19916
# The build system.
19917
build_alias=$build_alias
19921
# An echo program that does not interpret backslashes.
19926
AR_FLAGS=$lt_AR_FLAGS
19931
# LTCC compiler flags.
19932
LTCFLAGS=$lt_LTCFLAGS
19934
# A language-specific compiler.
19937
# Is the compiler the GNU C compiler?
19943
# The linker used to build libraries.
19946
# Whether we need hard or soft links.
19949
# A BSD-compatible nm program.
19952
# A symbol stripping program
19955
# Used to examine libraries when file_magic_cmd begins "file"
19956
MAGIC_CMD=$MAGIC_CMD
19958
# Used on cygwin: DLL creation program.
19961
# Used on cygwin: object dumper.
19964
# Used on cygwin: assembler.
19967
# The name of the directory that contains temporary libtool files.
19970
# How to create reloadable object files.
19971
reload_flag=$lt_reload_flag
19972
reload_cmds=$lt_reload_cmds
19974
# How to pass a linker flag through the compiler.
19975
wl=$lt_lt_prog_compiler_wl_RC
19977
# Object file suffix (normally "o").
19978
objext="$ac_objext"
19980
# Old archive suffix (normally "a").
19983
# Shared library suffix (normally ".so").
19984
shrext_cmds='$shrext_cmds'
19986
# Executable file suffix (normally "").
19989
# Additional compiler flags for building library objects.
19990
pic_flag=$lt_lt_prog_compiler_pic_RC
19993
# What is the maximum length of a command?
19994
max_cmd_len=$lt_cv_sys_max_cmd_len
19996
# Does compiler simultaneously support -c and -o options?
19997
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19999
# Must we lock files when doing compilation?
20000
need_locks=$lt_need_locks
20002
# Do we need the lib prefix for modules?
20003
need_lib_prefix=$need_lib_prefix
20005
# Do we need a version for libraries?
20006
need_version=$need_version
20008
# Whether dlopen is supported.
20009
dlopen_support=$enable_dlopen
20011
# Whether dlopen of programs is supported.
20012
dlopen_self=$enable_dlopen_self
20014
# Whether dlopen of statically linked programs is supported.
20015
dlopen_self_static=$enable_dlopen_self_static
20017
# Compiler flag to prevent dynamic linking.
20018
link_static_flag=$lt_lt_prog_compiler_static_RC
20020
# Compiler flag to turn off builtin functions.
20021
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20023
# Compiler flag to allow reflexive dlopens.
20024
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20026
# Compiler flag to generate shared objects directly from archives.
20027
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20029
# Compiler flag to generate thread-safe objects.
20030
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20032
# Library versioning type.
20033
version_type=$version_type
20035
# Format of library name prefix.
20036
libname_spec=$lt_libname_spec
20038
# List of archive names. First name is the real one, the rest are links.
20039
# The last name is the one that the linker finds with -lNAME.
20040
library_names_spec=$lt_library_names_spec
20042
# The coded name of the library, if different from the real name.
20043
soname_spec=$lt_soname_spec
20045
# Commands used to build and install an old-style archive.
20047
old_archive_cmds=$lt_old_archive_cmds_RC
20048
old_postinstall_cmds=$lt_old_postinstall_cmds
20049
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20051
# Create an old-style archive from a shared archive.
20052
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20054
# Create a temporary old-style archive to link instead of a shared archive.
20055
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20057
# Commands used to build and install a shared archive.
20058
archive_cmds=$lt_archive_cmds_RC
20059
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20060
postinstall_cmds=$lt_postinstall_cmds
20061
postuninstall_cmds=$lt_postuninstall_cmds
20063
# Commands used to build a loadable module (assumed same as above if empty)
20064
module_cmds=$lt_module_cmds_RC
20065
module_expsym_cmds=$lt_module_expsym_cmds_RC
20067
# Commands to strip libraries.
20068
old_striplib=$lt_old_striplib
20069
striplib=$lt_striplib
20071
# Dependencies to place before the objects being linked to create a
20073
predep_objects=$lt_predep_objects_RC
20075
# Dependencies to place after the objects being linked to create a
20077
postdep_objects=$lt_postdep_objects_RC
20079
# Dependencies to place before the objects being linked to create a
20081
predeps=$lt_predeps_RC
20083
# Dependencies to place after the objects being linked to create a
20085
postdeps=$lt_postdeps_RC
20087
# The library search path used internally by the compiler when linking
20088
# a shared library.
20089
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20091
# Method to check whether dependent libraries are shared objects.
20092
deplibs_check_method=$lt_deplibs_check_method
20094
# Command to use when deplibs_check_method == file_magic.
20095
file_magic_cmd=$lt_file_magic_cmd
20097
# Flag that allows shared libraries with undefined symbols to be built.
20098
allow_undefined_flag=$lt_allow_undefined_flag_RC
20100
# Flag that forces no undefined symbols.
20101
no_undefined_flag=$lt_no_undefined_flag_RC
20103
# Commands used to finish a libtool library installation in a directory.
20104
finish_cmds=$lt_finish_cmds
20106
# Same as above, but a single script fragment to be evaled but not shown.
20107
finish_eval=$lt_finish_eval
20109
# Take the output of nm and produce a listing of raw symbols and C names.
20110
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20112
# Transform the output of nm in a proper C declaration
20113
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20115
# Transform the output of nm in a C name address pair
20116
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20118
# This is the shared library runtime path variable.
20119
runpath_var=$runpath_var
20121
# This is the shared library path variable.
20122
shlibpath_var=$shlibpath_var
20124
# Is shlibpath searched before the hard-coded library search path?
20125
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20127
# How to hardcode a shared library path into an executable.
20128
hardcode_action=$hardcode_action_RC
20130
# Whether we should hardcode library paths into libraries.
20131
hardcode_into_libs=$hardcode_into_libs
20133
# Flag to hardcode \$libdir into a binary during linking.
20134
# This must work even if \$libdir does not exist.
20135
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20137
# If ld is used when linking, flag to hardcode \$libdir into
20138
# a binary during linking. This must work even if \$libdir does
20140
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20142
# Whether we need a single -rpath flag with a separated argument.
20143
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20145
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20146
# resulting binary.
20147
hardcode_direct=$hardcode_direct_RC
20149
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20150
# resulting binary.
20151
hardcode_minus_L=$hardcode_minus_L_RC
20153
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20154
# the resulting binary.
20155
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20157
# Set to yes if building a shared library automatically hardcodes DIR into the library
20158
# and all subsequent libraries and executables linked against it.
20159
hardcode_automatic=$hardcode_automatic_RC
20161
# Variables whose values should be saved in libtool wrapper scripts and
20162
# restored at relink time.
20163
variables_saved_for_relink="$variables_saved_for_relink"
20165
# Whether libtool must link a program against all its dependency libraries.
20166
link_all_deplibs=$link_all_deplibs_RC
20168
# Compile-time system search path for libraries
20169
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20171
# Run-time system search path for libraries
20172
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20174
# Fix the shell variable \$srcfile for the compiler.
20175
fix_srcfile_path=$lt_fix_srcfile_path
20177
# Set to yes if exported symbols are required.
20178
always_export_symbols=$always_export_symbols_RC
20180
# The commands to list exported symbols.
20181
export_symbols_cmds=$lt_export_symbols_cmds_RC
20183
# The commands to extract the exported symbol list from a shared archive.
20184
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20186
# Symbols that should not be listed in the preloaded symbols.
20187
exclude_expsyms=$lt_exclude_expsyms_RC
20189
# Symbols that must always be exported.
20190
include_expsyms=$lt_include_expsyms_RC
20192
# ### END LIBTOOL TAG CONFIG: $tagname
20198
# If there is no Makefile yet, we rely on a make rule to execute
20199
# `config.status --recheck' to rerun these tests and create the
20200
# libtool script then.
20201
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20202
if test -f "$ltmain_in"; then
20203
test -f Makefile && make "$ltmain"
20209
ac_cpp='$CPP $CPPFLAGS'
20210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20220
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20221
{ (exit 1); exit 1; }; }
20225
# Append the new tag name to the list of available tags.
20226
if test -n "$tagname" ; then
20227
available_tags="$available_tags $tagname"
20233
# Now substitute the updated list of available tags.
20234
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20235
mv "${ofile}T" "$ofile"
20239
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20240
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20241
{ (exit 1); exit 1; }; }
20247
# This can be used to rebuild libtool when needed
20248
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20250
# Always use our own libtool.
20251
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20253
# Prevent multiple expansion
20275
# Extract the first word of "bison", so it can be a program name with args.
20276
set dummy bison; ac_word=$2
20277
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20279
if test "${ac_cv_prog_YACC+set}" = set; then
20280
echo $ECHO_N "(cached) $ECHO_C" >&6
20282
if test -n "$YACC"; then
20283
ac_cv_prog_YACC="$YACC" # Let the user override the test.
20285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286
for as_dir in $PATH
20289
test -z "$as_dir" && as_dir=.
20290
for ac_exec_ext in '' $ac_executable_extensions; do
20291
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20292
ac_cv_prog_YACC="bison"
20293
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20302
YACC=$ac_cv_prog_YACC
20303
if test -n "$YACC"; then
20304
{ echo "$as_me:$LINENO: result: $YACC" >&5
20305
echo "${ECHO_T}$YACC" >&6; }
20307
{ echo "$as_me:$LINENO: result: no" >&5
20308
echo "${ECHO_T}no" >&6; }
20318
ac_header_dirent=no
20319
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20320
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20321
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20322
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20323
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20324
echo $ECHO_N "(cached) $ECHO_C" >&6
20326
cat >conftest.$ac_ext <<_ACEOF
20329
cat confdefs.h >>conftest.$ac_ext
20330
cat >>conftest.$ac_ext <<_ACEOF
20331
/* end confdefs.h. */
20332
#include <sys/types.h>
20344
rm -f conftest.$ac_objext
20345
if { (ac_try="$ac_compile"
20346
case "(($ac_try" in
20347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348
*) ac_try_echo=$ac_try;;
20350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351
(eval "$ac_compile") 2>conftest.er1
20353
grep -v '^ *+' conftest.er1 >conftest.err
20355
cat conftest.err >&5
20356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357
(exit $ac_status); } && {
20358
test -z "$ac_c_werror_flag" ||
20359
test ! -s conftest.err
20360
} && test -s conftest.$ac_objext; then
20361
eval "$as_ac_Header=yes"
20363
echo "$as_me: failed program was:" >&5
20364
sed 's/^/| /' conftest.$ac_ext >&5
20366
eval "$as_ac_Header=no"
20369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371
ac_res=`eval echo '${'$as_ac_Header'}'`
20372
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20373
echo "${ECHO_T}$ac_res" >&6; }
20374
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375
cat >>confdefs.h <<_ACEOF
20376
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20379
ac_header_dirent=$ac_hdr; break
20383
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20384
if test $ac_header_dirent = dirent.h; then
20385
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20386
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20387
if test "${ac_cv_search_opendir+set}" = set; then
20388
echo $ECHO_N "(cached) $ECHO_C" >&6
20390
ac_func_search_save_LIBS=$LIBS
20391
cat >conftest.$ac_ext <<_ACEOF
20394
cat confdefs.h >>conftest.$ac_ext
20395
cat >>conftest.$ac_ext <<_ACEOF
20396
/* end confdefs.h. */
20398
/* Override any GCC internal prototype to avoid an error.
20399
Use char because int might match the return type of a GCC
20400
builtin and then its argument prototype would still apply. */
20413
for ac_lib in '' dir; do
20414
if test -z "$ac_lib"; then
20415
ac_res="none required"
20418
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20420
rm -f conftest.$ac_objext conftest$ac_exeext
20421
if { (ac_try="$ac_link"
20422
case "(($ac_try" in
20423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424
*) ac_try_echo=$ac_try;;
20426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427
(eval "$ac_link") 2>conftest.er1
20429
grep -v '^ *+' conftest.er1 >conftest.err
20431
cat conftest.err >&5
20432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433
(exit $ac_status); } && {
20434
test -z "$ac_c_werror_flag" ||
20435
test ! -s conftest.err
20436
} && test -s conftest$ac_exeext &&
20437
$as_test_x conftest$ac_exeext; then
20438
ac_cv_search_opendir=$ac_res
20440
echo "$as_me: failed program was:" >&5
20441
sed 's/^/| /' conftest.$ac_ext >&5
20446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20448
if test "${ac_cv_search_opendir+set}" = set; then
20452
if test "${ac_cv_search_opendir+set}" = set; then
20455
ac_cv_search_opendir=no
20457
rm conftest.$ac_ext
20458
LIBS=$ac_func_search_save_LIBS
20460
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20461
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20462
ac_res=$ac_cv_search_opendir
20463
if test "$ac_res" != no; then
20464
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20469
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20470
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20471
if test "${ac_cv_search_opendir+set}" = set; then
20472
echo $ECHO_N "(cached) $ECHO_C" >&6
20474
ac_func_search_save_LIBS=$LIBS
20475
cat >conftest.$ac_ext <<_ACEOF
20478
cat confdefs.h >>conftest.$ac_ext
20479
cat >>conftest.$ac_ext <<_ACEOF
20480
/* end confdefs.h. */
20482
/* Override any GCC internal prototype to avoid an error.
20483
Use char because int might match the return type of a GCC
20484
builtin and then its argument prototype would still apply. */
20497
for ac_lib in '' x; do
20498
if test -z "$ac_lib"; then
20499
ac_res="none required"
20502
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20504
rm -f conftest.$ac_objext conftest$ac_exeext
20505
if { (ac_try="$ac_link"
20506
case "(($ac_try" in
20507
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508
*) ac_try_echo=$ac_try;;
20510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511
(eval "$ac_link") 2>conftest.er1
20513
grep -v '^ *+' conftest.er1 >conftest.err
20515
cat conftest.err >&5
20516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517
(exit $ac_status); } && {
20518
test -z "$ac_c_werror_flag" ||
20519
test ! -s conftest.err
20520
} && test -s conftest$ac_exeext &&
20521
$as_test_x conftest$ac_exeext; then
20522
ac_cv_search_opendir=$ac_res
20524
echo "$as_me: failed program was:" >&5
20525
sed 's/^/| /' conftest.$ac_ext >&5
20530
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532
if test "${ac_cv_search_opendir+set}" = set; then
20536
if test "${ac_cv_search_opendir+set}" = set; then
20539
ac_cv_search_opendir=no
20541
rm conftest.$ac_ext
20542
LIBS=$ac_func_search_save_LIBS
20544
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20545
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20546
ac_res=$ac_cv_search_opendir
20547
if test "$ac_res" != no; then
20548
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20554
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20555
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20556
if test "${ac_cv_header_stdc+set}" = set; then
20557
echo $ECHO_N "(cached) $ECHO_C" >&6
20559
cat >conftest.$ac_ext <<_ACEOF
20562
cat confdefs.h >>conftest.$ac_ext
20563
cat >>conftest.$ac_ext <<_ACEOF
20564
/* end confdefs.h. */
20565
#include <stdlib.h>
20566
#include <stdarg.h>
20567
#include <string.h>
20578
rm -f conftest.$ac_objext
20579
if { (ac_try="$ac_compile"
20580
case "(($ac_try" in
20581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582
*) ac_try_echo=$ac_try;;
20584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585
(eval "$ac_compile") 2>conftest.er1
20587
grep -v '^ *+' conftest.er1 >conftest.err
20589
cat conftest.err >&5
20590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591
(exit $ac_status); } && {
20592
test -z "$ac_c_werror_flag" ||
20593
test ! -s conftest.err
20594
} && test -s conftest.$ac_objext; then
20595
ac_cv_header_stdc=yes
20597
echo "$as_me: failed program was:" >&5
20598
sed 's/^/| /' conftest.$ac_ext >&5
20600
ac_cv_header_stdc=no
20603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605
if test $ac_cv_header_stdc = yes; then
20606
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20607
cat >conftest.$ac_ext <<_ACEOF
20610
cat confdefs.h >>conftest.$ac_ext
20611
cat >>conftest.$ac_ext <<_ACEOF
20612
/* end confdefs.h. */
20613
#include <string.h>
20616
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20617
$EGREP "memchr" >/dev/null 2>&1; then
20620
ac_cv_header_stdc=no
20626
if test $ac_cv_header_stdc = yes; then
20627
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20628
cat >conftest.$ac_ext <<_ACEOF
20631
cat confdefs.h >>conftest.$ac_ext
20632
cat >>conftest.$ac_ext <<_ACEOF
20633
/* end confdefs.h. */
20634
#include <stdlib.h>
20637
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20638
$EGREP "free" >/dev/null 2>&1; then
20641
ac_cv_header_stdc=no
20647
if test $ac_cv_header_stdc = yes; then
20648
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20649
if test "$cross_compiling" = yes; then
20652
cat >conftest.$ac_ext <<_ACEOF
20655
cat confdefs.h >>conftest.$ac_ext
20656
cat >>conftest.$ac_ext <<_ACEOF
20657
/* end confdefs.h. */
20659
#include <stdlib.h>
20660
#if ((' ' & 0x0FF) == 0x020)
20661
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20662
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20664
# define ISLOWER(c) \
20665
(('a' <= (c) && (c) <= 'i') \
20666
|| ('j' <= (c) && (c) <= 'r') \
20667
|| ('s' <= (c) && (c) <= 'z'))
20668
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20671
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20676
for (i = 0; i < 256; i++)
20677
if (XOR (islower (i), ISLOWER (i))
20678
|| toupper (i) != TOUPPER (i))
20683
rm -f conftest$ac_exeext
20684
if { (ac_try="$ac_link"
20685
case "(($ac_try" in
20686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687
*) ac_try_echo=$ac_try;;
20689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690
(eval "$ac_link") 2>&5
20692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20694
{ (case "(($ac_try" in
20695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696
*) ac_try_echo=$ac_try;;
20698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699
(eval "$ac_try") 2>&5
20701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702
(exit $ac_status); }; }; then
20705
echo "$as_me: program exited with status $ac_status" >&5
20706
echo "$as_me: failed program was:" >&5
20707
sed 's/^/| /' conftest.$ac_ext >&5
20709
( exit $ac_status )
20710
ac_cv_header_stdc=no
20712
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20718
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20719
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20720
if test $ac_cv_header_stdc = yes; then
20722
cat >>confdefs.h <<\_ACEOF
20723
#define STDC_HEADERS 1
20728
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20729
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20730
if test "${ac_cv_header_sys_wait_h+set}" = set; then
20731
echo $ECHO_N "(cached) $ECHO_C" >&6
20733
cat >conftest.$ac_ext <<_ACEOF
20736
cat confdefs.h >>conftest.$ac_ext
20737
cat >>conftest.$ac_ext <<_ACEOF
20738
/* end confdefs.h. */
20739
#include <sys/types.h>
20740
#include <sys/wait.h>
20741
#ifndef WEXITSTATUS
20742
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20745
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20753
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20758
rm -f conftest.$ac_objext
20759
if { (ac_try="$ac_compile"
20760
case "(($ac_try" in
20761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762
*) ac_try_echo=$ac_try;;
20764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765
(eval "$ac_compile") 2>conftest.er1
20767
grep -v '^ *+' conftest.er1 >conftest.err
20769
cat conftest.err >&5
20770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771
(exit $ac_status); } && {
20772
test -z "$ac_c_werror_flag" ||
20773
test ! -s conftest.err
20774
} && test -s conftest.$ac_objext; then
20775
ac_cv_header_sys_wait_h=yes
20777
echo "$as_me: failed program was:" >&5
20778
sed 's/^/| /' conftest.$ac_ext >&5
20780
ac_cv_header_sys_wait_h=no
20783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20786
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20787
if test $ac_cv_header_sys_wait_h = yes; then
20789
cat >>confdefs.h <<\_ACEOF
20790
#define HAVE_SYS_WAIT_H 1
20806
for ac_header in fcntl.h malloc.h memory.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
20808
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20810
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20811
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20812
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20813
echo $ECHO_N "(cached) $ECHO_C" >&6
20815
ac_res=`eval echo '${'$as_ac_Header'}'`
20816
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20817
echo "${ECHO_T}$ac_res" >&6; }
20819
# Is the header compilable?
20820
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20821
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20822
cat >conftest.$ac_ext <<_ACEOF
20825
cat confdefs.h >>conftest.$ac_ext
20826
cat >>conftest.$ac_ext <<_ACEOF
20827
/* end confdefs.h. */
20828
$ac_includes_default
20829
#include <$ac_header>
20831
rm -f conftest.$ac_objext
20832
if { (ac_try="$ac_compile"
20833
case "(($ac_try" in
20834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835
*) ac_try_echo=$ac_try;;
20837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838
(eval "$ac_compile") 2>conftest.er1
20840
grep -v '^ *+' conftest.er1 >conftest.err
20842
cat conftest.err >&5
20843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844
(exit $ac_status); } && {
20845
test -z "$ac_c_werror_flag" ||
20846
test ! -s conftest.err
20847
} && test -s conftest.$ac_objext; then
20848
ac_header_compiler=yes
20850
echo "$as_me: failed program was:" >&5
20851
sed 's/^/| /' conftest.$ac_ext >&5
20853
ac_header_compiler=no
20856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20858
echo "${ECHO_T}$ac_header_compiler" >&6; }
20860
# Is the header present?
20861
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20862
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20863
cat >conftest.$ac_ext <<_ACEOF
20866
cat confdefs.h >>conftest.$ac_ext
20867
cat >>conftest.$ac_ext <<_ACEOF
20868
/* end confdefs.h. */
20869
#include <$ac_header>
20871
if { (ac_try="$ac_cpp conftest.$ac_ext"
20872
case "(($ac_try" in
20873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874
*) ac_try_echo=$ac_try;;
20876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20879
grep -v '^ *+' conftest.er1 >conftest.err
20881
cat conftest.err >&5
20882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883
(exit $ac_status); } >/dev/null && {
20884
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20885
test ! -s conftest.err
20887
ac_header_preproc=yes
20889
echo "$as_me: failed program was:" >&5
20890
sed 's/^/| /' conftest.$ac_ext >&5
20892
ac_header_preproc=no
20895
rm -f conftest.err conftest.$ac_ext
20896
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20897
echo "${ECHO_T}$ac_header_preproc" >&6; }
20899
# So? What about this header?
20900
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20902
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20903
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20904
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20905
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20906
ac_header_preproc=yes
20909
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20914
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20915
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20916
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20917
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20918
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20920
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20922
## --------------------------------------- ##
20923
## Report this to opendap-tech@opendap.org ##
20924
## --------------------------------------- ##
20926
) | sed "s/^/$as_me: WARNING: /" >&2
20929
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20931
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20932
echo $ECHO_N "(cached) $ECHO_C" >&6
20934
eval "$as_ac_Header=\$ac_header_preproc"
20936
ac_res=`eval echo '${'$as_ac_Header'}'`
20937
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20938
echo "${ECHO_T}$ac_res" >&6; }
20941
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20942
cat >>confdefs.h <<_ACEOF
20943
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20951
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20952
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20953
if test "${ac_cv_c_const+set}" = set; then
20954
echo $ECHO_N "(cached) $ECHO_C" >&6
20956
cat >conftest.$ac_ext <<_ACEOF
20959
cat confdefs.h >>conftest.$ac_ext
20960
cat >>conftest.$ac_ext <<_ACEOF
20961
/* end confdefs.h. */
20966
/* FIXME: Include the comments suggested by Paul. */
20967
#ifndef __cplusplus
20968
/* Ultrix mips cc rejects this. */
20969
typedef int charset[2];
20971
/* SunOS 4.1.1 cc rejects this. */
20972
char const *const *pcpcc;
20974
/* NEC SVR4.0.2 mips cc rejects this. */
20975
struct point {int x, y;};
20976
static struct point const zero = {0,0};
20977
/* AIX XL C 1.02.0.0 rejects this.
20978
It does not let you subtract one const X* pointer from another in
20979
an arm of an if-expression whose if-part is not a constant
20981
const char *g = "string";
20982
pcpcc = &g + (g ? g-g : 0);
20983
/* HPUX 7.0 cc rejects these. */
20985
ppc = (char**) pcpcc;
20986
pcpcc = (char const *const *) ppc;
20987
{ /* SCO 3.2v4 cc rejects this. */
20989
char const *s = 0 ? (char *) 0 : (char const *) 0;
20994
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20995
int x[] = {25, 17};
20996
const int *foo = &x[0];
20999
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21000
typedef const int *iptr;
21004
{ /* AIX XL C 1.02.0.0 rejects this saying
21005
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21006
struct s { int j; const int *ap[3]; };
21007
struct s *b; b->j = 5;
21009
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21010
const int foo = 10;
21011
if (!foo) return 0;
21013
return !cs[0] && !zero.x;
21020
rm -f conftest.$ac_objext
21021
if { (ac_try="$ac_compile"
21022
case "(($ac_try" in
21023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024
*) ac_try_echo=$ac_try;;
21026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027
(eval "$ac_compile") 2>conftest.er1
21029
grep -v '^ *+' conftest.er1 >conftest.err
21031
cat conftest.err >&5
21032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033
(exit $ac_status); } && {
21034
test -z "$ac_c_werror_flag" ||
21035
test ! -s conftest.err
21036
} && test -s conftest.$ac_objext; then
21039
echo "$as_me: failed program was:" >&5
21040
sed 's/^/| /' conftest.$ac_ext >&5
21045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21048
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21049
if test $ac_cv_c_const = no; then
21051
cat >>confdefs.h <<\_ACEOF
21057
{ echo "$as_me:$LINENO: checking for inline" >&5
21058
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21059
if test "${ac_cv_c_inline+set}" = set; then
21060
echo $ECHO_N "(cached) $ECHO_C" >&6
21063
for ac_kw in inline __inline__ __inline; do
21064
cat >conftest.$ac_ext <<_ACEOF
21067
cat confdefs.h >>conftest.$ac_ext
21068
cat >>conftest.$ac_ext <<_ACEOF
21069
/* end confdefs.h. */
21070
#ifndef __cplusplus
21072
static $ac_kw foo_t static_foo () {return 0; }
21073
$ac_kw foo_t foo () {return 0; }
21077
rm -f conftest.$ac_objext
21078
if { (ac_try="$ac_compile"
21079
case "(($ac_try" in
21080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081
*) ac_try_echo=$ac_try;;
21083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084
(eval "$ac_compile") 2>conftest.er1
21086
grep -v '^ *+' conftest.er1 >conftest.err
21088
cat conftest.err >&5
21089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090
(exit $ac_status); } && {
21091
test -z "$ac_c_werror_flag" ||
21092
test ! -s conftest.err
21093
} && test -s conftest.$ac_objext; then
21094
ac_cv_c_inline=$ac_kw
21096
echo "$as_me: failed program was:" >&5
21097
sed 's/^/| /' conftest.$ac_ext >&5
21102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103
test "$ac_cv_c_inline" != no && break
21107
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21108
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21111
case $ac_cv_c_inline in
21114
case $ac_cv_c_inline in
21116
*) ac_val=$ac_cv_c_inline;;
21118
cat >>confdefs.h <<_ACEOF
21119
#ifndef __cplusplus
21120
#define inline $ac_val
21126
{ echo "$as_me:$LINENO: checking for size_t" >&5
21127
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21128
if test "${ac_cv_type_size_t+set}" = set; then
21129
echo $ECHO_N "(cached) $ECHO_C" >&6
21131
cat >conftest.$ac_ext <<_ACEOF
21134
cat confdefs.h >>conftest.$ac_ext
21135
cat >>conftest.$ac_ext <<_ACEOF
21136
/* end confdefs.h. */
21137
$ac_includes_default
21138
typedef size_t ac__type_new_;
21142
if ((ac__type_new_ *) 0)
21144
if (sizeof (ac__type_new_))
21150
rm -f conftest.$ac_objext
21151
if { (ac_try="$ac_compile"
21152
case "(($ac_try" in
21153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154
*) ac_try_echo=$ac_try;;
21156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157
(eval "$ac_compile") 2>conftest.er1
21159
grep -v '^ *+' conftest.er1 >conftest.err
21161
cat conftest.err >&5
21162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163
(exit $ac_status); } && {
21164
test -z "$ac_c_werror_flag" ||
21165
test ! -s conftest.err
21166
} && test -s conftest.$ac_objext; then
21167
ac_cv_type_size_t=yes
21169
echo "$as_me: failed program was:" >&5
21170
sed 's/^/| /' conftest.$ac_ext >&5
21172
ac_cv_type_size_t=no
21175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21178
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21179
if test $ac_cv_type_size_t = yes; then
21183
cat >>confdefs.h <<_ACEOF
21184
#define size_t unsigned int
21189
{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21190
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21191
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21192
echo $ECHO_N "(cached) $ECHO_C" >&6
21194
cat >conftest.$ac_ext <<_ACEOF
21197
cat confdefs.h >>conftest.$ac_ext
21198
cat >>conftest.$ac_ext <<_ACEOF
21199
/* end confdefs.h. */
21200
$ac_includes_default
21204
static struct stat ac_aggr;
21205
if (ac_aggr.st_blksize)
21211
rm -f conftest.$ac_objext
21212
if { (ac_try="$ac_compile"
21213
case "(($ac_try" in
21214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215
*) ac_try_echo=$ac_try;;
21217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218
(eval "$ac_compile") 2>conftest.er1
21220
grep -v '^ *+' conftest.er1 >conftest.err
21222
cat conftest.err >&5
21223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224
(exit $ac_status); } && {
21225
test -z "$ac_c_werror_flag" ||
21226
test ! -s conftest.err
21227
} && test -s conftest.$ac_objext; then
21228
ac_cv_member_struct_stat_st_blksize=yes
21230
echo "$as_me: failed program was:" >&5
21231
sed 's/^/| /' conftest.$ac_ext >&5
21233
cat >conftest.$ac_ext <<_ACEOF
21236
cat confdefs.h >>conftest.$ac_ext
21237
cat >>conftest.$ac_ext <<_ACEOF
21238
/* end confdefs.h. */
21239
$ac_includes_default
21243
static struct stat ac_aggr;
21244
if (sizeof ac_aggr.st_blksize)
21250
rm -f conftest.$ac_objext
21251
if { (ac_try="$ac_compile"
21252
case "(($ac_try" in
21253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254
*) ac_try_echo=$ac_try;;
21256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257
(eval "$ac_compile") 2>conftest.er1
21259
grep -v '^ *+' conftest.er1 >conftest.err
21261
cat conftest.err >&5
21262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263
(exit $ac_status); } && {
21264
test -z "$ac_c_werror_flag" ||
21265
test ! -s conftest.err
21266
} && test -s conftest.$ac_objext; then
21267
ac_cv_member_struct_stat_st_blksize=yes
21269
echo "$as_me: failed program was:" >&5
21270
sed 's/^/| /' conftest.$ac_ext >&5
21272
ac_cv_member_struct_stat_st_blksize=no
21275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21280
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21281
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21282
if test $ac_cv_member_struct_stat_st_blksize = yes; then
21284
cat >>confdefs.h <<_ACEOF
21285
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21291
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21292
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21293
if test "${ac_cv_header_time+set}" = set; then
21294
echo $ECHO_N "(cached) $ECHO_C" >&6
21296
cat >conftest.$ac_ext <<_ACEOF
21299
cat confdefs.h >>conftest.$ac_ext
21300
cat >>conftest.$ac_ext <<_ACEOF
21301
/* end confdefs.h. */
21302
#include <sys/types.h>
21303
#include <sys/time.h>
21309
if ((struct tm *) 0)
21315
rm -f conftest.$ac_objext
21316
if { (ac_try="$ac_compile"
21317
case "(($ac_try" in
21318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319
*) ac_try_echo=$ac_try;;
21321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322
(eval "$ac_compile") 2>conftest.er1
21324
grep -v '^ *+' conftest.er1 >conftest.err
21326
cat conftest.err >&5
21327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328
(exit $ac_status); } && {
21329
test -z "$ac_c_werror_flag" ||
21330
test ! -s conftest.err
21331
} && test -s conftest.$ac_objext; then
21332
ac_cv_header_time=yes
21334
echo "$as_me: failed program was:" >&5
21335
sed 's/^/| /' conftest.$ac_ext >&5
21337
ac_cv_header_time=no
21340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21343
echo "${ECHO_T}$ac_cv_header_time" >&6; }
21344
if test $ac_cv_header_time = yes; then
21346
cat >>confdefs.h <<\_ACEOF
21347
#define TIME_WITH_SYS_TIME 1
21352
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21353
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21354
if test "${ac_cv_struct_tm+set}" = set; then
21355
echo $ECHO_N "(cached) $ECHO_C" >&6
21357
cat >conftest.$ac_ext <<_ACEOF
21360
cat confdefs.h >>conftest.$ac_ext
21361
cat >>conftest.$ac_ext <<_ACEOF
21362
/* end confdefs.h. */
21363
#include <sys/types.h>
21370
int *p = &tm.tm_sec;
21376
rm -f conftest.$ac_objext
21377
if { (ac_try="$ac_compile"
21378
case "(($ac_try" in
21379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380
*) ac_try_echo=$ac_try;;
21382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383
(eval "$ac_compile") 2>conftest.er1
21385
grep -v '^ *+' conftest.er1 >conftest.err
21387
cat conftest.err >&5
21388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389
(exit $ac_status); } && {
21390
test -z "$ac_c_werror_flag" ||
21391
test ! -s conftest.err
21392
} && test -s conftest.$ac_objext; then
21393
ac_cv_struct_tm=time.h
21395
echo "$as_me: failed program was:" >&5
21396
sed 's/^/| /' conftest.$ac_ext >&5
21398
ac_cv_struct_tm=sys/time.h
21401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21404
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21405
if test $ac_cv_struct_tm = sys/time.h; then
21407
cat >>confdefs.h <<\_ACEOF
21408
#define TM_IN_SYS_TIME 1
21413
{ echo "$as_me:$LINENO: checking for working volatile" >&5
21414
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
21415
if test "${ac_cv_c_volatile+set}" = set; then
21416
echo $ECHO_N "(cached) $ECHO_C" >&6
21418
cat >conftest.$ac_ext <<_ACEOF
21421
cat confdefs.h >>conftest.$ac_ext
21422
cat >>conftest.$ac_ext <<_ACEOF
21423
/* end confdefs.h. */
21430
int * volatile y = (int *) 0;
21436
rm -f conftest.$ac_objext
21437
if { (ac_try="$ac_compile"
21438
case "(($ac_try" in
21439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440
*) ac_try_echo=$ac_try;;
21442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443
(eval "$ac_compile") 2>conftest.er1
21445
grep -v '^ *+' conftest.er1 >conftest.err
21447
cat conftest.err >&5
21448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449
(exit $ac_status); } && {
21450
test -z "$ac_c_werror_flag" ||
21451
test ! -s conftest.err
21452
} && test -s conftest.$ac_objext; then
21453
ac_cv_c_volatile=yes
21455
echo "$as_me: failed program was:" >&5
21456
sed 's/^/| /' conftest.$ac_ext >&5
21458
ac_cv_c_volatile=no
21461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21463
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21464
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
21465
if test $ac_cv_c_volatile = no; then
21467
cat >>confdefs.h <<\_ACEOF
21473
# Ignore the errors about AC_TRY_RUN missing an argument. jhrg 5/2/95
21477
{ echo "$as_me:$LINENO: checking for int" >&5
21478
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21479
if test "${ac_cv_type_int+set}" = set; then
21480
echo $ECHO_N "(cached) $ECHO_C" >&6
21482
cat >conftest.$ac_ext <<_ACEOF
21485
cat confdefs.h >>conftest.$ac_ext
21486
cat >>conftest.$ac_ext <<_ACEOF
21487
/* end confdefs.h. */
21488
$ac_includes_default
21489
typedef int ac__type_new_;
21493
if ((ac__type_new_ *) 0)
21495
if (sizeof (ac__type_new_))
21501
rm -f conftest.$ac_objext
21502
if { (ac_try="$ac_compile"
21503
case "(($ac_try" in
21504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505
*) ac_try_echo=$ac_try;;
21507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508
(eval "$ac_compile") 2>conftest.er1
21510
grep -v '^ *+' conftest.er1 >conftest.err
21512
cat conftest.err >&5
21513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514
(exit $ac_status); } && {
21515
test -z "$ac_c_werror_flag" ||
21516
test ! -s conftest.err
21517
} && test -s conftest.$ac_objext; then
21520
echo "$as_me: failed program was:" >&5
21521
sed 's/^/| /' conftest.$ac_ext >&5
21526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21529
echo "${ECHO_T}$ac_cv_type_int" >&6; }
21531
# The cast to long int works around a bug in the HP C Compiler
21532
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21533
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21534
# This bug is HP SR number 8606223364.
21535
{ echo "$as_me:$LINENO: checking size of int" >&5
21536
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21537
if test "${ac_cv_sizeof_int+set}" = set; then
21538
echo $ECHO_N "(cached) $ECHO_C" >&6
21540
if test "$cross_compiling" = yes; then
21541
# Depending upon the size, compute the lo and hi bounds.
21542
cat >conftest.$ac_ext <<_ACEOF
21545
cat confdefs.h >>conftest.$ac_ext
21546
cat >>conftest.$ac_ext <<_ACEOF
21547
/* end confdefs.h. */
21548
$ac_includes_default
21549
typedef int ac__type_sizeof_;
21553
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21560
rm -f conftest.$ac_objext
21561
if { (ac_try="$ac_compile"
21562
case "(($ac_try" in
21563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564
*) ac_try_echo=$ac_try;;
21566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567
(eval "$ac_compile") 2>conftest.er1
21569
grep -v '^ *+' conftest.er1 >conftest.err
21571
cat conftest.err >&5
21572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573
(exit $ac_status); } && {
21574
test -z "$ac_c_werror_flag" ||
21575
test ! -s conftest.err
21576
} && test -s conftest.$ac_objext; then
21579
cat >conftest.$ac_ext <<_ACEOF
21582
cat confdefs.h >>conftest.$ac_ext
21583
cat >>conftest.$ac_ext <<_ACEOF
21584
/* end confdefs.h. */
21585
$ac_includes_default
21586
typedef int ac__type_sizeof_;
21590
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21597
rm -f conftest.$ac_objext
21598
if { (ac_try="$ac_compile"
21599
case "(($ac_try" in
21600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601
*) ac_try_echo=$ac_try;;
21603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604
(eval "$ac_compile") 2>conftest.er1
21606
grep -v '^ *+' conftest.er1 >conftest.err
21608
cat conftest.err >&5
21609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610
(exit $ac_status); } && {
21611
test -z "$ac_c_werror_flag" ||
21612
test ! -s conftest.err
21613
} && test -s conftest.$ac_objext; then
21614
ac_hi=$ac_mid; break
21616
echo "$as_me: failed program was:" >&5
21617
sed 's/^/| /' conftest.$ac_ext >&5
21619
ac_lo=`expr $ac_mid + 1`
21620
if test $ac_lo -le $ac_mid; then
21624
ac_mid=`expr 2 '*' $ac_mid + 1`
21627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630
echo "$as_me: failed program was:" >&5
21631
sed 's/^/| /' conftest.$ac_ext >&5
21633
cat >conftest.$ac_ext <<_ACEOF
21636
cat confdefs.h >>conftest.$ac_ext
21637
cat >>conftest.$ac_ext <<_ACEOF
21638
/* end confdefs.h. */
21639
$ac_includes_default
21640
typedef int ac__type_sizeof_;
21644
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21651
rm -f conftest.$ac_objext
21652
if { (ac_try="$ac_compile"
21653
case "(($ac_try" in
21654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655
*) ac_try_echo=$ac_try;;
21657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658
(eval "$ac_compile") 2>conftest.er1
21660
grep -v '^ *+' conftest.er1 >conftest.err
21662
cat conftest.err >&5
21663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664
(exit $ac_status); } && {
21665
test -z "$ac_c_werror_flag" ||
21666
test ! -s conftest.err
21667
} && test -s conftest.$ac_objext; then
21670
cat >conftest.$ac_ext <<_ACEOF
21673
cat confdefs.h >>conftest.$ac_ext
21674
cat >>conftest.$ac_ext <<_ACEOF
21675
/* end confdefs.h. */
21676
$ac_includes_default
21677
typedef int ac__type_sizeof_;
21681
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21688
rm -f conftest.$ac_objext
21689
if { (ac_try="$ac_compile"
21690
case "(($ac_try" in
21691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692
*) ac_try_echo=$ac_try;;
21694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695
(eval "$ac_compile") 2>conftest.er1
21697
grep -v '^ *+' conftest.er1 >conftest.err
21699
cat conftest.err >&5
21700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701
(exit $ac_status); } && {
21702
test -z "$ac_c_werror_flag" ||
21703
test ! -s conftest.err
21704
} && test -s conftest.$ac_objext; then
21705
ac_lo=$ac_mid; break
21707
echo "$as_me: failed program was:" >&5
21708
sed 's/^/| /' conftest.$ac_ext >&5
21710
ac_hi=`expr '(' $ac_mid ')' - 1`
21711
if test $ac_mid -le $ac_hi; then
21715
ac_mid=`expr 2 '*' $ac_mid`
21718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721
echo "$as_me: failed program was:" >&5
21722
sed 's/^/| /' conftest.$ac_ext >&5
21727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731
# Binary search between lo and hi bounds.
21732
while test "x$ac_lo" != "x$ac_hi"; do
21733
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21734
cat >conftest.$ac_ext <<_ACEOF
21737
cat confdefs.h >>conftest.$ac_ext
21738
cat >>conftest.$ac_ext <<_ACEOF
21739
/* end confdefs.h. */
21740
$ac_includes_default
21741
typedef int ac__type_sizeof_;
21745
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21752
rm -f conftest.$ac_objext
21753
if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21761
grep -v '^ *+' conftest.er1 >conftest.err
21763
cat conftest.err >&5
21764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765
(exit $ac_status); } && {
21766
test -z "$ac_c_werror_flag" ||
21767
test ! -s conftest.err
21768
} && test -s conftest.$ac_objext; then
21771
echo "$as_me: failed program was:" >&5
21772
sed 's/^/| /' conftest.$ac_ext >&5
21774
ac_lo=`expr '(' $ac_mid ')' + 1`
21777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21780
?*) ac_cv_sizeof_int=$ac_lo;;
21781
'') if test "$ac_cv_type_int" = yes; then
21782
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21783
See \`config.log' for more details." >&5
21784
echo "$as_me: error: cannot compute sizeof (int)
21785
See \`config.log' for more details." >&2;}
21786
{ (exit 77); exit 77; }; }
21792
cat >conftest.$ac_ext <<_ACEOF
21795
cat confdefs.h >>conftest.$ac_ext
21796
cat >>conftest.$ac_ext <<_ACEOF
21797
/* end confdefs.h. */
21798
$ac_includes_default
21799
typedef int ac__type_sizeof_;
21800
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21801
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21803
#include <stdlib.h>
21808
FILE *f = fopen ("conftest.val", "w");
21811
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21813
long int i = longval ();
21814
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21816
fprintf (f, "%ld\n", i);
21820
unsigned long int i = ulongval ();
21821
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21823
fprintf (f, "%lu\n", i);
21825
return ferror (f) || fclose (f) != 0;
21831
rm -f conftest$ac_exeext
21832
if { (ac_try="$ac_link"
21833
case "(($ac_try" in
21834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835
*) ac_try_echo=$ac_try;;
21837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838
(eval "$ac_link") 2>&5
21840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842
{ (case "(($ac_try" in
21843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844
*) ac_try_echo=$ac_try;;
21846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847
(eval "$ac_try") 2>&5
21849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850
(exit $ac_status); }; }; then
21851
ac_cv_sizeof_int=`cat conftest.val`
21853
echo "$as_me: program exited with status $ac_status" >&5
21854
echo "$as_me: failed program was:" >&5
21855
sed 's/^/| /' conftest.$ac_ext >&5
21857
( exit $ac_status )
21858
if test "$ac_cv_type_int" = yes; then
21859
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21860
See \`config.log' for more details." >&5
21861
echo "$as_me: error: cannot compute sizeof (int)
21862
See \`config.log' for more details." >&2;}
21863
{ (exit 77); exit 77; }; }
21868
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21872
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21873
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21877
cat >>confdefs.h <<_ACEOF
21878
#define SIZEOF_INT $ac_cv_sizeof_int
21882
{ echo "$as_me:$LINENO: checking for long" >&5
21883
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21884
if test "${ac_cv_type_long+set}" = set; then
21885
echo $ECHO_N "(cached) $ECHO_C" >&6
21887
cat >conftest.$ac_ext <<_ACEOF
21890
cat confdefs.h >>conftest.$ac_ext
21891
cat >>conftest.$ac_ext <<_ACEOF
21892
/* end confdefs.h. */
21893
$ac_includes_default
21894
typedef long ac__type_new_;
21898
if ((ac__type_new_ *) 0)
21900
if (sizeof (ac__type_new_))
21906
rm -f conftest.$ac_objext
21907
if { (ac_try="$ac_compile"
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_compile") 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
test -z "$ac_c_werror_flag" ||
21921
test ! -s conftest.err
21922
} && test -s conftest.$ac_objext; then
21923
ac_cv_type_long=yes
21925
echo "$as_me: failed program was:" >&5
21926
sed 's/^/| /' conftest.$ac_ext >&5
21931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21934
echo "${ECHO_T}$ac_cv_type_long" >&6; }
21936
# The cast to long int works around a bug in the HP C Compiler
21937
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21938
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21939
# This bug is HP SR number 8606223364.
21940
{ echo "$as_me:$LINENO: checking size of long" >&5
21941
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21942
if test "${ac_cv_sizeof_long+set}" = set; then
21943
echo $ECHO_N "(cached) $ECHO_C" >&6
21945
if test "$cross_compiling" = yes; then
21946
# Depending upon the size, compute the lo and hi bounds.
21947
cat >conftest.$ac_ext <<_ACEOF
21950
cat confdefs.h >>conftest.$ac_ext
21951
cat >>conftest.$ac_ext <<_ACEOF
21952
/* end confdefs.h. */
21953
$ac_includes_default
21954
typedef long ac__type_sizeof_;
21958
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21965
rm -f conftest.$ac_objext
21966
if { (ac_try="$ac_compile"
21967
case "(($ac_try" in
21968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969
*) ac_try_echo=$ac_try;;
21971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972
(eval "$ac_compile") 2>conftest.er1
21974
grep -v '^ *+' conftest.er1 >conftest.err
21976
cat conftest.err >&5
21977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978
(exit $ac_status); } && {
21979
test -z "$ac_c_werror_flag" ||
21980
test ! -s conftest.err
21981
} && test -s conftest.$ac_objext; then
21984
cat >conftest.$ac_ext <<_ACEOF
21987
cat confdefs.h >>conftest.$ac_ext
21988
cat >>conftest.$ac_ext <<_ACEOF
21989
/* end confdefs.h. */
21990
$ac_includes_default
21991
typedef long ac__type_sizeof_;
21995
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22002
rm -f conftest.$ac_objext
22003
if { (ac_try="$ac_compile"
22004
case "(($ac_try" in
22005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006
*) ac_try_echo=$ac_try;;
22008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009
(eval "$ac_compile") 2>conftest.er1
22011
grep -v '^ *+' conftest.er1 >conftest.err
22013
cat conftest.err >&5
22014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015
(exit $ac_status); } && {
22016
test -z "$ac_c_werror_flag" ||
22017
test ! -s conftest.err
22018
} && test -s conftest.$ac_objext; then
22019
ac_hi=$ac_mid; break
22021
echo "$as_me: failed program was:" >&5
22022
sed 's/^/| /' conftest.$ac_ext >&5
22024
ac_lo=`expr $ac_mid + 1`
22025
if test $ac_lo -le $ac_mid; then
22029
ac_mid=`expr 2 '*' $ac_mid + 1`
22032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035
echo "$as_me: failed program was:" >&5
22036
sed 's/^/| /' conftest.$ac_ext >&5
22038
cat >conftest.$ac_ext <<_ACEOF
22041
cat confdefs.h >>conftest.$ac_ext
22042
cat >>conftest.$ac_ext <<_ACEOF
22043
/* end confdefs.h. */
22044
$ac_includes_default
22045
typedef long ac__type_sizeof_;
22049
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22056
rm -f conftest.$ac_objext
22057
if { (ac_try="$ac_compile"
22058
case "(($ac_try" in
22059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060
*) ac_try_echo=$ac_try;;
22062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063
(eval "$ac_compile") 2>conftest.er1
22065
grep -v '^ *+' conftest.er1 >conftest.err
22067
cat conftest.err >&5
22068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069
(exit $ac_status); } && {
22070
test -z "$ac_c_werror_flag" ||
22071
test ! -s conftest.err
22072
} && test -s conftest.$ac_objext; then
22075
cat >conftest.$ac_ext <<_ACEOF
22078
cat confdefs.h >>conftest.$ac_ext
22079
cat >>conftest.$ac_ext <<_ACEOF
22080
/* end confdefs.h. */
22081
$ac_includes_default
22082
typedef long ac__type_sizeof_;
22086
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22093
rm -f conftest.$ac_objext
22094
if { (ac_try="$ac_compile"
22095
case "(($ac_try" in
22096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097
*) ac_try_echo=$ac_try;;
22099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100
(eval "$ac_compile") 2>conftest.er1
22102
grep -v '^ *+' conftest.er1 >conftest.err
22104
cat conftest.err >&5
22105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106
(exit $ac_status); } && {
22107
test -z "$ac_c_werror_flag" ||
22108
test ! -s conftest.err
22109
} && test -s conftest.$ac_objext; then
22110
ac_lo=$ac_mid; break
22112
echo "$as_me: failed program was:" >&5
22113
sed 's/^/| /' conftest.$ac_ext >&5
22115
ac_hi=`expr '(' $ac_mid ')' - 1`
22116
if test $ac_mid -le $ac_hi; then
22120
ac_mid=`expr 2 '*' $ac_mid`
22123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126
echo "$as_me: failed program was:" >&5
22127
sed 's/^/| /' conftest.$ac_ext >&5
22132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136
# Binary search between lo and hi bounds.
22137
while test "x$ac_lo" != "x$ac_hi"; do
22138
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22139
cat >conftest.$ac_ext <<_ACEOF
22142
cat confdefs.h >>conftest.$ac_ext
22143
cat >>conftest.$ac_ext <<_ACEOF
22144
/* end confdefs.h. */
22145
$ac_includes_default
22146
typedef long ac__type_sizeof_;
22150
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22157
rm -f conftest.$ac_objext
22158
if { (ac_try="$ac_compile"
22159
case "(($ac_try" in
22160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161
*) ac_try_echo=$ac_try;;
22163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164
(eval "$ac_compile") 2>conftest.er1
22166
grep -v '^ *+' conftest.er1 >conftest.err
22168
cat conftest.err >&5
22169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170
(exit $ac_status); } && {
22171
test -z "$ac_c_werror_flag" ||
22172
test ! -s conftest.err
22173
} && test -s conftest.$ac_objext; then
22176
echo "$as_me: failed program was:" >&5
22177
sed 's/^/| /' conftest.$ac_ext >&5
22179
ac_lo=`expr '(' $ac_mid ')' + 1`
22182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185
?*) ac_cv_sizeof_long=$ac_lo;;
22186
'') if test "$ac_cv_type_long" = yes; then
22187
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22188
See \`config.log' for more details." >&5
22189
echo "$as_me: error: cannot compute sizeof (long)
22190
See \`config.log' for more details." >&2;}
22191
{ (exit 77); exit 77; }; }
22193
ac_cv_sizeof_long=0
22197
cat >conftest.$ac_ext <<_ACEOF
22200
cat confdefs.h >>conftest.$ac_ext
22201
cat >>conftest.$ac_ext <<_ACEOF
22202
/* end confdefs.h. */
22203
$ac_includes_default
22204
typedef long ac__type_sizeof_;
22205
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22206
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22208
#include <stdlib.h>
22213
FILE *f = fopen ("conftest.val", "w");
22216
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22218
long int i = longval ();
22219
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22221
fprintf (f, "%ld\n", i);
22225
unsigned long int i = ulongval ();
22226
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22228
fprintf (f, "%lu\n", i);
22230
return ferror (f) || fclose (f) != 0;
22236
rm -f conftest$ac_exeext
22237
if { (ac_try="$ac_link"
22238
case "(($ac_try" in
22239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240
*) ac_try_echo=$ac_try;;
22242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243
(eval "$ac_link") 2>&5
22245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22247
{ (case "(($ac_try" in
22248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249
*) ac_try_echo=$ac_try;;
22251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252
(eval "$ac_try") 2>&5
22254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255
(exit $ac_status); }; }; then
22256
ac_cv_sizeof_long=`cat conftest.val`
22258
echo "$as_me: program exited with status $ac_status" >&5
22259
echo "$as_me: failed program was:" >&5
22260
sed 's/^/| /' conftest.$ac_ext >&5
22262
( exit $ac_status )
22263
if test "$ac_cv_type_long" = yes; then
22264
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22265
See \`config.log' for more details." >&5
22266
echo "$as_me: error: cannot compute sizeof (long)
22267
See \`config.log' for more details." >&2;}
22268
{ (exit 77); exit 77; }; }
22270
ac_cv_sizeof_long=0
22273
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22277
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22278
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22282
cat >>confdefs.h <<_ACEOF
22283
#define SIZEOF_LONG $ac_cv_sizeof_long
22287
{ echo "$as_me:$LINENO: checking for char" >&5
22288
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
22289
if test "${ac_cv_type_char+set}" = set; then
22290
echo $ECHO_N "(cached) $ECHO_C" >&6
22292
cat >conftest.$ac_ext <<_ACEOF
22295
cat confdefs.h >>conftest.$ac_ext
22296
cat >>conftest.$ac_ext <<_ACEOF
22297
/* end confdefs.h. */
22298
$ac_includes_default
22299
typedef char ac__type_new_;
22303
if ((ac__type_new_ *) 0)
22305
if (sizeof (ac__type_new_))
22311
rm -f conftest.$ac_objext
22312
if { (ac_try="$ac_compile"
22313
case "(($ac_try" in
22314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315
*) ac_try_echo=$ac_try;;
22317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318
(eval "$ac_compile") 2>conftest.er1
22320
grep -v '^ *+' conftest.er1 >conftest.err
22322
cat conftest.err >&5
22323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324
(exit $ac_status); } && {
22325
test -z "$ac_c_werror_flag" ||
22326
test ! -s conftest.err
22327
} && test -s conftest.$ac_objext; then
22328
ac_cv_type_char=yes
22330
echo "$as_me: failed program was:" >&5
22331
sed 's/^/| /' conftest.$ac_ext >&5
22336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22339
echo "${ECHO_T}$ac_cv_type_char" >&6; }
22341
# The cast to long int works around a bug in the HP C Compiler
22342
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22343
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22344
# This bug is HP SR number 8606223364.
22345
{ echo "$as_me:$LINENO: checking size of char" >&5
22346
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22347
if test "${ac_cv_sizeof_char+set}" = set; then
22348
echo $ECHO_N "(cached) $ECHO_C" >&6
22350
if test "$cross_compiling" = yes; then
22351
# Depending upon the size, compute the lo and hi bounds.
22352
cat >conftest.$ac_ext <<_ACEOF
22355
cat confdefs.h >>conftest.$ac_ext
22356
cat >>conftest.$ac_ext <<_ACEOF
22357
/* end confdefs.h. */
22358
$ac_includes_default
22359
typedef char ac__type_sizeof_;
22363
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22370
rm -f conftest.$ac_objext
22371
if { (ac_try="$ac_compile"
22372
case "(($ac_try" in
22373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374
*) ac_try_echo=$ac_try;;
22376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377
(eval "$ac_compile") 2>conftest.er1
22379
grep -v '^ *+' conftest.er1 >conftest.err
22381
cat conftest.err >&5
22382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383
(exit $ac_status); } && {
22384
test -z "$ac_c_werror_flag" ||
22385
test ! -s conftest.err
22386
} && test -s conftest.$ac_objext; then
22389
cat >conftest.$ac_ext <<_ACEOF
22392
cat confdefs.h >>conftest.$ac_ext
22393
cat >>conftest.$ac_ext <<_ACEOF
22394
/* end confdefs.h. */
22395
$ac_includes_default
22396
typedef char ac__type_sizeof_;
22400
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22407
rm -f conftest.$ac_objext
22408
if { (ac_try="$ac_compile"
22409
case "(($ac_try" in
22410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411
*) ac_try_echo=$ac_try;;
22413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414
(eval "$ac_compile") 2>conftest.er1
22416
grep -v '^ *+' conftest.er1 >conftest.err
22418
cat conftest.err >&5
22419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420
(exit $ac_status); } && {
22421
test -z "$ac_c_werror_flag" ||
22422
test ! -s conftest.err
22423
} && test -s conftest.$ac_objext; then
22424
ac_hi=$ac_mid; break
22426
echo "$as_me: failed program was:" >&5
22427
sed 's/^/| /' conftest.$ac_ext >&5
22429
ac_lo=`expr $ac_mid + 1`
22430
if test $ac_lo -le $ac_mid; then
22434
ac_mid=`expr 2 '*' $ac_mid + 1`
22437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440
echo "$as_me: failed program was:" >&5
22441
sed 's/^/| /' conftest.$ac_ext >&5
22443
cat >conftest.$ac_ext <<_ACEOF
22446
cat confdefs.h >>conftest.$ac_ext
22447
cat >>conftest.$ac_ext <<_ACEOF
22448
/* end confdefs.h. */
22449
$ac_includes_default
22450
typedef char ac__type_sizeof_;
22454
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22461
rm -f conftest.$ac_objext
22462
if { (ac_try="$ac_compile"
22463
case "(($ac_try" in
22464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465
*) ac_try_echo=$ac_try;;
22467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468
(eval "$ac_compile") 2>conftest.er1
22470
grep -v '^ *+' conftest.er1 >conftest.err
22472
cat conftest.err >&5
22473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474
(exit $ac_status); } && {
22475
test -z "$ac_c_werror_flag" ||
22476
test ! -s conftest.err
22477
} && test -s conftest.$ac_objext; then
22480
cat >conftest.$ac_ext <<_ACEOF
22483
cat confdefs.h >>conftest.$ac_ext
22484
cat >>conftest.$ac_ext <<_ACEOF
22485
/* end confdefs.h. */
22486
$ac_includes_default
22487
typedef char ac__type_sizeof_;
22491
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22498
rm -f conftest.$ac_objext
22499
if { (ac_try="$ac_compile"
22500
case "(($ac_try" in
22501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502
*) ac_try_echo=$ac_try;;
22504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505
(eval "$ac_compile") 2>conftest.er1
22507
grep -v '^ *+' conftest.er1 >conftest.err
22509
cat conftest.err >&5
22510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511
(exit $ac_status); } && {
22512
test -z "$ac_c_werror_flag" ||
22513
test ! -s conftest.err
22514
} && test -s conftest.$ac_objext; then
22515
ac_lo=$ac_mid; break
22517
echo "$as_me: failed program was:" >&5
22518
sed 's/^/| /' conftest.$ac_ext >&5
22520
ac_hi=`expr '(' $ac_mid ')' - 1`
22521
if test $ac_mid -le $ac_hi; then
22525
ac_mid=`expr 2 '*' $ac_mid`
22528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531
echo "$as_me: failed program was:" >&5
22532
sed 's/^/| /' conftest.$ac_ext >&5
22537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541
# Binary search between lo and hi bounds.
22542
while test "x$ac_lo" != "x$ac_hi"; do
22543
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22544
cat >conftest.$ac_ext <<_ACEOF
22547
cat confdefs.h >>conftest.$ac_ext
22548
cat >>conftest.$ac_ext <<_ACEOF
22549
/* end confdefs.h. */
22550
$ac_includes_default
22551
typedef char ac__type_sizeof_;
22555
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22562
rm -f conftest.$ac_objext
22563
if { (ac_try="$ac_compile"
22564
case "(($ac_try" in
22565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566
*) ac_try_echo=$ac_try;;
22568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569
(eval "$ac_compile") 2>conftest.er1
22571
grep -v '^ *+' conftest.er1 >conftest.err
22573
cat conftest.err >&5
22574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575
(exit $ac_status); } && {
22576
test -z "$ac_c_werror_flag" ||
22577
test ! -s conftest.err
22578
} && test -s conftest.$ac_objext; then
22581
echo "$as_me: failed program was:" >&5
22582
sed 's/^/| /' conftest.$ac_ext >&5
22584
ac_lo=`expr '(' $ac_mid ')' + 1`
22587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590
?*) ac_cv_sizeof_char=$ac_lo;;
22591
'') if test "$ac_cv_type_char" = yes; then
22592
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22593
See \`config.log' for more details." >&5
22594
echo "$as_me: error: cannot compute sizeof (char)
22595
See \`config.log' for more details." >&2;}
22596
{ (exit 77); exit 77; }; }
22598
ac_cv_sizeof_char=0
22602
cat >conftest.$ac_ext <<_ACEOF
22605
cat confdefs.h >>conftest.$ac_ext
22606
cat >>conftest.$ac_ext <<_ACEOF
22607
/* end confdefs.h. */
22608
$ac_includes_default
22609
typedef char ac__type_sizeof_;
22610
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22611
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22613
#include <stdlib.h>
22618
FILE *f = fopen ("conftest.val", "w");
22621
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22623
long int i = longval ();
22624
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22626
fprintf (f, "%ld\n", i);
22630
unsigned long int i = ulongval ();
22631
if (i != ((long int) (sizeof (ac__type_sizeof_))))
22633
fprintf (f, "%lu\n", i);
22635
return ferror (f) || fclose (f) != 0;
22641
rm -f conftest$ac_exeext
22642
if { (ac_try="$ac_link"
22643
case "(($ac_try" in
22644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645
*) ac_try_echo=$ac_try;;
22647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648
(eval "$ac_link") 2>&5
22650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22652
{ (case "(($ac_try" in
22653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654
*) ac_try_echo=$ac_try;;
22656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657
(eval "$ac_try") 2>&5
22659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660
(exit $ac_status); }; }; then
22661
ac_cv_sizeof_char=`cat conftest.val`
22663
echo "$as_me: program exited with status $ac_status" >&5
22664
echo "$as_me: failed program was:" >&5
22665
sed 's/^/| /' conftest.$ac_ext >&5
22667
( exit $ac_status )
22668
if test "$ac_cv_type_char" = yes; then
22669
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22670
See \`config.log' for more details." >&5
22671
echo "$as_me: error: cannot compute sizeof (char)
22672
See \`config.log' for more details." >&2;}
22673
{ (exit 77); exit 77; }; }
22675
ac_cv_sizeof_char=0
22678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22682
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22683
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
22687
cat >>confdefs.h <<_ACEOF
22688
#define SIZEOF_CHAR $ac_cv_sizeof_char
22692
{ echo "$as_me:$LINENO: checking for double" >&5
22693
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22694
if test "${ac_cv_type_double+set}" = set; then
22695
echo $ECHO_N "(cached) $ECHO_C" >&6
22697
cat >conftest.$ac_ext <<_ACEOF
22700
cat confdefs.h >>conftest.$ac_ext
22701
cat >>conftest.$ac_ext <<_ACEOF
22702
/* end confdefs.h. */
22703
$ac_includes_default
22704
typedef double ac__type_new_;
22708
if ((ac__type_new_ *) 0)
22710
if (sizeof (ac__type_new_))
22716
rm -f conftest.$ac_objext
22717
if { (ac_try="$ac_compile"
22718
case "(($ac_try" in
22719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720
*) ac_try_echo=$ac_try;;
22722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723
(eval "$ac_compile") 2>conftest.er1
22725
grep -v '^ *+' conftest.er1 >conftest.err
22727
cat conftest.err >&5
22728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729
(exit $ac_status); } && {
22730
test -z "$ac_c_werror_flag" ||
22731
test ! -s conftest.err
22732
} && test -s conftest.$ac_objext; then
22733
ac_cv_type_double=yes
22735
echo "$as_me: failed program was:" >&5
22736
sed 's/^/| /' conftest.$ac_ext >&5
22738
ac_cv_type_double=no
22741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22744
echo "${ECHO_T}$ac_cv_type_double" >&6; }
22746
# The cast to long int works around a bug in the HP C Compiler
22747
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22748
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22749
# This bug is HP SR number 8606223364.
22750
{ echo "$as_me:$LINENO: checking size of double" >&5
22751
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
22752
if test "${ac_cv_sizeof_double+set}" = set; then
22753
echo $ECHO_N "(cached) $ECHO_C" >&6
22755
if test "$cross_compiling" = yes; then
22756
# Depending upon the size, compute the lo and hi bounds.
22757
cat >conftest.$ac_ext <<_ACEOF
22760
cat confdefs.h >>conftest.$ac_ext
22761
cat >>conftest.$ac_ext <<_ACEOF
22762
/* end confdefs.h. */
22763
$ac_includes_default
22764
typedef double ac__type_sizeof_;
22768
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22775
rm -f conftest.$ac_objext
22776
if { (ac_try="$ac_compile"
22777
case "(($ac_try" in
22778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779
*) ac_try_echo=$ac_try;;
22781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22782
(eval "$ac_compile") 2>conftest.er1
22784
grep -v '^ *+' conftest.er1 >conftest.err
22786
cat conftest.err >&5
22787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788
(exit $ac_status); } && {
22789
test -z "$ac_c_werror_flag" ||
22790
test ! -s conftest.err
22791
} && test -s conftest.$ac_objext; then
22794
cat >conftest.$ac_ext <<_ACEOF
22797
cat confdefs.h >>conftest.$ac_ext
22798
cat >>conftest.$ac_ext <<_ACEOF
22799
/* end confdefs.h. */
22800
$ac_includes_default
22801
typedef double ac__type_sizeof_;
22805
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22812
rm -f conftest.$ac_objext
22813
if { (ac_try="$ac_compile"
22814
case "(($ac_try" in
22815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816
*) ac_try_echo=$ac_try;;
22818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819
(eval "$ac_compile") 2>conftest.er1
22821
grep -v '^ *+' conftest.er1 >conftest.err
22823
cat conftest.err >&5
22824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825
(exit $ac_status); } && {
22826
test -z "$ac_c_werror_flag" ||
22827
test ! -s conftest.err
22828
} && test -s conftest.$ac_objext; then
22829
ac_hi=$ac_mid; break
22831
echo "$as_me: failed program was:" >&5
22832
sed 's/^/| /' conftest.$ac_ext >&5
22834
ac_lo=`expr $ac_mid + 1`
22835
if test $ac_lo -le $ac_mid; then
22839
ac_mid=`expr 2 '*' $ac_mid + 1`
22842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845
echo "$as_me: failed program was:" >&5
22846
sed 's/^/| /' conftest.$ac_ext >&5
22848
cat >conftest.$ac_ext <<_ACEOF
22851
cat confdefs.h >>conftest.$ac_ext
22852
cat >>conftest.$ac_ext <<_ACEOF
22853
/* end confdefs.h. */
22854
$ac_includes_default
22855
typedef double ac__type_sizeof_;
22859
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22866
rm -f conftest.$ac_objext
22867
if { (ac_try="$ac_compile"
22868
case "(($ac_try" in
22869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870
*) ac_try_echo=$ac_try;;
22872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873
(eval "$ac_compile") 2>conftest.er1
22875
grep -v '^ *+' conftest.er1 >conftest.err
22877
cat conftest.err >&5
22878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879
(exit $ac_status); } && {
22880
test -z "$ac_c_werror_flag" ||
22881
test ! -s conftest.err
22882
} && test -s conftest.$ac_objext; then
22885
cat >conftest.$ac_ext <<_ACEOF
22888
cat confdefs.h >>conftest.$ac_ext
22889
cat >>conftest.$ac_ext <<_ACEOF
22890
/* end confdefs.h. */
22891
$ac_includes_default
22892
typedef double ac__type_sizeof_;
22896
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22903
rm -f conftest.$ac_objext
22904
if { (ac_try="$ac_compile"
22905
case "(($ac_try" in
22906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907
*) ac_try_echo=$ac_try;;
22909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910
(eval "$ac_compile") 2>conftest.er1
22912
grep -v '^ *+' conftest.er1 >conftest.err
22914
cat conftest.err >&5
22915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916
(exit $ac_status); } && {
22917
test -z "$ac_c_werror_flag" ||
22918
test ! -s conftest.err
22919
} && test -s conftest.$ac_objext; then
22920
ac_lo=$ac_mid; break
22922
echo "$as_me: failed program was:" >&5
22923
sed 's/^/| /' conftest.$ac_ext >&5
22925
ac_hi=`expr '(' $ac_mid ')' - 1`
22926
if test $ac_mid -le $ac_hi; then
22930
ac_mid=`expr 2 '*' $ac_mid`
22933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936
echo "$as_me: failed program was:" >&5
22937
sed 's/^/| /' conftest.$ac_ext >&5
22942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946
# Binary search between lo and hi bounds.
22947
while test "x$ac_lo" != "x$ac_hi"; do
22948
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22949
cat >conftest.$ac_ext <<_ACEOF
22952
cat confdefs.h >>conftest.$ac_ext
22953
cat >>conftest.$ac_ext <<_ACEOF
22954
/* end confdefs.h. */
22955
$ac_includes_default
22956
typedef double ac__type_sizeof_;
22960
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22967
rm -f conftest.$ac_objext
22968
if { (ac_try="$ac_compile"
22969
case "(($ac_try" in
22970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971
*) ac_try_echo=$ac_try;;
22973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974
(eval "$ac_compile") 2>conftest.er1
22976
grep -v '^ *+' conftest.er1 >conftest.err
22978
cat conftest.err >&5
22979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980
(exit $ac_status); } && {
22981
test -z "$ac_c_werror_flag" ||
22982
test ! -s conftest.err
22983
} && test -s conftest.$ac_objext; then
22986
echo "$as_me: failed program was:" >&5
22987
sed 's/^/| /' conftest.$ac_ext >&5
22989
ac_lo=`expr '(' $ac_mid ')' + 1`
22992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995
?*) ac_cv_sizeof_double=$ac_lo;;
22996
'') if test "$ac_cv_type_double" = yes; then
22997
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22998
See \`config.log' for more details." >&5
22999
echo "$as_me: error: cannot compute sizeof (double)
23000
See \`config.log' for more details." >&2;}
23001
{ (exit 77); exit 77; }; }
23003
ac_cv_sizeof_double=0
23007
cat >conftest.$ac_ext <<_ACEOF
23010
cat confdefs.h >>conftest.$ac_ext
23011
cat >>conftest.$ac_ext <<_ACEOF
23012
/* end confdefs.h. */
23013
$ac_includes_default
23014
typedef double ac__type_sizeof_;
23015
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23016
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23018
#include <stdlib.h>
23023
FILE *f = fopen ("conftest.val", "w");
23026
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23028
long int i = longval ();
23029
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23031
fprintf (f, "%ld\n", i);
23035
unsigned long int i = ulongval ();
23036
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23038
fprintf (f, "%lu\n", i);
23040
return ferror (f) || fclose (f) != 0;
23046
rm -f conftest$ac_exeext
23047
if { (ac_try="$ac_link"
23048
case "(($ac_try" in
23049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050
*) ac_try_echo=$ac_try;;
23052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053
(eval "$ac_link") 2>&5
23055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057
{ (case "(($ac_try" in
23058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059
*) ac_try_echo=$ac_try;;
23061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062
(eval "$ac_try") 2>&5
23064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065
(exit $ac_status); }; }; then
23066
ac_cv_sizeof_double=`cat conftest.val`
23068
echo "$as_me: program exited with status $ac_status" >&5
23069
echo "$as_me: failed program was:" >&5
23070
sed 's/^/| /' conftest.$ac_ext >&5
23072
( exit $ac_status )
23073
if test "$ac_cv_type_double" = yes; then
23074
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
23075
See \`config.log' for more details." >&5
23076
echo "$as_me: error: cannot compute sizeof (double)
23077
See \`config.log' for more details." >&2;}
23078
{ (exit 77); exit 77; }; }
23080
ac_cv_sizeof_double=0
23083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23087
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
23088
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
23092
cat >>confdefs.h <<_ACEOF
23093
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23097
{ echo "$as_me:$LINENO: checking for float" >&5
23098
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
23099
if test "${ac_cv_type_float+set}" = set; then
23100
echo $ECHO_N "(cached) $ECHO_C" >&6
23102
cat >conftest.$ac_ext <<_ACEOF
23105
cat confdefs.h >>conftest.$ac_ext
23106
cat >>conftest.$ac_ext <<_ACEOF
23107
/* end confdefs.h. */
23108
$ac_includes_default
23109
typedef float ac__type_new_;
23113
if ((ac__type_new_ *) 0)
23115
if (sizeof (ac__type_new_))
23121
rm -f conftest.$ac_objext
23122
if { (ac_try="$ac_compile"
23123
case "(($ac_try" in
23124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125
*) ac_try_echo=$ac_try;;
23127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128
(eval "$ac_compile") 2>conftest.er1
23130
grep -v '^ *+' conftest.er1 >conftest.err
23132
cat conftest.err >&5
23133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134
(exit $ac_status); } && {
23135
test -z "$ac_c_werror_flag" ||
23136
test ! -s conftest.err
23137
} && test -s conftest.$ac_objext; then
23138
ac_cv_type_float=yes
23140
echo "$as_me: failed program was:" >&5
23141
sed 's/^/| /' conftest.$ac_ext >&5
23143
ac_cv_type_float=no
23146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
23149
echo "${ECHO_T}$ac_cv_type_float" >&6; }
23151
# The cast to long int works around a bug in the HP C Compiler
23152
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23153
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23154
# This bug is HP SR number 8606223364.
23155
{ echo "$as_me:$LINENO: checking size of float" >&5
23156
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
23157
if test "${ac_cv_sizeof_float+set}" = set; then
23158
echo $ECHO_N "(cached) $ECHO_C" >&6
23160
if test "$cross_compiling" = yes; then
23161
# Depending upon the size, compute the lo and hi bounds.
23162
cat >conftest.$ac_ext <<_ACEOF
23165
cat confdefs.h >>conftest.$ac_ext
23166
cat >>conftest.$ac_ext <<_ACEOF
23167
/* end confdefs.h. */
23168
$ac_includes_default
23169
typedef float ac__type_sizeof_;
23173
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23180
rm -f conftest.$ac_objext
23181
if { (ac_try="$ac_compile"
23182
case "(($ac_try" in
23183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184
*) ac_try_echo=$ac_try;;
23186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187
(eval "$ac_compile") 2>conftest.er1
23189
grep -v '^ *+' conftest.er1 >conftest.err
23191
cat conftest.err >&5
23192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193
(exit $ac_status); } && {
23194
test -z "$ac_c_werror_flag" ||
23195
test ! -s conftest.err
23196
} && test -s conftest.$ac_objext; then
23199
cat >conftest.$ac_ext <<_ACEOF
23202
cat confdefs.h >>conftest.$ac_ext
23203
cat >>conftest.$ac_ext <<_ACEOF
23204
/* end confdefs.h. */
23205
$ac_includes_default
23206
typedef float ac__type_sizeof_;
23210
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23217
rm -f conftest.$ac_objext
23218
if { (ac_try="$ac_compile"
23219
case "(($ac_try" in
23220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221
*) ac_try_echo=$ac_try;;
23223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224
(eval "$ac_compile") 2>conftest.er1
23226
grep -v '^ *+' conftest.er1 >conftest.err
23228
cat conftest.err >&5
23229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230
(exit $ac_status); } && {
23231
test -z "$ac_c_werror_flag" ||
23232
test ! -s conftest.err
23233
} && test -s conftest.$ac_objext; then
23234
ac_hi=$ac_mid; break
23236
echo "$as_me: failed program was:" >&5
23237
sed 's/^/| /' conftest.$ac_ext >&5
23239
ac_lo=`expr $ac_mid + 1`
23240
if test $ac_lo -le $ac_mid; then
23244
ac_mid=`expr 2 '*' $ac_mid + 1`
23247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250
echo "$as_me: failed program was:" >&5
23251
sed 's/^/| /' conftest.$ac_ext >&5
23253
cat >conftest.$ac_ext <<_ACEOF
23256
cat confdefs.h >>conftest.$ac_ext
23257
cat >>conftest.$ac_ext <<_ACEOF
23258
/* end confdefs.h. */
23259
$ac_includes_default
23260
typedef float ac__type_sizeof_;
23264
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23271
rm -f conftest.$ac_objext
23272
if { (ac_try="$ac_compile"
23273
case "(($ac_try" in
23274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275
*) ac_try_echo=$ac_try;;
23277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278
(eval "$ac_compile") 2>conftest.er1
23280
grep -v '^ *+' conftest.er1 >conftest.err
23282
cat conftest.err >&5
23283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284
(exit $ac_status); } && {
23285
test -z "$ac_c_werror_flag" ||
23286
test ! -s conftest.err
23287
} && test -s conftest.$ac_objext; then
23290
cat >conftest.$ac_ext <<_ACEOF
23293
cat confdefs.h >>conftest.$ac_ext
23294
cat >>conftest.$ac_ext <<_ACEOF
23295
/* end confdefs.h. */
23296
$ac_includes_default
23297
typedef float ac__type_sizeof_;
23301
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23308
rm -f conftest.$ac_objext
23309
if { (ac_try="$ac_compile"
23310
case "(($ac_try" in
23311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312
*) ac_try_echo=$ac_try;;
23314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315
(eval "$ac_compile") 2>conftest.er1
23317
grep -v '^ *+' conftest.er1 >conftest.err
23319
cat conftest.err >&5
23320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321
(exit $ac_status); } && {
23322
test -z "$ac_c_werror_flag" ||
23323
test ! -s conftest.err
23324
} && test -s conftest.$ac_objext; then
23325
ac_lo=$ac_mid; break
23327
echo "$as_me: failed program was:" >&5
23328
sed 's/^/| /' conftest.$ac_ext >&5
23330
ac_hi=`expr '(' $ac_mid ')' - 1`
23331
if test $ac_mid -le $ac_hi; then
23335
ac_mid=`expr 2 '*' $ac_mid`
23338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23341
echo "$as_me: failed program was:" >&5
23342
sed 's/^/| /' conftest.$ac_ext >&5
23347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351
# Binary search between lo and hi bounds.
23352
while test "x$ac_lo" != "x$ac_hi"; do
23353
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23354
cat >conftest.$ac_ext <<_ACEOF
23357
cat confdefs.h >>conftest.$ac_ext
23358
cat >>conftest.$ac_ext <<_ACEOF
23359
/* end confdefs.h. */
23360
$ac_includes_default
23361
typedef float ac__type_sizeof_;
23365
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23372
rm -f conftest.$ac_objext
23373
if { (ac_try="$ac_compile"
23374
case "(($ac_try" in
23375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376
*) ac_try_echo=$ac_try;;
23378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379
(eval "$ac_compile") 2>conftest.er1
23381
grep -v '^ *+' conftest.er1 >conftest.err
23383
cat conftest.err >&5
23384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385
(exit $ac_status); } && {
23386
test -z "$ac_c_werror_flag" ||
23387
test ! -s conftest.err
23388
} && test -s conftest.$ac_objext; then
23391
echo "$as_me: failed program was:" >&5
23392
sed 's/^/| /' conftest.$ac_ext >&5
23394
ac_lo=`expr '(' $ac_mid ')' + 1`
23397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400
?*) ac_cv_sizeof_float=$ac_lo;;
23401
'') if test "$ac_cv_type_float" = yes; then
23402
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
23403
See \`config.log' for more details." >&5
23404
echo "$as_me: error: cannot compute sizeof (float)
23405
See \`config.log' for more details." >&2;}
23406
{ (exit 77); exit 77; }; }
23408
ac_cv_sizeof_float=0
23412
cat >conftest.$ac_ext <<_ACEOF
23415
cat confdefs.h >>conftest.$ac_ext
23416
cat >>conftest.$ac_ext <<_ACEOF
23417
/* end confdefs.h. */
23418
$ac_includes_default
23419
typedef float ac__type_sizeof_;
23420
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23421
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23423
#include <stdlib.h>
23428
FILE *f = fopen ("conftest.val", "w");
23431
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23433
long int i = longval ();
23434
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23436
fprintf (f, "%ld\n", i);
23440
unsigned long int i = ulongval ();
23441
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23443
fprintf (f, "%lu\n", i);
23445
return ferror (f) || fclose (f) != 0;
23451
rm -f conftest$ac_exeext
23452
if { (ac_try="$ac_link"
23453
case "(($ac_try" in
23454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455
*) ac_try_echo=$ac_try;;
23457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458
(eval "$ac_link") 2>&5
23460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23462
{ (case "(($ac_try" in
23463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464
*) ac_try_echo=$ac_try;;
23466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467
(eval "$ac_try") 2>&5
23469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470
(exit $ac_status); }; }; then
23471
ac_cv_sizeof_float=`cat conftest.val`
23473
echo "$as_me: program exited with status $ac_status" >&5
23474
echo "$as_me: failed program was:" >&5
23475
sed 's/^/| /' conftest.$ac_ext >&5
23477
( exit $ac_status )
23478
if test "$ac_cv_type_float" = yes; then
23479
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
23480
See \`config.log' for more details." >&5
23481
echo "$as_me: error: cannot compute sizeof (float)
23482
See \`config.log' for more details." >&2;}
23483
{ (exit 77); exit 77; }; }
23485
ac_cv_sizeof_float=0
23488
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23492
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
23493
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
23497
cat >>confdefs.h <<_ACEOF
23498
#define SIZEOF_FLOAT $ac_cv_sizeof_float
23503
# check for C99 types, headers and functions
23504
if test "${ac_cv_header_inttypes_h+set}" = set; then
23505
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
23506
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
23507
if test "${ac_cv_header_inttypes_h+set}" = set; then
23508
echo $ECHO_N "(cached) $ECHO_C" >&6
23510
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
23511
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
23513
# Is the header compilable?
23514
{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5
23515
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
23516
cat >conftest.$ac_ext <<_ACEOF
23519
cat confdefs.h >>conftest.$ac_ext
23520
cat >>conftest.$ac_ext <<_ACEOF
23521
/* end confdefs.h. */
23522
$ac_includes_default
23523
#include <inttypes.h>
23525
rm -f conftest.$ac_objext
23526
if { (ac_try="$ac_compile"
23527
case "(($ac_try" in
23528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529
*) ac_try_echo=$ac_try;;
23531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532
(eval "$ac_compile") 2>conftest.er1
23534
grep -v '^ *+' conftest.er1 >conftest.err
23536
cat conftest.err >&5
23537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538
(exit $ac_status); } && {
23539
test -z "$ac_c_werror_flag" ||
23540
test ! -s conftest.err
23541
} && test -s conftest.$ac_objext; then
23542
ac_header_compiler=yes
23544
echo "$as_me: failed program was:" >&5
23545
sed 's/^/| /' conftest.$ac_ext >&5
23547
ac_header_compiler=no
23550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23552
echo "${ECHO_T}$ac_header_compiler" >&6; }
23554
# Is the header present?
23555
{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5
23556
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
23557
cat >conftest.$ac_ext <<_ACEOF
23560
cat confdefs.h >>conftest.$ac_ext
23561
cat >>conftest.$ac_ext <<_ACEOF
23562
/* end confdefs.h. */
23563
#include <inttypes.h>
23565
if { (ac_try="$ac_cpp conftest.$ac_ext"
23566
case "(($ac_try" in
23567
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568
*) ac_try_echo=$ac_try;;
23570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23573
grep -v '^ *+' conftest.er1 >conftest.err
23575
cat conftest.err >&5
23576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577
(exit $ac_status); } >/dev/null && {
23578
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23579
test ! -s conftest.err
23581
ac_header_preproc=yes
23583
echo "$as_me: failed program was:" >&5
23584
sed 's/^/| /' conftest.$ac_ext >&5
23586
ac_header_preproc=no
23589
rm -f conftest.err conftest.$ac_ext
23590
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23591
echo "${ECHO_T}$ac_header_preproc" >&6; }
23593
# So? What about this header?
23594
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23596
{ echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
23597
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23598
{ echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
23599
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
23600
ac_header_preproc=yes
23603
{ echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
23604
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
23605
{ echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
23606
echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
23607
{ echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
23608
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
23609
{ echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
23610
echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
23611
{ echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
23612
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
23613
{ echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
23614
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
23616
## --------------------------------------- ##
23617
## Report this to opendap-tech@opendap.org ##
23618
## --------------------------------------- ##
23620
) | sed "s/^/$as_me: WARNING: /" >&2
23623
{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
23624
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
23625
if test "${ac_cv_header_inttypes_h+set}" = set; then
23626
echo $ECHO_N "(cached) $ECHO_C" >&6
23628
ac_cv_header_inttypes_h=$ac_header_preproc
23630
{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
23631
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
23634
if test $ac_cv_header_inttypes_h = yes; then
23635
dap_inttypes_header=yes
23640
{ echo "$as_me:$LINENO: checking for int32_t" >&5
23641
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23642
if test "${ac_cv_type_int32_t+set}" = set; then
23643
echo $ECHO_N "(cached) $ECHO_C" >&6
23645
cat >conftest.$ac_ext <<_ACEOF
23648
cat confdefs.h >>conftest.$ac_ext
23649
cat >>conftest.$ac_ext <<_ACEOF
23650
/* end confdefs.h. */
23651
$ac_includes_default
23652
typedef int32_t ac__type_new_;
23656
if ((ac__type_new_ *) 0)
23658
if (sizeof (ac__type_new_))
23664
rm -f conftest.$ac_objext
23665
if { (ac_try="$ac_compile"
23666
case "(($ac_try" in
23667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668
*) ac_try_echo=$ac_try;;
23670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671
(eval "$ac_compile") 2>conftest.er1
23673
grep -v '^ *+' conftest.er1 >conftest.err
23675
cat conftest.err >&5
23676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677
(exit $ac_status); } && {
23678
test -z "$ac_c_werror_flag" ||
23679
test ! -s conftest.err
23680
} && test -s conftest.$ac_objext; then
23681
ac_cv_type_int32_t=yes
23683
echo "$as_me: failed program was:" >&5
23684
sed 's/^/| /' conftest.$ac_ext >&5
23686
ac_cv_type_int32_t=no
23689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23692
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23694
# The cast to long int works around a bug in the HP C Compiler
23695
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23696
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23697
# This bug is HP SR number 8606223364.
23698
{ echo "$as_me:$LINENO: checking size of int32_t" >&5
23699
echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6; }
23700
if test "${ac_cv_sizeof_int32_t+set}" = set; then
23701
echo $ECHO_N "(cached) $ECHO_C" >&6
23703
if test "$cross_compiling" = yes; then
23704
# Depending upon the size, compute the lo and hi bounds.
23705
cat >conftest.$ac_ext <<_ACEOF
23708
cat confdefs.h >>conftest.$ac_ext
23709
cat >>conftest.$ac_ext <<_ACEOF
23710
/* end confdefs.h. */
23711
$ac_includes_default
23712
typedef int32_t ac__type_sizeof_;
23716
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23723
rm -f conftest.$ac_objext
23724
if { (ac_try="$ac_compile"
23725
case "(($ac_try" in
23726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727
*) ac_try_echo=$ac_try;;
23729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730
(eval "$ac_compile") 2>conftest.er1
23732
grep -v '^ *+' conftest.er1 >conftest.err
23734
cat conftest.err >&5
23735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736
(exit $ac_status); } && {
23737
test -z "$ac_c_werror_flag" ||
23738
test ! -s conftest.err
23739
} && test -s conftest.$ac_objext; then
23742
cat >conftest.$ac_ext <<_ACEOF
23745
cat confdefs.h >>conftest.$ac_ext
23746
cat >>conftest.$ac_ext <<_ACEOF
23747
/* end confdefs.h. */
23748
$ac_includes_default
23749
typedef int32_t ac__type_sizeof_;
23753
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23760
rm -f conftest.$ac_objext
23761
if { (ac_try="$ac_compile"
23762
case "(($ac_try" in
23763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764
*) ac_try_echo=$ac_try;;
23766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767
(eval "$ac_compile") 2>conftest.er1
23769
grep -v '^ *+' conftest.er1 >conftest.err
23771
cat conftest.err >&5
23772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773
(exit $ac_status); } && {
23774
test -z "$ac_c_werror_flag" ||
23775
test ! -s conftest.err
23776
} && test -s conftest.$ac_objext; then
23777
ac_hi=$ac_mid; break
23779
echo "$as_me: failed program was:" >&5
23780
sed 's/^/| /' conftest.$ac_ext >&5
23782
ac_lo=`expr $ac_mid + 1`
23783
if test $ac_lo -le $ac_mid; then
23787
ac_mid=`expr 2 '*' $ac_mid + 1`
23790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793
echo "$as_me: failed program was:" >&5
23794
sed 's/^/| /' conftest.$ac_ext >&5
23796
cat >conftest.$ac_ext <<_ACEOF
23799
cat confdefs.h >>conftest.$ac_ext
23800
cat >>conftest.$ac_ext <<_ACEOF
23801
/* end confdefs.h. */
23802
$ac_includes_default
23803
typedef int32_t ac__type_sizeof_;
23807
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23814
rm -f conftest.$ac_objext
23815
if { (ac_try="$ac_compile"
23816
case "(($ac_try" in
23817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818
*) ac_try_echo=$ac_try;;
23820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821
(eval "$ac_compile") 2>conftest.er1
23823
grep -v '^ *+' conftest.er1 >conftest.err
23825
cat conftest.err >&5
23826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827
(exit $ac_status); } && {
23828
test -z "$ac_c_werror_flag" ||
23829
test ! -s conftest.err
23830
} && test -s conftest.$ac_objext; then
23833
cat >conftest.$ac_ext <<_ACEOF
23836
cat confdefs.h >>conftest.$ac_ext
23837
cat >>conftest.$ac_ext <<_ACEOF
23838
/* end confdefs.h. */
23839
$ac_includes_default
23840
typedef int32_t ac__type_sizeof_;
23844
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23851
rm -f conftest.$ac_objext
23852
if { (ac_try="$ac_compile"
23853
case "(($ac_try" in
23854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855
*) ac_try_echo=$ac_try;;
23857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858
(eval "$ac_compile") 2>conftest.er1
23860
grep -v '^ *+' conftest.er1 >conftest.err
23862
cat conftest.err >&5
23863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864
(exit $ac_status); } && {
23865
test -z "$ac_c_werror_flag" ||
23866
test ! -s conftest.err
23867
} && test -s conftest.$ac_objext; then
23868
ac_lo=$ac_mid; break
23870
echo "$as_me: failed program was:" >&5
23871
sed 's/^/| /' conftest.$ac_ext >&5
23873
ac_hi=`expr '(' $ac_mid ')' - 1`
23874
if test $ac_mid -le $ac_hi; then
23878
ac_mid=`expr 2 '*' $ac_mid`
23881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884
echo "$as_me: failed program was:" >&5
23885
sed 's/^/| /' conftest.$ac_ext >&5
23890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894
# Binary search between lo and hi bounds.
23895
while test "x$ac_lo" != "x$ac_hi"; do
23896
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23897
cat >conftest.$ac_ext <<_ACEOF
23900
cat confdefs.h >>conftest.$ac_ext
23901
cat >>conftest.$ac_ext <<_ACEOF
23902
/* end confdefs.h. */
23903
$ac_includes_default
23904
typedef int32_t ac__type_sizeof_;
23908
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23915
rm -f conftest.$ac_objext
23916
if { (ac_try="$ac_compile"
23917
case "(($ac_try" in
23918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919
*) ac_try_echo=$ac_try;;
23921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922
(eval "$ac_compile") 2>conftest.er1
23924
grep -v '^ *+' conftest.er1 >conftest.err
23926
cat conftest.err >&5
23927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928
(exit $ac_status); } && {
23929
test -z "$ac_c_werror_flag" ||
23930
test ! -s conftest.err
23931
} && test -s conftest.$ac_objext; then
23934
echo "$as_me: failed program was:" >&5
23935
sed 's/^/| /' conftest.$ac_ext >&5
23937
ac_lo=`expr '(' $ac_mid ')' + 1`
23940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943
?*) ac_cv_sizeof_int32_t=$ac_lo;;
23944
'') if test "$ac_cv_type_int32_t" = yes; then
23945
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
23946
See \`config.log' for more details." >&5
23947
echo "$as_me: error: cannot compute sizeof (int32_t)
23948
See \`config.log' for more details." >&2;}
23949
{ (exit 77); exit 77; }; }
23951
ac_cv_sizeof_int32_t=0
23955
cat >conftest.$ac_ext <<_ACEOF
23958
cat confdefs.h >>conftest.$ac_ext
23959
cat >>conftest.$ac_ext <<_ACEOF
23960
/* end confdefs.h. */
23961
$ac_includes_default
23962
typedef int32_t ac__type_sizeof_;
23963
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23964
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23966
#include <stdlib.h>
23971
FILE *f = fopen ("conftest.val", "w");
23974
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23976
long int i = longval ();
23977
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23979
fprintf (f, "%ld\n", i);
23983
unsigned long int i = ulongval ();
23984
if (i != ((long int) (sizeof (ac__type_sizeof_))))
23986
fprintf (f, "%lu\n", i);
23988
return ferror (f) || fclose (f) != 0;
23994
rm -f conftest$ac_exeext
23995
if { (ac_try="$ac_link"
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_link") 2>&5
24003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24005
{ (case "(($ac_try" in
24006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007
*) ac_try_echo=$ac_try;;
24009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010
(eval "$ac_try") 2>&5
24012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013
(exit $ac_status); }; }; then
24014
ac_cv_sizeof_int32_t=`cat conftest.val`
24016
echo "$as_me: program exited with status $ac_status" >&5
24017
echo "$as_me: failed program was:" >&5
24018
sed 's/^/| /' conftest.$ac_ext >&5
24020
( exit $ac_status )
24021
if test "$ac_cv_type_int32_t" = yes; then
24022
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
24023
See \`config.log' for more details." >&5
24024
echo "$as_me: error: cannot compute sizeof (int32_t)
24025
See \`config.log' for more details." >&2;}
24026
{ (exit 77); exit 77; }; }
24028
ac_cv_sizeof_int32_t=0
24031
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24035
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
24036
echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6; }
24040
cat >>confdefs.h <<_ACEOF
24041
#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
24046
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
24047
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24048
if test "${ac_cv_type_uint32_t+set}" = set; then
24049
echo $ECHO_N "(cached) $ECHO_C" >&6
24051
cat >conftest.$ac_ext <<_ACEOF
24054
cat confdefs.h >>conftest.$ac_ext
24055
cat >>conftest.$ac_ext <<_ACEOF
24056
/* end confdefs.h. */
24057
$ac_includes_default
24058
typedef uint32_t ac__type_new_;
24062
if ((ac__type_new_ *) 0)
24064
if (sizeof (ac__type_new_))
24070
rm -f conftest.$ac_objext
24071
if { (ac_try="$ac_compile"
24072
case "(($ac_try" in
24073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074
*) ac_try_echo=$ac_try;;
24076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077
(eval "$ac_compile") 2>conftest.er1
24079
grep -v '^ *+' conftest.er1 >conftest.err
24081
cat conftest.err >&5
24082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083
(exit $ac_status); } && {
24084
test -z "$ac_c_werror_flag" ||
24085
test ! -s conftest.err
24086
} && test -s conftest.$ac_objext; then
24087
ac_cv_type_uint32_t=yes
24089
echo "$as_me: failed program was:" >&5
24090
sed 's/^/| /' conftest.$ac_ext >&5
24092
ac_cv_type_uint32_t=no
24095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24097
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24098
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24100
# The cast to long int works around a bug in the HP C Compiler
24101
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24102
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24103
# This bug is HP SR number 8606223364.
24104
{ echo "$as_me:$LINENO: checking size of uint32_t" >&5
24105
echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
24106
if test "${ac_cv_sizeof_uint32_t+set}" = set; then
24107
echo $ECHO_N "(cached) $ECHO_C" >&6
24109
if test "$cross_compiling" = yes; then
24110
# Depending upon the size, compute the lo and hi bounds.
24111
cat >conftest.$ac_ext <<_ACEOF
24114
cat confdefs.h >>conftest.$ac_ext
24115
cat >>conftest.$ac_ext <<_ACEOF
24116
/* end confdefs.h. */
24117
$ac_includes_default
24118
typedef uint32_t ac__type_sizeof_;
24122
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24129
rm -f conftest.$ac_objext
24130
if { (ac_try="$ac_compile"
24131
case "(($ac_try" in
24132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133
*) ac_try_echo=$ac_try;;
24135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136
(eval "$ac_compile") 2>conftest.er1
24138
grep -v '^ *+' conftest.er1 >conftest.err
24140
cat conftest.err >&5
24141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142
(exit $ac_status); } && {
24143
test -z "$ac_c_werror_flag" ||
24144
test ! -s conftest.err
24145
} && test -s conftest.$ac_objext; then
24148
cat >conftest.$ac_ext <<_ACEOF
24151
cat confdefs.h >>conftest.$ac_ext
24152
cat >>conftest.$ac_ext <<_ACEOF
24153
/* end confdefs.h. */
24154
$ac_includes_default
24155
typedef uint32_t ac__type_sizeof_;
24159
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24166
rm -f conftest.$ac_objext
24167
if { (ac_try="$ac_compile"
24168
case "(($ac_try" in
24169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170
*) ac_try_echo=$ac_try;;
24172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24173
(eval "$ac_compile") 2>conftest.er1
24175
grep -v '^ *+' conftest.er1 >conftest.err
24177
cat conftest.err >&5
24178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179
(exit $ac_status); } && {
24180
test -z "$ac_c_werror_flag" ||
24181
test ! -s conftest.err
24182
} && test -s conftest.$ac_objext; then
24183
ac_hi=$ac_mid; break
24185
echo "$as_me: failed program was:" >&5
24186
sed 's/^/| /' conftest.$ac_ext >&5
24188
ac_lo=`expr $ac_mid + 1`
24189
if test $ac_lo -le $ac_mid; then
24193
ac_mid=`expr 2 '*' $ac_mid + 1`
24196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199
echo "$as_me: failed program was:" >&5
24200
sed 's/^/| /' conftest.$ac_ext >&5
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 uint32_t ac__type_sizeof_;
24213
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24220
rm -f conftest.$ac_objext
24221
if { (ac_try="$ac_compile"
24222
case "(($ac_try" in
24223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224
*) ac_try_echo=$ac_try;;
24226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227
(eval "$ac_compile") 2>conftest.er1
24229
grep -v '^ *+' conftest.er1 >conftest.err
24231
cat conftest.err >&5
24232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233
(exit $ac_status); } && {
24234
test -z "$ac_c_werror_flag" ||
24235
test ! -s conftest.err
24236
} && test -s conftest.$ac_objext; then
24239
cat >conftest.$ac_ext <<_ACEOF
24242
cat confdefs.h >>conftest.$ac_ext
24243
cat >>conftest.$ac_ext <<_ACEOF
24244
/* end confdefs.h. */
24245
$ac_includes_default
24246
typedef uint32_t ac__type_sizeof_;
24250
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24257
rm -f conftest.$ac_objext
24258
if { (ac_try="$ac_compile"
24259
case "(($ac_try" in
24260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261
*) ac_try_echo=$ac_try;;
24263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264
(eval "$ac_compile") 2>conftest.er1
24266
grep -v '^ *+' conftest.er1 >conftest.err
24268
cat conftest.err >&5
24269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270
(exit $ac_status); } && {
24271
test -z "$ac_c_werror_flag" ||
24272
test ! -s conftest.err
24273
} && test -s conftest.$ac_objext; then
24274
ac_lo=$ac_mid; break
24276
echo "$as_me: failed program was:" >&5
24277
sed 's/^/| /' conftest.$ac_ext >&5
24279
ac_hi=`expr '(' $ac_mid ')' - 1`
24280
if test $ac_mid -le $ac_hi; then
24284
ac_mid=`expr 2 '*' $ac_mid`
24287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290
echo "$as_me: failed program was:" >&5
24291
sed 's/^/| /' conftest.$ac_ext >&5
24296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300
# Binary search between lo and hi bounds.
24301
while test "x$ac_lo" != "x$ac_hi"; do
24302
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24303
cat >conftest.$ac_ext <<_ACEOF
24306
cat confdefs.h >>conftest.$ac_ext
24307
cat >>conftest.$ac_ext <<_ACEOF
24308
/* end confdefs.h. */
24309
$ac_includes_default
24310
typedef uint32_t ac__type_sizeof_;
24314
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24321
rm -f conftest.$ac_objext
24322
if { (ac_try="$ac_compile"
24323
case "(($ac_try" in
24324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325
*) ac_try_echo=$ac_try;;
24327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328
(eval "$ac_compile") 2>conftest.er1
24330
grep -v '^ *+' conftest.er1 >conftest.err
24332
cat conftest.err >&5
24333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334
(exit $ac_status); } && {
24335
test -z "$ac_c_werror_flag" ||
24336
test ! -s conftest.err
24337
} && test -s conftest.$ac_objext; then
24340
echo "$as_me: failed program was:" >&5
24341
sed 's/^/| /' conftest.$ac_ext >&5
24343
ac_lo=`expr '(' $ac_mid ')' + 1`
24346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349
?*) ac_cv_sizeof_uint32_t=$ac_lo;;
24350
'') if test "$ac_cv_type_uint32_t" = yes; then
24351
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
24352
See \`config.log' for more details." >&5
24353
echo "$as_me: error: cannot compute sizeof (uint32_t)
24354
See \`config.log' for more details." >&2;}
24355
{ (exit 77); exit 77; }; }
24357
ac_cv_sizeof_uint32_t=0
24361
cat >conftest.$ac_ext <<_ACEOF
24364
cat confdefs.h >>conftest.$ac_ext
24365
cat >>conftest.$ac_ext <<_ACEOF
24366
/* end confdefs.h. */
24367
$ac_includes_default
24368
typedef uint32_t ac__type_sizeof_;
24369
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24370
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24372
#include <stdlib.h>
24377
FILE *f = fopen ("conftest.val", "w");
24380
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24382
long int i = longval ();
24383
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24385
fprintf (f, "%ld\n", i);
24389
unsigned long int i = ulongval ();
24390
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24392
fprintf (f, "%lu\n", i);
24394
return ferror (f) || fclose (f) != 0;
24400
rm -f conftest$ac_exeext
24401
if { (ac_try="$ac_link"
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_link") 2>&5
24409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24411
{ (case "(($ac_try" in
24412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413
*) ac_try_echo=$ac_try;;
24415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416
(eval "$ac_try") 2>&5
24418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419
(exit $ac_status); }; }; then
24420
ac_cv_sizeof_uint32_t=`cat conftest.val`
24422
echo "$as_me: program exited with status $ac_status" >&5
24423
echo "$as_me: failed program was:" >&5
24424
sed 's/^/| /' conftest.$ac_ext >&5
24426
( exit $ac_status )
24427
if test "$ac_cv_type_uint32_t" = yes; then
24428
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
24429
See \`config.log' for more details." >&5
24430
echo "$as_me: error: cannot compute sizeof (uint32_t)
24431
See \`config.log' for more details." >&2;}
24432
{ (exit 77); exit 77; }; }
24434
ac_cv_sizeof_uint32_t=0
24437
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24441
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
24442
echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
24446
cat >>confdefs.h <<_ACEOF
24447
#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
24452
{ echo "$as_me:$LINENO: checking for int16_t" >&5
24453
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
24454
if test "${ac_cv_type_int16_t+set}" = set; then
24455
echo $ECHO_N "(cached) $ECHO_C" >&6
24457
cat >conftest.$ac_ext <<_ACEOF
24460
cat confdefs.h >>conftest.$ac_ext
24461
cat >>conftest.$ac_ext <<_ACEOF
24462
/* end confdefs.h. */
24463
$ac_includes_default
24464
typedef int16_t ac__type_new_;
24468
if ((ac__type_new_ *) 0)
24470
if (sizeof (ac__type_new_))
24476
rm -f conftest.$ac_objext
24477
if { (ac_try="$ac_compile"
24478
case "(($ac_try" in
24479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480
*) ac_try_echo=$ac_try;;
24482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483
(eval "$ac_compile") 2>conftest.er1
24485
grep -v '^ *+' conftest.er1 >conftest.err
24487
cat conftest.err >&5
24488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489
(exit $ac_status); } && {
24490
test -z "$ac_c_werror_flag" ||
24491
test ! -s conftest.err
24492
} && test -s conftest.$ac_objext; then
24493
ac_cv_type_int16_t=yes
24495
echo "$as_me: failed program was:" >&5
24496
sed 's/^/| /' conftest.$ac_ext >&5
24498
ac_cv_type_int16_t=no
24501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24503
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
24504
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
24506
# The cast to long int works around a bug in the HP C Compiler
24507
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24508
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24509
# This bug is HP SR number 8606223364.
24510
{ echo "$as_me:$LINENO: checking size of int16_t" >&5
24511
echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6; }
24512
if test "${ac_cv_sizeof_int16_t+set}" = set; then
24513
echo $ECHO_N "(cached) $ECHO_C" >&6
24515
if test "$cross_compiling" = yes; then
24516
# Depending upon the size, compute the lo and hi bounds.
24517
cat >conftest.$ac_ext <<_ACEOF
24520
cat confdefs.h >>conftest.$ac_ext
24521
cat >>conftest.$ac_ext <<_ACEOF
24522
/* end confdefs.h. */
24523
$ac_includes_default
24524
typedef int16_t ac__type_sizeof_;
24528
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24535
rm -f conftest.$ac_objext
24536
if { (ac_try="$ac_compile"
24537
case "(($ac_try" in
24538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539
*) ac_try_echo=$ac_try;;
24541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542
(eval "$ac_compile") 2>conftest.er1
24544
grep -v '^ *+' conftest.er1 >conftest.err
24546
cat conftest.err >&5
24547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548
(exit $ac_status); } && {
24549
test -z "$ac_c_werror_flag" ||
24550
test ! -s conftest.err
24551
} && test -s conftest.$ac_objext; then
24554
cat >conftest.$ac_ext <<_ACEOF
24557
cat confdefs.h >>conftest.$ac_ext
24558
cat >>conftest.$ac_ext <<_ACEOF
24559
/* end confdefs.h. */
24560
$ac_includes_default
24561
typedef int16_t ac__type_sizeof_;
24565
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24572
rm -f conftest.$ac_objext
24573
if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24581
grep -v '^ *+' conftest.er1 >conftest.err
24583
cat conftest.err >&5
24584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585
(exit $ac_status); } && {
24586
test -z "$ac_c_werror_flag" ||
24587
test ! -s conftest.err
24588
} && test -s conftest.$ac_objext; then
24589
ac_hi=$ac_mid; break
24591
echo "$as_me: failed program was:" >&5
24592
sed 's/^/| /' conftest.$ac_ext >&5
24594
ac_lo=`expr $ac_mid + 1`
24595
if test $ac_lo -le $ac_mid; then
24599
ac_mid=`expr 2 '*' $ac_mid + 1`
24602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605
echo "$as_me: failed program was:" >&5
24606
sed 's/^/| /' conftest.$ac_ext >&5
24608
cat >conftest.$ac_ext <<_ACEOF
24611
cat confdefs.h >>conftest.$ac_ext
24612
cat >>conftest.$ac_ext <<_ACEOF
24613
/* end confdefs.h. */
24614
$ac_includes_default
24615
typedef int16_t ac__type_sizeof_;
24619
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24626
rm -f conftest.$ac_objext
24627
if { (ac_try="$ac_compile"
24628
case "(($ac_try" in
24629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630
*) ac_try_echo=$ac_try;;
24632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633
(eval "$ac_compile") 2>conftest.er1
24635
grep -v '^ *+' conftest.er1 >conftest.err
24637
cat conftest.err >&5
24638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639
(exit $ac_status); } && {
24640
test -z "$ac_c_werror_flag" ||
24641
test ! -s conftest.err
24642
} && test -s conftest.$ac_objext; then
24645
cat >conftest.$ac_ext <<_ACEOF
24648
cat confdefs.h >>conftest.$ac_ext
24649
cat >>conftest.$ac_ext <<_ACEOF
24650
/* end confdefs.h. */
24651
$ac_includes_default
24652
typedef int16_t ac__type_sizeof_;
24656
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24663
rm -f conftest.$ac_objext
24664
if { (ac_try="$ac_compile"
24665
case "(($ac_try" in
24666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667
*) ac_try_echo=$ac_try;;
24669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670
(eval "$ac_compile") 2>conftest.er1
24672
grep -v '^ *+' conftest.er1 >conftest.err
24674
cat conftest.err >&5
24675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676
(exit $ac_status); } && {
24677
test -z "$ac_c_werror_flag" ||
24678
test ! -s conftest.err
24679
} && test -s conftest.$ac_objext; then
24680
ac_lo=$ac_mid; break
24682
echo "$as_me: failed program was:" >&5
24683
sed 's/^/| /' conftest.$ac_ext >&5
24685
ac_hi=`expr '(' $ac_mid ')' - 1`
24686
if test $ac_mid -le $ac_hi; then
24690
ac_mid=`expr 2 '*' $ac_mid`
24693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696
echo "$as_me: failed program was:" >&5
24697
sed 's/^/| /' conftest.$ac_ext >&5
24702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706
# Binary search between lo and hi bounds.
24707
while test "x$ac_lo" != "x$ac_hi"; do
24708
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24709
cat >conftest.$ac_ext <<_ACEOF
24712
cat confdefs.h >>conftest.$ac_ext
24713
cat >>conftest.$ac_ext <<_ACEOF
24714
/* end confdefs.h. */
24715
$ac_includes_default
24716
typedef int16_t ac__type_sizeof_;
24720
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24727
rm -f conftest.$ac_objext
24728
if { (ac_try="$ac_compile"
24729
case "(($ac_try" in
24730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731
*) ac_try_echo=$ac_try;;
24733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734
(eval "$ac_compile") 2>conftest.er1
24736
grep -v '^ *+' conftest.er1 >conftest.err
24738
cat conftest.err >&5
24739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740
(exit $ac_status); } && {
24741
test -z "$ac_c_werror_flag" ||
24742
test ! -s conftest.err
24743
} && test -s conftest.$ac_objext; then
24746
echo "$as_me: failed program was:" >&5
24747
sed 's/^/| /' conftest.$ac_ext >&5
24749
ac_lo=`expr '(' $ac_mid ')' + 1`
24752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24755
?*) ac_cv_sizeof_int16_t=$ac_lo;;
24756
'') if test "$ac_cv_type_int16_t" = yes; then
24757
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
24758
See \`config.log' for more details." >&5
24759
echo "$as_me: error: cannot compute sizeof (int16_t)
24760
See \`config.log' for more details." >&2;}
24761
{ (exit 77); exit 77; }; }
24763
ac_cv_sizeof_int16_t=0
24767
cat >conftest.$ac_ext <<_ACEOF
24770
cat confdefs.h >>conftest.$ac_ext
24771
cat >>conftest.$ac_ext <<_ACEOF
24772
/* end confdefs.h. */
24773
$ac_includes_default
24774
typedef int16_t ac__type_sizeof_;
24775
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24776
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24778
#include <stdlib.h>
24783
FILE *f = fopen ("conftest.val", "w");
24786
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24788
long int i = longval ();
24789
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24791
fprintf (f, "%ld\n", i);
24795
unsigned long int i = ulongval ();
24796
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24798
fprintf (f, "%lu\n", i);
24800
return ferror (f) || fclose (f) != 0;
24806
rm -f conftest$ac_exeext
24807
if { (ac_try="$ac_link"
24808
case "(($ac_try" in
24809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810
*) ac_try_echo=$ac_try;;
24812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813
(eval "$ac_link") 2>&5
24815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24817
{ (case "(($ac_try" in
24818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24819
*) ac_try_echo=$ac_try;;
24821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24822
(eval "$ac_try") 2>&5
24824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825
(exit $ac_status); }; }; then
24826
ac_cv_sizeof_int16_t=`cat conftest.val`
24828
echo "$as_me: program exited with status $ac_status" >&5
24829
echo "$as_me: failed program was:" >&5
24830
sed 's/^/| /' conftest.$ac_ext >&5
24832
( exit $ac_status )
24833
if test "$ac_cv_type_int16_t" = yes; then
24834
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
24835
See \`config.log' for more details." >&5
24836
echo "$as_me: error: cannot compute sizeof (int16_t)
24837
See \`config.log' for more details." >&2;}
24838
{ (exit 77); exit 77; }; }
24840
ac_cv_sizeof_int16_t=0
24843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24847
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
24848
echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6; }
24852
cat >>confdefs.h <<_ACEOF
24853
#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
24857
# DUINT16 unsigned short
24858
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
24859
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24860
if test "${ac_cv_type_uint16_t+set}" = set; then
24861
echo $ECHO_N "(cached) $ECHO_C" >&6
24863
cat >conftest.$ac_ext <<_ACEOF
24866
cat confdefs.h >>conftest.$ac_ext
24867
cat >>conftest.$ac_ext <<_ACEOF
24868
/* end confdefs.h. */
24869
$ac_includes_default
24870
typedef uint16_t ac__type_new_;
24874
if ((ac__type_new_ *) 0)
24876
if (sizeof (ac__type_new_))
24882
rm -f conftest.$ac_objext
24883
if { (ac_try="$ac_compile"
24884
case "(($ac_try" in
24885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886
*) ac_try_echo=$ac_try;;
24888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889
(eval "$ac_compile") 2>conftest.er1
24891
grep -v '^ *+' conftest.er1 >conftest.err
24893
cat conftest.err >&5
24894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895
(exit $ac_status); } && {
24896
test -z "$ac_c_werror_flag" ||
24897
test ! -s conftest.err
24898
} && test -s conftest.$ac_objext; then
24899
ac_cv_type_uint16_t=yes
24901
echo "$as_me: failed program was:" >&5
24902
sed 's/^/| /' conftest.$ac_ext >&5
24904
ac_cv_type_uint16_t=no
24907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24910
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24912
# The cast to long int works around a bug in the HP C Compiler
24913
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24914
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24915
# This bug is HP SR number 8606223364.
24916
{ echo "$as_me:$LINENO: checking size of uint16_t" >&5
24917
echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
24918
if test "${ac_cv_sizeof_uint16_t+set}" = set; then
24919
echo $ECHO_N "(cached) $ECHO_C" >&6
24921
if test "$cross_compiling" = yes; then
24922
# Depending upon the size, compute the lo and hi bounds.
24923
cat >conftest.$ac_ext <<_ACEOF
24926
cat confdefs.h >>conftest.$ac_ext
24927
cat >>conftest.$ac_ext <<_ACEOF
24928
/* end confdefs.h. */
24929
$ac_includes_default
24930
typedef uint16_t ac__type_sizeof_;
24934
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24941
rm -f conftest.$ac_objext
24942
if { (ac_try="$ac_compile"
24943
case "(($ac_try" in
24944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945
*) ac_try_echo=$ac_try;;
24947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948
(eval "$ac_compile") 2>conftest.er1
24950
grep -v '^ *+' conftest.er1 >conftest.err
24952
cat conftest.err >&5
24953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954
(exit $ac_status); } && {
24955
test -z "$ac_c_werror_flag" ||
24956
test ! -s conftest.err
24957
} && test -s conftest.$ac_objext; then
24960
cat >conftest.$ac_ext <<_ACEOF
24963
cat confdefs.h >>conftest.$ac_ext
24964
cat >>conftest.$ac_ext <<_ACEOF
24965
/* end confdefs.h. */
24966
$ac_includes_default
24967
typedef uint16_t ac__type_sizeof_;
24971
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24978
rm -f conftest.$ac_objext
24979
if { (ac_try="$ac_compile"
24980
case "(($ac_try" in
24981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982
*) ac_try_echo=$ac_try;;
24984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985
(eval "$ac_compile") 2>conftest.er1
24987
grep -v '^ *+' conftest.er1 >conftest.err
24989
cat conftest.err >&5
24990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991
(exit $ac_status); } && {
24992
test -z "$ac_c_werror_flag" ||
24993
test ! -s conftest.err
24994
} && test -s conftest.$ac_objext; then
24995
ac_hi=$ac_mid; break
24997
echo "$as_me: failed program was:" >&5
24998
sed 's/^/| /' conftest.$ac_ext >&5
25000
ac_lo=`expr $ac_mid + 1`
25001
if test $ac_lo -le $ac_mid; then
25005
ac_mid=`expr 2 '*' $ac_mid + 1`
25008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25011
echo "$as_me: failed program was:" >&5
25012
sed 's/^/| /' conftest.$ac_ext >&5
25014
cat >conftest.$ac_ext <<_ACEOF
25017
cat confdefs.h >>conftest.$ac_ext
25018
cat >>conftest.$ac_ext <<_ACEOF
25019
/* end confdefs.h. */
25020
$ac_includes_default
25021
typedef uint16_t ac__type_sizeof_;
25025
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25032
rm -f conftest.$ac_objext
25033
if { (ac_try="$ac_compile"
25034
case "(($ac_try" in
25035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036
*) ac_try_echo=$ac_try;;
25038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039
(eval "$ac_compile") 2>conftest.er1
25041
grep -v '^ *+' conftest.er1 >conftest.err
25043
cat conftest.err >&5
25044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045
(exit $ac_status); } && {
25046
test -z "$ac_c_werror_flag" ||
25047
test ! -s conftest.err
25048
} && test -s conftest.$ac_objext; then
25051
cat >conftest.$ac_ext <<_ACEOF
25054
cat confdefs.h >>conftest.$ac_ext
25055
cat >>conftest.$ac_ext <<_ACEOF
25056
/* end confdefs.h. */
25057
$ac_includes_default
25058
typedef uint16_t ac__type_sizeof_;
25062
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25069
rm -f conftest.$ac_objext
25070
if { (ac_try="$ac_compile"
25071
case "(($ac_try" in
25072
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073
*) ac_try_echo=$ac_try;;
25075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076
(eval "$ac_compile") 2>conftest.er1
25078
grep -v '^ *+' conftest.er1 >conftest.err
25080
cat conftest.err >&5
25081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082
(exit $ac_status); } && {
25083
test -z "$ac_c_werror_flag" ||
25084
test ! -s conftest.err
25085
} && test -s conftest.$ac_objext; then
25086
ac_lo=$ac_mid; break
25088
echo "$as_me: failed program was:" >&5
25089
sed 's/^/| /' conftest.$ac_ext >&5
25091
ac_hi=`expr '(' $ac_mid ')' - 1`
25092
if test $ac_mid -le $ac_hi; then
25096
ac_mid=`expr 2 '*' $ac_mid`
25099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102
echo "$as_me: failed program was:" >&5
25103
sed 's/^/| /' conftest.$ac_ext >&5
25108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25112
# Binary search between lo and hi bounds.
25113
while test "x$ac_lo" != "x$ac_hi"; do
25114
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25115
cat >conftest.$ac_ext <<_ACEOF
25118
cat confdefs.h >>conftest.$ac_ext
25119
cat >>conftest.$ac_ext <<_ACEOF
25120
/* end confdefs.h. */
25121
$ac_includes_default
25122
typedef uint16_t ac__type_sizeof_;
25126
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25133
rm -f conftest.$ac_objext
25134
if { (ac_try="$ac_compile"
25135
case "(($ac_try" in
25136
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137
*) ac_try_echo=$ac_try;;
25139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140
(eval "$ac_compile") 2>conftest.er1
25142
grep -v '^ *+' conftest.er1 >conftest.err
25144
cat conftest.err >&5
25145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146
(exit $ac_status); } && {
25147
test -z "$ac_c_werror_flag" ||
25148
test ! -s conftest.err
25149
} && test -s conftest.$ac_objext; then
25152
echo "$as_me: failed program was:" >&5
25153
sed 's/^/| /' conftest.$ac_ext >&5
25155
ac_lo=`expr '(' $ac_mid ')' + 1`
25158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161
?*) ac_cv_sizeof_uint16_t=$ac_lo;;
25162
'') if test "$ac_cv_type_uint16_t" = yes; then
25163
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
25164
See \`config.log' for more details." >&5
25165
echo "$as_me: error: cannot compute sizeof (uint16_t)
25166
See \`config.log' for more details." >&2;}
25167
{ (exit 77); exit 77; }; }
25169
ac_cv_sizeof_uint16_t=0
25173
cat >conftest.$ac_ext <<_ACEOF
25176
cat confdefs.h >>conftest.$ac_ext
25177
cat >>conftest.$ac_ext <<_ACEOF
25178
/* end confdefs.h. */
25179
$ac_includes_default
25180
typedef uint16_t ac__type_sizeof_;
25181
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25182
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25184
#include <stdlib.h>
25189
FILE *f = fopen ("conftest.val", "w");
25192
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25194
long int i = longval ();
25195
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25197
fprintf (f, "%ld\n", i);
25201
unsigned long int i = ulongval ();
25202
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25204
fprintf (f, "%lu\n", i);
25206
return ferror (f) || fclose (f) != 0;
25212
rm -f conftest$ac_exeext
25213
if { (ac_try="$ac_link"
25214
case "(($ac_try" in
25215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216
*) ac_try_echo=$ac_try;;
25218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219
(eval "$ac_link") 2>&5
25221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25223
{ (case "(($ac_try" in
25224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225
*) ac_try_echo=$ac_try;;
25227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228
(eval "$ac_try") 2>&5
25230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231
(exit $ac_status); }; }; then
25232
ac_cv_sizeof_uint16_t=`cat conftest.val`
25234
echo "$as_me: program exited with status $ac_status" >&5
25235
echo "$as_me: failed program was:" >&5
25236
sed 's/^/| /' conftest.$ac_ext >&5
25238
( exit $ac_status )
25239
if test "$ac_cv_type_uint16_t" = yes; then
25240
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
25241
See \`config.log' for more details." >&5
25242
echo "$as_me: error: cannot compute sizeof (uint16_t)
25243
See \`config.log' for more details." >&2;}
25244
{ (exit 77); exit 77; }; }
25246
ac_cv_sizeof_uint16_t=0
25249
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25253
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
25254
echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
25258
cat >>confdefs.h <<_ACEOF
25259
#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
25264
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
25265
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
25266
if test "${ac_cv_type_uint8_t+set}" = set; then
25267
echo $ECHO_N "(cached) $ECHO_C" >&6
25269
cat >conftest.$ac_ext <<_ACEOF
25272
cat confdefs.h >>conftest.$ac_ext
25273
cat >>conftest.$ac_ext <<_ACEOF
25274
/* end confdefs.h. */
25275
$ac_includes_default
25276
typedef uint8_t ac__type_new_;
25280
if ((ac__type_new_ *) 0)
25282
if (sizeof (ac__type_new_))
25288
rm -f conftest.$ac_objext
25289
if { (ac_try="$ac_compile"
25290
case "(($ac_try" in
25291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292
*) ac_try_echo=$ac_try;;
25294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295
(eval "$ac_compile") 2>conftest.er1
25297
grep -v '^ *+' conftest.er1 >conftest.err
25299
cat conftest.err >&5
25300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301
(exit $ac_status); } && {
25302
test -z "$ac_c_werror_flag" ||
25303
test ! -s conftest.err
25304
} && test -s conftest.$ac_objext; then
25305
ac_cv_type_uint8_t=yes
25307
echo "$as_me: failed program was:" >&5
25308
sed 's/^/| /' conftest.$ac_ext >&5
25310
ac_cv_type_uint8_t=no
25313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
25316
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
25318
# The cast to long int works around a bug in the HP C Compiler
25319
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25320
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25321
# This bug is HP SR number 8606223364.
25322
{ echo "$as_me:$LINENO: checking size of uint8_t" >&5
25323
echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6; }
25324
if test "${ac_cv_sizeof_uint8_t+set}" = set; then
25325
echo $ECHO_N "(cached) $ECHO_C" >&6
25327
if test "$cross_compiling" = yes; then
25328
# Depending upon the size, compute the lo and hi bounds.
25329
cat >conftest.$ac_ext <<_ACEOF
25332
cat confdefs.h >>conftest.$ac_ext
25333
cat >>conftest.$ac_ext <<_ACEOF
25334
/* end confdefs.h. */
25335
$ac_includes_default
25336
typedef uint8_t ac__type_sizeof_;
25340
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25347
rm -f conftest.$ac_objext
25348
if { (ac_try="$ac_compile"
25349
case "(($ac_try" in
25350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351
*) ac_try_echo=$ac_try;;
25353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25354
(eval "$ac_compile") 2>conftest.er1
25356
grep -v '^ *+' conftest.er1 >conftest.err
25358
cat conftest.err >&5
25359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360
(exit $ac_status); } && {
25361
test -z "$ac_c_werror_flag" ||
25362
test ! -s conftest.err
25363
} && test -s conftest.$ac_objext; then
25366
cat >conftest.$ac_ext <<_ACEOF
25369
cat confdefs.h >>conftest.$ac_ext
25370
cat >>conftest.$ac_ext <<_ACEOF
25371
/* end confdefs.h. */
25372
$ac_includes_default
25373
typedef uint8_t ac__type_sizeof_;
25377
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25384
rm -f conftest.$ac_objext
25385
if { (ac_try="$ac_compile"
25386
case "(($ac_try" in
25387
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388
*) ac_try_echo=$ac_try;;
25390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391
(eval "$ac_compile") 2>conftest.er1
25393
grep -v '^ *+' conftest.er1 >conftest.err
25395
cat conftest.err >&5
25396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397
(exit $ac_status); } && {
25398
test -z "$ac_c_werror_flag" ||
25399
test ! -s conftest.err
25400
} && test -s conftest.$ac_objext; then
25401
ac_hi=$ac_mid; break
25403
echo "$as_me: failed program was:" >&5
25404
sed 's/^/| /' conftest.$ac_ext >&5
25406
ac_lo=`expr $ac_mid + 1`
25407
if test $ac_lo -le $ac_mid; then
25411
ac_mid=`expr 2 '*' $ac_mid + 1`
25414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417
echo "$as_me: failed program was:" >&5
25418
sed 's/^/| /' conftest.$ac_ext >&5
25420
cat >conftest.$ac_ext <<_ACEOF
25423
cat confdefs.h >>conftest.$ac_ext
25424
cat >>conftest.$ac_ext <<_ACEOF
25425
/* end confdefs.h. */
25426
$ac_includes_default
25427
typedef uint8_t ac__type_sizeof_;
25431
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25438
rm -f conftest.$ac_objext
25439
if { (ac_try="$ac_compile"
25440
case "(($ac_try" in
25441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442
*) ac_try_echo=$ac_try;;
25444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445
(eval "$ac_compile") 2>conftest.er1
25447
grep -v '^ *+' conftest.er1 >conftest.err
25449
cat conftest.err >&5
25450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451
(exit $ac_status); } && {
25452
test -z "$ac_c_werror_flag" ||
25453
test ! -s conftest.err
25454
} && test -s conftest.$ac_objext; then
25457
cat >conftest.$ac_ext <<_ACEOF
25460
cat confdefs.h >>conftest.$ac_ext
25461
cat >>conftest.$ac_ext <<_ACEOF
25462
/* end confdefs.h. */
25463
$ac_includes_default
25464
typedef uint8_t ac__type_sizeof_;
25468
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25475
rm -f conftest.$ac_objext
25476
if { (ac_try="$ac_compile"
25477
case "(($ac_try" in
25478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479
*) ac_try_echo=$ac_try;;
25481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482
(eval "$ac_compile") 2>conftest.er1
25484
grep -v '^ *+' conftest.er1 >conftest.err
25486
cat conftest.err >&5
25487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488
(exit $ac_status); } && {
25489
test -z "$ac_c_werror_flag" ||
25490
test ! -s conftest.err
25491
} && test -s conftest.$ac_objext; then
25492
ac_lo=$ac_mid; break
25494
echo "$as_me: failed program was:" >&5
25495
sed 's/^/| /' conftest.$ac_ext >&5
25497
ac_hi=`expr '(' $ac_mid ')' - 1`
25498
if test $ac_mid -le $ac_hi; then
25502
ac_mid=`expr 2 '*' $ac_mid`
25505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508
echo "$as_me: failed program was:" >&5
25509
sed 's/^/| /' conftest.$ac_ext >&5
25514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518
# Binary search between lo and hi bounds.
25519
while test "x$ac_lo" != "x$ac_hi"; do
25520
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25521
cat >conftest.$ac_ext <<_ACEOF
25524
cat confdefs.h >>conftest.$ac_ext
25525
cat >>conftest.$ac_ext <<_ACEOF
25526
/* end confdefs.h. */
25527
$ac_includes_default
25528
typedef uint8_t ac__type_sizeof_;
25532
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25539
rm -f conftest.$ac_objext
25540
if { (ac_try="$ac_compile"
25541
case "(($ac_try" in
25542
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543
*) ac_try_echo=$ac_try;;
25545
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546
(eval "$ac_compile") 2>conftest.er1
25548
grep -v '^ *+' conftest.er1 >conftest.err
25550
cat conftest.err >&5
25551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552
(exit $ac_status); } && {
25553
test -z "$ac_c_werror_flag" ||
25554
test ! -s conftest.err
25555
} && test -s conftest.$ac_objext; then
25558
echo "$as_me: failed program was:" >&5
25559
sed 's/^/| /' conftest.$ac_ext >&5
25561
ac_lo=`expr '(' $ac_mid ')' + 1`
25564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567
?*) ac_cv_sizeof_uint8_t=$ac_lo;;
25568
'') if test "$ac_cv_type_uint8_t" = yes; then
25569
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t)
25570
See \`config.log' for more details." >&5
25571
echo "$as_me: error: cannot compute sizeof (uint8_t)
25572
See \`config.log' for more details." >&2;}
25573
{ (exit 77); exit 77; }; }
25575
ac_cv_sizeof_uint8_t=0
25579
cat >conftest.$ac_ext <<_ACEOF
25582
cat confdefs.h >>conftest.$ac_ext
25583
cat >>conftest.$ac_ext <<_ACEOF
25584
/* end confdefs.h. */
25585
$ac_includes_default
25586
typedef uint8_t ac__type_sizeof_;
25587
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25588
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25590
#include <stdlib.h>
25595
FILE *f = fopen ("conftest.val", "w");
25598
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25600
long int i = longval ();
25601
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25603
fprintf (f, "%ld\n", i);
25607
unsigned long int i = ulongval ();
25608
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25610
fprintf (f, "%lu\n", i);
25612
return ferror (f) || fclose (f) != 0;
25618
rm -f conftest$ac_exeext
25619
if { (ac_try="$ac_link"
25620
case "(($ac_try" in
25621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622
*) ac_try_echo=$ac_try;;
25624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625
(eval "$ac_link") 2>&5
25627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25629
{ (case "(($ac_try" in
25630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631
*) ac_try_echo=$ac_try;;
25633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634
(eval "$ac_try") 2>&5
25636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637
(exit $ac_status); }; }; then
25638
ac_cv_sizeof_uint8_t=`cat conftest.val`
25640
echo "$as_me: program exited with status $ac_status" >&5
25641
echo "$as_me: failed program was:" >&5
25642
sed 's/^/| /' conftest.$ac_ext >&5
25644
( exit $ac_status )
25645
if test "$ac_cv_type_uint8_t" = yes; then
25646
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t)
25647
See \`config.log' for more details." >&5
25648
echo "$as_me: error: cannot compute sizeof (uint8_t)
25649
See \`config.log' for more details." >&2;}
25650
{ (exit 77); exit 77; }; }
25652
ac_cv_sizeof_uint8_t=0
25655
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25659
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
25660
echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6; }
25664
cat >>confdefs.h <<_ACEOF
25665
#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
25669
if test x"$dap_inttypes_header" = x'yes' -a $ac_cv_sizeof_int32_t -eq 4 -a $ac_cv_sizeof_int16_t -eq 2 -a $ac_cv_sizeof_uint8_t -eq 1 -a $ac_cv_sizeof_double -eq 8; then
25670
dap_use_c99_types=yes
25672
if test x"$dap_use_c99_types" = 'xyes'; then
25673
USE_C99_TYPES_TRUE=
25674
USE_C99_TYPES_FALSE='#'
25676
USE_C99_TYPES_TRUE='#'
25677
USE_C99_TYPES_FALSE=
25681
# I've separated the typedefs from the config.h header because other
25682
# projects which use the DAP were getting conflicts with their includes,
25683
# or the includes of still other libraries, and config.h. The
25684
# config.h header is now included only by .cc and .c files and headers
25685
# that need the typedefs use dods-datatypes.h.
25686
# there are 2 possibilities for the definition of dods_int32, ...,
25687
# types. First possibility is that the C99 types are used and
25688
# dods-datatypes-static.h is copied. In that case the following
25689
# definitions are not really usefull. In case the C99 types are
25690
# not available, dods-datatypes-config.h.in is used to generate
25691
# dods-datatypes.h.
25692
# The code below makes dods-datatypes-config.h stand on its own.
25695
# DMH: Divide into two sets of tests: one for DODS and one for XDR
25696
if test x"$dap_use_c99_types" = 'xyes'; then
25698
DODS_UINT32=uint32_t
25700
DODS_UINT16=uint16_t
25704
DODS_UINT16="unsigned short"
25706
DODS_UINT32="unsigned int"
25707
DODS_BYTE="unsigned char"
25709
DODS_FLOAT64=double
25712
# I'm using the three arg form of AC_DEFINE_UNQUOTED because autoheader
25713
# needs the third argument (although I don't quite get the specifics...
25716
cat >>confdefs.h <<_ACEOF
25717
#define DINT32 $DODS_INT32
25721
cat >>confdefs.h <<_ACEOF
25722
#define DUINT32 $DODS_UINT32
25726
cat >>confdefs.h <<_ACEOF
25727
#define DINT16 $DODS_INT16
25731
cat >>confdefs.h <<_ACEOF
25732
#define DUINT16 $DODS_UINT16
25736
cat >>confdefs.h <<_ACEOF
25737
#define DFLOAT64 $DODS_FLOAT64
25741
cat >>confdefs.h <<_ACEOF
25742
#define DFLOAT32 $DODS_FLOAT32
25746
cat >>confdefs.h <<_ACEOF
25747
#define DBYTE $DODS_BYTE
25751
# XDR INTEGER TYPES
25752
# Unfortunately, there is little commonality about xdr
25754
# First, we need to see if the xdr routines are in libc, librpc,
25755
# or librpcsvc or libnsl
25757
{ echo "$as_me:$LINENO: checking for library containing xdr_void" >&5
25758
echo $ECHO_N "checking for library containing xdr_void... $ECHO_C" >&6; }
25759
if test "${ac_cv_search_xdr_void+set}" = set; then
25760
echo $ECHO_N "(cached) $ECHO_C" >&6
25762
ac_func_search_save_LIBS=$LIBS
25763
cat >conftest.$ac_ext <<_ACEOF
25766
cat confdefs.h >>conftest.$ac_ext
25767
cat >>conftest.$ac_ext <<_ACEOF
25768
/* end confdefs.h. */
25770
/* Override any GCC internal prototype to avoid an error.
25771
Use char because int might match the return type of a GCC
25772
builtin and then its argument prototype would still apply. */
25780
return xdr_void ();
25785
for ac_lib in '' c rpc nsl rpcsvc; do
25786
if test -z "$ac_lib"; then
25787
ac_res="none required"
25790
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25792
rm -f conftest.$ac_objext conftest$ac_exeext
25793
if { (ac_try="$ac_link"
25794
case "(($ac_try" in
25795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25796
*) ac_try_echo=$ac_try;;
25798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25799
(eval "$ac_link") 2>conftest.er1
25801
grep -v '^ *+' conftest.er1 >conftest.err
25803
cat conftest.err >&5
25804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805
(exit $ac_status); } && {
25806
test -z "$ac_c_werror_flag" ||
25807
test ! -s conftest.err
25808
} && test -s conftest$ac_exeext &&
25809
$as_test_x conftest$ac_exeext; then
25810
ac_cv_search_xdr_void=$ac_res
25812
echo "$as_me: failed program was:" >&5
25813
sed 's/^/| /' conftest.$ac_ext >&5
25818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25820
if test "${ac_cv_search_xdr_void+set}" = set; then
25824
if test "${ac_cv_search_xdr_void+set}" = set; then
25827
ac_cv_search_xdr_void=no
25829
rm conftest.$ac_ext
25830
LIBS=$ac_func_search_save_LIBS
25832
{ echo "$as_me:$LINENO: result: $ac_cv_search_xdr_void" >&5
25833
echo "${ECHO_T}$ac_cv_search_xdr_void" >&6; }
25834
ac_res=$ac_cv_search_xdr_void
25835
if test "$ac_res" != no; then
25836
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25838
dap_xdrlib=`echo $ac_res|sed -e 's/^-l//'`
25841
{ echo "$as_me:$LINENO: WARNING: Cannot locate library containing xdr functions." >&5
25842
echo "$as_me: WARNING: Cannot locate library containing xdr functions." >&2;}
25845
# Added for autoconf 2.59 which appears to not use/set $ac_res. jhrg
25846
if test -z "$dap_xdrlib" ; then dap_xdrlib=c; fi
25847
if test "$dap_xdrlib" = "none required" ; then dap_xdrlib=c; fi
25848
# I don't think this is needed for autoconf 2.61 but I have no idea about
25849
# 2.59 - it doesn't seem to be hurting anything with 2.61. jhrg
25850
if test "$dap_xdrlib" != "c" ; then
25851
# Add to library list
25853
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_void" | $as_tr_sh`
25854
{ echo "$as_me:$LINENO: checking for xdr_void in -l$dap_xdrlib" >&5
25855
echo $ECHO_N "checking for xdr_void in -l$dap_xdrlib... $ECHO_C" >&6; }
25856
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25857
echo $ECHO_N "(cached) $ECHO_C" >&6
25859
ac_check_lib_save_LIBS=$LIBS
25860
LIBS="-l$dap_xdrlib $LIBS"
25861
cat >conftest.$ac_ext <<_ACEOF
25864
cat confdefs.h >>conftest.$ac_ext
25865
cat >>conftest.$ac_ext <<_ACEOF
25866
/* end confdefs.h. */
25868
/* Override any GCC internal prototype to avoid an error.
25869
Use char because int might match the return type of a GCC
25870
builtin and then its argument prototype would still apply. */
25878
return xdr_void ();
25883
rm -f conftest.$ac_objext conftest$ac_exeext
25884
if { (ac_try="$ac_link"
25885
case "(($ac_try" in
25886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887
*) ac_try_echo=$ac_try;;
25889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890
(eval "$ac_link") 2>conftest.er1
25892
grep -v '^ *+' conftest.er1 >conftest.err
25894
cat conftest.err >&5
25895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896
(exit $ac_status); } && {
25897
test -z "$ac_c_werror_flag" ||
25898
test ! -s conftest.err
25899
} && test -s conftest$ac_exeext &&
25900
$as_test_x conftest$ac_exeext; then
25901
eval "$as_ac_Lib=yes"
25903
echo "$as_me: failed program was:" >&5
25904
sed 's/^/| /' conftest.$ac_ext >&5
25906
eval "$as_ac_Lib=no"
25909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910
conftest$ac_exeext conftest.$ac_ext
25911
LIBS=$ac_check_lib_save_LIBS
25913
ac_res=`eval echo '${'$as_ac_Lib'}'`
25914
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25915
echo "${ECHO_T}$ac_res" >&6; }
25916
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25917
cat >>confdefs.h <<_ACEOF
25918
#define `echo "HAVE_LIB$dap_xdrlib" | $as_tr_cpp` 1
25921
LIBS="-l$dap_xdrlib $LIBS"
25926
# Now figure out what integer functions to use
25928
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_uint32_t" | $as_tr_sh`
25929
{ echo "$as_me:$LINENO: checking for xdr_uint32_t in -l$dap_xdrlib" >&5
25930
echo $ECHO_N "checking for xdr_uint32_t in -l$dap_xdrlib... $ECHO_C" >&6; }
25931
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25932
echo $ECHO_N "(cached) $ECHO_C" >&6
25934
ac_check_lib_save_LIBS=$LIBS
25935
LIBS="-l$dap_xdrlib $LIBS"
25936
cat >conftest.$ac_ext <<_ACEOF
25939
cat confdefs.h >>conftest.$ac_ext
25940
cat >>conftest.$ac_ext <<_ACEOF
25941
/* end confdefs.h. */
25943
/* Override any GCC internal prototype to avoid an error.
25944
Use char because int might match the return type of a GCC
25945
builtin and then its argument prototype would still apply. */
25949
char xdr_uint32_t ();
25953
return xdr_uint32_t ();
25958
rm -f conftest.$ac_objext conftest$ac_exeext
25959
if { (ac_try="$ac_link"
25960
case "(($ac_try" in
25961
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962
*) ac_try_echo=$ac_try;;
25964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965
(eval "$ac_link") 2>conftest.er1
25967
grep -v '^ *+' conftest.er1 >conftest.err
25969
cat conftest.err >&5
25970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971
(exit $ac_status); } && {
25972
test -z "$ac_c_werror_flag" ||
25973
test ! -s conftest.err
25974
} && test -s conftest$ac_exeext &&
25975
$as_test_x conftest$ac_exeext; then
25976
eval "$as_ac_Lib=yes"
25978
echo "$as_me: failed program was:" >&5
25979
sed 's/^/| /' conftest.$ac_ext >&5
25981
eval "$as_ac_Lib=no"
25984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25985
conftest$ac_exeext conftest.$ac_ext
25986
LIBS=$ac_check_lib_save_LIBS
25988
ac_res=`eval echo '${'$as_ac_Lib'}'`
25989
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25990
echo "${ECHO_T}$ac_res" >&6; }
25991
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25995
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_u_int32_t" | $as_tr_sh`
25996
{ echo "$as_me:$LINENO: checking for xdr_u_int32_t in -l$dap_xdrlib" >&5
25997
echo $ECHO_N "checking for xdr_u_int32_t in -l$dap_xdrlib... $ECHO_C" >&6; }
25998
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25999
echo $ECHO_N "(cached) $ECHO_C" >&6
26001
ac_check_lib_save_LIBS=$LIBS
26002
LIBS="-l$dap_xdrlib $LIBS"
26003
cat >conftest.$ac_ext <<_ACEOF
26006
cat confdefs.h >>conftest.$ac_ext
26007
cat >>conftest.$ac_ext <<_ACEOF
26008
/* end confdefs.h. */
26010
/* Override any GCC internal prototype to avoid an error.
26011
Use char because int might match the return type of a GCC
26012
builtin and then its argument prototype would still apply. */
26016
char xdr_u_int32_t ();
26020
return xdr_u_int32_t ();
26025
rm -f conftest.$ac_objext conftest$ac_exeext
26026
if { (ac_try="$ac_link"
26027
case "(($ac_try" in
26028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029
*) ac_try_echo=$ac_try;;
26031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032
(eval "$ac_link") 2>conftest.er1
26034
grep -v '^ *+' conftest.er1 >conftest.err
26036
cat conftest.err >&5
26037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038
(exit $ac_status); } && {
26039
test -z "$ac_c_werror_flag" ||
26040
test ! -s conftest.err
26041
} && test -s conftest$ac_exeext &&
26042
$as_test_x conftest$ac_exeext; then
26043
eval "$as_ac_Lib=yes"
26045
echo "$as_me: failed program was:" >&5
26046
sed 's/^/| /' conftest.$ac_ext >&5
26048
eval "$as_ac_Lib=no"
26051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26052
conftest$ac_exeext conftest.$ac_ext
26053
LIBS=$ac_check_lib_save_LIBS
26055
ac_res=`eval echo '${'$as_ac_Lib'}'`
26056
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26057
echo "${ECHO_T}$ac_res" >&6; }
26058
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26062
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_uint" | $as_tr_sh`
26063
{ echo "$as_me:$LINENO: checking for xdr_uint in -l$dap_xdrlib" >&5
26064
echo $ECHO_N "checking for xdr_uint in -l$dap_xdrlib... $ECHO_C" >&6; }
26065
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26066
echo $ECHO_N "(cached) $ECHO_C" >&6
26068
ac_check_lib_save_LIBS=$LIBS
26069
LIBS="-l$dap_xdrlib $LIBS"
26070
cat >conftest.$ac_ext <<_ACEOF
26073
cat confdefs.h >>conftest.$ac_ext
26074
cat >>conftest.$ac_ext <<_ACEOF
26075
/* end confdefs.h. */
26077
/* Override any GCC internal prototype to avoid an error.
26078
Use char because int might match the return type of a GCC
26079
builtin and then its argument prototype would still apply. */
26087
return xdr_uint ();
26092
rm -f conftest.$ac_objext conftest$ac_exeext
26093
if { (ac_try="$ac_link"
26094
case "(($ac_try" in
26095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096
*) ac_try_echo=$ac_try;;
26098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099
(eval "$ac_link") 2>conftest.er1
26101
grep -v '^ *+' conftest.er1 >conftest.err
26103
cat conftest.err >&5
26104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105
(exit $ac_status); } && {
26106
test -z "$ac_c_werror_flag" ||
26107
test ! -s conftest.err
26108
} && test -s conftest$ac_exeext &&
26109
$as_test_x conftest$ac_exeext; then
26110
eval "$as_ac_Lib=yes"
26112
echo "$as_me: failed program was:" >&5
26113
sed 's/^/| /' conftest.$ac_ext >&5
26115
eval "$as_ac_Lib=no"
26118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26119
conftest$ac_exeext conftest.$ac_ext
26120
LIBS=$ac_check_lib_save_LIBS
26122
ac_res=`eval echo '${'$as_ac_Lib'}'`
26123
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26124
echo "${ECHO_T}$ac_res" >&6; }
26125
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26129
as_ac_Lib=`echo "ac_cv_lib_$dap_xdrlib''_xdr_u_int" | $as_tr_sh`
26130
{ echo "$as_me:$LINENO: checking for xdr_u_int in -l$dap_xdrlib" >&5
26131
echo $ECHO_N "checking for xdr_u_int in -l$dap_xdrlib... $ECHO_C" >&6; }
26132
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26133
echo $ECHO_N "(cached) $ECHO_C" >&6
26135
ac_check_lib_save_LIBS=$LIBS
26136
LIBS="-l$dap_xdrlib $LIBS"
26137
cat >conftest.$ac_ext <<_ACEOF
26140
cat confdefs.h >>conftest.$ac_ext
26141
cat >>conftest.$ac_ext <<_ACEOF
26142
/* end confdefs.h. */
26144
/* Override any GCC internal prototype to avoid an error.
26145
Use char because int might match the return type of a GCC
26146
builtin and then its argument prototype would still apply. */
26154
return xdr_u_int ();
26159
rm -f conftest.$ac_objext conftest$ac_exeext
26160
if { (ac_try="$ac_link"
26161
case "(($ac_try" in
26162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163
*) ac_try_echo=$ac_try;;
26165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166
(eval "$ac_link") 2>conftest.er1
26168
grep -v '^ *+' conftest.er1 >conftest.err
26170
cat conftest.err >&5
26171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172
(exit $ac_status); } && {
26173
test -z "$ac_c_werror_flag" ||
26174
test ! -s conftest.err
26175
} && test -s conftest$ac_exeext &&
26176
$as_test_x conftest$ac_exeext; then
26177
eval "$as_ac_Lib=yes"
26179
echo "$as_me: failed program was:" >&5
26180
sed 's/^/| /' conftest.$ac_ext >&5
26182
eval "$as_ac_Lib=no"
26185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26186
conftest$ac_exeext conftest.$ac_ext
26187
LIBS=$ac_check_lib_save_LIBS
26189
ac_res=`eval echo '${'$as_ac_Lib'}'`
26190
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26191
echo "${ECHO_T}$ac_res" >&6; }
26192
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26202
case "$dap_xdrint" in
26204
XDR_INT32=xdr_int32_t
26205
XDR_UINT32=xdr_uint32_t
26206
XDR_INT16=xdr_int16_t
26207
XDR_UINT16=xdr_uint16_t
26210
XDR_INT32=xdr_int32_t
26211
XDR_UINT32=xdr_u_int32_t
26212
XDR_INT16=xdr_int16_t
26213
XDR_UINT16=xdr_u_int16_t
26217
XDR_UINT32=xdr_uint
26218
XDR_INT16=xdr_short
26219
XDR_UINT16=xdr_ushort
26223
XDR_UINT32=xdr_u_int
26224
XDR_INT16=xdr_short
26225
XDR_UINT16=xdr_u_short
26228
{ { echo "$as_me:$LINENO: error: Cannot determine DODS XDR integer sizes" >&5
26229
echo "$as_me: error: Cannot determine DODS XDR integer sizes" >&2;}
26230
{ (exit 1); exit 1; }; }
26233
XDR_FLOAT64=xdr_double
26234
XDR_FLOAT32=xdr_float
26237
cat >>confdefs.h <<_ACEOF
26238
#define XDR_INT16 $XDR_INT16
26242
cat >>confdefs.h <<_ACEOF
26243
#define XDR_UINT16 $XDR_UINT16
26247
cat >>confdefs.h <<_ACEOF
26248
#define XDR_INT32 $XDR_INT32
26252
cat >>confdefs.h <<_ACEOF
26253
#define XDR_UINT32 $XDR_UINT32
26257
cat >>confdefs.h <<_ACEOF
26258
#define XDR_FLOAT64 $XDR_FLOAT64
26262
cat >>confdefs.h <<_ACEOF
26263
#define XDR_FLOAT32 $XDR_FLOAT32
26267
if test "$CC" = "gcc"
26270
COMPILER_IS_GCC_TRUE=
26271
COMPILER_IS_GCC_FALSE='#'
26273
COMPILER_IS_GCC_TRUE='#'
26274
COMPILER_IS_GCC_FALSE=
26279
COMPILER_IS_GCC_TRUE=
26280
COMPILER_IS_GCC_FALSE='#'
26282
COMPILER_IS_GCC_TRUE='#'
26283
COMPILER_IS_GCC_FALSE=
26288
# Checks for library functions.
26290
# These, at least some of them, cannot be used along with gnulib without
26291
# breaking stuff. Since we are not bothering to handle the cases where these
26292
# functions break, there's not much point in testing for them. However, it
26293
# might be a good thing to use the gnulib versions since those fix various
26294
# common problems found in many distributions.
26315
for ac_func in alarm atexit bzero dup2 getcwd getpagesize localtime_r memmove memset pow putenv setenv strchr strerror strtol strtoul timegm mktime
26317
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26318
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26319
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26320
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26321
echo $ECHO_N "(cached) $ECHO_C" >&6
26323
cat >conftest.$ac_ext <<_ACEOF
26326
cat confdefs.h >>conftest.$ac_ext
26327
cat >>conftest.$ac_ext <<_ACEOF
26328
/* end confdefs.h. */
26329
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26330
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26331
#define $ac_func innocuous_$ac_func
26333
/* System header to define __stub macros and hopefully few prototypes,
26334
which can conflict with char $ac_func (); below.
26335
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26336
<limits.h> exists even on freestanding compilers. */
26339
# include <limits.h>
26341
# include <assert.h>
26346
/* Override any GCC internal prototype to avoid an error.
26347
Use char because int might match the return type of a GCC
26348
builtin and then its argument prototype would still apply. */
26353
/* The GNU C library defines this for functions which it implements
26354
to always fail with ENOSYS. Some functions are actually named
26355
something starting with __ and the normal name is an alias. */
26356
#if defined __stub_$ac_func || defined __stub___$ac_func
26363
return $ac_func ();
26368
rm -f conftest.$ac_objext conftest$ac_exeext
26369
if { (ac_try="$ac_link"
26370
case "(($ac_try" in
26371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372
*) ac_try_echo=$ac_try;;
26374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375
(eval "$ac_link") 2>conftest.er1
26377
grep -v '^ *+' conftest.er1 >conftest.err
26379
cat conftest.err >&5
26380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381
(exit $ac_status); } && {
26382
test -z "$ac_c_werror_flag" ||
26383
test ! -s conftest.err
26384
} && test -s conftest$ac_exeext &&
26385
$as_test_x conftest$ac_exeext; then
26386
eval "$as_ac_var=yes"
26388
echo "$as_me: failed program was:" >&5
26389
sed 's/^/| /' conftest.$ac_ext >&5
26391
eval "$as_ac_var=no"
26394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26395
conftest$ac_exeext conftest.$ac_ext
26397
ac_res=`eval echo '${'$as_ac_var'}'`
26398
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26399
echo "${ECHO_T}$ac_res" >&6; }
26400
if test `eval echo '${'$as_ac_var'}'` = yes; then
26401
cat >>confdefs.h <<_ACEOF
26402
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26413
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26414
# for constant arguments. Useless!
26415
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
26416
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
26417
if test "${ac_cv_working_alloca_h+set}" = set; then
26418
echo $ECHO_N "(cached) $ECHO_C" >&6
26420
cat >conftest.$ac_ext <<_ACEOF
26423
cat confdefs.h >>conftest.$ac_ext
26424
cat >>conftest.$ac_ext <<_ACEOF
26425
/* end confdefs.h. */
26426
#include <alloca.h>
26430
char *p = (char *) alloca (2 * sizeof (int));
26436
rm -f conftest.$ac_objext conftest$ac_exeext
26437
if { (ac_try="$ac_link"
26438
case "(($ac_try" in
26439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26440
*) ac_try_echo=$ac_try;;
26442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26443
(eval "$ac_link") 2>conftest.er1
26445
grep -v '^ *+' conftest.er1 >conftest.err
26447
cat conftest.err >&5
26448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449
(exit $ac_status); } && {
26450
test -z "$ac_c_werror_flag" ||
26451
test ! -s conftest.err
26452
} && test -s conftest$ac_exeext &&
26453
$as_test_x conftest$ac_exeext; then
26454
ac_cv_working_alloca_h=yes
26456
echo "$as_me: failed program was:" >&5
26457
sed 's/^/| /' conftest.$ac_ext >&5
26459
ac_cv_working_alloca_h=no
26462
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26463
conftest$ac_exeext conftest.$ac_ext
26465
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26466
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
26467
if test $ac_cv_working_alloca_h = yes; then
26469
cat >>confdefs.h <<\_ACEOF
26470
#define HAVE_ALLOCA_H 1
26475
{ echo "$as_me:$LINENO: checking for alloca" >&5
26476
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
26477
if test "${ac_cv_func_alloca_works+set}" = set; then
26478
echo $ECHO_N "(cached) $ECHO_C" >&6
26480
cat >conftest.$ac_ext <<_ACEOF
26483
cat confdefs.h >>conftest.$ac_ext
26484
cat >>conftest.$ac_ext <<_ACEOF
26485
/* end confdefs.h. */
26487
# define alloca __builtin_alloca
26490
# include <malloc.h>
26491
# define alloca _alloca
26493
# ifdef HAVE_ALLOCA_H
26494
# include <alloca.h>
26499
# ifndef alloca /* predefined by HP cc +Olibcalls */
26510
char *p = (char *) alloca (1);
26516
rm -f conftest.$ac_objext conftest$ac_exeext
26517
if { (ac_try="$ac_link"
26518
case "(($ac_try" in
26519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520
*) ac_try_echo=$ac_try;;
26522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523
(eval "$ac_link") 2>conftest.er1
26525
grep -v '^ *+' conftest.er1 >conftest.err
26527
cat conftest.err >&5
26528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529
(exit $ac_status); } && {
26530
test -z "$ac_c_werror_flag" ||
26531
test ! -s conftest.err
26532
} && test -s conftest$ac_exeext &&
26533
$as_test_x conftest$ac_exeext; then
26534
ac_cv_func_alloca_works=yes
26536
echo "$as_me: failed program was:" >&5
26537
sed 's/^/| /' conftest.$ac_ext >&5
26539
ac_cv_func_alloca_works=no
26542
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26543
conftest$ac_exeext conftest.$ac_ext
26545
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
26546
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
26548
if test $ac_cv_func_alloca_works = yes; then
26550
cat >>confdefs.h <<\_ACEOF
26551
#define HAVE_ALLOCA 1
26555
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
26556
# that cause trouble. Some versions do not even contain alloca or
26557
# contain a buggy version. If you still want to use their alloca,
26558
# use ar to extract alloca.o from them instead of compiling alloca.c.
26560
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
26562
cat >>confdefs.h <<\_ACEOF
26567
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
26568
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
26569
if test "${ac_cv_os_cray+set}" = set; then
26570
echo $ECHO_N "(cached) $ECHO_C" >&6
26572
cat >conftest.$ac_ext <<_ACEOF
26575
cat confdefs.h >>conftest.$ac_ext
26576
cat >>conftest.$ac_ext <<_ACEOF
26577
/* end confdefs.h. */
26578
#if defined CRAY && ! defined CRAY2
26585
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26586
$EGREP "webecray" >/dev/null 2>&1; then
26594
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
26595
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
26596
if test $ac_cv_os_cray = yes; then
26597
for ac_func in _getb67 GETB67 getb67; do
26598
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26599
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26601
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26602
echo $ECHO_N "(cached) $ECHO_C" >&6
26604
cat >conftest.$ac_ext <<_ACEOF
26607
cat confdefs.h >>conftest.$ac_ext
26608
cat >>conftest.$ac_ext <<_ACEOF
26609
/* end confdefs.h. */
26610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26611
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26612
#define $ac_func innocuous_$ac_func
26614
/* System header to define __stub macros and hopefully few prototypes,
26615
which can conflict with char $ac_func (); below.
26616
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26617
<limits.h> exists even on freestanding compilers. */
26620
# include <limits.h>
26622
# include <assert.h>
26627
/* Override any GCC internal prototype to avoid an error.
26628
Use char because int might match the return type of a GCC
26629
builtin and then its argument prototype would still apply. */
26634
/* The GNU C library defines this for functions which it implements
26635
to always fail with ENOSYS. Some functions are actually named
26636
something starting with __ and the normal name is an alias. */
26637
#if defined __stub_$ac_func || defined __stub___$ac_func
26644
return $ac_func ();
26649
rm -f conftest.$ac_objext conftest$ac_exeext
26650
if { (ac_try="$ac_link"
26651
case "(($ac_try" in
26652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653
*) ac_try_echo=$ac_try;;
26655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26656
(eval "$ac_link") 2>conftest.er1
26658
grep -v '^ *+' conftest.er1 >conftest.err
26660
cat conftest.err >&5
26661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662
(exit $ac_status); } && {
26663
test -z "$ac_c_werror_flag" ||
26664
test ! -s conftest.err
26665
} && test -s conftest$ac_exeext &&
26666
$as_test_x conftest$ac_exeext; then
26667
eval "$as_ac_var=yes"
26669
echo "$as_me: failed program was:" >&5
26670
sed 's/^/| /' conftest.$ac_ext >&5
26672
eval "$as_ac_var=no"
26675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26676
conftest$ac_exeext conftest.$ac_ext
26678
ac_res=`eval echo '${'$as_ac_var'}'`
26679
{ echo "$as_me:$LINENO: result: $ac_res" >&5
26680
echo "${ECHO_T}$ac_res" >&6; }
26681
if test `eval echo '${'$as_ac_var'}'` = yes; then
26683
cat >>confdefs.h <<_ACEOF
26684
#define CRAY_STACKSEG_END $ac_func
26693
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
26694
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
26695
if test "${ac_cv_c_stack_direction+set}" = set; then
26696
echo $ECHO_N "(cached) $ECHO_C" >&6
26698
if test "$cross_compiling" = yes; then
26699
ac_cv_c_stack_direction=0
26701
cat >conftest.$ac_ext <<_ACEOF
26704
cat confdefs.h >>conftest.$ac_ext
26705
cat >>conftest.$ac_ext <<_ACEOF
26706
/* end confdefs.h. */
26707
$ac_includes_default
26709
find_stack_direction ()
26711
static char *addr = 0;
26716
return find_stack_direction ();
26719
return (&dummy > addr) ? 1 : -1;
26725
return find_stack_direction () < 0;
26728
rm -f conftest$ac_exeext
26729
if { (ac_try="$ac_link"
26730
case "(($ac_try" in
26731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732
*) ac_try_echo=$ac_try;;
26734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735
(eval "$ac_link") 2>&5
26737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26739
{ (case "(($ac_try" in
26740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741
*) ac_try_echo=$ac_try;;
26743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744
(eval "$ac_try") 2>&5
26746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747
(exit $ac_status); }; }; then
26748
ac_cv_c_stack_direction=1
26750
echo "$as_me: program exited with status $ac_status" >&5
26751
echo "$as_me: failed program was:" >&5
26752
sed 's/^/| /' conftest.$ac_ext >&5
26754
( exit $ac_status )
26755
ac_cv_c_stack_direction=-1
26757
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26762
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
26763
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
26765
cat >>confdefs.h <<_ACEOF
26766
#define STACK_DIRECTION $ac_cv_c_stack_direction
26773
{ echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26774
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
26775
if test "${am_cv_langinfo_codeset+set}" = set; then
26776
echo $ECHO_N "(cached) $ECHO_C" >&6
26778
cat >conftest.$ac_ext <<_ACEOF
26781
cat confdefs.h >>conftest.$ac_ext
26782
cat >>conftest.$ac_ext <<_ACEOF
26783
/* end confdefs.h. */
26784
#include <langinfo.h>
26788
char* cs = nl_langinfo(CODESET); return !cs;
26793
rm -f conftest.$ac_objext conftest$ac_exeext
26794
if { (ac_try="$ac_link"
26795
case "(($ac_try" in
26796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797
*) ac_try_echo=$ac_try;;
26799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800
(eval "$ac_link") 2>conftest.er1
26802
grep -v '^ *+' conftest.er1 >conftest.err
26804
cat conftest.err >&5
26805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806
(exit $ac_status); } && {
26807
test -z "$ac_c_werror_flag" ||
26808
test ! -s conftest.err
26809
} && test -s conftest$ac_exeext &&
26810
$as_test_x conftest$ac_exeext; then
26811
am_cv_langinfo_codeset=yes
26813
echo "$as_me: failed program was:" >&5
26814
sed 's/^/| /' conftest.$ac_ext >&5
26816
am_cv_langinfo_codeset=no
26819
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26820
conftest$ac_exeext conftest.$ac_ext
26823
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
26824
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
26825
if test $am_cv_langinfo_codeset = yes; then
26827
cat >>confdefs.h <<\_ACEOF
26828
#define HAVE_LANGINFO_CODESET 1
26833
{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
26834
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
26835
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
26836
echo $ECHO_N "(cached) $ECHO_C" >&6
26838
cat >conftest.$ac_ext <<_ACEOF
26841
cat confdefs.h >>conftest.$ac_ext
26842
cat >>conftest.$ac_ext <<_ACEOF
26843
/* end confdefs.h. */
26844
$ac_includes_default
26848
#ifndef getc_unlocked
26849
(void) getc_unlocked;
26856
rm -f conftest.$ac_objext
26857
if { (ac_try="$ac_compile"
26858
case "(($ac_try" in
26859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860
*) ac_try_echo=$ac_try;;
26862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863
(eval "$ac_compile") 2>conftest.er1
26865
grep -v '^ *+' conftest.er1 >conftest.err
26867
cat conftest.err >&5
26868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869
(exit $ac_status); } && {
26870
test -z "$ac_c_werror_flag" ||
26871
test ! -s conftest.err
26872
} && test -s conftest.$ac_objext; then
26873
ac_cv_have_decl_getc_unlocked=yes
26875
echo "$as_me: failed program was:" >&5
26876
sed 's/^/| /' conftest.$ac_ext >&5
26878
ac_cv_have_decl_getc_unlocked=no
26881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
26884
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
26885
if test $ac_cv_have_decl_getc_unlocked = yes; then
26887
cat >>confdefs.h <<_ACEOF
26888
#define HAVE_DECL_GETC_UNLOCKED 1
26893
cat >>confdefs.h <<_ACEOF
26894
#define HAVE_DECL_GETC_UNLOCKED 0
26902
{ echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
26903
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
26904
if test "${ac_cv_gnu_library_2_1+set}" = set; then
26905
echo $ECHO_N "(cached) $ECHO_C" >&6
26907
cat >conftest.$ac_ext <<_ACEOF
26910
cat confdefs.h >>conftest.$ac_ext
26911
cat >>conftest.$ac_ext <<_ACEOF
26912
/* end confdefs.h. */
26914
#include <features.h>
26915
#ifdef __GNU_LIBRARY__
26916
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
26922
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26923
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
26924
ac_cv_gnu_library_2_1=yes
26926
ac_cv_gnu_library_2_1=no
26933
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
26934
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
26936
GLIBC21="$ac_cv_gnu_library_2_1"
26940
{ echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
26941
echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
26942
if test "${gl_cv_func_malloc_posix+set}" = set; then
26943
echo $ECHO_N "(cached) $ECHO_C" >&6
26946
cat >conftest.$ac_ext <<_ACEOF
26949
cat confdefs.h >>conftest.$ac_ext
26950
cat >>conftest.$ac_ext <<_ACEOF
26951
/* end confdefs.h. */
26956
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
26964
rm -f conftest.$ac_objext
26965
if { (ac_try="$ac_compile"
26966
case "(($ac_try" in
26967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968
*) ac_try_echo=$ac_try;;
26970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971
(eval "$ac_compile") 2>conftest.er1
26973
grep -v '^ *+' conftest.er1 >conftest.err
26975
cat conftest.err >&5
26976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977
(exit $ac_status); } && {
26978
test -z "$ac_c_werror_flag" ||
26979
test ! -s conftest.err
26980
} && test -s conftest.$ac_objext; then
26981
gl_cv_func_malloc_posix=yes
26983
echo "$as_me: failed program was:" >&5
26984
sed 's/^/| /' conftest.$ac_ext >&5
26986
gl_cv_func_malloc_posix=no
26989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26992
{ echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
26993
echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
26996
GNULIB_MALLOC_POSIX=0;
26997
GNULIB_REALLOC_POSIX=0;
26998
GNULIB_CALLOC_POSIX=0;
26999
GNULIB_GETSUBOPT=0;
27002
HAVE_CALLOC_POSIX=1;
27004
HAVE_MALLOC_POSIX=1;
27006
HAVE_REALLOC_POSIX=1;
27013
for ac_header in $ac_header_list
27015
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27016
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27017
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27018
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27019
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27020
echo $ECHO_N "(cached) $ECHO_C" >&6
27022
ac_res=`eval echo '${'$as_ac_Header'}'`
27023
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27024
echo "${ECHO_T}$ac_res" >&6; }
27026
# Is the header compilable?
27027
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27028
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27029
cat >conftest.$ac_ext <<_ACEOF
27032
cat confdefs.h >>conftest.$ac_ext
27033
cat >>conftest.$ac_ext <<_ACEOF
27034
/* end confdefs.h. */
27035
$ac_includes_default
27036
#include <$ac_header>
27038
rm -f conftest.$ac_objext
27039
if { (ac_try="$ac_compile"
27040
case "(($ac_try" in
27041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042
*) ac_try_echo=$ac_try;;
27044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045
(eval "$ac_compile") 2>conftest.er1
27047
grep -v '^ *+' conftest.er1 >conftest.err
27049
cat conftest.err >&5
27050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051
(exit $ac_status); } && {
27052
test -z "$ac_c_werror_flag" ||
27053
test ! -s conftest.err
27054
} && test -s conftest.$ac_objext; then
27055
ac_header_compiler=yes
27057
echo "$as_me: failed program was:" >&5
27058
sed 's/^/| /' conftest.$ac_ext >&5
27060
ac_header_compiler=no
27063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27064
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27065
echo "${ECHO_T}$ac_header_compiler" >&6; }
27067
# Is the header present?
27068
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27069
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27070
cat >conftest.$ac_ext <<_ACEOF
27073
cat confdefs.h >>conftest.$ac_ext
27074
cat >>conftest.$ac_ext <<_ACEOF
27075
/* end confdefs.h. */
27076
#include <$ac_header>
27078
if { (ac_try="$ac_cpp conftest.$ac_ext"
27079
case "(($ac_try" in
27080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081
*) ac_try_echo=$ac_try;;
27083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27086
grep -v '^ *+' conftest.er1 >conftest.err
27088
cat conftest.err >&5
27089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090
(exit $ac_status); } >/dev/null && {
27091
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27092
test ! -s conftest.err
27094
ac_header_preproc=yes
27096
echo "$as_me: failed program was:" >&5
27097
sed 's/^/| /' conftest.$ac_ext >&5
27099
ac_header_preproc=no
27102
rm -f conftest.err conftest.$ac_ext
27103
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27104
echo "${ECHO_T}$ac_header_preproc" >&6; }
27106
# So? What about this header?
27107
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27109
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27110
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27111
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27112
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27113
ac_header_preproc=yes
27116
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27117
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27118
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27119
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27120
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27121
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27122
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27123
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27124
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27125
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27126
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27127
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27129
## --------------------------------------- ##
27130
## Report this to opendap-tech@opendap.org ##
27131
## --------------------------------------- ##
27133
) | sed "s/^/$as_me: WARNING: /" >&2
27136
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27138
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27139
echo $ECHO_N "(cached) $ECHO_C" >&6
27141
eval "$as_ac_Header=\$ac_header_preproc"
27143
ac_res=`eval echo '${'$as_ac_Header'}'`
27144
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27145
echo "${ECHO_T}$ac_res" >&6; }
27148
if test `eval echo '${'$as_ac_Header'}'` = yes; then
27149
cat >>confdefs.h <<_ACEOF
27150
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27159
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
27160
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
27161
if test "${ac_cv_c_restrict+set}" = set; then
27162
echo $ECHO_N "(cached) $ECHO_C" >&6
27164
ac_cv_c_restrict=no
27165
# Try the official restrict keyword, then gcc's __restrict, and
27166
# the less common variants.
27167
for ac_kw in restrict __restrict __restrict__ _Restrict; do
27168
cat >conftest.$ac_ext <<_ACEOF
27171
cat confdefs.h >>conftest.$ac_ext
27172
cat >>conftest.$ac_ext <<_ACEOF
27173
/* end confdefs.h. */
27174
typedef int * int_ptr;
27175
int foo (int_ptr $ac_kw ip) {
27182
int * $ac_kw t = s;
27189
rm -f conftest.$ac_objext
27190
if { (ac_try="$ac_compile"
27191
case "(($ac_try" in
27192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193
*) ac_try_echo=$ac_try;;
27195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196
(eval "$ac_compile") 2>conftest.er1
27198
grep -v '^ *+' conftest.er1 >conftest.err
27200
cat conftest.err >&5
27201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202
(exit $ac_status); } && {
27203
test -z "$ac_c_werror_flag" ||
27204
test ! -s conftest.err
27205
} && test -s conftest.$ac_objext; then
27206
ac_cv_c_restrict=$ac_kw
27208
echo "$as_me: failed program was:" >&5
27209
sed 's/^/| /' conftest.$ac_ext >&5
27214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215
test "$ac_cv_c_restrict" != no && break
27219
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
27220
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
27221
case $ac_cv_c_restrict in
27224
cat >>confdefs.h <<\_ACEOF
27228
*) cat >>confdefs.h <<_ACEOF
27229
#define restrict $ac_cv_c_restrict
27238
for ac_func in $ac_func_list
27240
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27241
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27242
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27243
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27244
echo $ECHO_N "(cached) $ECHO_C" >&6
27246
cat >conftest.$ac_ext <<_ACEOF
27249
cat confdefs.h >>conftest.$ac_ext
27250
cat >>conftest.$ac_ext <<_ACEOF
27251
/* end confdefs.h. */
27252
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27253
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27254
#define $ac_func innocuous_$ac_func
27256
/* System header to define __stub macros and hopefully few prototypes,
27257
which can conflict with char $ac_func (); below.
27258
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27259
<limits.h> exists even on freestanding compilers. */
27262
# include <limits.h>
27264
# include <assert.h>
27269
/* Override any GCC internal prototype to avoid an error.
27270
Use char because int might match the return type of a GCC
27271
builtin and then its argument prototype would still apply. */
27276
/* The GNU C library defines this for functions which it implements
27277
to always fail with ENOSYS. Some functions are actually named
27278
something starting with __ and the normal name is an alias. */
27279
#if defined __stub_$ac_func || defined __stub___$ac_func
27286
return $ac_func ();
27291
rm -f conftest.$ac_objext conftest$ac_exeext
27292
if { (ac_try="$ac_link"
27293
case "(($ac_try" in
27294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295
*) ac_try_echo=$ac_try;;
27297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298
(eval "$ac_link") 2>conftest.er1
27300
grep -v '^ *+' conftest.er1 >conftest.err
27302
cat conftest.err >&5
27303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304
(exit $ac_status); } && {
27305
test -z "$ac_c_werror_flag" ||
27306
test ! -s conftest.err
27307
} && test -s conftest$ac_exeext &&
27308
$as_test_x conftest$ac_exeext; then
27309
eval "$as_ac_var=yes"
27311
echo "$as_me: failed program was:" >&5
27312
sed 's/^/| /' conftest.$ac_ext >&5
27314
eval "$as_ac_var=no"
27317
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27318
conftest$ac_exeext conftest.$ac_ext
27320
ac_res=`eval echo '${'$as_ac_var'}'`
27321
{ echo "$as_me:$LINENO: result: $ac_res" >&5
27322
echo "${ECHO_T}$ac_res" >&6; }
27323
if test `eval echo '${'$as_ac_var'}'` = yes; then
27324
cat >>confdefs.h <<_ACEOF
27325
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27341
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
27342
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
27343
if test "${ac_cv_header_stdbool_h+set}" = set; then
27344
echo $ECHO_N "(cached) $ECHO_C" >&6
27346
cat >conftest.$ac_ext <<_ACEOF
27349
cat confdefs.h >>conftest.$ac_ext
27350
cat >>conftest.$ac_ext <<_ACEOF
27351
/* end confdefs.h. */
27353
#include <stdbool.h>
27355
"error: bool is not defined"
27358
"error: false is not defined"
27361
"error: false is not 0"
27364
"error: true is not defined"
27367
"error: true is not 1"
27369
#ifndef __bool_true_false_are_defined
27370
"error: __bool_true_false_are_defined is not defined"
27373
struct s { _Bool s: 1; _Bool t; } s;
27375
char a[true == 1 ? 1 : -1];
27376
char b[false == 0 ? 1 : -1];
27377
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
27378
char d[(bool) 0.5 == true ? 1 : -1];
27380
char f[(_Bool) 0.0 == false ? 1 : -1];
27382
char h[sizeof (_Bool)];
27383
char i[sizeof s.t];
27384
enum { j = false, k = true, l = false * true, m = true * 256 };
27386
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
27387
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
27388
#if defined __xlc__ || defined __GNUC__
27389
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
27390
reported by James Lemley on 2005-10-05; see
27391
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
27392
This test is not quite right, since xlc is allowed to
27393
reject this program, as the initializer for xlcbug is
27394
not one of the forms that C requires support for.
27395
However, doing the test right would require a run-time
27396
test, and that would make cross-compilation harder.
27397
Let us hope that IBM fixes the xlc bug, and also adds
27398
support for this kind of constant expression. In the
27399
meantime, this test will reject xlc, which is OK, since
27400
our stdbool.h substitute should suffice. We also test
27401
this with GCC, where it should work, to detect more
27402
quickly whether someone messes up the test in the
27404
char digs[] = "0123456789";
27405
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
27407
/* Catch a bug in an HP-UX C compiler. See
27408
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
27409
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
27420
/* Refer to every declared value, to avoid compiler optimizations. */
27421
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
27422
+ !m + !n + !o + !p + !q + !pq);
27428
rm -f conftest.$ac_objext
27429
if { (ac_try="$ac_compile"
27430
case "(($ac_try" in
27431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432
*) ac_try_echo=$ac_try;;
27434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435
(eval "$ac_compile") 2>conftest.er1
27437
grep -v '^ *+' conftest.er1 >conftest.err
27439
cat conftest.err >&5
27440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441
(exit $ac_status); } && {
27442
test -z "$ac_c_werror_flag" ||
27443
test ! -s conftest.err
27444
} && test -s conftest.$ac_objext; then
27445
ac_cv_header_stdbool_h=yes
27447
echo "$as_me: failed program was:" >&5
27448
sed 's/^/| /' conftest.$ac_ext >&5
27450
ac_cv_header_stdbool_h=no
27453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27455
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
27456
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
27457
{ echo "$as_me:$LINENO: checking for _Bool" >&5
27458
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
27459
if test "${ac_cv_type__Bool+set}" = set; then
27460
echo $ECHO_N "(cached) $ECHO_C" >&6
27462
cat >conftest.$ac_ext <<_ACEOF
27465
cat confdefs.h >>conftest.$ac_ext
27466
cat >>conftest.$ac_ext <<_ACEOF
27467
/* end confdefs.h. */
27468
$ac_includes_default
27469
typedef _Bool ac__type_new_;
27473
if ((ac__type_new_ *) 0)
27475
if (sizeof (ac__type_new_))
27481
rm -f conftest.$ac_objext
27482
if { (ac_try="$ac_compile"
27483
case "(($ac_try" in
27484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485
*) ac_try_echo=$ac_try;;
27487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488
(eval "$ac_compile") 2>conftest.er1
27490
grep -v '^ *+' conftest.er1 >conftest.err
27492
cat conftest.err >&5
27493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494
(exit $ac_status); } && {
27495
test -z "$ac_c_werror_flag" ||
27496
test ! -s conftest.err
27497
} && test -s conftest.$ac_objext; then
27498
ac_cv_type__Bool=yes
27500
echo "$as_me: failed program was:" >&5
27501
sed 's/^/| /' conftest.$ac_ext >&5
27503
ac_cv_type__Bool=no
27506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27508
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
27509
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
27510
if test $ac_cv_type__Bool = yes; then
27512
cat >>confdefs.h <<_ACEOF
27513
#define HAVE__BOOL 1
27519
if test $ac_cv_header_stdbool_h = yes; then
27521
cat >>confdefs.h <<\_ACEOF
27522
#define HAVE_STDBOOL_H 1
27527
{ echo "$as_me:$LINENO: checking for long long int" >&5
27528
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27529
if test "${ac_cv_type_long_long_int+set}" = set; then
27530
echo $ECHO_N "(cached) $ECHO_C" >&6
27532
cat >conftest.$ac_ext <<_ACEOF
27535
cat confdefs.h >>conftest.$ac_ext
27536
cat >>conftest.$ac_ext <<_ACEOF
27537
/* end confdefs.h. */
27538
long long int ll = 9223372036854775807ll;
27539
long long int nll = -9223372036854775807LL;
27540
typedef int a[((-9223372036854775807LL < 0
27541
&& 0 < 9223372036854775807ll)
27547
long long int llmax = 9223372036854775807ll;
27548
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27549
| (llmax / ll) | (llmax % ll));
27554
rm -f conftest.$ac_objext conftest$ac_exeext
27555
if { (ac_try="$ac_link"
27556
case "(($ac_try" in
27557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558
*) ac_try_echo=$ac_try;;
27560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561
(eval "$ac_link") 2>conftest.er1
27563
grep -v '^ *+' conftest.er1 >conftest.err
27565
cat conftest.err >&5
27566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567
(exit $ac_status); } && {
27568
test -z "$ac_c_werror_flag" ||
27569
test ! -s conftest.err
27570
} && test -s conftest$ac_exeext &&
27571
$as_test_x conftest$ac_exeext; then
27572
if test "$cross_compiling" = yes; then
27573
ac_cv_type_long_long_int=yes
27575
cat >conftest.$ac_ext <<_ACEOF
27578
cat confdefs.h >>conftest.$ac_ext
27579
cat >>conftest.$ac_ext <<_ACEOF
27580
/* end confdefs.h. */
27581
#include <limits.h>
27584
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
27585
# define LLONG_MAX (HALF - 1 + HALF)
27590
long long int n = 1;
27594
long long int m = n << i;
27597
if (LLONG_MAX / 2 < m)
27605
rm -f conftest$ac_exeext
27606
if { (ac_try="$ac_link"
27607
case "(($ac_try" in
27608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609
*) ac_try_echo=$ac_try;;
27611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612
(eval "$ac_link") 2>&5
27614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27616
{ (case "(($ac_try" in
27617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618
*) ac_try_echo=$ac_try;;
27620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621
(eval "$ac_try") 2>&5
27623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624
(exit $ac_status); }; }; then
27625
ac_cv_type_long_long_int=yes
27627
echo "$as_me: program exited with status $ac_status" >&5
27628
echo "$as_me: failed program was:" >&5
27629
sed 's/^/| /' conftest.$ac_ext >&5
27631
( exit $ac_status )
27632
ac_cv_type_long_long_int=no
27634
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27639
echo "$as_me: failed program was:" >&5
27640
sed 's/^/| /' conftest.$ac_ext >&5
27642
ac_cv_type_long_long_int=no
27645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27646
conftest$ac_exeext conftest.$ac_ext
27648
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27649
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27650
if test $ac_cv_type_long_long_int = yes; then
27652
cat >>confdefs.h <<\_ACEOF
27653
#define HAVE_LONG_LONG_INT 1
27659
{ echo "$as_me:$LINENO: checking for unsigned long long int" >&5
27660
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
27661
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
27662
echo $ECHO_N "(cached) $ECHO_C" >&6
27664
cat >conftest.$ac_ext <<_ACEOF
27667
cat confdefs.h >>conftest.$ac_ext
27668
cat >>conftest.$ac_ext <<_ACEOF
27669
/* end confdefs.h. */
27670
unsigned long long int ull = 18446744073709551615ULL;
27671
typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
27677
unsigned long long int ullmax = 18446744073709551615ull;
27678
return (ull << 63 | ull >> 63 | ull << i | ull >> i
27679
| ullmax / ull | ullmax % ull);
27684
rm -f conftest.$ac_objext conftest$ac_exeext
27685
if { (ac_try="$ac_link"
27686
case "(($ac_try" in
27687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688
*) ac_try_echo=$ac_try;;
27690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691
(eval "$ac_link") 2>conftest.er1
27693
grep -v '^ *+' conftest.er1 >conftest.err
27695
cat conftest.err >&5
27696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697
(exit $ac_status); } && {
27698
test -z "$ac_c_werror_flag" ||
27699
test ! -s conftest.err
27700
} && test -s conftest$ac_exeext &&
27701
$as_test_x conftest$ac_exeext; then
27702
ac_cv_type_unsigned_long_long_int=yes
27704
echo "$as_me: failed program was:" >&5
27705
sed 's/^/| /' conftest.$ac_ext >&5
27707
ac_cv_type_unsigned_long_long_int=no
27710
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27711
conftest$ac_exeext conftest.$ac_ext
27713
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
27714
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
27715
if test $ac_cv_type_unsigned_long_long_int = yes; then
27717
cat >>confdefs.h <<\_ACEOF
27718
#define HAVE_UNSIGNED_LONG_LONG_INT 1
27725
{ echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
27726
echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
27727
if test "${gl_cv_have_include_next+set}" = set; then
27728
echo $ECHO_N "(cached) $ECHO_C" >&6
27730
rm -rf conftestd1 conftestd2
27731
mkdir conftestd1 conftestd2
27732
cat <<EOF > conftestd1/conftest.h
27733
#define DEFINED_IN_CONFTESTD1
27734
#include_next <conftest.h>
27735
#ifdef DEFINED_IN_CONFTESTD2
27738
#error "include_next doesn't work"
27741
cat <<EOF > conftestd2/conftest.h
27742
#ifndef DEFINED_IN_CONFTESTD1
27743
#error "include_next test doesn't work"
27745
#define DEFINED_IN_CONFTESTD2
27747
save_CPPFLAGS="$CPPFLAGS"
27748
CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
27749
cat >conftest.$ac_ext <<_ACEOF
27750
#include <conftest.h>
27752
rm -f conftest.$ac_objext
27753
if { (ac_try="$ac_compile"
27754
case "(($ac_try" in
27755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756
*) ac_try_echo=$ac_try;;
27758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759
(eval "$ac_compile") 2>conftest.er1
27761
grep -v '^ *+' conftest.er1 >conftest.err
27763
cat conftest.err >&5
27764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765
(exit $ac_status); } && {
27766
test -z "$ac_c_werror_flag" ||
27767
test ! -s conftest.err
27768
} && test -s conftest.$ac_objext; then
27769
gl_cv_have_include_next=yes
27771
echo "$as_me: failed program was:" >&5
27772
sed 's/^/| /' conftest.$ac_ext >&5
27774
gl_cv_have_include_next=no
27777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27778
CPPFLAGS="$save_CPPFLAGS"
27779
rm -rf conftestd1 conftestd2
27782
{ echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
27783
echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
27784
if test $gl_cv_have_include_next = yes; then
27787
cat >>confdefs.h <<\_ACEOF
27788
#define HAVE_INCLUDE_NEXT 1
27792
INCLUDE_NEXT=include_next
27794
INCLUDE_NEXT=include
27808
GNULIB_FTRUNCATE=0;
27810
GNULIB_GETLOGIN_R=0;
27819
HAVE_DECL_GETLOGIN_R=1;
27830
HAVE_DECL_WCWIDTH=1;
27840
{ echo "$as_me:$LINENO: checking for wint_t" >&5
27841
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
27842
if test "${gt_cv_c_wint_t+set}" = set; then
27843
echo $ECHO_N "(cached) $ECHO_C" >&6
27845
cat >conftest.$ac_ext <<_ACEOF
27848
cat confdefs.h >>conftest.$ac_ext
27849
cat >>conftest.$ac_ext <<_ACEOF
27850
/* end confdefs.h. */
27852
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27854
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27855
before <wchar.h>. */
27856
#include <stddef.h>
27860
wint_t foo = (wchar_t)'\0';
27869
rm -f conftest.$ac_objext
27870
if { (ac_try="$ac_compile"
27871
case "(($ac_try" in
27872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873
*) ac_try_echo=$ac_try;;
27875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876
(eval "$ac_compile") 2>conftest.er1
27878
grep -v '^ *+' conftest.er1 >conftest.err
27880
cat conftest.err >&5
27881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882
(exit $ac_status); } && {
27883
test -z "$ac_c_werror_flag" ||
27884
test ! -s conftest.err
27885
} && test -s conftest.$ac_objext; then
27888
echo "$as_me: failed program was:" >&5
27889
sed 's/^/| /' conftest.$ac_ext >&5
27894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
27897
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
27898
if test $gt_cv_c_wint_t = yes; then
27900
cat >>confdefs.h <<\_ACEOF
27901
#define HAVE_WINT_T 1
27911
GL_COND_LIBTOOL_TRUE=
27912
GL_COND_LIBTOOL_FALSE='#'
27914
GL_COND_LIBTOOL_TRUE='#'
27915
GL_COND_LIBTOOL_FALSE=
27918
gl_cond_libtool=true
27919
gl_source_base='gl'
27920
LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
27927
if test $ac_cv_func_alloca_works = no; then
27931
# Define an additional variable used in the Makefile substitution.
27932
if test $ac_cv_working_alloca_h = yes; then
27933
{ echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
27934
echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
27935
if test "${gl_cv_rpl_alloca+set}" = set; then
27936
echo $ECHO_N "(cached) $ECHO_C" >&6
27939
cat >conftest.$ac_ext <<_ACEOF
27942
cat confdefs.h >>conftest.$ac_ext
27943
cat >>conftest.$ac_ext <<_ACEOF
27944
/* end confdefs.h. */
27946
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
27951
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27952
$EGREP "Need own alloca" >/dev/null 2>&1; then
27953
gl_cv_rpl_alloca=yes
27955
gl_cv_rpl_alloca=no
27961
{ echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
27962
echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
27963
if test $gl_cv_rpl_alloca = yes; then
27965
cat >>confdefs.h <<\_ACEOF
27966
#define HAVE_ALLOCA 1
27979
cat >>confdefs.h <<\_ACEOF
27980
#define HAVE_ALLOCA_H 1
27997
for ac_header in stdlib.h
27999
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28000
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28001
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28002
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28003
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28004
echo $ECHO_N "(cached) $ECHO_C" >&6
28006
ac_res=`eval echo '${'$as_ac_Header'}'`
28007
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28008
echo "${ECHO_T}$ac_res" >&6; }
28010
# Is the header compilable?
28011
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28012
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28013
cat >conftest.$ac_ext <<_ACEOF
28016
cat confdefs.h >>conftest.$ac_ext
28017
cat >>conftest.$ac_ext <<_ACEOF
28018
/* end confdefs.h. */
28019
$ac_includes_default
28020
#include <$ac_header>
28022
rm -f conftest.$ac_objext
28023
if { (ac_try="$ac_compile"
28024
case "(($ac_try" in
28025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026
*) ac_try_echo=$ac_try;;
28028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029
(eval "$ac_compile") 2>conftest.er1
28031
grep -v '^ *+' conftest.er1 >conftest.err
28033
cat conftest.err >&5
28034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035
(exit $ac_status); } && {
28036
test -z "$ac_c_werror_flag" ||
28037
test ! -s conftest.err
28038
} && test -s conftest.$ac_objext; then
28039
ac_header_compiler=yes
28041
echo "$as_me: failed program was:" >&5
28042
sed 's/^/| /' conftest.$ac_ext >&5
28044
ac_header_compiler=no
28047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28048
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28049
echo "${ECHO_T}$ac_header_compiler" >&6; }
28051
# Is the header present?
28052
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28053
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28054
cat >conftest.$ac_ext <<_ACEOF
28057
cat confdefs.h >>conftest.$ac_ext
28058
cat >>conftest.$ac_ext <<_ACEOF
28059
/* end confdefs.h. */
28060
#include <$ac_header>
28062
if { (ac_try="$ac_cpp conftest.$ac_ext"
28063
case "(($ac_try" in
28064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065
*) ac_try_echo=$ac_try;;
28067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28070
grep -v '^ *+' conftest.er1 >conftest.err
28072
cat conftest.err >&5
28073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074
(exit $ac_status); } >/dev/null && {
28075
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28076
test ! -s conftest.err
28078
ac_header_preproc=yes
28080
echo "$as_me: failed program was:" >&5
28081
sed 's/^/| /' conftest.$ac_ext >&5
28083
ac_header_preproc=no
28086
rm -f conftest.err conftest.$ac_ext
28087
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28088
echo "${ECHO_T}$ac_header_preproc" >&6; }
28090
# So? What about this header?
28091
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28093
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28094
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28095
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28096
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28097
ac_header_preproc=yes
28100
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28101
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28102
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28103
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28104
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28105
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28106
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28107
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28108
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28109
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28110
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28111
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28113
## --------------------------------------- ##
28114
## Report this to opendap-tech@opendap.org ##
28115
## --------------------------------------- ##
28117
) | sed "s/^/$as_me: WARNING: /" >&2
28120
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28122
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28123
echo $ECHO_N "(cached) $ECHO_C" >&6
28125
eval "$as_ac_Header=\$ac_header_preproc"
28127
ac_res=`eval echo '${'$as_ac_Header'}'`
28128
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28129
echo "${ECHO_T}$ac_res" >&6; }
28132
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28133
cat >>confdefs.h <<_ACEOF
28134
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28141
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
28142
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
28143
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
28144
echo $ECHO_N "(cached) $ECHO_C" >&6
28146
if test "$cross_compiling" = yes; then
28147
ac_cv_func_malloc_0_nonnull=no
28149
cat >conftest.$ac_ext <<_ACEOF
28152
cat confdefs.h >>conftest.$ac_ext
28153
cat >>conftest.$ac_ext <<_ACEOF
28154
/* end confdefs.h. */
28155
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
28156
# include <stdlib.h>
28164
return ! malloc (0);
28169
rm -f conftest$ac_exeext
28170
if { (ac_try="$ac_link"
28171
case "(($ac_try" in
28172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173
*) ac_try_echo=$ac_try;;
28175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176
(eval "$ac_link") 2>&5
28178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180
{ (case "(($ac_try" in
28181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182
*) ac_try_echo=$ac_try;;
28184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185
(eval "$ac_try") 2>&5
28187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188
(exit $ac_status); }; }; then
28189
ac_cv_func_malloc_0_nonnull=yes
28191
echo "$as_me: program exited with status $ac_status" >&5
28192
echo "$as_me: failed program was:" >&5
28193
sed 's/^/| /' conftest.$ac_ext >&5
28195
( exit $ac_status )
28196
ac_cv_func_malloc_0_nonnull=no
28198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28203
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
28204
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
28205
if test $ac_cv_func_malloc_0_nonnull = yes; then
28207
cat >>confdefs.h <<\_ACEOF
28208
#define HAVE_MALLOC 1
28212
cat >>confdefs.h <<\_ACEOF
28213
#define HAVE_MALLOC 0
28216
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
28218
cat >>confdefs.h <<\_ACEOF
28219
#define malloc rpl_malloc
28228
if test $gl_cv_func_malloc_posix = yes; then
28229
HAVE_MALLOC_POSIX=1
28231
cat >>confdefs.h <<\_ACEOF
28232
#define HAVE_MALLOC_POSIX 1
28236
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
28237
HAVE_MALLOC_POSIX=0
28243
GNULIB_MALLOC_POSIX=1
28254
# Check whether --with-included-regex was given.
28255
if test "${with_included_regex+set}" = set; then
28256
withval=$with_included_regex;
28260
case $with_included_regex in #(
28261
yes|no) ac_use_included_regex=$with_included_regex
28264
# If the system regex support is good enough that it passes the
28265
# following run test, then default to *not* using the included regex.c.
28266
# If cross compiling, assume the test would fail and use the included
28268
{ echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
28269
echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; }
28270
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
28271
echo $ECHO_N "(cached) $ECHO_C" >&6
28273
if test "$cross_compiling" = yes; then
28274
gl_cv_func_re_compile_pattern_working=no
28276
cat >conftest.$ac_ext <<_ACEOF
28279
cat confdefs.h >>conftest.$ac_ext
28280
cat >>conftest.$ac_ext <<_ACEOF
28281
/* end confdefs.h. */
28282
$ac_includes_default
28284
#include <locale.h>
28286
#include <limits.h>
28292
static struct re_pattern_buffer regex;
28293
unsigned char folded_chars[UCHAR_MAX + 1];
28296
struct re_registers regs;
28299
/* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
28300
This test needs valgrind to catch the bug on Debian
28301
GNU/Linux 3.1 x86, but it might catch the bug better
28302
on other platforms and it shouldn't hurt to try the
28304
if (setlocale (LC_ALL, "en_US.UTF-8"))
28306
static char const pat[] = "insert into";
28307
static char const data[] =
28308
"\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
28309
re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
28311
memset (®ex, 0, sizeof regex);
28312
s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
28315
if (re_search (®ex, data, sizeof data - 1,
28316
0, sizeof data - 1, ®s)
28319
if (! setlocale (LC_ALL, "C"))
28324
/* This test is from glibc bug 3957, reported by Andrew Mackey. */
28325
re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
28326
memset (®ex, 0, sizeof regex);
28327
s = re_compile_pattern ("a[^x]b", 6, ®ex);
28331
/* This should fail, but succeeds for glibc-2.5. */
28332
if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
28335
/* This regular expression is from Spencer ere test number 75
28337
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
28338
memset (®ex, 0, sizeof regex);
28339
for (i = 0; i <= UCHAR_MAX; i++)
28340
folded_chars[i] = i;
28341
regex.translate = folded_chars;
28342
s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
28343
/* This should fail with _Invalid character class name_ error. */
28347
/* This should succeed, but does not for glibc-2.1.3. */
28348
memset (®ex, 0, sizeof regex);
28349
s = re_compile_pattern ("{1", 2, ®ex);
28354
/* The following example is derived from a problem report
28355
against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
28356
memset (®ex, 0, sizeof regex);
28357
s = re_compile_pattern ("[an\371]*n", 7, ®ex);
28361
/* This should match, but does not for glibc-2.2.1. */
28362
if (re_match (®ex, "an", 2, 0, ®s) != 2)
28365
memset (®ex, 0, sizeof regex);
28366
s = re_compile_pattern ("x", 1, ®ex);
28370
/* glibc-2.2.93 does not work with a negative RANGE argument. */
28371
if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
28374
/* The version of regex.c in older versions of gnulib
28375
ignored RE_ICASE. Detect that problem too. */
28376
re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
28377
memset (®ex, 0, sizeof regex);
28378
s = re_compile_pattern ("x", 1, ®ex);
28382
if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
28385
/* Catch a bug reported by Vin Shelton in
28386
http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
28388
re_set_syntax (RE_SYNTAX_POSIX_BASIC
28389
& ~RE_CONTEXT_INVALID_DUP
28390
& ~RE_NO_EMPTY_RANGES);
28391
memset (®ex, 0, sizeof regex);
28392
s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
28396
/* REG_STARTEND was added to glibc on 2004-01-15.
28397
Reject older versions. */
28398
if (! REG_STARTEND)
28401
/* Reject hosts whose regoff_t values are too narrow.
28402
These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
28404
if (sizeof (regoff_t) < sizeof (ptrdiff_t)
28405
|| sizeof (regoff_t) < sizeof (ssize_t))
28413
rm -f conftest$ac_exeext
28414
if { (ac_try="$ac_link"
28415
case "(($ac_try" in
28416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417
*) ac_try_echo=$ac_try;;
28419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420
(eval "$ac_link") 2>&5
28422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28424
{ (case "(($ac_try" in
28425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426
*) ac_try_echo=$ac_try;;
28428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429
(eval "$ac_try") 2>&5
28431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432
(exit $ac_status); }; }; then
28433
gl_cv_func_re_compile_pattern_working=yes
28435
echo "$as_me: program exited with status $ac_status" >&5
28436
echo "$as_me: failed program was:" >&5
28437
sed 's/^/| /' conftest.$ac_ext >&5
28439
( exit $ac_status )
28440
gl_cv_func_re_compile_pattern_working=no
28442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447
{ echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
28448
echo "${ECHO_T}$gl_cv_func_re_compile_pattern_working" >&6; }
28449
case $gl_cv_func_re_compile_pattern_working in #(
28450
yes) ac_use_included_regex=no;; #(
28451
no) ac_use_included_regex=yes;;
28454
*) { { echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
28455
echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
28456
{ (exit 1); exit 1; }; }
28460
if test $ac_use_included_regex = yes; then
28462
cat >>confdefs.h <<\_ACEOF
28463
#define _REGEX_LARGE_OFFSETS 1
28467
cat >>confdefs.h <<\_ACEOF
28468
#define re_syntax_options rpl_re_syntax_options
28472
cat >>confdefs.h <<\_ACEOF
28473
#define re_set_syntax rpl_re_set_syntax
28477
cat >>confdefs.h <<\_ACEOF
28478
#define re_compile_pattern rpl_re_compile_pattern
28482
cat >>confdefs.h <<\_ACEOF
28483
#define re_compile_fastmap rpl_re_compile_fastmap
28487
cat >>confdefs.h <<\_ACEOF
28488
#define re_search rpl_re_search
28492
cat >>confdefs.h <<\_ACEOF
28493
#define re_search_2 rpl_re_search_2
28497
cat >>confdefs.h <<\_ACEOF
28498
#define re_match rpl_re_match
28502
cat >>confdefs.h <<\_ACEOF
28503
#define re_match_2 rpl_re_match_2
28507
cat >>confdefs.h <<\_ACEOF
28508
#define re_set_registers rpl_re_set_registers
28512
cat >>confdefs.h <<\_ACEOF
28513
#define re_comp rpl_re_comp
28517
cat >>confdefs.h <<\_ACEOF
28518
#define re_exec rpl_re_exec
28522
cat >>confdefs.h <<\_ACEOF
28523
#define regcomp rpl_regcomp
28527
cat >>confdefs.h <<\_ACEOF
28528
#define regexec rpl_regexec
28532
cat >>confdefs.h <<\_ACEOF
28533
#define regerror rpl_regerror
28537
cat >>confdefs.h <<\_ACEOF
28538
#define regfree rpl_regfree
28541
gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
28559
{ echo "$as_me:$LINENO: checking whether isblank is declared" >&5
28560
echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; }
28561
if test "${ac_cv_have_decl_isblank+set}" = set; then
28562
echo $ECHO_N "(cached) $ECHO_C" >&6
28564
cat >conftest.$ac_ext <<_ACEOF
28567
cat confdefs.h >>conftest.$ac_ext
28568
cat >>conftest.$ac_ext <<_ACEOF
28569
/* end confdefs.h. */
28583
rm -f conftest.$ac_objext
28584
if { (ac_try="$ac_compile"
28585
case "(($ac_try" in
28586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587
*) ac_try_echo=$ac_try;;
28589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590
(eval "$ac_compile") 2>conftest.er1
28592
grep -v '^ *+' conftest.er1 >conftest.err
28594
cat conftest.err >&5
28595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596
(exit $ac_status); } && {
28597
test -z "$ac_c_werror_flag" ||
28598
test ! -s conftest.err
28599
} && test -s conftest.$ac_objext; then
28600
ac_cv_have_decl_isblank=yes
28602
echo "$as_me: failed program was:" >&5
28603
sed 's/^/| /' conftest.$ac_ext >&5
28605
ac_cv_have_decl_isblank=no
28608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28610
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
28611
echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; }
28612
if test $ac_cv_have_decl_isblank = yes; then
28614
cat >>confdefs.h <<_ACEOF
28615
#define HAVE_DECL_ISBLANK 1
28620
cat >>confdefs.h <<_ACEOF
28621
#define HAVE_DECL_ISBLANK 0
28632
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
28633
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
28634
if test "${gt_cv_ssize_t+set}" = set; then
28635
echo $ECHO_N "(cached) $ECHO_C" >&6
28637
cat >conftest.$ac_ext <<_ACEOF
28640
cat confdefs.h >>conftest.$ac_ext
28641
cat >>conftest.$ac_ext <<_ACEOF
28642
/* end confdefs.h. */
28643
#include <sys/types.h>
28647
int x = sizeof (ssize_t *) + sizeof (ssize_t);
28653
rm -f conftest.$ac_objext
28654
if { (ac_try="$ac_compile"
28655
case "(($ac_try" in
28656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657
*) ac_try_echo=$ac_try;;
28659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660
(eval "$ac_compile") 2>conftest.er1
28662
grep -v '^ *+' conftest.er1 >conftest.err
28664
cat conftest.err >&5
28665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666
(exit $ac_status); } && {
28667
test -z "$ac_c_werror_flag" ||
28668
test ! -s conftest.err
28669
} && test -s conftest.$ac_objext; then
28672
echo "$as_me: failed program was:" >&5
28673
sed 's/^/| /' conftest.$ac_ext >&5
28678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28680
{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28681
echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
28682
if test $gt_cv_ssize_t = no; then
28684
cat >>confdefs.h <<\_ACEOF
28685
#define ssize_t int
28693
# Define two additional variables used in the Makefile substitution.
28695
if test "$ac_cv_header_stdbool_h" = yes; then
28698
STDBOOL_H='stdbool.h'
28702
if test "$ac_cv_type__Bool" = yes; then
28712
if test $ac_cv_type_long_long_int = yes; then
28713
HAVE_LONG_LONG_INT=1
28715
HAVE_LONG_LONG_INT=0
28719
if test $ac_cv_type_unsigned_long_long_int = yes; then
28720
HAVE_UNSIGNED_LONG_LONG_INT=1
28722
HAVE_UNSIGNED_LONG_LONG_INT=0
28726
if test $ac_cv_header_inttypes_h = yes; then
28733
if test $ac_cv_header_sys_types_h = yes; then
28750
if test $gl_cv_have_include_next = yes; then
28751
gl_cv_next_stdint_h='<'stdint.h'>'
28753
{ echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28754
echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
28755
if test "${gl_cv_next_stdint_h+set}" = set; then
28756
echo $ECHO_N "(cached) $ECHO_C" >&6
28759
if test $ac_cv_header_stdint_h = yes; then
28760
cat >conftest.$ac_ext <<_ACEOF
28763
cat confdefs.h >>conftest.$ac_ext
28764
cat >>conftest.$ac_ext <<_ACEOF
28765
/* end confdefs.h. */
28766
#include <stdint.h>
28769
gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28770
sed -n '\#/stdint.h#{
28771
s#.*"\(.*/stdint.h\)".*#\1#
28777
gl_cv_next_stdint_h='<'stdint.h'>'
28781
{ echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
28782
echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
28784
NEXT_STDINT_H=$gl_cv_next_stdint_h
28788
if test $ac_cv_header_stdint_h = yes; then
28795
if test $ac_cv_header_stdint_h = yes; then
28796
{ echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28797
echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
28798
if test "${gl_cv_header_working_stdint_h+set}" = set; then
28799
echo $ECHO_N "(cached) $ECHO_C" >&6
28801
gl_cv_header_working_stdint_h=no
28802
cat >conftest.$ac_ext <<_ACEOF
28806
cat confdefs.h >>conftest.$ac_ext
28807
cat >>conftest.$ac_ext <<_ACEOF
28808
/* end confdefs.h. */
28810
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28811
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28812
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28813
#include <stdint.h>
28814
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
28815
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
28816
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28820
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28821
included before <wchar.h>. */
28822
#include <stddef.h>
28823
#include <signal.h>
28825
# include <stdio.h>
28827
# include <wchar.h>
28832
int8_t a1 = INT8_MAX;
28833
int8_t a1min = INT8_MIN;
28836
int16_t a2 = INT16_MAX;
28837
int16_t a2min = INT16_MIN;
28840
int32_t a3 = INT32_MAX;
28841
int32_t a3min = INT32_MIN;
28844
int64_t a4 = INT64_MAX;
28845
int64_t a4min = INT64_MIN;
28848
uint8_t b1 = UINT8_MAX;
28850
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28853
uint16_t b2 = UINT16_MAX;
28856
uint32_t b3 = UINT32_MAX;
28859
uint64_t b4 = UINT64_MAX;
28861
int_least8_t c1 = INT8_C (0x7f);
28862
int_least8_t c1max = INT_LEAST8_MAX;
28863
int_least8_t c1min = INT_LEAST8_MIN;
28864
int_least16_t c2 = INT16_C (0x7fff);
28865
int_least16_t c2max = INT_LEAST16_MAX;
28866
int_least16_t c2min = INT_LEAST16_MIN;
28867
int_least32_t c3 = INT32_C (0x7fffffff);
28868
int_least32_t c3max = INT_LEAST32_MAX;
28869
int_least32_t c3min = INT_LEAST32_MIN;
28870
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28871
int_least64_t c4max = INT_LEAST64_MAX;
28872
int_least64_t c4min = INT_LEAST64_MIN;
28873
uint_least8_t d1 = UINT8_C (0xff);
28874
uint_least8_t d1max = UINT_LEAST8_MAX;
28875
uint_least16_t d2 = UINT16_C (0xffff);
28876
uint_least16_t d2max = UINT_LEAST16_MAX;
28877
uint_least32_t d3 = UINT32_C (0xffffffff);
28878
uint_least32_t d3max = UINT_LEAST32_MAX;
28879
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28880
uint_least64_t d4max = UINT_LEAST64_MAX;
28881
int_fast8_t e1 = INT_FAST8_MAX;
28882
int_fast8_t e1min = INT_FAST8_MIN;
28883
int_fast16_t e2 = INT_FAST16_MAX;
28884
int_fast16_t e2min = INT_FAST16_MIN;
28885
int_fast32_t e3 = INT_FAST32_MAX;
28886
int_fast32_t e3min = INT_FAST32_MIN;
28887
int_fast64_t e4 = INT_FAST64_MAX;
28888
int_fast64_t e4min = INT_FAST64_MIN;
28889
uint_fast8_t f1 = UINT_FAST8_MAX;
28890
uint_fast16_t f2 = UINT_FAST16_MAX;
28891
uint_fast32_t f3 = UINT_FAST32_MAX;
28892
uint_fast64_t f4 = UINT_FAST64_MAX;
28894
intptr_t g = INTPTR_MAX;
28895
intptr_t gmin = INTPTR_MIN;
28898
uintptr_t h = UINTPTR_MAX;
28900
intmax_t i = INTMAX_MAX;
28901
uintmax_t j = UINTMAX_MAX;
28903
#include <limits.h> /* for CHAR_BIT */
28904
#define TYPE_MINIMUM(t) \
28905
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
28906
#define TYPE_MAXIMUM(t) \
28907
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
28910
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
28911
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
28913
/* Detect bug in FreeBSD 6.0 / ia64. */
28914
int check_SIG_ATOMIC:
28915
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
28916
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
28918
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
28920
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
28921
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
28923
/* Detect bug in mingw. */
28925
WINT_MIN == TYPE_MINIMUM (wint_t)
28926
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
28929
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
28931
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28932
int check_UINT16_C:
28933
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28935
/* Detect bugs in OpenBSD 3.9 stdint.h. */
28937
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28940
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28943
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28946
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28948
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28949
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28950
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28951
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28952
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28953
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28954
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28955
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28956
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28957
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28958
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28969
rm -f conftest.$ac_objext
28970
if { (ac_try="$ac_compile"
28971
case "(($ac_try" in
28972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973
*) ac_try_echo=$ac_try;;
28975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976
(eval "$ac_compile") 2>conftest.er1
28978
grep -v '^ *+' conftest.er1 >conftest.err
28980
cat conftest.err >&5
28981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982
(exit $ac_status); } && {
28983
test -z "$ac_c_werror_flag" ||
28984
test ! -s conftest.err
28985
} && test -s conftest.$ac_objext; then
28986
gl_cv_header_working_stdint_h=yes
28988
echo "$as_me: failed program was:" >&5
28989
sed 's/^/| /' conftest.$ac_ext >&5
28994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28996
{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28997
echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
28999
if test "$gl_cv_header_working_stdint_h" = yes; then
29004
for ac_header in sys/inttypes.h sys/bitypes.h
29006
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29007
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29008
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29010
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29011
echo $ECHO_N "(cached) $ECHO_C" >&6
29013
ac_res=`eval echo '${'$as_ac_Header'}'`
29014
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29015
echo "${ECHO_T}$ac_res" >&6; }
29017
# Is the header compilable?
29018
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29019
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29020
cat >conftest.$ac_ext <<_ACEOF
29023
cat confdefs.h >>conftest.$ac_ext
29024
cat >>conftest.$ac_ext <<_ACEOF
29025
/* end confdefs.h. */
29026
$ac_includes_default
29027
#include <$ac_header>
29029
rm -f conftest.$ac_objext
29030
if { (ac_try="$ac_compile"
29031
case "(($ac_try" in
29032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033
*) ac_try_echo=$ac_try;;
29035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036
(eval "$ac_compile") 2>conftest.er1
29038
grep -v '^ *+' conftest.er1 >conftest.err
29040
cat conftest.err >&5
29041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042
(exit $ac_status); } && {
29043
test -z "$ac_c_werror_flag" ||
29044
test ! -s conftest.err
29045
} && test -s conftest.$ac_objext; then
29046
ac_header_compiler=yes
29048
echo "$as_me: failed program was:" >&5
29049
sed 's/^/| /' conftest.$ac_ext >&5
29051
ac_header_compiler=no
29054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056
echo "${ECHO_T}$ac_header_compiler" >&6; }
29058
# Is the header present?
29059
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29061
cat >conftest.$ac_ext <<_ACEOF
29064
cat confdefs.h >>conftest.$ac_ext
29065
cat >>conftest.$ac_ext <<_ACEOF
29066
/* end confdefs.h. */
29067
#include <$ac_header>
29069
if { (ac_try="$ac_cpp conftest.$ac_ext"
29070
case "(($ac_try" in
29071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072
*) ac_try_echo=$ac_try;;
29074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29077
grep -v '^ *+' conftest.er1 >conftest.err
29079
cat conftest.err >&5
29080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081
(exit $ac_status); } >/dev/null && {
29082
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29083
test ! -s conftest.err
29085
ac_header_preproc=yes
29087
echo "$as_me: failed program was:" >&5
29088
sed 's/^/| /' conftest.$ac_ext >&5
29090
ac_header_preproc=no
29093
rm -f conftest.err conftest.$ac_ext
29094
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29095
echo "${ECHO_T}$ac_header_preproc" >&6; }
29097
# So? What about this header?
29098
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29100
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29101
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29102
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29103
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29104
ac_header_preproc=yes
29107
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29108
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29109
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29110
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29111
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29112
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29113
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29114
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29115
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29116
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29117
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29118
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29120
## --------------------------------------- ##
29121
## Report this to opendap-tech@opendap.org ##
29122
## --------------------------------------- ##
29124
) | sed "s/^/$as_me: WARNING: /" >&2
29127
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29128
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29129
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29130
echo $ECHO_N "(cached) $ECHO_C" >&6
29132
eval "$as_ac_Header=\$ac_header_preproc"
29134
ac_res=`eval echo '${'$as_ac_Header'}'`
29135
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29136
echo "${ECHO_T}$ac_res" >&6; }
29139
if test `eval echo '${'$as_ac_Header'}'` = yes; then
29140
cat >>confdefs.h <<_ACEOF
29141
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29148
if test $ac_cv_header_sys_inttypes_h = yes; then
29149
HAVE_SYS_INTTYPES_H=1
29151
HAVE_SYS_INTTYPES_H=0
29154
if test $ac_cv_header_sys_bitypes_h = yes; then
29155
HAVE_SYS_BITYPES_H=1
29157
HAVE_SYS_BITYPES_H=0
29176
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
29177
{ echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29178
echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
29179
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29180
echo $ECHO_N "(cached) $ECHO_C" >&6
29182
if test "$cross_compiling" = yes; then
29183
# Depending upon the size, compute the lo and hi bounds.
29184
cat >conftest.$ac_ext <<_ACEOF
29187
cat confdefs.h >>conftest.$ac_ext
29188
cat >>conftest.$ac_ext <<_ACEOF
29189
/* end confdefs.h. */
29191
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29192
included before <wchar.h>. */
29193
#include <stddef.h>
29194
#include <signal.h>
29196
# include <stdio.h>
29198
# include <wchar.h>
29201
#include <limits.h>
29205
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29212
rm -f conftest.$ac_objext
29213
if { (ac_try="$ac_compile"
29214
case "(($ac_try" in
29215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216
*) ac_try_echo=$ac_try;;
29218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219
(eval "$ac_compile") 2>conftest.er1
29221
grep -v '^ *+' conftest.er1 >conftest.err
29223
cat conftest.err >&5
29224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225
(exit $ac_status); } && {
29226
test -z "$ac_c_werror_flag" ||
29227
test ! -s conftest.err
29228
} && test -s conftest.$ac_objext; then
29231
cat >conftest.$ac_ext <<_ACEOF
29234
cat confdefs.h >>conftest.$ac_ext
29235
cat >>conftest.$ac_ext <<_ACEOF
29236
/* end confdefs.h. */
29238
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29239
included before <wchar.h>. */
29240
#include <stddef.h>
29241
#include <signal.h>
29243
# include <stdio.h>
29245
# include <wchar.h>
29248
#include <limits.h>
29252
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29259
rm -f conftest.$ac_objext
29260
if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29268
grep -v '^ *+' conftest.er1 >conftest.err
29270
cat conftest.err >&5
29271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272
(exit $ac_status); } && {
29273
test -z "$ac_c_werror_flag" ||
29274
test ! -s conftest.err
29275
} && test -s conftest.$ac_objext; then
29276
ac_hi=$ac_mid; break
29278
echo "$as_me: failed program was:" >&5
29279
sed 's/^/| /' conftest.$ac_ext >&5
29281
ac_lo=`expr $ac_mid + 1`
29282
if test $ac_lo -le $ac_mid; then
29286
ac_mid=`expr 2 '*' $ac_mid + 1`
29289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29292
echo "$as_me: failed program was:" >&5
29293
sed 's/^/| /' conftest.$ac_ext >&5
29295
cat >conftest.$ac_ext <<_ACEOF
29298
cat confdefs.h >>conftest.$ac_ext
29299
cat >>conftest.$ac_ext <<_ACEOF
29300
/* end confdefs.h. */
29302
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29303
included before <wchar.h>. */
29304
#include <stddef.h>
29305
#include <signal.h>
29307
# include <stdio.h>
29309
# include <wchar.h>
29312
#include <limits.h>
29316
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29323
rm -f conftest.$ac_objext
29324
if { (ac_try="$ac_compile"
29325
case "(($ac_try" in
29326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327
*) ac_try_echo=$ac_try;;
29329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330
(eval "$ac_compile") 2>conftest.er1
29332
grep -v '^ *+' conftest.er1 >conftest.err
29334
cat conftest.err >&5
29335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336
(exit $ac_status); } && {
29337
test -z "$ac_c_werror_flag" ||
29338
test ! -s conftest.err
29339
} && test -s conftest.$ac_objext; then
29342
cat >conftest.$ac_ext <<_ACEOF
29345
cat confdefs.h >>conftest.$ac_ext
29346
cat >>conftest.$ac_ext <<_ACEOF
29347
/* end confdefs.h. */
29349
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29350
included before <wchar.h>. */
29351
#include <stddef.h>
29352
#include <signal.h>
29354
# include <stdio.h>
29356
# include <wchar.h>
29359
#include <limits.h>
29363
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29370
rm -f conftest.$ac_objext
29371
if { (ac_try="$ac_compile"
29372
case "(($ac_try" in
29373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29374
*) ac_try_echo=$ac_try;;
29376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29377
(eval "$ac_compile") 2>conftest.er1
29379
grep -v '^ *+' conftest.er1 >conftest.err
29381
cat conftest.err >&5
29382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383
(exit $ac_status); } && {
29384
test -z "$ac_c_werror_flag" ||
29385
test ! -s conftest.err
29386
} && test -s conftest.$ac_objext; then
29387
ac_lo=$ac_mid; break
29389
echo "$as_me: failed program was:" >&5
29390
sed 's/^/| /' conftest.$ac_ext >&5
29392
ac_hi=`expr '(' $ac_mid ')' - 1`
29393
if test $ac_mid -le $ac_hi; then
29397
ac_mid=`expr 2 '*' $ac_mid`
29400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29403
echo "$as_me: failed program was:" >&5
29404
sed 's/^/| /' conftest.$ac_ext >&5
29409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29413
# Binary search between lo and hi bounds.
29414
while test "x$ac_lo" != "x$ac_hi"; do
29415
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29416
cat >conftest.$ac_ext <<_ACEOF
29419
cat confdefs.h >>conftest.$ac_ext
29420
cat >>conftest.$ac_ext <<_ACEOF
29421
/* end confdefs.h. */
29423
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29424
included before <wchar.h>. */
29425
#include <stddef.h>
29426
#include <signal.h>
29428
# include <stdio.h>
29430
# include <wchar.h>
29433
#include <limits.h>
29437
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29444
rm -f conftest.$ac_objext
29445
if { (ac_try="$ac_compile"
29446
case "(($ac_try" in
29447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448
*) ac_try_echo=$ac_try;;
29450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451
(eval "$ac_compile") 2>conftest.er1
29453
grep -v '^ *+' conftest.er1 >conftest.err
29455
cat conftest.err >&5
29456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457
(exit $ac_status); } && {
29458
test -z "$ac_c_werror_flag" ||
29459
test ! -s conftest.err
29460
} && test -s conftest.$ac_objext; then
29463
echo "$as_me: failed program was:" >&5
29464
sed 's/^/| /' conftest.$ac_ext >&5
29466
ac_lo=`expr '(' $ac_mid ')' + 1`
29469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29472
?*) result=$ac_lo;;
29473
'') result=unknown ;;
29476
cat >conftest.$ac_ext <<_ACEOF
29479
cat confdefs.h >>conftest.$ac_ext
29480
cat >>conftest.$ac_ext <<_ACEOF
29481
/* end confdefs.h. */
29483
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29484
included before <wchar.h>. */
29485
#include <stddef.h>
29486
#include <signal.h>
29488
# include <stdio.h>
29490
# include <wchar.h>
29493
#include <limits.h>
29494
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29495
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29497
#include <stdlib.h>
29502
FILE *f = fopen ("conftest.val", "w");
29505
if ((sizeof ($gltype) * CHAR_BIT) < 0)
29507
long int i = longval ();
29508
if (i != (sizeof ($gltype) * CHAR_BIT))
29510
fprintf (f, "%ld\n", i);
29514
unsigned long int i = ulongval ();
29515
if (i != (sizeof ($gltype) * CHAR_BIT))
29517
fprintf (f, "%lu\n", i);
29519
return ferror (f) || fclose (f) != 0;
29525
rm -f conftest$ac_exeext
29526
if { (ac_try="$ac_link"
29527
case "(($ac_try" in
29528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529
*) ac_try_echo=$ac_try;;
29531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532
(eval "$ac_link") 2>&5
29534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29536
{ (case "(($ac_try" in
29537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538
*) ac_try_echo=$ac_try;;
29540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541
(eval "$ac_try") 2>&5
29543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544
(exit $ac_status); }; }; then
29545
result=`cat conftest.val`
29547
echo "$as_me: program exited with status $ac_status" >&5
29548
echo "$as_me: failed program was:" >&5
29549
sed 's/^/| /' conftest.$ac_ext >&5
29551
( exit $ac_status )
29554
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29557
eval gl_cv_bitsizeof_${gltype}=\$result
29560
ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
29561
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29562
echo "${ECHO_T}$ac_res" >&6; }
29563
eval result=\$gl_cv_bitsizeof_${gltype}
29564
if test $result = unknown; then
29567
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29568
cat >>confdefs.h <<_ACEOF
29569
#define BITSIZEOF_${GLTYPE} $result
29572
eval BITSIZEOF_${GLTYPE}=\$result
29581
for gltype in sig_atomic_t wchar_t wint_t ; do
29582
{ echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
29583
echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
29584
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
29585
echo $ECHO_N "(cached) $ECHO_C" >&6
29587
cat >conftest.$ac_ext <<_ACEOF
29590
cat confdefs.h >>conftest.$ac_ext
29591
cat >>conftest.$ac_ext <<_ACEOF
29592
/* end confdefs.h. */
29594
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29595
included before <wchar.h>. */
29596
#include <stddef.h>
29597
#include <signal.h>
29599
# include <stdio.h>
29601
# include <wchar.h>
29604
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29613
rm -f conftest.$ac_objext
29614
if { (ac_try="$ac_compile"
29615
case "(($ac_try" in
29616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617
*) ac_try_echo=$ac_try;;
29619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620
(eval "$ac_compile") 2>conftest.er1
29622
grep -v '^ *+' conftest.er1 >conftest.err
29624
cat conftest.err >&5
29625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626
(exit $ac_status); } && {
29627
test -z "$ac_c_werror_flag" ||
29628
test ! -s conftest.err
29629
} && test -s conftest.$ac_objext; then
29632
echo "$as_me: failed program was:" >&5
29633
sed 's/^/| /' conftest.$ac_ext >&5
29638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29639
eval gl_cv_type_${gltype}_signed=\$result
29642
ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
29643
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29644
echo "${ECHO_T}$ac_res" >&6; }
29645
eval result=\$gl_cv_type_${gltype}_signed
29646
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29647
if test "$result" = yes; then
29648
cat >>confdefs.h <<_ACEOF
29649
#define HAVE_SIGNED_${GLTYPE} 1
29652
eval HAVE_SIGNED_${GLTYPE}=1
29654
eval HAVE_SIGNED_${GLTYPE}=0
29659
gl_cv_type_ptrdiff_t_signed=yes
29660
gl_cv_type_size_t_signed=no
29668
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
29669
{ echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29670
echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
29671
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29672
echo $ECHO_N "(cached) $ECHO_C" >&6
29674
eval gl_cv_type_${gltype}_suffix=no
29675
eval result=\$gl_cv_type_${gltype}_signed
29676
if test "$result" = yes; then
29681
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29683
'') gltype1='int';;
29684
l) gltype1='long int';;
29685
ll) gltype1='long long int';;
29686
i64) gltype1='__int64';;
29687
u) gltype1='unsigned int';;
29688
ul) gltype1='unsigned long int';;
29689
ull) gltype1='unsigned long long int';;
29690
ui64)gltype1='unsigned __int64';;
29692
cat >conftest.$ac_ext <<_ACEOF
29695
cat confdefs.h >>conftest.$ac_ext
29696
cat >>conftest.$ac_ext <<_ACEOF
29697
/* end confdefs.h. */
29699
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29700
included before <wchar.h>. */
29701
#include <stddef.h>
29702
#include <signal.h>
29704
# include <stdio.h>
29706
# include <wchar.h>
29709
extern $gltype foo;
29710
extern $gltype1 foo;
29719
rm -f conftest.$ac_objext
29720
if { (ac_try="$ac_compile"
29721
case "(($ac_try" in
29722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723
*) ac_try_echo=$ac_try;;
29725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726
(eval "$ac_compile") 2>conftest.er1
29728
grep -v '^ *+' conftest.er1 >conftest.err
29730
cat conftest.err >&5
29731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732
(exit $ac_status); } && {
29733
test -z "$ac_c_werror_flag" ||
29734
test ! -s conftest.err
29735
} && test -s conftest.$ac_objext; then
29736
eval gl_cv_type_${gltype}_suffix=\$glsuf
29738
echo "$as_me: failed program was:" >&5
29739
sed 's/^/| /' conftest.$ac_ext >&5
29744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745
eval result=\$gl_cv_type_${gltype}_suffix
29746
test "$result" != no && break
29749
ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
29750
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29751
echo "${ECHO_T}$ac_res" >&6; }
29752
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29753
eval result=\$gl_cv_type_${gltype}_suffix
29754
test "$result" = no && result=
29755
eval ${GLTYPE}_SUFFIX=\$result
29756
cat >>confdefs.h <<_ACEOF
29757
#define ${GLTYPE}_SUFFIX $result
29780
if test $gl_cv_have_include_next = yes; then
29781
gl_cv_next_stdlib_h='<'stdlib.h'>'
29783
{ echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
29784
echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
29785
if test "${gl_cv_next_stdlib_h+set}" = set; then
29786
echo $ECHO_N "(cached) $ECHO_C" >&6
29789
if test $ac_cv_header_stdlib_h = yes; then
29790
cat >conftest.$ac_ext <<_ACEOF
29793
cat confdefs.h >>conftest.$ac_ext
29794
cat >>conftest.$ac_ext <<_ACEOF
29795
/* end confdefs.h. */
29796
#include <stdlib.h>
29799
gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29800
sed -n '\#/stdlib.h#{
29801
s#.*"\(.*/stdlib.h\)".*#\1#
29807
gl_cv_next_stdlib_h='<'stdlib.h'>'
29811
{ echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
29812
echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
29814
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
29832
if test $gl_cv_have_include_next = yes; then
29833
gl_cv_next_unistd_h='<'unistd.h'>'
29835
{ echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
29836
echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
29837
if test "${gl_cv_next_unistd_h+set}" = set; then
29838
echo $ECHO_N "(cached) $ECHO_C" >&6
29841
if test $ac_cv_header_unistd_h = yes; then
29842
cat >conftest.$ac_ext <<_ACEOF
29845
cat confdefs.h >>conftest.$ac_ext
29846
cat >>conftest.$ac_ext <<_ACEOF
29847
/* end confdefs.h. */
29848
#include <unistd.h>
29851
gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29852
sed -n '\#/unistd.h#{
29853
s#.*"\(.*/unistd.h\)".*#\1#
29859
gl_cv_next_unistd_h='<'unistd.h'>'
29863
{ echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
29864
echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
29866
NEXT_UNISTD_H=$gl_cv_next_unistd_h
29877
if test $ac_cv_header_unistd_h = yes; then
29886
{ echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
29887
echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
29888
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
29889
echo $ECHO_N "(cached) $ECHO_C" >&6
29891
cat >conftest.$ac_ext <<_ACEOF
29895
rm -f conftest.$ac_objext
29896
if { (ac_try="$ac_compile"
29897
case "(($ac_try" in
29898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899
*) ac_try_echo=$ac_try;;
29901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902
(eval "$ac_compile") 2>conftest.er1
29904
grep -v '^ *+' conftest.er1 >conftest.err
29906
cat conftest.err >&5
29907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908
(exit $ac_status); } && {
29909
test -z "$ac_c_werror_flag" ||
29910
test ! -s conftest.err
29911
} && test -s conftest.$ac_objext; then
29912
gl_cv_header_wchar_h_standalone=yes
29914
echo "$as_me: failed program was:" >&5
29915
sed 's/^/| /' conftest.$ac_ext >&5
29917
gl_cv_header_wchar_h_standalone=no
29920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29922
{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
29923
echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
29924
if test $gl_cv_header_wchar_h_standalone != yes; then
29934
if test $ac_cv_header_wchar_h = yes; then
29950
if test $gl_cv_have_include_next = yes; then
29951
gl_cv_next_wchar_h='<'wchar.h'>'
29953
{ echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
29954
echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
29955
if test "${gl_cv_next_wchar_h+set}" = set; then
29956
echo $ECHO_N "(cached) $ECHO_C" >&6
29959
if test $ac_cv_header_wchar_h = yes; then
29960
cat >conftest.$ac_ext <<_ACEOF
29963
cat confdefs.h >>conftest.$ac_ext
29964
cat >>conftest.$ac_ext <<_ACEOF
29965
/* end confdefs.h. */
29969
gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29970
sed -n '\#/wchar.h#{
29971
s#.*"\(.*/wchar.h\)".*#\1#
29977
gl_cv_next_wchar_h='<'wchar.h'>'
29981
{ echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
29982
echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
29984
NEXT_WCHAR_H=$gl_cv_next_wchar_h
29996
if test $ac_cv_func_iswcntrl = yes; then
30011
if test $gt_cv_c_wint_t = yes; then
30019
if test $ac_cv_header_wctype_h = yes; then
30020
if test $ac_cv_func_iswcntrl = yes; then
30033
if test $gl_cv_have_include_next = yes; then
30034
gl_cv_next_wctype_h='<'wctype.h'>'
30036
{ echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
30037
echo $ECHO_N "checking absolute name of <wctype.h>... $ECHO_C" >&6; }
30038
if test "${gl_cv_next_wctype_h+set}" = set; then
30039
echo $ECHO_N "(cached) $ECHO_C" >&6
30042
if test $ac_cv_header_wctype_h = yes; then
30043
cat >conftest.$ac_ext <<_ACEOF
30046
cat confdefs.h >>conftest.$ac_ext
30047
cat >>conftest.$ac_ext <<_ACEOF
30048
/* end confdefs.h. */
30049
#include <wctype.h>
30052
gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30053
sed -n '\#/wctype.h#{
30054
s#.*"\(.*/wctype.h\)".*#\1#
30060
gl_cv_next_wctype_h='<'wctype.h'>'
30064
{ echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
30065
echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; }
30067
NEXT_WCTYPE_H=$gl_cv_next_wctype_h
30087
libdap_pkgconfig_libcurl=yes
30088
libdap_libcurl_module='libcurl >= 7.10.6'
30091
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30092
if test -n "$ac_tool_prefix"; then
30093
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30094
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30095
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30097
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30098
echo $ECHO_N "(cached) $ECHO_C" >&6
30100
case $PKG_CONFIG in
30102
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30106
for as_dir in $PATH
30109
test -z "$as_dir" && as_dir=.
30110
for ac_exec_ext in '' $ac_executable_extensions; do
30111
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30112
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30113
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30123
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30124
if test -n "$PKG_CONFIG"; then
30125
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30126
echo "${ECHO_T}$PKG_CONFIG" >&6; }
30128
{ echo "$as_me:$LINENO: result: no" >&5
30129
echo "${ECHO_T}no" >&6; }
30134
if test -z "$ac_cv_path_PKG_CONFIG"; then
30135
ac_pt_PKG_CONFIG=$PKG_CONFIG
30136
# Extract the first word of "pkg-config", so it can be a program name with args.
30137
set dummy pkg-config; ac_word=$2
30138
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30140
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30141
echo $ECHO_N "(cached) $ECHO_C" >&6
30143
case $ac_pt_PKG_CONFIG in
30145
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30149
for as_dir in $PATH
30152
test -z "$as_dir" && as_dir=.
30153
for ac_exec_ext in '' $ac_executable_extensions; do
30154
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30155
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30156
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30166
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30167
if test -n "$ac_pt_PKG_CONFIG"; then
30168
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30169
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30171
{ echo "$as_me:$LINENO: result: no" >&5
30172
echo "${ECHO_T}no" >&6; }
30175
if test "x$ac_pt_PKG_CONFIG" = x; then
30178
case $cross_compiling:$ac_tool_warned in
30180
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30181
whose name does not start with the host triplet. If you think this
30182
configuration is useful to you, please write to autoconf@gnu.org." >&5
30183
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30184
whose name does not start with the host triplet. If you think this
30185
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30186
ac_tool_warned=yes ;;
30188
PKG_CONFIG=$ac_pt_PKG_CONFIG
30191
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30195
if test -n "$PKG_CONFIG"; then
30196
_pkg_min_version=0.9.0
30197
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30198
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30199
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30200
{ echo "$as_me:$LINENO: result: yes" >&5
30201
echo "${ECHO_T}yes" >&6; }
30203
{ echo "$as_me:$LINENO: result: no" >&5
30204
echo "${ECHO_T}no" >&6; }
30211
{ echo "$as_me:$LINENO: checking for CURL" >&5
30212
echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
30214
if test -n "$PKG_CONFIG"; then
30215
if test -n "$CURL_CFLAGS"; then
30216
pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
30218
if test -n "$PKG_CONFIG" && \
30219
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libcurl_module\"") >&5
30220
($PKG_CONFIG --exists --print-errors "$libdap_libcurl_module") 2>&5
30222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223
(exit $ac_status); }; then
30224
pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "$libdap_libcurl_module" 2>/dev/null`
30232
if test -n "$PKG_CONFIG"; then
30233
if test -n "$CURL_LIBS"; then
30234
pkg_cv_CURL_LIBS="$CURL_LIBS"
30236
if test -n "$PKG_CONFIG" && \
30237
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libcurl_module\"") >&5
30238
($PKG_CONFIG --exists --print-errors "$libdap_libcurl_module") 2>&5
30240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241
(exit $ac_status); }; then
30242
pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "$libdap_libcurl_module" 2>/dev/null`
30253
if test $pkg_failed = yes; then
30255
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30256
_pkg_short_errors_supported=yes
30258
_pkg_short_errors_supported=no
30260
if test $_pkg_short_errors_supported = yes; then
30261
CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$libdap_libcurl_module"`
30263
CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$libdap_libcurl_module"`
30265
# Put the nasty error message in config.log where it belongs
30266
echo "$CURL_PKG_ERRORS" >&5
30268
{ echo "$as_me:$LINENO: result: no" >&5
30269
echo "${ECHO_T}no" >&6; }
30270
libdap_pkgconfig_libcurl=no
30271
elif test $pkg_failed = untried; then
30272
libdap_pkgconfig_libcurl=no
30274
CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
30275
CURL_LIBS=$pkg_cv_CURL_LIBS
30276
{ echo "$as_me:$LINENO: result: yes" >&5
30277
echo "${ECHO_T}yes" >&6; }
30280
{ echo "$as_me:$LINENO: checking for libcurl" >&5
30281
echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
30282
if test $libdap_pkgconfig_libcurl = 'yes'
30284
curlprivatereq=$libdap_libcurl_module
30285
CURL_STATIC_LIBS="`$PKG_CONFIG --static --libs libcurl`"
30286
{ echo "$as_me:$LINENO: result: yes; used pkg-config" >&5
30287
echo "${ECHO_T}yes; used pkg-config" >&6; }
30288
elif curl-config --version > /dev/null 2>&1
30290
version_libcurl=`curl-config --version | sed 's@libcurl \(.*\)@\1@'`
30292
version_M=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\1@'`
30293
version_m=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\2@'`
30294
version_m_m=`echo $version_libcurl | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\3@'`
30298
if test $version_M -gt 7
30301
elif test $version_M -eq 7 && test $version_m -gt 10
30304
elif test $version_M -eq 7 && test $version_m -eq 10 && test $version_m_m -gt 5
30311
if test $libcurl_ok = "no"
30313
{ { echo "$as_me:$LINENO: error: must have libcurl 7.10.6 or greater, found $version_libcurl" >&5
30314
echo "$as_me: error: must have libcurl 7.10.6 or greater, found $version_libcurl" >&2;}
30315
{ (exit 1); exit 1; }; }
30318
CURL_LIBS="`curl-config --libs`"
30319
CURL_STATIC_LIBS=$CURL_LIBS
30320
curlprivatelibs="`curl-config --libs`"
30321
CURL_CFLAGS="`curl-config --cflags`"
30322
{ echo "$as_me:$LINENO: result: yes; used curl-config" >&5
30323
echo "${ECHO_T}yes; used curl-config" >&6; }
30325
{ { echo "$as_me:$LINENO: error: I could not find libcurl" >&5
30326
echo "$as_me: error: I could not find libcurl" >&2;}
30327
{ (exit 1); exit 1; }; }
30337
libdap_pkgconfig_libxml2=yes
30338
libdap_libxml2_module='libxml-2.0 >= 2.6.16'
30341
{ echo "$as_me:$LINENO: checking for XML2" >&5
30342
echo $ECHO_N "checking for XML2... $ECHO_C" >&6; }
30344
if test -n "$PKG_CONFIG"; then
30345
if test -n "$XML2_CFLAGS"; then
30346
pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
30348
if test -n "$PKG_CONFIG" && \
30349
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libxml2_module\"") >&5
30350
($PKG_CONFIG --exists --print-errors "$libdap_libxml2_module") 2>&5
30352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353
(exit $ac_status); }; then
30354
pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "$libdap_libxml2_module" 2>/dev/null`
30362
if test -n "$PKG_CONFIG"; then
30363
if test -n "$XML2_LIBS"; then
30364
pkg_cv_XML2_LIBS="$XML2_LIBS"
30366
if test -n "$PKG_CONFIG" && \
30367
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$libdap_libxml2_module\"") >&5
30368
($PKG_CONFIG --exists --print-errors "$libdap_libxml2_module") 2>&5
30370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371
(exit $ac_status); }; then
30372
pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "$libdap_libxml2_module" 2>/dev/null`
30383
if test $pkg_failed = yes; then
30385
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30386
_pkg_short_errors_supported=yes
30388
_pkg_short_errors_supported=no
30390
if test $_pkg_short_errors_supported = yes; then
30391
XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$libdap_libxml2_module"`
30393
XML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$libdap_libxml2_module"`
30395
# Put the nasty error message in config.log where it belongs
30396
echo "$XML2_PKG_ERRORS" >&5
30398
{ echo "$as_me:$LINENO: result: no" >&5
30399
echo "${ECHO_T}no" >&6; }
30400
libdap_pkgconfig_libxml2=no
30401
elif test $pkg_failed = untried; then
30402
libdap_pkgconfig_libxml2=no
30404
XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
30405
XML2_LIBS=$pkg_cv_XML2_LIBS
30406
{ echo "$as_me:$LINENO: result: yes" >&5
30407
echo "${ECHO_T}yes" >&6; }
30410
{ echo "$as_me:$LINENO: checking for libxml2" >&5
30411
echo $ECHO_N "checking for libxml2... $ECHO_C" >&6; }
30412
if test $libdap_pkgconfig_libxml2 = 'yes'
30414
xmlprivatereq=$libdap_libxml2_module
30415
XML2_STATIC_LIBS="`$PKG_CONFIG --static --libs libxml-2.0`"
30417
cat >>confdefs.h <<\_ACEOF
30418
#define LIBXML2_5_10 1
30422
cat >>confdefs.h <<\_ACEOF
30423
#define LIBXML2_6_16 1
30426
{ echo "$as_me:$LINENO: result: yes; used pkg-config" >&5
30427
echo "${ECHO_T}yes; used pkg-config" >&6; }
30428
elif xml2-config --version > /dev/null 2>&1
30430
version_libxml2=`xml2-config --version`
30431
version_M=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\1@'`
30432
version_m=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\2@'`
30433
version_m_m=`echo $version_libxml2 | sed 's@^\([0-9]\)*\.\([0-9]*\)\.\([0-9]*\)$@\3@'`
30436
if test $version_M -gt 2
30439
elif test $version_M -eq 2 && test $version_m -gt 5
30442
elif test $version_M -eq 2 && test $version_m -eq 5 && test $version_m_m -gt 6
30449
if test $libxml2_ok = "no"
30451
{ { echo "$as_me:$LINENO: error: must have libxml2 2.5.7 or greater, found $version_libxml2" >&5
30452
echo "$as_me: error: must have libxml2 2.5.7 or greater, found $version_libxml2" >&2;}
30453
{ (exit 1); exit 1; }; }
30456
if test $version_M -eq 2 && test $version_m -eq 5 && test $version_m_m -ge 10
30459
cat >>confdefs.h <<\_ACEOF
30460
#define LIBXML2_5_10 1
30464
if test $version_M -eq 2 && test $version_m -eq 6 && test $version_m_m -ge 16
30467
cat >>confdefs.h <<\_ACEOF
30468
#define LIBXML2_5_10 1
30472
cat >>confdefs.h <<\_ACEOF
30473
#define LIBXML2_6_16 1
30478
XML2_LIBS="`xml2-config --libs`"
30479
XML2_STATIC_LIBS=$XML2_LIBS
30480
XML2_CFLAGS="`xml2-config --cflags`"
30481
xmlprivatelibs="`xml2-config --libs`"
30482
{ echo "$as_me:$LINENO: result: yes; used xml2-config" >&5
30483
echo "${ECHO_T}yes; used xml2-config" >&6; }
30485
{ { echo "$as_me:$LINENO: error: I could not find libxml2" >&5
30486
echo "$as_me: error: I could not find libxml2" >&2;}
30487
{ (exit 1); exit 1; }; }
30496
# Handle user hints
30500
# Check whether --with-zlib was given.
30501
if test "${with_zlib+set}" = set; then
30502
withval=$with_zlib; if test "$withval" != no ; then
30503
if test -d "$withval"
30505
ZLIB_HOME="$withval"
30507
{ echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
30508
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
30511
{ echo "$as_me:$LINENO: WARNING: zlib is required for deflate, not disabled" >&5
30512
echo "$as_me: WARNING: zlib is required for deflate, not disabled" >&2;}
30517
ZLIB_OLD_LDFLAGS=$LDFLAGS
30518
ZLIB_OLD_CPPFLAGS=$CPPFLAGS
30521
# Locate zlib, if wanted
30523
if test -n "${ZLIB_HOME}"
30525
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
30526
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
30530
ac_cpp='$CPP $CPPFLAGS'
30531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30535
{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
30536
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
30537
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
30538
echo $ECHO_N "(cached) $ECHO_C" >&6
30540
ac_check_lib_save_LIBS=$LIBS
30542
cat >conftest.$ac_ext <<_ACEOF
30545
cat confdefs.h >>conftest.$ac_ext
30546
cat >>conftest.$ac_ext <<_ACEOF
30547
/* end confdefs.h. */
30549
/* Override any GCC internal prototype to avoid an error.
30550
Use char because int might match the return type of a GCC
30551
builtin and then its argument prototype would still apply. */
30555
char inflateEnd ();
30559
return inflateEnd ();
30564
rm -f conftest.$ac_objext conftest$ac_exeext
30565
if { (ac_try="$ac_link"
30566
case "(($ac_try" in
30567
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568
*) ac_try_echo=$ac_try;;
30570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571
(eval "$ac_link") 2>conftest.er1
30573
grep -v '^ *+' conftest.er1 >conftest.err
30575
cat conftest.err >&5
30576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577
(exit $ac_status); } && {
30578
test -z "$ac_c_werror_flag" ||
30579
test ! -s conftest.err
30580
} && test -s conftest$ac_exeext &&
30581
$as_test_x conftest$ac_exeext; then
30582
ac_cv_lib_z_inflateEnd=yes
30584
echo "$as_me: failed program was:" >&5
30585
sed 's/^/| /' conftest.$ac_ext >&5
30587
ac_cv_lib_z_inflateEnd=no
30590
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30591
conftest$ac_exeext conftest.$ac_ext
30592
LIBS=$ac_check_lib_save_LIBS
30594
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
30595
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
30596
if test $ac_cv_lib_z_inflateEnd = yes; then
30602
if test "${ac_cv_header_zlib_h+set}" = set; then
30603
{ echo "$as_me:$LINENO: checking for zlib.h" >&5
30604
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30605
if test "${ac_cv_header_zlib_h+set}" = set; then
30606
echo $ECHO_N "(cached) $ECHO_C" >&6
30608
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30609
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30611
# Is the header compilable?
30612
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
30613
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
30614
cat >conftest.$ac_ext <<_ACEOF
30617
cat confdefs.h >>conftest.$ac_ext
30618
cat >>conftest.$ac_ext <<_ACEOF
30619
/* end confdefs.h. */
30620
$ac_includes_default
30623
rm -f conftest.$ac_objext
30624
if { (ac_try="$ac_compile"
30625
case "(($ac_try" in
30626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30627
*) ac_try_echo=$ac_try;;
30629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30630
(eval "$ac_compile") 2>conftest.er1
30632
grep -v '^ *+' conftest.er1 >conftest.err
30634
cat conftest.err >&5
30635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636
(exit $ac_status); } && {
30637
test -z "$ac_c_werror_flag" ||
30638
test ! -s conftest.err
30639
} && test -s conftest.$ac_objext; then
30640
ac_header_compiler=yes
30642
echo "$as_me: failed program was:" >&5
30643
sed 's/^/| /' conftest.$ac_ext >&5
30645
ac_header_compiler=no
30648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30649
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30650
echo "${ECHO_T}$ac_header_compiler" >&6; }
30652
# Is the header present?
30653
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
30654
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
30655
cat >conftest.$ac_ext <<_ACEOF
30658
cat confdefs.h >>conftest.$ac_ext
30659
cat >>conftest.$ac_ext <<_ACEOF
30660
/* end confdefs.h. */
30663
if { (ac_try="$ac_cpp conftest.$ac_ext"
30664
case "(($ac_try" in
30665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666
*) ac_try_echo=$ac_try;;
30668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30671
grep -v '^ *+' conftest.er1 >conftest.err
30673
cat conftest.err >&5
30674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675
(exit $ac_status); } >/dev/null && {
30676
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30677
test ! -s conftest.err
30679
ac_header_preproc=yes
30681
echo "$as_me: failed program was:" >&5
30682
sed 's/^/| /' conftest.$ac_ext >&5
30684
ac_header_preproc=no
30687
rm -f conftest.err conftest.$ac_ext
30688
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30689
echo "${ECHO_T}$ac_header_preproc" >&6; }
30691
# So? What about this header?
30692
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30694
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30695
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30696
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
30697
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
30698
ac_header_preproc=yes
30701
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
30702
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
30703
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
30704
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
30705
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
30706
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
30707
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
30708
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30709
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
30710
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
30711
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
30712
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
30714
## --------------------------------------- ##
30715
## Report this to opendap-tech@opendap.org ##
30716
## --------------------------------------- ##
30718
) | sed "s/^/$as_me: WARNING: /" >&2
30721
{ echo "$as_me:$LINENO: checking for zlib.h" >&5
30722
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30723
if test "${ac_cv_header_zlib_h+set}" = set; then
30724
echo $ECHO_N "(cached) $ECHO_C" >&6
30726
ac_cv_header_zlib_h=$ac_header_preproc
30728
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30729
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30732
if test $ac_cv_header_zlib_h = yes; then
30740
ac_cpp='$CPP $CPPFLAGS'
30741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30746
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
30749
# If both library and header were found, use them
30754
# If either header or library was not found, revert and bomb
30756
{ { echo "$as_me:$LINENO: error: zlib is required for deflate, specify a valid zlib installation with --with-zlib=DIR" >&5
30757
echo "$as_me: error: zlib is required for deflate, specify a valid zlib installation with --with-zlib=DIR" >&2;}
30758
{ (exit 1); exit 1; }; }
30761
LDFLAGS="$ZLIB_OLD_LDFLAGS"
30762
CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
30770
{ echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
30771
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
30772
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
30773
echo $ECHO_N "(cached) $ECHO_C" >&6
30775
ac_check_lib_save_LIBS=$LIBS
30776
LIBS="-lpthread $LIBS"
30777
cat >conftest.$ac_ext <<_ACEOF
30780
cat confdefs.h >>conftest.$ac_ext
30781
cat >>conftest.$ac_ext <<_ACEOF
30782
/* end confdefs.h. */
30784
/* Override any GCC internal prototype to avoid an error.
30785
Use char because int might match the return type of a GCC
30786
builtin and then its argument prototype would still apply. */
30790
char pthread_kill ();
30794
return pthread_kill ();
30799
rm -f conftest.$ac_objext conftest$ac_exeext
30800
if { (ac_try="$ac_link"
30801
case "(($ac_try" in
30802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803
*) ac_try_echo=$ac_try;;
30805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806
(eval "$ac_link") 2>conftest.er1
30808
grep -v '^ *+' conftest.er1 >conftest.err
30810
cat conftest.err >&5
30811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812
(exit $ac_status); } && {
30813
test -z "$ac_c_werror_flag" ||
30814
test ! -s conftest.err
30815
} && test -s conftest$ac_exeext &&
30816
$as_test_x conftest$ac_exeext; then
30817
ac_cv_lib_pthread_pthread_kill=yes
30819
echo "$as_me: failed program was:" >&5
30820
sed 's/^/| /' conftest.$ac_ext >&5
30822
ac_cv_lib_pthread_pthread_kill=no
30825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30826
conftest$ac_exeext conftest.$ac_ext
30827
LIBS=$ac_check_lib_save_LIBS
30829
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
30830
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
30831
if test $ac_cv_lib_pthread_pthread_kill = yes; then
30832
PTHREAD_LIBS="-lpthread"
30834
{ { echo "$as_me:$LINENO: error: I could not find pthreads" >&5
30835
echo "$as_me: error: I could not find pthreads" >&2;}
30836
{ (exit 1); exit 1; }; }
30844
# Check whether --with-cppunit-prefix was given.
30845
if test "${with_cppunit_prefix+set}" = set; then
30846
withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
30848
cppunit_config_prefix=""
30852
# Check whether --with-cppunit-exec-prefix was given.
30853
if test "${with_cppunit_exec_prefix+set}" = set; then
30854
withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
30856
cppunit_config_exec_prefix=""
30860
if test x$cppunit_config_exec_prefix != x ; then
30861
cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
30862
if test x${CPPUNIT_CONFIG+set} != xset ; then
30863
CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
30866
if test x$cppunit_config_prefix != x ; then
30867
cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
30868
if test x${CPPUNIT_CONFIG+set} != xset ; then
30869
CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
30873
# Extract the first word of "cppunit-config", so it can be a program name with args.
30874
set dummy cppunit-config; ac_word=$2
30875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30877
if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
30878
echo $ECHO_N "(cached) $ECHO_C" >&6
30880
case $CPPUNIT_CONFIG in
30882
ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
30885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30886
for as_dir in $PATH
30889
test -z "$as_dir" && as_dir=.
30890
for ac_exec_ext in '' $ac_executable_extensions; do
30891
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30892
ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30893
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30900
test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
30904
CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
30905
if test -n "$CPPUNIT_CONFIG"; then
30906
{ echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
30907
echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
30909
{ echo "$as_me:$LINENO: result: no" >&5
30910
echo "${ECHO_T}no" >&6; }
30914
cppunit_version_min=1.12.0
30916
{ echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
30917
echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
30919
if test "$CPPUNIT_CONFIG" = "no" ; then
30920
{ echo "$as_me:$LINENO: result: no" >&5
30921
echo "${ECHO_T}no" >&6; }
30924
CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
30925
CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
30926
cppunit_version=`$CPPUNIT_CONFIG --version`
30928
cppunit_major_version=`echo $cppunit_version | \
30929
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30930
cppunit_minor_version=`echo $cppunit_version | \
30931
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30932
cppunit_micro_version=`echo $cppunit_version | \
30933
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30935
cppunit_major_min=`echo $cppunit_version_min | \
30936
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30937
if test "x${cppunit_major_min}" = "x" ; then
30938
cppunit_major_min=0
30941
cppunit_minor_min=`echo $cppunit_version_min | \
30942
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30943
if test "x${cppunit_minor_min}" = "x" ; then
30944
cppunit_minor_min=0
30947
cppunit_micro_min=`echo $cppunit_version_min | \
30948
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30949
if test "x${cppunit_micro_min}" = "x" ; then
30950
cppunit_micro_min=0
30953
cppunit_version_proper=`expr \
30954
$cppunit_major_version \> $cppunit_major_min \| \
30955
$cppunit_major_version \= $cppunit_major_min \& \
30956
$cppunit_minor_version \> $cppunit_minor_min \| \
30957
$cppunit_major_version \= $cppunit_major_min \& \
30958
$cppunit_minor_version \= $cppunit_minor_min \& \
30959
$cppunit_micro_version \>= $cppunit_micro_min `
30961
if test "$cppunit_version_proper" = "1" ; then
30962
{ echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
30963
echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
30965
{ echo "$as_me:$LINENO: result: no" >&5
30966
echo "${ECHO_T}no" >&6; }
30971
if test "x$no_cppunit" = x ; then
30997
# Check whether --enable-debug was given.
30998
if test "${enable_debug+set}" = set; then
30999
enableval=$enable_debug; DEBUG=$enableval
31009
{ echo "$as_me:$LINENO: result: Setting debugging to level 1" >&5
31010
echo "${ECHO_T}Setting debugging to level 1" >&6; }
31011
cat >>confdefs.h <<\_ACEOF
31012
#define DODS_DEBUG 1
31017
{ echo "$as_me:$LINENO: result: Setting debugging to level 2" >&5
31018
echo "${ECHO_T}Setting debugging to level 2" >&6; }
31020
cat >>confdefs.h <<\_ACEOF
31025
cat >>confdefs.h <<\_ACEOF
31026
#define DODS_DEBUG2
31031
{ { echo "$as_me:$LINENO: error: Bad debug value" >&5
31032
echo "$as_me: error: Bad debug value" >&2;}
31033
{ (exit 1); exit 1; }; }
31037
if test "$prefix" = "NONE"
31040
cat >>confdefs.h <<\_ACEOF
31041
#define LIBDAP_ROOT "/usr/local"
31046
cat >>confdefs.h <<_ACEOF
31047
#define LIBDAP_ROOT "$prefix"
31059
ac_config_files="$ac_config_files Makefile libdap.pc libdapclient.pc libdapserver.pc gl/Makefile tests/Makefile unit-tests/Makefile unit-tests/cache-testsuite/Makefile"
31061
ac_config_files="$ac_config_files dap-config"
31064
cat >confcache <<\_ACEOF
31065
# This file is a shell script that caches the results of configure
31066
# tests run on this system so they can be shared between configure
31067
# scripts and configure runs, see configure's option --config-cache.
31068
# It is not useful on other systems. If it contains results you don't
31069
# want to keep, you may remove or edit it.
31071
# config.status only pays attention to the cache file if you give it
31072
# the --recheck option to rerun configure.
31074
# `ac_cv_env_foo' variables (set or unset) will be overridden when
31075
# loading this file, other *unset* `ac_cv_foo' will be assigned the
31076
# following values.
31080
# The following way of writing the cache mishandles newlines in values,
31081
# but we know of no workaround that is simple, portable, and efficient.
31082
# So, we kill variables containing newlines.
31083
# Ultrix sh set writes to stderr and can't be redirected directly,
31084
# and sets the high bit in the cache file unless we assign to the vars.
31086
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31087
eval ac_val=\$$ac_var
31091
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31092
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31095
_ | IFS | as_nl) ;; #(
31096
*) $as_unset $ac_var ;;
31102
case $as_nl`(ac_space=' '; set) 2>&1` in #(
31103
*${as_nl}ac_space=\ *)
31104
# `set' does not quote correctly, so add quotes (double-quote
31105
# substitution turns \\\\ into \\, and sed turns \\ into \).
31108
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31111
# `set' quotes correctly as required by POSIX, so do not add quotes.
31112
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31121
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31123
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31125
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31126
if test -w "$cache_file"; then
31127
test "x$cache_file" != "x/dev/null" &&
31128
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
31129
echo "$as_me: updating cache $cache_file" >&6;}
31130
cat confcache >$cache_file
31132
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31133
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31138
test "x$prefix" = xNONE && prefix=$ac_default_prefix
31139
# Let make expand exec_prefix.
31140
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31142
DEFS=-DHAVE_CONFIG_H
31146
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31147
# 1. Remove the extension, and $U if already installed.
31148
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31149
ac_i=`echo "$ac_i" | sed "$ac_script"`
31150
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31151
# will be set to the directory where LIBOBJS objects are built.
31152
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31153
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31155
LIBOBJS=$ac_libobjs
31157
LTLIBOBJS=$ac_ltlibobjs
31160
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31161
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31162
Usually this means the macro was only invoked conditionally." >&5
31163
echo "$as_me: error: conditional \"AMDEP\" was never defined.
31164
Usually this means the macro was only invoked conditionally." >&2;}
31165
{ (exit 1); exit 1; }; }
31167
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31168
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31169
Usually this means the macro was only invoked conditionally." >&5
31170
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31171
Usually this means the macro was only invoked conditionally." >&2;}
31172
{ (exit 1); exit 1; }; }
31174
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31175
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31176
Usually this means the macro was only invoked conditionally." >&5
31177
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31178
Usually this means the macro was only invoked conditionally." >&2;}
31179
{ (exit 1); exit 1; }; }
31181
if test -z "${USE_C99_TYPES_TRUE}" && test -z "${USE_C99_TYPES_FALSE}"; then
31182
{ { echo "$as_me:$LINENO: error: conditional \"USE_C99_TYPES\" was never defined.
31183
Usually this means the macro was only invoked conditionally." >&5
31184
echo "$as_me: error: conditional \"USE_C99_TYPES\" was never defined.
31185
Usually this means the macro was only invoked conditionally." >&2;}
31186
{ (exit 1); exit 1; }; }
31188
if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then
31189
{ { echo "$as_me:$LINENO: error: conditional \"COMPILER_IS_GCC\" was never defined.
31190
Usually this means the macro was only invoked conditionally." >&5
31191
echo "$as_me: error: conditional \"COMPILER_IS_GCC\" was never defined.
31192
Usually this means the macro was only invoked conditionally." >&2;}
31193
{ (exit 1); exit 1; }; }
31195
if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then
31196
{ { echo "$as_me:$LINENO: error: conditional \"COMPILER_IS_GCC\" was never defined.
31197
Usually this means the macro was only invoked conditionally." >&5
31198
echo "$as_me: error: conditional \"COMPILER_IS_GCC\" was never defined.
31199
Usually this means the macro was only invoked conditionally." >&2;}
31200
{ (exit 1); exit 1; }; }
31202
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31203
{ { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
31204
Usually this means the macro was only invoked conditionally." >&5
31205
echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
31206
Usually this means the macro was only invoked conditionally." >&2;}
31207
{ (exit 1); exit 1; }; }
31212
if test -n "$gl_LIBOBJS"; then
31213
# Remove the extension.
31214
sed_drop_objext='s/\.o$//;s/\.obj$//'
31215
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
31216
gl_libobjs="$gl_libobjs $i.$ac_objext"
31217
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
31220
gl_LIBOBJS=$gl_libobjs
31222
gl_LTLIBOBJS=$gl_ltlibobjs
31225
if test -z "${CPPUNIT_TRUE}" && test -z "${CPPUNIT_FALSE}"; then
31226
{ { echo "$as_me:$LINENO: error: conditional \"CPPUNIT\" was never defined.
31227
Usually this means the macro was only invoked conditionally." >&5
31228
echo "$as_me: error: conditional \"CPPUNIT\" was never defined.
31229
Usually this means the macro was only invoked conditionally." >&2;}
31230
{ (exit 1); exit 1; }; }
31232
if test -z "${CPPUNIT_TRUE}" && test -z "${CPPUNIT_FALSE}"; then
31233
{ { echo "$as_me:$LINENO: error: conditional \"CPPUNIT\" was never defined.
31234
Usually this means the macro was only invoked conditionally." >&5
31235
echo "$as_me: error: conditional \"CPPUNIT\" was never defined.
31236
Usually this means the macro was only invoked conditionally." >&2;}
31237
{ (exit 1); exit 1; }; }
31240
: ${CONFIG_STATUS=./config.status}
31241
ac_clean_files_save=$ac_clean_files
31242
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31243
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31244
echo "$as_me: creating $CONFIG_STATUS" >&6;}
31245
cat >$CONFIG_STATUS <<_ACEOF
31247
# Generated by $as_me.
31248
# Run this file to recreate the current configuration.
31249
# Compiler output produced by configure, useful for debugging
31250
# configure, is in config.log if it exists.
31253
ac_cs_recheck=false
31255
SHELL=\${CONFIG_SHELL-$SHELL}
31258
cat >>$CONFIG_STATUS <<\_ACEOF
31259
## --------------------- ##
31260
## M4sh Initialization. ##
31261
## --------------------- ##
31263
# Be more Bourne compatible
31264
DUALCASE=1; export DUALCASE # for MKS sh
31265
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31268
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31269
# is contrary to our usage. Disable this feature.
31270
alias -g '${1+"$@"}'='"$@"'
31271
setopt NO_GLOB_SUBST
31273
case `(set -o) 2>/dev/null` in
31274
*posix*) set -o posix ;;
31283
# Avoid depending upon Character Ranges.
31284
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31285
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31286
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31287
as_cr_digits='0123456789'
31288
as_cr_alnum=$as_cr_Letters$as_cr_digits
31290
# The user is always right.
31291
if test "${PATH_SEPARATOR+set}" != set; then
31292
echo "#! /bin/sh" >conf$$.sh
31293
echo "exit 0" >>conf$$.sh
31295
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31303
# Support unset when possible.
31304
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31312
# We need space, tab and new line, in precisely that order. Quoting is
31313
# there to prevent editors from complaining about space-tab.
31314
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31315
# splitting by setting IFS to empty value.)
31320
# Find who we are. Look in the path if we contain no directory separator.
31322
*[\\/]* ) as_myself=$0 ;;
31323
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31324
for as_dir in $PATH
31327
test -z "$as_dir" && as_dir=.
31328
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31334
# We did not find ourselves, most probably we were run as `sh COMMAND'
31335
# in which case we are not to be found in the path.
31336
if test "x$as_myself" = x; then
31339
if test ! -f "$as_myself"; then
31340
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31341
{ (exit 1); exit 1; }
31344
# Work around bugs in pre-3.0 UWIN ksh.
31345
for as_var in ENV MAIL MAILPATH
31346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31354
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31355
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31356
LC_TELEPHONE LC_TIME
31358
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31359
eval $as_var=C; export $as_var
31361
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31365
# Required to use basename.
31366
if expr a : '\(a\)' >/dev/null 2>&1 &&
31367
test "X`expr 00001 : '.*\(...\)'`" = X001; then
31373
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31374
as_basename=basename
31380
# Name of the executable.
31381
as_me=`$as_basename -- "$0" ||
31382
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31383
X"$0" : 'X\(//\)$' \| \
31384
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31386
sed '/^.*\/\([^/][^/]*\)\/*$/{
31405
as_lineno_1=$LINENO
31406
as_lineno_2=$LINENO
31407
test "x$as_lineno_1" != "x$as_lineno_2" &&
31408
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31410
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31411
# uniformly replaced by the line number. The first 'sed' inserts a
31412
# line-number line after each line using $LINENO; the second 'sed'
31413
# does the real work. The second script uses 'N' to pair each
31414
# line-number line with the line containing $LINENO, and appends
31415
# trailing '-' during substitution so that $LINENO is not a special
31416
# case at line end.
31417
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31418
# scripts with optimization help from Paolo Bonzini. Blame Lee
31419
# E. McMahon (1931-1989) for sed's syntax. :-)
31431
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31434
' >$as_me.lineno &&
31435
chmod +x "$as_me.lineno" ||
31436
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31437
{ (exit 1); exit 1; }; }
31439
# Don't try to exec as it changes $[0], causing all sort of problems
31440
# (the dirname of $[0] is not the place where we might find the
31441
# original and so on. Autoconf is especially sensitive to this).
31442
. "./$as_me.lineno"
31443
# Exit status is that of the last command.
31448
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31454
ECHO_C= ECHO_N= ECHO_T=
31455
case `echo -n x` in
31457
case `echo 'x\c'` in
31458
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
31465
if expr a : '\(a\)' >/dev/null 2>&1 &&
31466
test "X`expr 00001 : '.*\(...\)'`" = X001; then
31472
rm -f conf$$ conf$$.exe conf$$.file
31473
if test -d conf$$.dir; then
31474
rm -f conf$$.dir/conf$$.file
31480
if ln -s conf$$.file conf$$ 2>/dev/null; then
31482
# ... but there are two gotchas:
31483
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31484
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31485
# In both cases, we have to default to `cp -p'.
31486
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31488
elif ln conf$$.file conf$$ 2>/dev/null; then
31493
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31494
rmdir conf$$.dir 2>/dev/null
31496
if mkdir -p . 2>/dev/null; then
31499
test -d ./-p && rmdir ./-p
31503
if test -x / >/dev/null 2>&1; then
31504
as_test_x='test -x'
31506
if ls -dL / >/dev/null 2>&1; then
31513
if test -d "$1"; then
31519
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31520
???[sx]*):;;*)false;;esac;fi
31524
as_executable_p=$as_test_x
31526
# Sed expression to map a string onto a valid CPP name.
31527
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31529
# Sed expression to map a string onto a valid variable name.
31530
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31535
# Save the log message, to keep $[0] and so on meaningful, and to
31536
# report actual input values of CONFIG_FILES etc. instead of their
31537
# values after options handling.
31539
This file was extended by libdap $as_me 3.9.3, which was
31540
generated by GNU Autoconf 2.61. Invocation command line was
31542
CONFIG_FILES = $CONFIG_FILES
31543
CONFIG_HEADERS = $CONFIG_HEADERS
31544
CONFIG_LINKS = $CONFIG_LINKS
31545
CONFIG_COMMANDS = $CONFIG_COMMANDS
31548
on `(hostname || uname -n) 2>/dev/null | sed 1q`
31553
cat >>$CONFIG_STATUS <<_ACEOF
31554
# Files that config.status was made for.
31555
config_files="$ac_config_files"
31556
config_headers="$ac_config_headers"
31557
config_commands="$ac_config_commands"
31561
cat >>$CONFIG_STATUS <<\_ACEOF
31563
\`$as_me' instantiates files from templates according to the
31564
current configuration.
31566
Usage: $0 [OPTIONS] [FILE]...
31568
-h, --help print this help, then exit
31569
-V, --version print version number and configuration settings, then exit
31570
-q, --quiet do not print progress messages
31571
-d, --debug don't remove temporary files
31572
--recheck update $as_me by reconfiguring in the same conditions
31573
--file=FILE[:TEMPLATE]
31574
instantiate the configuration file FILE
31575
--header=FILE[:TEMPLATE]
31576
instantiate the configuration header FILE
31578
Configuration files:
31581
Configuration headers:
31584
Configuration commands:
31587
Report bugs to <bug-autoconf@gnu.org>."
31590
cat >>$CONFIG_STATUS <<_ACEOF
31592
libdap config.status 3.9.3
31593
configured by $0, generated by GNU Autoconf 2.61,
31594
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31596
Copyright (C) 2006 Free Software Foundation, Inc.
31597
This config.status script is free software; the Free Software Foundation
31598
gives unlimited permission to copy, distribute and modify it."
31606
cat >>$CONFIG_STATUS <<\_ACEOF
31607
# If no file are specified by the user, then we need to provide default
31608
# value. By we need to know if files were specified by the user.
31614
ac_option=`expr "X$1" : 'X\([^=]*\)='`
31615
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31626
# Handling of the options.
31627
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31629
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31630
echo "$ac_cs_version"; exit ;;
31631
--debug | --debu | --deb | --de | --d | -d )
31633
--file | --fil | --fi | --f )
31635
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31636
ac_need_defaults=false;;
31637
--header | --heade | --head | --hea )
31639
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31640
ac_need_defaults=false;;
31642
# Conflict between --help and --header
31643
{ echo "$as_me: error: ambiguous option: $1
31644
Try \`$0 --help' for more information." >&2
31645
{ (exit 1); exit 1; }; };;
31646
--help | --hel | -h )
31647
echo "$ac_cs_usage"; exit ;;
31648
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
31649
| -silent | --silent | --silen | --sile | --sil | --si | --s)
31652
# This is an error.
31653
-*) { echo "$as_me: error: unrecognized option: $1
31654
Try \`$0 --help' for more information." >&2
31655
{ (exit 1); exit 1; }; } ;;
31657
*) ac_config_targets="$ac_config_targets $1"
31658
ac_need_defaults=false ;;
31664
ac_configure_extra_args=
31666
if $ac_cs_silent; then
31668
ac_configure_extra_args="$ac_configure_extra_args --silent"
31672
cat >>$CONFIG_STATUS <<_ACEOF
31673
if \$ac_cs_recheck; then
31674
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31675
CONFIG_SHELL=$SHELL
31676
export CONFIG_SHELL
31677
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31681
cat >>$CONFIG_STATUS <<\_ACEOF
31685
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31686
## Running $as_me. ##
31692
cat >>$CONFIG_STATUS <<_ACEOF
31696
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31700
cat >>$CONFIG_STATUS <<\_ACEOF
31702
# Handling of arguments.
31703
for ac_config_target in $ac_config_targets
31705
case $ac_config_target in
31706
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31707
"dods-datatypes-config.h") CONFIG_HEADERS="$CONFIG_HEADERS dods-datatypes-config.h" ;;
31708
"xdr-datatypes-config.h") CONFIG_HEADERS="$CONFIG_HEADERS xdr-datatypes-config.h" ;;
31709
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31710
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31711
"libdap.pc") CONFIG_FILES="$CONFIG_FILES libdap.pc" ;;
31712
"libdapclient.pc") CONFIG_FILES="$CONFIG_FILES libdapclient.pc" ;;
31713
"libdapserver.pc") CONFIG_FILES="$CONFIG_FILES libdapserver.pc" ;;
31714
"gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
31715
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31716
"unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;;
31717
"unit-tests/cache-testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/cache-testsuite/Makefile" ;;
31718
"dap-config") CONFIG_FILES="$CONFIG_FILES dap-config" ;;
31720
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31721
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31722
{ (exit 1); exit 1; }; };;
31727
# If the user did not use the arguments to specify the items to instantiate,
31728
# then the envvar interface is used. Set only those that are not.
31729
# We use the long form for the default assignment because of an extremely
31730
# bizarre bug on SunOS 4.1.3.
31731
if $ac_need_defaults; then
31732
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31733
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31734
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31737
# Have a temporary directory for convenience. Make it in the build tree
31738
# simply because there is no reason against having it here, and in addition,
31739
# creating and moving files from /tmp can sometimes cause problems.
31740
# Hook for its removal unless debugging.
31741
# Note that there is a small window in which the directory will not be cleaned:
31742
# after its creation but before its name has been assigned to `$tmp'.
31746
trap 'exit_status=$?
31747
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31749
trap '{ (exit 1); exit 1; }' 1 2 13 15
31751
# Create a (secure) tmp directory for tmp files.
31754
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31755
test -n "$tmp" && test -d "$tmp"
31758
tmp=./conf$$-$RANDOM
31759
(umask 077 && mkdir "$tmp")
31762
echo "$me: cannot create a temporary directory in ." >&2
31763
{ (exit 1); exit 1; }
31767
# Set up the sed scripts for CONFIG_FILES section.
31770
# No need to generate the scripts if there are no CONFIG_FILES.
31771
# This happens for instance when ./config.status config.h
31772
if test -n "$CONFIG_FILES"; then
31779
for ac_last_try in false false false false false :; do
31780
cat >conf$$subs.sed <<_ACEOF
31781
SHELL!$SHELL$ac_delim
31782
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31783
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31784
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31785
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31786
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31787
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31788
exec_prefix!$exec_prefix$ac_delim
31789
prefix!$prefix$ac_delim
31790
program_transform_name!$program_transform_name$ac_delim
31791
bindir!$bindir$ac_delim
31792
sbindir!$sbindir$ac_delim
31793
libexecdir!$libexecdir$ac_delim
31794
datarootdir!$datarootdir$ac_delim
31795
datadir!$datadir$ac_delim
31796
sysconfdir!$sysconfdir$ac_delim
31797
sharedstatedir!$sharedstatedir$ac_delim
31798
localstatedir!$localstatedir$ac_delim
31799
includedir!$includedir$ac_delim
31800
oldincludedir!$oldincludedir$ac_delim
31801
docdir!$docdir$ac_delim
31802
infodir!$infodir$ac_delim
31803
htmldir!$htmldir$ac_delim
31804
dvidir!$dvidir$ac_delim
31805
pdfdir!$pdfdir$ac_delim
31806
psdir!$psdir$ac_delim
31807
libdir!$libdir$ac_delim
31808
localedir!$localedir$ac_delim
31809
mandir!$mandir$ac_delim
31810
DEFS!$DEFS$ac_delim
31811
ECHO_C!$ECHO_C$ac_delim
31812
ECHO_N!$ECHO_N$ac_delim
31813
ECHO_T!$ECHO_T$ac_delim
31814
LIBS!$LIBS$ac_delim
31815
build_alias!$build_alias$ac_delim
31816
host_alias!$host_alias$ac_delim
31817
target_alias!$target_alias$ac_delim
31818
DAP_PROTOCOL_VERSION!$DAP_PROTOCOL_VERSION$ac_delim
31819
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31820
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31821
INSTALL_DATA!$INSTALL_DATA$ac_delim
31822
am__isrc!$am__isrc$ac_delim
31823
CYGPATH_W!$CYGPATH_W$ac_delim
31824
PACKAGE!$PACKAGE$ac_delim
31825
VERSION!$VERSION$ac_delim
31826
ACLOCAL!$ACLOCAL$ac_delim
31827
AUTOCONF!$AUTOCONF$ac_delim
31828
AUTOMAKE!$AUTOMAKE$ac_delim
31829
AUTOHEADER!$AUTOHEADER$ac_delim
31830
MAKEINFO!$MAKEINFO$ac_delim
31831
install_sh!$install_sh$ac_delim
31832
STRIP!$STRIP$ac_delim
31833
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31834
mkdir_p!$mkdir_p$ac_delim
31836
SET_MAKE!$SET_MAKE$ac_delim
31837
am__leading_dot!$am__leading_dot$ac_delim
31838
AMTAR!$AMTAR$ac_delim
31839
am__tar!$am__tar$ac_delim
31840
am__untar!$am__untar$ac_delim
31842
EVAL!$EVAL$ac_delim
31843
COMPRESSION_FOR_SERVER3!$COMPRESSION_FOR_SERVER3$ac_delim
31844
build!$build$ac_delim
31845
build_cpu!$build_cpu$ac_delim
31846
build_vendor!$build_vendor$ac_delim
31847
build_os!$build_os$ac_delim
31848
host!$host$ac_delim
31849
host_cpu!$host_cpu$ac_delim
31850
host_vendor!$host_vendor$ac_delim
31851
host_os!$host_os$ac_delim
31852
DAPLIB_CURRENT!$DAPLIB_CURRENT$ac_delim
31853
DAPLIB_AGE!$DAPLIB_AGE$ac_delim
31854
DAPLIB_REVISION!$DAPLIB_REVISION$ac_delim
31855
LIBDAP_VERSION!$LIBDAP_VERSION$ac_delim
31856
CLIENTLIB_CURRENT!$CLIENTLIB_CURRENT$ac_delim
31857
CLIENTLIB_AGE!$CLIENTLIB_AGE$ac_delim
31858
CLIENTLIB_REVISION!$CLIENTLIB_REVISION$ac_delim
31859
CLIENTLIB_VERSION!$CLIENTLIB_VERSION$ac_delim
31860
SERVERLIB_CURRENT!$SERVERLIB_CURRENT$ac_delim
31861
SERVERLIB_AGE!$SERVERLIB_AGE$ac_delim
31862
SERVERLIB_REVISION!$SERVERLIB_REVISION$ac_delim
31863
SERVERLIB_VERSION!$SERVERLIB_VERSION$ac_delim
31865
CXXFLAGS!$CXXFLAGS$ac_delim
31866
LDFLAGS!$LDFLAGS$ac_delim
31867
CPPFLAGS!$CPPFLAGS$ac_delim
31868
ac_ct_CXX!$ac_ct_CXX$ac_delim
31869
EXEEXT!$EXEEXT$ac_delim
31870
OBJEXT!$OBJEXT$ac_delim
31871
DEPDIR!$DEPDIR$ac_delim
31872
am__include!$am__include$ac_delim
31873
am__quote!$am__quote$ac_delim
31874
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31875
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31876
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31877
CXXDEPMODE!$CXXDEPMODE$ac_delim
31880
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31882
elif $ac_last_try; then
31883
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31884
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31885
{ (exit 1); exit 1; }; }
31887
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31891
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31892
if test -n "$ac_eof"; then
31893
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31894
ac_eof=`expr $ac_eof + 1`
31897
cat >>$CONFIG_STATUS <<_ACEOF
31898
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31899
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31902
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31903
s/^/s,@/; s/!/@,|#_!!_#|/
31906
s/'"$ac_delim"'$/,g/; t
31908
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31909
' >>$CONFIG_STATUS <conf$$subs.sed
31910
rm -f conf$$subs.sed
31911
cat >>$CONFIG_STATUS <<_ACEOF
31917
for ac_last_try in false false false false false :; do
31918
cat >conf$$subs.sed <<_ACEOF
31919
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31920
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31922
CFLAGS!$CFLAGS$ac_delim
31923
ac_ct_CC!$ac_ct_CC$ac_delim
31924
CCDEPMODE!$CCDEPMODE$ac_delim
31925
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31926
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31927
RANLIB!$RANLIB$ac_delim
31929
GREP!$GREP$ac_delim
31930
EGREP!$EGREP$ac_delim
31932
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
31933
LEXLIB!$LEXLIB$ac_delim
31934
LN_S!$LN_S$ac_delim
31936
ECHO!$ECHO$ac_delim
31938
CXXCPP!$CXXCPP$ac_delim
31940
FFLAGS!$FFLAGS$ac_delim
31941
ac_ct_F77!$ac_ct_F77$ac_delim
31942
LIBTOOL!$LIBTOOL$ac_delim
31943
YACC!$YACC$ac_delim
31944
USE_C99_TYPES_TRUE!$USE_C99_TYPES_TRUE$ac_delim
31945
USE_C99_TYPES_FALSE!$USE_C99_TYPES_FALSE$ac_delim
31946
COMPILER_IS_GCC_TRUE!$COMPILER_IS_GCC_TRUE$ac_delim
31947
COMPILER_IS_GCC_FALSE!$COMPILER_IS_GCC_FALSE$ac_delim
31948
GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
31949
GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
31950
LTALLOCA!$LTALLOCA$ac_delim
31951
ALLOCA!$ALLOCA$ac_delim
31952
ALLOCA_H!$ALLOCA_H$ac_delim
31953
LIBINTL!$LIBINTL$ac_delim
31954
LTLIBINTL!$LTLIBINTL$ac_delim
31955
GLIBC21!$GLIBC21$ac_delim
31956
HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
31957
GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
31958
GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
31959
GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
31960
GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
31961
GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
31962
GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
31963
HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
31964
HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
31965
HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
31966
HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
31967
REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
31968
STDBOOL_H!$STDBOOL_H$ac_delim
31969
HAVE__BOOL!$HAVE__BOOL$ac_delim
31970
HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
31971
HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
31972
HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
31973
HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
31974
INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
31975
NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
31976
HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
31977
HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
31978
HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
31979
BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
31980
BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
31981
BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
31982
BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
31983
BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
31984
HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
31985
HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
31986
HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
31987
PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
31988
SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
31989
SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
31990
WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
31991
WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
31992
STDINT_H!$STDINT_H$ac_delim
31993
NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
31994
GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
31995
GNULIB_DUP2!$GNULIB_DUP2$ac_delim
31996
GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
31997
GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
31998
GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
31999
GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
32000
GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
32001
GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
32002
GNULIB_READLINK!$GNULIB_READLINK$ac_delim
32003
GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
32004
HAVE_DUP2!$HAVE_DUP2$ac_delim
32005
HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
32006
HAVE_READLINK!$HAVE_READLINK$ac_delim
32007
HAVE_SLEEP!$HAVE_SLEEP$ac_delim
32008
HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
32009
REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
32010
REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
32011
REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
32012
REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
32013
REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
32014
NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
32015
HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
32018
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32020
elif $ac_last_try; then
32021
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32022
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32023
{ (exit 1); exit 1; }; }
32025
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32029
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32030
if test -n "$ac_eof"; then
32031
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32032
ac_eof=`expr $ac_eof + 1`
32035
cat >>$CONFIG_STATUS <<_ACEOF
32036
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32037
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32040
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32041
s/^/s,@/; s/!/@,|#_!!_#|/
32044
s/'"$ac_delim"'$/,g/; t
32046
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32047
' >>$CONFIG_STATUS <conf$$subs.sed
32048
rm -f conf$$subs.sed
32049
cat >>$CONFIG_STATUS <<_ACEOF
32055
for ac_last_try in false false false false false :; do
32056
cat >conf$$subs.sed <<_ACEOF
32057
GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
32058
HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
32059
REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
32060
WCHAR_H!$WCHAR_H$ac_delim
32061
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
32062
NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
32063
HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
32064
HAVE_WINT_T!$HAVE_WINT_T$ac_delim
32065
NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
32066
HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
32067
WCTYPE_H!$WCTYPE_H$ac_delim
32068
PKG_CONFIG!$PKG_CONFIG$ac_delim
32069
CURL_CFLAGS!$CURL_CFLAGS$ac_delim
32070
CURL_LIBS!$CURL_LIBS$ac_delim
32071
curlprivatereq!$curlprivatereq$ac_delim
32072
curlprivatelibs!$curlprivatelibs$ac_delim
32073
CURL_STATIC_LIBS!$CURL_STATIC_LIBS$ac_delim
32074
XML2_CFLAGS!$XML2_CFLAGS$ac_delim
32075
XML2_LIBS!$XML2_LIBS$ac_delim
32076
xmlprivatereq!$xmlprivatereq$ac_delim
32077
xmlprivatelibs!$xmlprivatelibs$ac_delim
32078
XML2_STATIC_LIBS!$XML2_STATIC_LIBS$ac_delim
32079
ZLIB_LIBS!$ZLIB_LIBS$ac_delim
32080
ZLIB_LDFLAGS!$ZLIB_LDFLAGS$ac_delim
32081
ZLIB_CFLAGS!$ZLIB_CFLAGS$ac_delim
32082
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32083
CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
32084
CPPUNIT_TRUE!$CPPUNIT_TRUE$ac_delim
32085
CPPUNIT_FALSE!$CPPUNIT_FALSE$ac_delim
32086
CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
32087
CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
32088
LIBOBJS!$LIBOBJS$ac_delim
32089
LTLIBOBJS!$LTLIBOBJS$ac_delim
32090
gl_LIBOBJS!$gl_LIBOBJS$ac_delim
32091
gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
32094
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
32096
elif $ac_last_try; then
32097
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32098
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32099
{ (exit 1); exit 1; }; }
32101
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32105
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32106
if test -n "$ac_eof"; then
32107
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32108
ac_eof=`expr $ac_eof + 1`
32111
cat >>$CONFIG_STATUS <<_ACEOF
32112
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32113
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32116
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32117
s/^/s,@/; s/!/@,|#_!!_#|/
32120
s/'"$ac_delim"'$/,g/; t
32122
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32123
' >>$CONFIG_STATUS <conf$$subs.sed
32124
rm -f conf$$subs.sed
32125
cat >>$CONFIG_STATUS <<_ACEOF
32132
# VPATH may cause trouble with some makes, so we remove $(srcdir),
32133
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32134
# trailing colons and then remove the whole line if VPATH becomes empty
32135
# (actually we leave an empty line to preserve line numbers).
32136
if test "x$srcdir" = x.; then
32137
ac_vpsub='/^[ ]*VPATH[ ]*=/{
32138
s/:*\$(srcdir):*/:/
32139
s/:*\${srcdir}:*/:/
32141
s/^\([^=]*=[ ]*\):*/\1/
32147
cat >>$CONFIG_STATUS <<\_ACEOF
32148
fi # test -n "$CONFIG_FILES"
32151
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32154
:[FHLC]) ac_mode=$ac_tag; continue;;
32156
case $ac_mode$ac_tag in
32158
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32159
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32160
{ (exit 1); exit 1; }; };;
32161
:[FH]-) ac_tag=-:-;;
32162
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32179
-) ac_f="$tmp/stdin";;
32180
*) # Look for the file first in the build tree, then in the source tree
32181
# (if the path is not absolute). The absolute path cannot be DOS-style,
32182
# because $ac_f cannot contain `:'.
32186
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32188
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32189
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32190
{ (exit 1); exit 1; }; };;
32192
ac_file_inputs="$ac_file_inputs $ac_f"
32195
# Let's still pretend it is `configure' which instantiates (i.e., don't
32196
# use $as_me), people would be surprised to read:
32197
# /* config.h. Generated by config.status. */
32198
configure_input="Generated from "`IFS=:
32199
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32200
if test x"$ac_file" != x-; then
32201
configure_input="$ac_file. $configure_input"
32202
{ echo "$as_me:$LINENO: creating $ac_file" >&5
32203
echo "$as_me: creating $ac_file" >&6;}
32207
*:-:* | *:-) cat >"$tmp/stdin";;
32212
ac_dir=`$as_dirname -- "$ac_file" ||
32213
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32214
X"$ac_file" : 'X\(//\)[^/]' \| \
32215
X"$ac_file" : 'X\(//\)$' \| \
32216
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32218
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32222
/^X\(\/\/\)[^/].*/{
32237
-*) as_dir=./$as_dir;;
32239
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32243
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32244
*) as_qdir=$as_dir;;
32246
as_dirs="'$as_qdir' $as_dirs"
32247
as_dir=`$as_dirname -- "$as_dir" ||
32248
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32249
X"$as_dir" : 'X\(//\)[^/]' \| \
32250
X"$as_dir" : 'X\(//\)$' \| \
32251
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32253
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32257
/^X\(\/\/\)[^/].*/{
32270
test -d "$as_dir" && break
32272
test -z "$as_dirs" || eval "mkdir $as_dirs"
32273
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32274
echo "$as_me: error: cannot create directory $as_dir" >&2;}
32275
{ (exit 1); exit 1; }; }; }
32279
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32281
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32282
# A ".." for each directory in $ac_dir_suffix.
32283
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32284
case $ac_top_builddir_sub in
32285
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32286
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32289
ac_abs_top_builddir=$ac_pwd
32290
ac_abs_builddir=$ac_pwd$ac_dir_suffix
32291
# for backward compatibility:
32292
ac_top_builddir=$ac_top_build_prefix
32295
.) # We are building in place.
32297
ac_top_srcdir=$ac_top_builddir_sub
32298
ac_abs_top_srcdir=$ac_pwd ;;
32299
[\\/]* | ?:[\\/]* ) # Absolute name.
32300
ac_srcdir=$srcdir$ac_dir_suffix;
32301
ac_top_srcdir=$srcdir
32302
ac_abs_top_srcdir=$srcdir ;;
32303
*) # Relative name.
32304
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32305
ac_top_srcdir=$ac_top_build_prefix$srcdir
32306
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32308
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32318
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32319
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32321
ac_MKDIR_P=$MKDIR_P
32323
[\\/$]* | ?:[\\/]* ) ;;
32324
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32328
cat >>$CONFIG_STATUS <<\_ACEOF
32329
# If the template does not know about datarootdir, expand it.
32330
# FIXME: This hack should be removed a few years after 2.60.
32331
ac_datarootdir_hack=; ac_datarootdir_seen=
32333
case `sed -n '/datarootdir/ {
32342
' $ac_file_inputs` in
32343
*datarootdir*) ac_datarootdir_seen=yes;;
32344
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32345
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32346
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32348
cat >>$CONFIG_STATUS <<_ACEOF
32349
ac_datarootdir_hack='
32350
s&@datadir@&$datadir&g
32351
s&@docdir@&$docdir&g
32352
s&@infodir@&$infodir&g
32353
s&@localedir@&$localedir&g
32354
s&@mandir@&$mandir&g
32355
s&\\\${datarootdir}&$datarootdir&g' ;;
32359
# Neutralize VPATH when `$srcdir' = `.'.
32360
# Shell code in configure.ac might set extrasub.
32361
# FIXME: do we really want to maintain this feature?
32362
cat >>$CONFIG_STATUS <<_ACEOF
32366
cat >>$CONFIG_STATUS <<\_ACEOF
32368
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32369
s&@configure_input@&$configure_input&;t t
32370
s&@top_builddir@&$ac_top_builddir_sub&;t t
32371
s&@srcdir@&$ac_srcdir&;t t
32372
s&@abs_srcdir@&$ac_abs_srcdir&;t t
32373
s&@top_srcdir@&$ac_top_srcdir&;t t
32374
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32375
s&@builddir@&$ac_builddir&;t t
32376
s&@abs_builddir@&$ac_abs_builddir&;t t
32377
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32378
s&@INSTALL@&$ac_INSTALL&;t t
32379
s&@MKDIR_P@&$ac_MKDIR_P&;t t
32380
$ac_datarootdir_hack
32381
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32383
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32384
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32385
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32386
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32387
which seems to be undefined. Please make sure it is defined." >&5
32388
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32389
which seems to be undefined. Please make sure it is defined." >&2;}
32393
-) cat "$tmp/out"; rm -f "$tmp/out";;
32394
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32403
# Transform confdefs.h into a sed script `conftest.defines', that
32404
# substitutes the proper values into config.h.in to produce config.h.
32405
rm -f conftest.defines conftest.tail
32406
# First, append a space to every undef/define line, to ease matching.
32407
echo 's/$/ /' >conftest.defines
32408
# Then, protect against being on the right side of a sed subst, or in
32409
# an unquoted here document, in config.status. If some macros were
32410
# called several times there might be several #defines for the same
32411
# symbol, which is useless. But do not sort them, since the last
32412
# AC_DEFINE must be honored.
32413
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32414
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32415
# NAME is the cpp macro being defined, VALUE is the value it is being given.
32416
# PARAMS is the parameter list in the macro definition--in most cases, it's
32417
# just an empty string.
32418
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32419
ac_dB='\\)[ (].*,\\1define\\2'
32427
s/^[ ]*#[ ]*define[ ][ ]*//
32432
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32433
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32434
' >>conftest.defines
32436
# Remove the space that was appended to ease matching.
32437
# Then replace #undef with comments. This is necessary, for
32438
# example, in the case of _POSIX_SOURCE, which is predefined and required
32439
# on some systems where configure will not decide to define it.
32440
# (The regexp can be short, since the line contains either #define or #undef.)
32442
s,^[ #]*u.*,/* & */,' >>conftest.defines
32444
# Break up conftest.defines:
32445
ac_max_sed_lines=50
32447
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32448
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32449
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32451
ac_in='$ac_file_inputs'
32452
ac_out='"$tmp/out1"'
32453
ac_nxt='"$tmp/out2"'
32457
# Write a here document:
32458
cat >>$CONFIG_STATUS <<_ACEOF
32459
# First, check the format of the line:
32460
cat >"\$tmp/defines.sed" <<\\CEOF
32461
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32462
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32466
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32468
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32469
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32470
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32471
grep . conftest.tail >/dev/null || break
32472
rm -f conftest.defines
32473
mv conftest.tail conftest.defines
32475
rm -f conftest.defines conftest.tail
32477
echo "ac_result=$ac_in" >>$CONFIG_STATUS
32478
cat >>$CONFIG_STATUS <<\_ACEOF
32479
if test x"$ac_file" != x-; then
32480
echo "/* $configure_input */" >"$tmp/config.h"
32481
cat "$ac_result" >>"$tmp/config.h"
32482
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32483
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32484
echo "$as_me: $ac_file is unchanged" >&6;}
32487
mv "$tmp/config.h" $ac_file
32490
echo "/* $configure_input */"
32494
# Compute $ac_file's index in $config_headers.
32496
for _am_header in $config_headers :; do
32497
case $_am_header in
32498
$ac_file | $ac_file:* )
32501
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
32504
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
32505
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32506
X$ac_file : 'X\(//\)[^/]' \| \
32507
X$ac_file : 'X\(//\)$' \| \
32508
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
32510
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32514
/^X\(\/\/\)[^/].*/{
32526
s/.*/./; q'`/stamp-h$_am_stamp_count
32529
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32530
echo "$as_me: executing $ac_file commands" >&6;}
32535
case $ac_file$ac_mode in
32536
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32537
# Strip MF so we end up with the name of the file.
32538
mf=`echo "$mf" | sed -e 's/:.*$//'`
32539
# Check whether this is an Automake generated Makefile or not.
32540
# We used to match only the files named `Makefile.in', but
32541
# some people rename them; so instead we look at the file content.
32542
# Grep'ing the first line is not enough: some people post-process
32543
# each Makefile.in and add a new line on top of each file to say so.
32544
# Grep'ing the whole file is not good either: AIX grep has a line
32545
# limit of 2048, but all sed's we know have understand at least 4000.
32546
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
32547
dirpart=`$as_dirname -- "$mf" ||
32548
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32549
X"$mf" : 'X\(//\)[^/]' \| \
32550
X"$mf" : 'X\(//\)$' \| \
32551
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32553
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32557
/^X\(\/\/\)[^/].*/{
32573
# Extract the definition of DEPDIR, am__include, and am__quote
32574
# from the Makefile without running `make'.
32575
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32576
test -z "$DEPDIR" && continue
32577
am__include=`sed -n 's/^am__include = //p' < "$mf"`
32578
test -z "am__include" && continue
32579
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32580
# When using ansi2knr, U may be empty or an underscore; expand it
32581
U=`sed -n 's/^U = //p' < "$mf"`
32582
# Find all dependency output files, they are included files with
32583
# $(DEPDIR) in their names. We invoke sed twice because it is the
32584
# simplest approach to changing $(DEPDIR) to its actual value in the
32586
for file in `sed -n "
32587
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32588
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32589
# Make sure the directory exists.
32590
test -f "$dirpart/$file" && continue
32591
fdir=`$as_dirname -- "$file" ||
32592
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32593
X"$file" : 'X\(//\)[^/]' \| \
32594
X"$file" : 'X\(//\)$' \| \
32595
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32597
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32601
/^X\(\/\/\)[^/].*/{
32614
{ as_dir=$dirpart/$fdir
32616
-*) as_dir=./$as_dir;;
32618
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32622
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32623
*) as_qdir=$as_dir;;
32625
as_dirs="'$as_qdir' $as_dirs"
32626
as_dir=`$as_dirname -- "$as_dir" ||
32627
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32628
X"$as_dir" : 'X\(//\)[^/]' \| \
32629
X"$as_dir" : 'X\(//\)$' \| \
32630
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32632
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32636
/^X\(\/\/\)[^/].*/{
32649
test -d "$as_dir" && break
32651
test -z "$as_dirs" || eval "mkdir $as_dirs"
32652
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32653
echo "$as_me: error: cannot create directory $as_dir" >&2;}
32654
{ (exit 1); exit 1; }; }; }
32655
# echo "creating $dirpart/$file"
32656
echo '# dummy' > "$dirpart/$file"
32660
"dap-config":F) chmod +x dap-config ;;
32666
{ (exit 0); exit 0; }
32668
chmod +x $CONFIG_STATUS
32669
ac_clean_files=$ac_clean_files_save
32672
# configure is writing to config.log, and then calls config.status.
32673
# config.status does its own redirection, appending to config.log.
32674
# Unfortunately, on DOS this fails, as config.log is still kept open
32675
# by configure, so config.status won't be able to write to it; its
32676
# output is simply discarded. So we exec the FD to /dev/null,
32677
# effectively closing config.log, so it can be properly (re)opened and
32678
# appended to by config.status. When coming back to configure, we
32679
# need to make the FD available again.
32680
if test "$no_create" != yes; then
32682
ac_config_status_args=
32683
test "$silent" = yes &&
32684
ac_config_status_args="$ac_config_status_args --quiet"
32686
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32688
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
32689
# would make configure fail if this is the last instruction.
32690
$ac_cs_success || { (exit 1); exit 1; }