26
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+"$@"}'='"$@"'
29
23
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
DUALCASE=1; export DUALCASE # for MKS sh
34
28
# Support unset when possible.
35
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42
{ $as_unset LANG || test "${LANG+set}" != set; } ||
43
{ LANG=C; export LANG; }
44
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46
{ LC_ALL=C; export LC_ALL; }
47
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49
{ LC_TIME=C; export LC_TIME; }
50
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52
{ LC_CTYPE=C; export LC_CTYPE; }
53
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55
{ LANGUAGE=C; export LANGUAGE; }
56
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58
{ LC_COLLATE=C; export LC_COLLATE; }
59
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61
{ LC_NUMERIC=C; export LC_NUMERIC; }
62
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64
{ LC_MESSAGES=C; export LC_MESSAGES; }
36
# Work around bugs in pre-3.0 UWIN ksh.
37
$as_unset ENV MAIL MAILPATH
44
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49
eval $as_var=C; export $as_var
55
# Required to use basename.
56
if expr a : '\(a\)' >/dev/null 2>&1; then
62
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
69
# Name of the executable.
68
as_me=`(basename "$0") 2>/dev/null ||
70
as_me=`$as_basename "$0" ||
69
71
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
72
X"$0" : 'X\(//\)$' \| \
71
73
X"$0" : 'X\(/\)$' \| \
1030
1080
# Keep a trace of the command line.
1031
1081
# Strip out --no-create and --no-recursion so they do not pile up.
1082
# Strip out --silent because we don't want to record it for future runs.
1032
1083
# Also quote any args containing shell meta-characters.
1084
# Make two passes to allow for proper duplicate-argument suppression.
1033
1085
ac_configure_args=
1089
ac_must_keep_next=false
1038
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039
| --no-cr | --no-c | -n ) continue ;;
1040
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046
case " $ac_configure_args " in
1047
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1048
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051
# Get rid of the leading space.
1095
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097
| -silent | --silent | --silen | --sile | --sil)
1099
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106
if test $ac_must_keep_next = true; then
1107
ac_must_keep_next=false # Got value, back to normal.
1110
*=* | --config-cache | -C | -disable-* | --disable-* \
1111
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113
| -with-* | --with-* | -without-* | --without-* | --x)
1114
case "$ac_configure_args0 " in
1115
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118
-* ) ac_must_keep_next=true ;;
1121
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122
# Get rid of the leading space.
1128
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1131
# When interrupted or exit'd, cleanup temporary files, and complete
1055
1132
# config.log. We remove comments because anyway the quotes in there
1896
# Some people use a C++ compiler to compile C. Since we use `exit',
1897
# in C++ we need to declare it. In case someone uses the same compiler
1898
# for both compiling C and C++ we need to have the C++ compiler decide
1899
# the declaration of exit, since it's the most demanding environment.
1900
cat >conftest.$ac_ext <<_ACEOF
1905
rm -f conftest.$ac_objext
1906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907
(eval $ac_compile) 2>&5
1909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910
(exit $ac_status); } &&
1911
{ ac_try='test -s conftest.$ac_objext'
1912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916
(exit $ac_status); }; }; then
1917
for ac_declaration in \
1919
'#include <stdlib.h>' \
1920
'extern "C" void std::exit (int) throw (); using std::exit;' \
1921
'extern "C" void std::exit (int); using std::exit;' \
1922
'extern "C" void exit (int) throw ();' \
1923
'extern "C" void exit (int);' \
1926
cat >conftest.$ac_ext <<_ACEOF
1927
#line $LINENO "configure"
1928
#include "confdefs.h"
1931
#ifdef F77_DUMMY_MAIN
1935
int F77_DUMMY_MAIN() { return 1; }
1945
rm -f conftest.$ac_objext
1946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947
(eval $ac_compile) 2>&5
1949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950
(exit $ac_status); } &&
1951
{ ac_try='test -s conftest.$ac_objext'
1952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956
(exit $ac_status); }; }; then
1959
echo "$as_me: failed program was:" >&5
1960
cat conftest.$ac_ext >&5
1963
rm -f conftest.$ac_objext conftest.$ac_ext
1964
cat >conftest.$ac_ext <<_ACEOF
1965
#line $LINENO "configure"
1966
#include "confdefs.h"
1968
#ifdef F77_DUMMY_MAIN
1972
int F77_DUMMY_MAIN() { return 1; }
1982
rm -f conftest.$ac_objext
1983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984
(eval $ac_compile) 2>&5
1986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987
(exit $ac_status); } &&
1988
{ ac_try='test -s conftest.$ac_objext'
1989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993
(exit $ac_status); }; }; then
1996
echo "$as_me: failed program was:" >&5
1997
cat conftest.$ac_ext >&5
1999
rm -f conftest.$ac_objext conftest.$ac_ext
2002
if test -n "$ac_declaration"; then
2003
echo '#ifdef __cplusplus' >>confdefs.h
2004
echo $ac_declaration >>confdefs.h
2005
echo '#endif' >>confdefs.h
2009
echo "$as_me: failed program was:" >&5
2010
cat conftest.$ac_ext >&5
2012
rm -f conftest.$ac_objext conftest.$ac_ext
2014
ac_cpp='$CPP $CPPFLAGS'
2015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
ac_cpp='$CPP $CPPFLAGS'
2024
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2028
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2029
# On Suns, sometimes $CPP names a directory.
2030
if test -n "$CPP" && test -d "$CPP"; then
2033
if test -z "$CPP"; then
2034
if test "${ac_cv_prog_CPP+set}" = set; then
2035
echo $ECHO_N "(cached) $ECHO_C" >&6
2037
# Double quotes because CPP needs to be expanded
2038
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2041
for ac_c_preproc_warn_flag in '' yes
2043
# Use a header file that comes with gcc, so configuring glibc
2044
# with a fresh cross-compiler works.
2045
# On the NeXT, cc -E runs the code through the compiler's parser,
2046
# not just through cpp. "Syntax error" is here to catch this case.
2047
cat >conftest.$ac_ext <<_ACEOF
2048
#line $LINENO "configure"
2049
#include "confdefs.h"
2053
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2054
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2056
egrep -v '^ *\+' conftest.er1 >conftest.err
2058
cat conftest.err >&5
2059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060
(exit $ac_status); } >/dev/null; then
2061
if test -s conftest.err; then
2062
ac_cpp_err=$ac_c_preproc_warn_flag
2069
if test -z "$ac_cpp_err"; then
2072
echo "$as_me: failed program was:" >&5
2073
cat conftest.$ac_ext >&5
2074
# Broken: fails on valid input.
2077
rm -f conftest.err conftest.$ac_ext
2079
# OK, works on sane cases. Now check whether non-existent headers
2080
# can be detected and how.
2081
cat >conftest.$ac_ext <<_ACEOF
2082
#line $LINENO "configure"
2083
#include "confdefs.h"
2084
#include <ac_nonexistent.h>
2086
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2087
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2089
egrep -v '^ *\+' conftest.er1 >conftest.err
2091
cat conftest.err >&5
2092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093
(exit $ac_status); } >/dev/null; then
2094
if test -s conftest.err; then
2095
ac_cpp_err=$ac_c_preproc_warn_flag
2102
if test -z "$ac_cpp_err"; then
2103
# Broken: success on invalid input.
2106
echo "$as_me: failed program was:" >&5
2107
cat conftest.$ac_ext >&5
2108
# Passes both tests.
2112
rm -f conftest.err conftest.$ac_ext
2115
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2116
rm -f conftest.err conftest.$ac_ext
2117
if $ac_preproc_ok; then
2129
echo "$as_me:$LINENO: result: $CPP" >&5
2130
echo "${ECHO_T}$CPP" >&6
2132
for ac_c_preproc_warn_flag in '' yes
2134
# Use a header file that comes with gcc, so configuring glibc
2135
# with a fresh cross-compiler works.
2136
# On the NeXT, cc -E runs the code through the compiler's parser,
2137
# not just through cpp. "Syntax error" is here to catch this case.
2138
cat >conftest.$ac_ext <<_ACEOF
2139
#line $LINENO "configure"
2140
#include "confdefs.h"
2144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2145
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2147
egrep -v '^ *\+' conftest.er1 >conftest.err
2149
cat conftest.err >&5
2150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151
(exit $ac_status); } >/dev/null; then
2152
if test -s conftest.err; then
2153
ac_cpp_err=$ac_c_preproc_warn_flag
2160
if test -z "$ac_cpp_err"; then
2163
echo "$as_me: failed program was:" >&5
2164
cat conftest.$ac_ext >&5
2165
# Broken: fails on valid input.
2168
rm -f conftest.err conftest.$ac_ext
2170
# OK, works on sane cases. Now check whether non-existent headers
2171
# can be detected and how.
2172
cat >conftest.$ac_ext <<_ACEOF
2173
#line $LINENO "configure"
2174
#include "confdefs.h"
2175
#include <ac_nonexistent.h>
2177
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2178
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2180
egrep -v '^ *\+' conftest.er1 >conftest.err
2182
cat conftest.err >&5
2183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
(exit $ac_status); } >/dev/null; then
2185
if test -s conftest.err; then
2186
ac_cpp_err=$ac_c_preproc_warn_flag
2193
if test -z "$ac_cpp_err"; then
2194
# Broken: success on invalid input.
2197
echo "$as_me: failed program was:" >&5
2198
cat conftest.$ac_ext >&5
2199
# Passes both tests.
2203
rm -f conftest.err conftest.$ac_ext
2206
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2207
rm -f conftest.err conftest.$ac_ext
2208
if $ac_preproc_ok; then
2211
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2212
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2213
{ (exit 1); exit 1; }; }
2217
ac_cpp='$CPP $CPPFLAGS'
2218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2033
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2224
2034
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2225
2035
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2317
2144
CC="$CC $ac_cv_prog_cc_stdc" ;;
2147
# Some people use a C++ compiler to compile C. Since we use `exit',
2148
# in C++ we need to declare it. In case someone uses the same compiler
2149
# for both compiling C and C++ we need to have the C++ compiler decide
2150
# the declaration of exit, since it's the most demanding environment.
2151
cat >conftest.$ac_ext <<_ACEOF
2156
rm -f conftest.$ac_objext
2157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158
(eval $ac_compile) 2>conftest.er1
2160
grep -v '^ *+' conftest.er1 >conftest.err
2162
cat conftest.err >&5
2163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
(exit $ac_status); } &&
2165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
(exit $ac_status); }; } &&
2171
{ ac_try='test -s conftest.$ac_objext'
2172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176
(exit $ac_status); }; }; then
2177
for ac_declaration in \
2179
'extern "C" void std::exit (int) throw (); using std::exit;' \
2180
'extern "C" void std::exit (int); using std::exit;' \
2181
'extern "C" void exit (int) throw ();' \
2182
'extern "C" void exit (int);' \
2185
cat >conftest.$ac_ext <<_ACEOF
2188
cat confdefs.h >>conftest.$ac_ext
2189
cat >>conftest.$ac_ext <<_ACEOF
2190
/* end confdefs.h. */
2201
rm -f conftest.$ac_objext
2202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203
(eval $ac_compile) 2>conftest.er1
2205
grep -v '^ *+' conftest.er1 >conftest.err
2207
cat conftest.err >&5
2208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
(exit $ac_status); } &&
2210
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
(exit $ac_status); }; } &&
2216
{ ac_try='test -s conftest.$ac_objext'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; }; then
2224
echo "$as_me: failed program was:" >&5
2225
sed 's/^/| /' conftest.$ac_ext >&5
2229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230
cat >conftest.$ac_ext <<_ACEOF
2233
cat confdefs.h >>conftest.$ac_ext
2234
cat >>conftest.$ac_ext <<_ACEOF
2235
/* end confdefs.h. */
2245
rm -f conftest.$ac_objext
2246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247
(eval $ac_compile) 2>conftest.er1
2249
grep -v '^ *+' conftest.er1 >conftest.err
2251
cat conftest.err >&5
2252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253
(exit $ac_status); } &&
2254
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259
(exit $ac_status); }; } &&
2260
{ ac_try='test -s conftest.$ac_objext'
2261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
(exit $ac_status); }; }; then
2268
echo "$as_me: failed program was:" >&5
2269
sed 's/^/| /' conftest.$ac_ext >&5
2272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275
if test -n "$ac_declaration"; then
2276
echo '#ifdef __cplusplus' >>confdefs.h
2277
echo $ac_declaration >>confdefs.h
2278
echo '#endif' >>confdefs.h
2282
echo "$as_me: failed program was:" >&5
2283
sed 's/^/| /' conftest.$ac_ext >&5
2286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288
ac_cpp='$CPP $CPPFLAGS'
2289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
ac_cpp='$CPP $CPPFLAGS'
2298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2302
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2303
# On Suns, sometimes $CPP names a directory.
2304
if test -n "$CPP" && test -d "$CPP"; then
2307
if test -z "$CPP"; then
2308
if test "${ac_cv_prog_CPP+set}" = set; then
2309
echo $ECHO_N "(cached) $ECHO_C" >&6
2311
# Double quotes because CPP needs to be expanded
2312
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2315
for ac_c_preproc_warn_flag in '' yes
2317
# Use a header file that comes with gcc, so configuring glibc
2318
# with a fresh cross-compiler works.
2319
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2320
# <limits.h> exists even on freestanding compilers.
2321
# On the NeXT, cc -E runs the code through the compiler's parser,
2322
# not just through cpp. "Syntax error" is here to catch this case.
2323
cat >conftest.$ac_ext <<_ACEOF
2326
cat confdefs.h >>conftest.$ac_ext
2327
cat >>conftest.$ac_ext <<_ACEOF
2328
/* end confdefs.h. */
2330
# include <limits.h>
2332
# include <assert.h>
2336
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2337
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2339
grep -v '^ *+' conftest.er1 >conftest.err
2341
cat conftest.err >&5
2342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343
(exit $ac_status); } >/dev/null; then
2344
if test -s conftest.err; then
2345
ac_cpp_err=$ac_c_preproc_warn_flag
2346
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2353
if test -z "$ac_cpp_err"; then
2356
echo "$as_me: failed program was:" >&5
2357
sed 's/^/| /' conftest.$ac_ext >&5
2359
# Broken: fails on valid input.
2362
rm -f conftest.err conftest.$ac_ext
2364
# OK, works on sane cases. Now check whether non-existent headers
2365
# can be detected and how.
2366
cat >conftest.$ac_ext <<_ACEOF
2369
cat confdefs.h >>conftest.$ac_ext
2370
cat >>conftest.$ac_ext <<_ACEOF
2371
/* end confdefs.h. */
2372
#include <ac_nonexistent.h>
2374
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2375
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2377
grep -v '^ *+' conftest.er1 >conftest.err
2379
cat conftest.err >&5
2380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
(exit $ac_status); } >/dev/null; then
2382
if test -s conftest.err; then
2383
ac_cpp_err=$ac_c_preproc_warn_flag
2384
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2391
if test -z "$ac_cpp_err"; then
2392
# Broken: success on invalid input.
2395
echo "$as_me: failed program was:" >&5
2396
sed 's/^/| /' conftest.$ac_ext >&5
2398
# Passes both tests.
2402
rm -f conftest.err conftest.$ac_ext
2405
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2406
rm -f conftest.err conftest.$ac_ext
2407
if $ac_preproc_ok; then
2419
echo "$as_me:$LINENO: result: $CPP" >&5
2420
echo "${ECHO_T}$CPP" >&6
2422
for ac_c_preproc_warn_flag in '' yes
2424
# Use a header file that comes with gcc, so configuring glibc
2425
# with a fresh cross-compiler works.
2426
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2427
# <limits.h> exists even on freestanding compilers.
2428
# On the NeXT, cc -E runs the code through the compiler's parser,
2429
# not just through cpp. "Syntax error" is here to catch this case.
2430
cat >conftest.$ac_ext <<_ACEOF
2433
cat confdefs.h >>conftest.$ac_ext
2434
cat >>conftest.$ac_ext <<_ACEOF
2435
/* end confdefs.h. */
2437
# include <limits.h>
2439
# include <assert.h>
2443
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2444
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2446
grep -v '^ *+' conftest.er1 >conftest.err
2448
cat conftest.err >&5
2449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
(exit $ac_status); } >/dev/null; then
2451
if test -s conftest.err; then
2452
ac_cpp_err=$ac_c_preproc_warn_flag
2453
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2460
if test -z "$ac_cpp_err"; then
2463
echo "$as_me: failed program was:" >&5
2464
sed 's/^/| /' conftest.$ac_ext >&5
2466
# Broken: fails on valid input.
2469
rm -f conftest.err conftest.$ac_ext
2471
# OK, works on sane cases. Now check whether non-existent headers
2472
# can be detected and how.
2473
cat >conftest.$ac_ext <<_ACEOF
2476
cat confdefs.h >>conftest.$ac_ext
2477
cat >>conftest.$ac_ext <<_ACEOF
2478
/* end confdefs.h. */
2479
#include <ac_nonexistent.h>
2481
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2484
grep -v '^ *+' conftest.er1 >conftest.err
2486
cat conftest.err >&5
2487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488
(exit $ac_status); } >/dev/null; then
2489
if test -s conftest.err; then
2490
ac_cpp_err=$ac_c_preproc_warn_flag
2491
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498
if test -z "$ac_cpp_err"; then
2499
# Broken: success on invalid input.
2502
echo "$as_me: failed program was:" >&5
2503
sed 's/^/| /' conftest.$ac_ext >&5
2505
# Passes both tests.
2509
rm -f conftest.err conftest.$ac_ext
2512
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2513
rm -f conftest.err conftest.$ac_ext
2514
if $ac_preproc_ok; then
2517
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2518
See \`config.log' for more details." >&5
2519
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2520
See \`config.log' for more details." >&2;}
2521
{ (exit 1); exit 1; }; }
2525
ac_cpp='$CPP $CPPFLAGS'
2526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2533
for x in . .. ../.. ../../.. ../../../..; do
2988
3233
echo $ECHO_N "(cached) $ECHO_C" >&6
2990
3235
cat >conftest.$ac_ext <<_ACEOF
2991
#line $LINENO "configure"
2992
#include "confdefs.h"
3238
cat confdefs.h >>conftest.$ac_ext
3239
cat >>conftest.$ac_ext <<_ACEOF
3240
/* end confdefs.h. */
3241
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3242
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3243
#define gethostbyname innocuous_gethostbyname
2993
3245
/* System header to define __stub macros and hopefully few prototypes,
2994
which can conflict with char gethostbyname (); below. */
3246
which can conflict with char gethostbyname (); below.
3247
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248
<limits.h> exists even on freestanding compilers. */
3251
# include <limits.h>
3253
# include <assert.h>
3256
#undef gethostbyname
2996
3258
/* Override any gcc2 internal prototype to avoid an error. */
2997
3259
#ifdef __cplusplus
3000
3263
/* We use char because int might match the return type of a gcc2
3001
3264
builtin and then its argument prototype would still apply. */
3002
3265
char gethostbyname ();
3005
#ifdef F77_DUMMY_MAIN
3009
int F77_DUMMY_MAIN() { return 1; }
3014
3266
/* The GNU C library defines this for functions which it implements
3015
3267
to always fail with ENOSYS. Some functions are actually named
3016
3268
something starting with __ and the normal name is an alias. */
3017
3269
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3272
char (*f) () = gethostbyname;
3281
return f != gethostbyname;
3027
3286
rm -f conftest.$ac_objext conftest$ac_exeext
3028
3287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029
(eval $ac_link) 2>&5
3288
(eval $ac_link) 2>conftest.er1
3290
grep -v '^ *+' conftest.er1 >conftest.err
3292
cat conftest.err >&5
3031
3293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
3294
(exit $ac_status); } &&
3033
{ ac_try='test -s conftest$ac_exeext'
3295
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300
(exit $ac_status); }; } &&
3301
{ ac_try='test -s conftest$ac_exeext'
3034
3302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035
3303
(eval $ac_try) 2>&5
3319
3621
echo $ECHO_N "(cached) $ECHO_C" >&6
3321
3623
cat >conftest.$ac_ext <<_ACEOF
3322
#line $LINENO "configure"
3323
#include "confdefs.h"
3626
cat confdefs.h >>conftest.$ac_ext
3627
cat >>conftest.$ac_ext <<_ACEOF
3628
/* end confdefs.h. */
3629
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3630
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3631
#define socket innocuous_socket
3324
3633
/* System header to define __stub macros and hopefully few prototypes,
3325
which can conflict with char socket (); below. */
3634
which can conflict with char socket (); below.
3635
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636
<limits.h> exists even on freestanding compilers. */
3639
# include <limits.h>
3641
# include <assert.h>
3327
3646
/* Override any gcc2 internal prototype to avoid an error. */
3328
3647
#ifdef __cplusplus
3331
3651
/* We use char because int might match the return type of a gcc2
3332
3652
builtin and then its argument prototype would still apply. */
3333
3653
char socket ();
3336
#ifdef F77_DUMMY_MAIN
3340
int F77_DUMMY_MAIN() { return 1; }
3345
3654
/* The GNU C library defines this for functions which it implements
3346
3655
to always fail with ENOSYS. Some functions are actually named
3347
3656
something starting with __ and the normal name is an alias. */
3348
3657
#if defined (__stub_socket) || defined (__stub___socket)
3660
char (*f) () = socket;
3358
3674
rm -f conftest.$ac_objext conftest$ac_exeext
3359
3675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360
(eval $ac_link) 2>&5
3676
(eval $ac_link) 2>conftest.er1
3678
grep -v '^ *+' conftest.er1 >conftest.err
3680
cat conftest.err >&5
3362
3681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363
3682
(exit $ac_status); } &&
3364
{ ac_try='test -s conftest$ac_exeext'
3683
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688
(exit $ac_status); }; } &&
3689
{ ac_try='test -s conftest$ac_exeext'
3365
3690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366
3691
(eval $ac_try) 2>&5
3597
3938
/* We use char because int might match the return type of a gcc2
3598
3939
builtin and then its argument prototype would still apply. */
3599
3940
char res_search ();
3602
#ifdef F77_DUMMY_MAIN
3606
int F77_DUMMY_MAIN() { return 1; }
3611
/* The GNU C library defines this for functions which it implements
3612
to always fail with ENOSYS. Some functions are actually named
3613
something starting with __ and the normal name is an alias. */
3614
#if defined (__stub_res_search) || defined (__stub___res_search)
3624
3949
rm -f conftest.$ac_objext conftest$ac_exeext
3625
3950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626
(eval $ac_link) 2>&5
3951
(eval $ac_link) 2>conftest.er1
3953
grep -v '^ *+' conftest.er1 >conftest.err
3955
cat conftest.err >&5
3628
3956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
3957
(exit $ac_status); } &&
3630
{ ac_try='test -s conftest$ac_exeext'
3958
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
(exit $ac_status); }; } &&
3964
{ ac_try='test -s conftest$ac_exeext'
3631
3965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632
3966
(eval $ac_try) 2>&5
3634
3968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635
3969
(exit $ac_status); }; }; then
3636
ac_cv_func_res_search=yes
3970
echo "$as_me:$LINENO: result: yes" >&5
3971
echo "${ECHO_T}yes" >&6
3638
3973
echo "$as_me: failed program was:" >&5
3639
cat conftest.$ac_ext >&5
3640
ac_cv_func_res_search=no
3642
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3644
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3645
echo "${ECHO_T}$ac_cv_func_res_search" >&6
3646
if test $ac_cv_func_res_search = yes; then
3649
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3974
sed 's/^/| /' conftest.$ac_ext >&5
3976
echo "$as_me:$LINENO: result: no" >&5
3977
echo "${ECHO_T}no" >&6
3979
rm -f conftest.err conftest.$ac_objext \
3980
conftest$ac_exeext conftest.$ac_ext
3982
LIBS="$LIBS -lresolv"
3983
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3650
3984
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3651
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
3652
echo $ECHO_N "(cached) $ECHO_C" >&6
3654
ac_check_lib_save_LIBS=$LIBS
3655
LIBS="-lresolv $LIBS"
3656
cat >conftest.$ac_ext <<_ACEOF
3657
#line $LINENO "configure"
3658
#include "confdefs.h"
3985
cat >conftest.$ac_ext <<_ACEOF
3660
/* Override any gcc2 internal prototype to avoid an error. */
3664
/* We use char because int might match the return type of a gcc2
3665
builtin and then its argument prototype would still apply. */
3667
#ifdef F77_DUMMY_MAIN
3671
int F77_DUMMY_MAIN() { return 1; }
3990
res_search (0, 0, 0, 0, 0);
3681
3994
rm -f conftest.$ac_objext conftest$ac_exeext
3682
3995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683
(eval $ac_link) 2>&5
3996
(eval $ac_link) 2>conftest.er1
3998
grep -v '^ *+' conftest.er1 >conftest.err
4000
cat conftest.err >&5
3685
4001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
4002
(exit $ac_status); } &&
3687
{ ac_try='test -s conftest$ac_exeext'
4003
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
(exit $ac_status); }; } &&
4009
{ ac_try='test -s conftest$ac_exeext'
3688
4010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689
4011
(eval $ac_try) 2>&5
3691
4013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
4014
(exit $ac_status); }; }; then
3693
ac_cv_lib_resolv_res_search=yes
4015
LIBS="$LIBS -lresolv"; RESOLV_LIB=-lresolv; echo "$as_me:$LINENO: result: yes" >&5
4016
echo "${ECHO_T}yes" >&6
3695
4018
echo "$as_me: failed program was:" >&5
3696
cat conftest.$ac_ext >&5
3697
ac_cv_lib_resolv_res_search=no
3699
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3700
LIBS=$ac_check_lib_save_LIBS
3702
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
3703
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
3704
if test $ac_cv_lib_resolv_res_search = yes; then
3705
LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv
3707
{ { echo "$as_me:$LINENO: error: Cannot find resolver support routine res_search in -lresolv." >&5
3708
echo "$as_me: error: Cannot find resolver support routine res_search in -lresolv." >&2;}
3709
{ (exit 1); exit 1; }; }
4019
sed 's/^/| /' conftest.$ac_ext >&5
4021
LIBS="$saved_LIBS"; echo "$as_me:$LINENO: result: no" >&5
4022
echo "${ECHO_T}no" >&6
4024
rm -f conftest.err conftest.$ac_objext \
4025
conftest$ac_exeext conftest.$ac_ext
4120
4455
echo $ECHO_N "(cached) $ECHO_C" >&6
4122
4457
cat >conftest.$ac_ext <<_ACEOF
4123
#line $LINENO "configure"
4124
#include "confdefs.h"
4460
cat confdefs.h >>conftest.$ac_ext
4461
cat >>conftest.$ac_ext <<_ACEOF
4462
/* end confdefs.h. */
4463
/* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
4464
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4465
#define sigprocmask innocuous_sigprocmask
4125
4467
/* System header to define __stub macros and hopefully few prototypes,
4126
which can conflict with char sigprocmask (); below. */
4468
which can conflict with char sigprocmask (); below.
4469
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470
<limits.h> exists even on freestanding compilers. */
4473
# include <limits.h>
4475
# include <assert.h>
4128
4480
/* Override any gcc2 internal prototype to avoid an error. */
4129
4481
#ifdef __cplusplus
4132
4485
/* We use char because int might match the return type of a gcc2
4133
4486
builtin and then its argument prototype would still apply. */
4134
4487
char sigprocmask ();
4137
#ifdef F77_DUMMY_MAIN
4141
int F77_DUMMY_MAIN() { return 1; }
4146
4488
/* The GNU C library defines this for functions which it implements
4147
4489
to always fail with ENOSYS. Some functions are actually named
4148
4490
something starting with __ and the normal name is an alias. */
4149
4491
#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
4494
char (*f) () = sigprocmask;
4503
return f != sigprocmask;
4159
4508
rm -f conftest.$ac_objext conftest$ac_exeext
4160
4509
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161
(eval $ac_link) 2>&5
4510
(eval $ac_link) 2>conftest.er1
4512
grep -v '^ *+' conftest.er1 >conftest.err
4514
cat conftest.err >&5
4163
4515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164
4516
(exit $ac_status); } &&
4165
{ ac_try='test -s conftest$ac_exeext'
4517
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522
(exit $ac_status); }; } &&
4523
{ ac_try='test -s conftest$ac_exeext'
4166
4524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167
4525
(eval $ac_try) 2>&5
4332
4715
echo $ECHO_N "(cached) $ECHO_C" >&6
4334
4717
cat >conftest.$ac_ext <<_ACEOF
4335
#line $LINENO "configure"
4336
#include "confdefs.h"
4720
cat confdefs.h >>conftest.$ac_ext
4721
cat >>conftest.$ac_ext <<_ACEOF
4722
/* end confdefs.h. */
4723
/* Define sigsetjmp to an innocuous variant, in case <limits.h> declares sigsetjmp.
4724
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4725
#define sigsetjmp innocuous_sigsetjmp
4337
4727
/* System header to define __stub macros and hopefully few prototypes,
4338
which can conflict with char sigsetjmp (); below. */
4728
which can conflict with char sigsetjmp (); below.
4729
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4730
<limits.h> exists even on freestanding compilers. */
4733
# include <limits.h>
4735
# include <assert.h>
4340
4740
/* Override any gcc2 internal prototype to avoid an error. */
4341
4741
#ifdef __cplusplus
4344
4745
/* We use char because int might match the return type of a gcc2
4345
4746
builtin and then its argument prototype would still apply. */
4346
4747
char sigsetjmp ();
4349
#ifdef F77_DUMMY_MAIN
4353
int F77_DUMMY_MAIN() { return 1; }
4358
4748
/* The GNU C library defines this for functions which it implements
4359
4749
to always fail with ENOSYS. Some functions are actually named
4360
4750
something starting with __ and the normal name is an alias. */
4361
4751
#if defined (__stub_sigsetjmp) || defined (__stub___sigsetjmp)
4754
char (*f) () = sigsetjmp;
4763
return f != sigsetjmp;
4371
4768
rm -f conftest.$ac_objext conftest$ac_exeext
4372
4769
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373
(eval $ac_link) 2>&5
4770
(eval $ac_link) 2>conftest.er1
4772
grep -v '^ *+' conftest.er1 >conftest.err
4774
cat conftest.err >&5
4375
4775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376
4776
(exit $ac_status); } &&
4377
{ ac_try='test -s conftest$ac_exeext'
4777
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782
(exit $ac_status); }; } &&
4783
{ ac_try='test -s conftest$ac_exeext'
4378
4784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379
4785
(eval $ac_try) 2>&5
4666
5110
echo "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;}
5113
echo "$as_me:$LINENO: checking for egrep" >&5
5114
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5115
if test "${ac_cv_prog_egrep+set}" = set; then
5116
echo $ECHO_N "(cached) $ECHO_C" >&6
5118
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5119
then ac_cv_prog_egrep='grep -E'
5120
else ac_cv_prog_egrep='egrep'
5123
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5124
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5125
EGREP=$ac_cv_prog_egrep
4669
5128
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4670
5129
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4671
5130
if test "${ac_cv_header_stdc+set}" = set; then
4672
5131
echo $ECHO_N "(cached) $ECHO_C" >&6
4674
5133
cat >conftest.$ac_ext <<_ACEOF
4675
#line $LINENO "configure"
4676
#include "confdefs.h"
5136
cat confdefs.h >>conftest.$ac_ext
5137
cat >>conftest.$ac_ext <<_ACEOF
5138
/* end confdefs.h. */
4677
5139
#include <stdlib.h>
4678
5140
#include <stdarg.h>
4679
5141
#include <string.h>
4680
5142
#include <float.h>
4683
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4684
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152
rm -f conftest.$ac_objext
5153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154
(eval $ac_compile) 2>conftest.er1
4686
egrep -v '^ *\+' conftest.er1 >conftest.err
5156
grep -v '^ *+' conftest.er1 >conftest.err
4687
5157
rm -f conftest.er1
4688
5158
cat conftest.err >&5
4689
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690
(exit $ac_status); } >/dev/null; then
4691
if test -s conftest.err; then
4692
ac_cpp_err=$ac_c_preproc_warn_flag
4699
if test -z "$ac_cpp_err"; then
5160
(exit $ac_status); } &&
5161
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166
(exit $ac_status); }; } &&
5167
{ ac_try='test -s conftest.$ac_objext'
5168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172
(exit $ac_status); }; }; then
4700
5173
ac_cv_header_stdc=yes
4702
5175
echo "$as_me: failed program was:" >&5
4703
cat conftest.$ac_ext >&5
4704
ac_cv_header_stdc=no
5176
sed 's/^/| /' conftest.$ac_ext >&5
5178
ac_cv_header_stdc=no
4706
rm -f conftest.err conftest.$ac_ext
5180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708
5182
if test $ac_cv_header_stdc = yes; then
4709
5183
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710
5184
cat >conftest.$ac_ext <<_ACEOF
4711
#line $LINENO "configure"
4712
#include "confdefs.h"
5187
cat confdefs.h >>conftest.$ac_ext
5188
cat >>conftest.$ac_ext <<_ACEOF
5189
/* end confdefs.h. */
4713
5190
#include <string.h>
4716
5193
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717
egrep "memchr" >/dev/null 2>&1; then
5194
$EGREP "memchr" >/dev/null 2>&1; then
4720
5197
ac_cv_header_stdc=no
6155
6817
echo "${ECHO_T}$ac_header_preproc" >&6
6157
6819
# So? What about this header?
6158
case $ac_header_compiler:$ac_header_preproc in
6820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6160
6822
{ echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&5
6161
6823
echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6162
{ echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
6163
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;};;
6824
{ echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's result" >&5
6825
echo "$as_me: WARNING: termios.h: proceeding with the compiler's result" >&2;}
6826
ac_header_preproc=yes
6165
6829
{ echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be compiled" >&5
6166
6830
echo "$as_me: WARNING: termios.h: present but cannot be compiled" >&2;}
6167
{ echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite headers?" >&5
6168
echo "$as_me: WARNING: termios.h: check for missing prerequisite headers?" >&2;}
6831
{ echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite headers?" >&5
6832
echo "$as_me: WARNING: termios.h: check for missing prerequisite headers?" >&2;}
6833
{ echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf documentation" >&5
6834
echo "$as_me: WARNING: termios.h: see the Autoconf documentation" >&2;}
6835
{ echo "$as_me:$LINENO: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&5
6836
echo "$as_me: WARNING: termios.h: section \"Present But Cannot Be Compiled\"" >&2;}
6169
6837
{ echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
6170
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;};;
6838
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;}
6839
{ echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will take precedence" >&5
6840
echo "$as_me: WARNING: termios.h: in the future, the compiler will take precedence" >&2;}
6843
## ------------------------------------------ ##
6844
## Report this to the AC_PACKAGE_NAME lists. ##
6845
## ------------------------------------------ ##
6848
sed "s/^/$as_me: WARNING: /" >&2
6172
6851
echo "$as_me:$LINENO: checking for termios.h" >&5
6173
6852
echo $ECHO_N "checking for termios.h... $ECHO_C" >&6
6187
6866
echo $ECHO_N "(cached) $ECHO_C" >&6
6189
6868
cat >conftest.$ac_ext <<_ACEOF
6190
#line $LINENO "configure"
6191
#include "confdefs.h"
6871
cat confdefs.h >>conftest.$ac_ext
6872
cat >>conftest.$ac_ext <<_ACEOF
6873
/* end confdefs.h. */
6874
/* Define cfsetispeed to an innocuous variant, in case <limits.h> declares cfsetispeed.
6875
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6876
#define cfsetispeed innocuous_cfsetispeed
6192
6878
/* System header to define __stub macros and hopefully few prototypes,
6193
which can conflict with char cfsetispeed (); below. */
6879
which can conflict with char cfsetispeed (); below.
6880
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6881
<limits.h> exists even on freestanding compilers. */
6884
# include <limits.h>
6886
# include <assert.h>
6195
6891
/* Override any gcc2 internal prototype to avoid an error. */
6196
6892
#ifdef __cplusplus
6199
6896
/* We use char because int might match the return type of a gcc2
6200
6897
builtin and then its argument prototype would still apply. */
6201
6898
char cfsetispeed ();
6204
#ifdef F77_DUMMY_MAIN
6208
int F77_DUMMY_MAIN() { return 1; }
6213
6899
/* The GNU C library defines this for functions which it implements
6214
6900
to always fail with ENOSYS. Some functions are actually named
6215
6901
something starting with __ and the normal name is an alias. */
6216
6902
#if defined (__stub_cfsetispeed) || defined (__stub___cfsetispeed)
6905
char (*f) () = cfsetispeed;
6914
return f != cfsetispeed;
6226
6919
rm -f conftest.$ac_objext conftest$ac_exeext
6227
6920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228
(eval $ac_link) 2>&5
6921
(eval $ac_link) 2>conftest.er1
6923
grep -v '^ *+' conftest.er1 >conftest.err
6925
cat conftest.err >&5
6230
6926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231
6927
(exit $ac_status); } &&
6232
{ ac_try='test -s conftest$ac_exeext'
6928
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933
(exit $ac_status); }; } &&
6934
{ ac_try='test -s conftest$ac_exeext'
6233
6935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234
6936
(eval $ac_try) 2>&5
6340
7062
echo "${ECHO_T}$ac_header_preproc" >&6
6342
7064
# So? What about this header?
6343
case $ac_header_compiler:$ac_header_preproc in
7065
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345
7067
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346
7068
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7069
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7070
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7071
ac_header_preproc=yes
6350
7074
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6351
7075
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6352
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6353
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7076
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7077
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7078
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7079
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7080
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7081
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6354
7082
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6355
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7083
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7084
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7085
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7088
## ------------------------------------------ ##
7089
## Report this to the AC_PACKAGE_NAME lists. ##
7090
## ------------------------------------------ ##
7093
sed "s/^/$as_me: WARNING: /" >&2
6357
7096
echo "$as_me:$LINENO: checking for $ac_header" >&5
6358
7097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6359
7098
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360
7099
echo $ECHO_N "(cached) $ECHO_C" >&6
6362
eval "$as_ac_Header=$ac_header_preproc"
7101
eval "$as_ac_Header=\$ac_header_preproc"
6364
7103
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6365
7104
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593
7360
echo $ECHO_N "(cached) $ECHO_C" >&6
6595
7362
cat >conftest.$ac_ext <<_ACEOF
6596
#line $LINENO "configure"
6597
#include "confdefs.h"
7365
cat confdefs.h >>conftest.$ac_ext
7366
cat >>conftest.$ac_ext <<_ACEOF
7367
/* end confdefs.h. */
7368
/* Define setutent to an innocuous variant, in case <limits.h> declares setutent.
7369
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7370
#define setutent innocuous_setutent
6598
7372
/* System header to define __stub macros and hopefully few prototypes,
6599
which can conflict with char setutent (); below. */
7373
which can conflict with char setutent (); below.
7374
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7375
<limits.h> exists even on freestanding compilers. */
7378
# include <limits.h>
7380
# include <assert.h>
6601
7385
/* Override any gcc2 internal prototype to avoid an error. */
6602
7386
#ifdef __cplusplus
6605
7390
/* We use char because int might match the return type of a gcc2
6606
7391
builtin and then its argument prototype would still apply. */
6607
7392
char setutent ();
6610
#ifdef F77_DUMMY_MAIN
6614
int F77_DUMMY_MAIN() { return 1; }
6619
7393
/* The GNU C library defines this for functions which it implements
6620
7394
to always fail with ENOSYS. Some functions are actually named
6621
7395
something starting with __ and the normal name is an alias. */
6622
7396
#if defined (__stub_setutent) || defined (__stub___setutent)
7399
char (*f) () = setutent;
7408
return f != setutent;
6632
7413
rm -f conftest.$ac_objext conftest$ac_exeext
6633
7414
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634
(eval $ac_link) 2>&5
7415
(eval $ac_link) 2>conftest.er1
7417
grep -v '^ *+' conftest.er1 >conftest.err
7419
cat conftest.err >&5
6636
7420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637
7421
(exit $ac_status); } &&
6638
{ ac_try='test -s conftest$ac_exeext'
7422
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427
(exit $ac_status); }; } &&
7428
{ ac_try='test -s conftest$ac_exeext'
6639
7429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640
7430
(eval $ac_try) 2>&5
6664
7456
echo $ECHO_N "(cached) $ECHO_C" >&6
6666
7458
cat >conftest.$ac_ext <<_ACEOF
6667
#line $LINENO "configure"
6668
#include "confdefs.h"
7461
cat confdefs.h >>conftest.$ac_ext
7462
cat >>conftest.$ac_ext <<_ACEOF
7463
/* end confdefs.h. */
7464
/* Define setutxent to an innocuous variant, in case <limits.h> declares setutxent.
7465
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7466
#define setutxent innocuous_setutxent
6669
7468
/* System header to define __stub macros and hopefully few prototypes,
6670
which can conflict with char setutxent (); below. */
7469
which can conflict with char setutxent (); below.
7470
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471
<limits.h> exists even on freestanding compilers. */
7474
# include <limits.h>
7476
# include <assert.h>
6672
7481
/* Override any gcc2 internal prototype to avoid an error. */
6673
7482
#ifdef __cplusplus
6676
7486
/* We use char because int might match the return type of a gcc2
6677
7487
builtin and then its argument prototype would still apply. */
6678
7488
char setutxent ();
6681
#ifdef F77_DUMMY_MAIN
6685
int F77_DUMMY_MAIN() { return 1; }
6690
7489
/* The GNU C library defines this for functions which it implements
6691
7490
to always fail with ENOSYS. Some functions are actually named
6692
7491
something starting with __ and the normal name is an alias. */
6693
7492
#if defined (__stub_setutxent) || defined (__stub___setutxent)
7495
char (*f) () = setutxent;
7504
return f != setutxent;
6703
7509
rm -f conftest.$ac_objext conftest$ac_exeext
6704
7510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705
(eval $ac_link) 2>&5
7511
(eval $ac_link) 2>conftest.er1
7513
grep -v '^ *+' conftest.er1 >conftest.err
7515
cat conftest.err >&5
6707
7516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
7517
(exit $ac_status); } &&
6709
{ ac_try='test -s conftest$ac_exeext'
7518
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523
(exit $ac_status); }; } &&
7524
{ ac_try='test -s conftest$ac_exeext'
6710
7525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711
7526
(eval $ac_try) 2>&5
6735
7552
echo $ECHO_N "(cached) $ECHO_C" >&6
6737
7554
cat >conftest.$ac_ext <<_ACEOF
6738
#line $LINENO "configure"
6739
#include "confdefs.h"
7557
cat confdefs.h >>conftest.$ac_ext
7558
cat >>conftest.$ac_ext <<_ACEOF
7559
/* end confdefs.h. */
7560
/* Define updwtmp to an innocuous variant, in case <limits.h> declares updwtmp.
7561
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7562
#define updwtmp innocuous_updwtmp
6740
7564
/* System header to define __stub macros and hopefully few prototypes,
6741
which can conflict with char updwtmp (); below. */
7565
which can conflict with char updwtmp (); below.
7566
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567
<limits.h> exists even on freestanding compilers. */
7570
# include <limits.h>
7572
# include <assert.h>
6743
7577
/* Override any gcc2 internal prototype to avoid an error. */
6744
7578
#ifdef __cplusplus
6747
7582
/* We use char because int might match the return type of a gcc2
6748
7583
builtin and then its argument prototype would still apply. */
6749
7584
char updwtmp ();
6752
#ifdef F77_DUMMY_MAIN
6756
int F77_DUMMY_MAIN() { return 1; }
6761
7585
/* The GNU C library defines this for functions which it implements
6762
7586
to always fail with ENOSYS. Some functions are actually named
6763
7587
something starting with __ and the normal name is an alias. */
6764
7588
#if defined (__stub_updwtmp) || defined (__stub___updwtmp)
7591
char (*f) () = updwtmp;
7600
return f != updwtmp;
6774
7605
rm -f conftest.$ac_objext conftest$ac_exeext
6775
7606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776
(eval $ac_link) 2>&5
7607
(eval $ac_link) 2>conftest.er1
7609
grep -v '^ *+' conftest.er1 >conftest.err
7611
cat conftest.err >&5
6778
7612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779
7613
(exit $ac_status); } &&
6780
{ ac_try='test -s conftest$ac_exeext'
7614
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619
(exit $ac_status); }; } &&
7620
{ ac_try='test -s conftest$ac_exeext'
6781
7621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782
7622
(eval $ac_try) 2>&5
6806
7648
echo $ECHO_N "(cached) $ECHO_C" >&6
6808
7650
cat >conftest.$ac_ext <<_ACEOF
6809
#line $LINENO "configure"
6810
#include "confdefs.h"
7653
cat confdefs.h >>conftest.$ac_ext
7654
cat >>conftest.$ac_ext <<_ACEOF
7655
/* end confdefs.h. */
7656
/* Define updwtmpx to an innocuous variant, in case <limits.h> declares updwtmpx.
7657
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7658
#define updwtmpx innocuous_updwtmpx
6811
7660
/* System header to define __stub macros and hopefully few prototypes,
6812
which can conflict with char updwtmpx (); below. */
7661
which can conflict with char updwtmpx (); below.
7662
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663
<limits.h> exists even on freestanding compilers. */
7666
# include <limits.h>
7668
# include <assert.h>
6814
7673
/* Override any gcc2 internal prototype to avoid an error. */
6815
7674
#ifdef __cplusplus
6818
7678
/* We use char because int might match the return type of a gcc2
6819
7679
builtin and then its argument prototype would still apply. */
6820
7680
char updwtmpx ();
6823
#ifdef F77_DUMMY_MAIN
6827
int F77_DUMMY_MAIN() { return 1; }
6832
7681
/* The GNU C library defines this for functions which it implements
6833
7682
to always fail with ENOSYS. Some functions are actually named
6834
7683
something starting with __ and the normal name is an alias. */
6835
7684
#if defined (__stub_updwtmpx) || defined (__stub___updwtmpx)
7687
char (*f) () = updwtmpx;
7696
return f != updwtmpx;
6845
7701
rm -f conftest.$ac_objext conftest$ac_exeext
6846
7702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847
(eval $ac_link) 2>&5
7703
(eval $ac_link) 2>conftest.er1
7705
grep -v '^ *+' conftest.er1 >conftest.err
7707
cat conftest.err >&5
6849
7708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850
7709
(exit $ac_status); } &&
6851
{ ac_try='test -s conftest$ac_exeext'
7710
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715
(exit $ac_status); }; } &&
7716
{ ac_try='test -s conftest$ac_exeext'
6852
7717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853
7718
(eval $ac_try) 2>&5
7005
7887
echo $ECHO_N "(cached) $ECHO_C" >&6
7007
7889
cat >conftest.$ac_ext <<_ACEOF
7008
#line $LINENO "configure"
7009
#include "confdefs.h"
7892
cat confdefs.h >>conftest.$ac_ext
7893
cat >>conftest.$ac_ext <<_ACEOF
7894
/* end confdefs.h. */
7895
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7896
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7897
#define $ac_func innocuous_$ac_func
7010
7899
/* System header to define __stub macros and hopefully few prototypes,
7011
which can conflict with char $ac_func (); below. */
7900
which can conflict with char $ac_func (); below.
7901
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902
<limits.h> exists even on freestanding compilers. */
7905
# include <limits.h>
7907
# include <assert.h>
7013
7912
/* Override any gcc2 internal prototype to avoid an error. */
7014
7913
#ifdef __cplusplus
7017
7917
/* We use char because int might match the return type of a gcc2
7018
7918
builtin and then its argument prototype would still apply. */
7019
7919
char $ac_func ();
7022
#ifdef F77_DUMMY_MAIN
7026
int F77_DUMMY_MAIN() { return 1; }
7031
7920
/* The GNU C library defines this for functions which it implements
7032
7921
to always fail with ENOSYS. Some functions are actually named
7033
7922
something starting with __ and the normal name is an alias. */
7034
7923
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7926
char (*f) () = $ac_func;
7935
return f != $ac_func;
7044
7940
rm -f conftest.$ac_objext conftest$ac_exeext
7045
7941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046
(eval $ac_link) 2>&5
7942
(eval $ac_link) 2>conftest.er1
7944
grep -v '^ *+' conftest.er1 >conftest.err
7946
cat conftest.err >&5
7048
7947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049
7948
(exit $ac_status); } &&
7050
{ ac_try='test -s conftest$ac_exeext'
7949
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954
(exit $ac_status); }; } &&
7955
{ ac_try='test -s conftest$ac_exeext'
7051
7956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052
7957
(eval $ac_try) 2>&5
7091
8005
echo $ECHO_N "(cached) $ECHO_C" >&6
7093
8007
cat >conftest.$ac_ext <<_ACEOF
7094
#line $LINENO "configure"
7095
#include "confdefs.h"
8010
cat confdefs.h >>conftest.$ac_ext
8011
cat >>conftest.$ac_ext <<_ACEOF
8012
/* end confdefs.h. */
8013
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8014
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8015
#define $ac_func innocuous_$ac_func
7096
8017
/* System header to define __stub macros and hopefully few prototypes,
7097
which can conflict with char $ac_func (); below. */
8018
which can conflict with char $ac_func (); below.
8019
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8020
<limits.h> exists even on freestanding compilers. */
8023
# include <limits.h>
8025
# include <assert.h>
7099
8030
/* Override any gcc2 internal prototype to avoid an error. */
7100
8031
#ifdef __cplusplus
7103
8035
/* We use char because int might match the return type of a gcc2
7104
8036
builtin and then its argument prototype would still apply. */
7105
8037
char $ac_func ();
7108
#ifdef F77_DUMMY_MAIN
7112
int F77_DUMMY_MAIN() { return 1; }
7117
8038
/* The GNU C library defines this for functions which it implements
7118
8039
to always fail with ENOSYS. Some functions are actually named
7119
8040
something starting with __ and the normal name is an alias. */
7120
8041
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8044
char (*f) () = $ac_func;
8053
return f != $ac_func;
7130
8058
rm -f conftest.$ac_objext conftest$ac_exeext
7131
8059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132
(eval $ac_link) 2>&5
8060
(eval $ac_link) 2>conftest.er1
8062
grep -v '^ *+' conftest.er1 >conftest.err
8064
cat conftest.err >&5
7134
8065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135
8066
(exit $ac_status); } &&
7136
{ ac_try='test -s conftest$ac_exeext'
8067
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072
(exit $ac_status); }; } &&
8073
{ ac_try='test -s conftest$ac_exeext'
7137
8074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138
8075
(eval $ac_try) 2>&5
7702
8685
echo $ECHO_N "(cached) $ECHO_C" >&6
7704
8687
cat >conftest.$ac_ext <<_ACEOF
7705
#line $LINENO "configure"
7706
#include "confdefs.h"
8690
cat confdefs.h >>conftest.$ac_ext
8691
cat >>conftest.$ac_ext <<_ACEOF
8692
/* end confdefs.h. */
8693
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8694
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8695
#define $ac_func innocuous_$ac_func
7707
8697
/* System header to define __stub macros and hopefully few prototypes,
7708
which can conflict with char $ac_func (); below. */
8698
which can conflict with char $ac_func (); below.
8699
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8700
<limits.h> exists even on freestanding compilers. */
8703
# include <limits.h>
8705
# include <assert.h>
7710
8710
/* Override any gcc2 internal prototype to avoid an error. */
7711
8711
#ifdef __cplusplus
7714
8715
/* We use char because int might match the return type of a gcc2
7715
8716
builtin and then its argument prototype would still apply. */
7716
8717
char $ac_func ();
7719
#ifdef F77_DUMMY_MAIN
7723
int F77_DUMMY_MAIN() { return 1; }
7728
8718
/* The GNU C library defines this for functions which it implements
7729
8719
to always fail with ENOSYS. Some functions are actually named
7730
8720
something starting with __ and the normal name is an alias. */
7731
8721
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8724
char (*f) () = $ac_func;
8733
return f != $ac_func;
7741
8738
rm -f conftest.$ac_objext conftest$ac_exeext
7742
8739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743
(eval $ac_link) 2>&5
8740
(eval $ac_link) 2>conftest.er1
8742
grep -v '^ *+' conftest.er1 >conftest.err
8744
cat conftest.err >&5
7745
8745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746
8746
(exit $ac_status); } &&
7747
{ ac_try='test -s conftest$ac_exeext'
8747
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752
(exit $ac_status); }; } &&
8753
{ ac_try='test -s conftest$ac_exeext'
7748
8754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749
8755
(eval $ac_try) 2>&5
7977
9009
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9012
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9013
# is contrary to our usage. Disable this feature.
9014
alias -g '${1+"$@"}'='"$@"'
7980
9015
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9018
DUALCASE=1; export DUALCASE # for MKS sh
7985
9020
# Support unset when possible.
7986
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9021
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7992
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7993
{ $as_unset LANG || test "${LANG+set}" != set; } ||
7994
{ LANG=C; export LANG; }
7995
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7996
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7997
{ LC_ALL=C; export LC_ALL; }
7998
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7999
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
8000
{ LC_TIME=C; export LC_TIME; }
8001
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8002
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
8003
{ LC_CTYPE=C; export LC_CTYPE; }
8004
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8005
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
8006
{ LANGUAGE=C; export LANGUAGE; }
8007
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8008
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
8009
{ LC_COLLATE=C; export LC_COLLATE; }
8010
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8011
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
8012
{ LC_NUMERIC=C; export LC_NUMERIC; }
8013
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8014
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
8015
{ LC_MESSAGES=C; export LC_MESSAGES; }
9028
# Work around bugs in pre-3.0 UWIN ksh.
9029
$as_unset ENV MAIL MAILPATH
9036
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9037
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9038
LC_TELEPHONE LC_TIME
9040
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9041
eval $as_var=C; export $as_var
9047
# Required to use basename.
9048
if expr a : '\(a\)' >/dev/null 2>&1; then
9054
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9055
as_basename=basename
8018
9061
# Name of the executable.
8019
as_me=`(basename "$0") 2>/dev/null ||
9062
as_me=`$as_basename "$0" ||
8020
9063
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8021
9064
X"$0" : 'X\(//\)$' \| \
8022
9065
X"$0" : 'X\(/\)$' \| \
8547
9622
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8548
9623
case $ac_file in
8549
9624
- | *:- | *:-:* ) # input from stdin
8551
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8552
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9626
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9627
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8553
9628
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8554
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9629
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8555
9630
* ) ac_file_in=$ac_file.in ;;
8558
9633
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8559
9634
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8560
9635
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8561
X"$ac_file" : 'X\(//\)[^/]' \| \
8562
X"$ac_file" : 'X\(//\)$' \| \
8563
X"$ac_file" : 'X\(/\)' \| \
8564
. : '\(.\)' 2>/dev/null ||
9636
X"$ac_file" : 'X\(//\)[^/]' \| \
9637
X"$ac_file" : 'X\(//\)$' \| \
9638
X"$ac_file" : 'X\(/\)' \| \
9639
. : '\(.\)' 2>/dev/null ||
8565
9640
echo X"$ac_file" |
8566
9641
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8567
9642
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8568
9643
/^X\(\/\/\)$/{ s//\1/; q; }
8569
9644
/^X\(\/\).*/{ s//\1/; q; }
8572
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
8576
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8577
case $as_mkdir_dir in
8578
# Skip DOS drivespec
8579
?:) as_incr_dir=$as_mkdir_dir ;;
8581
as_incr_dir=$as_incr_dir/$as_mkdir_dir
8582
test -d "$as_incr_dir" ||
8583
mkdir "$as_incr_dir" ||
8584
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8585
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8586
{ (exit 1); exit 1; }; }
9646
{ if $as_mkdir_p; then
9651
while test ! -d "$as_dir"; do
9652
as_dirs="$as_dir $as_dirs"
9653
as_dir=`(dirname "$as_dir") 2>/dev/null ||
9654
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9655
X"$as_dir" : 'X\(//\)[^/]' \| \
9656
X"$as_dir" : 'X\(//\)$' \| \
9657
X"$as_dir" : 'X\(/\)' \| \
9658
. : '\(.\)' 2>/dev/null ||
9660
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9661
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9662
/^X\(\/\/\)$/{ s//\1/; q; }
9663
/^X\(\/\).*/{ s//\1/; q; }
9666
test ! -n "$as_dirs" || mkdir $as_dirs
9667
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9668
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9669
{ (exit 1); exit 1; }; }; }