|
Lines 6102-6107
done
Link Here
|
| 6102 |
|
6102 |
|
| 6103 |
|
6103 |
|
| 6104 |
|
6104 |
|
|
|
6105 |
for ac_header in stdint.h |
| 6106 |
do |
| 6107 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6108 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6109 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6110 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6111 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6112 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6113 |
fi |
| 6114 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6115 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6116 |
else |
| 6117 |
# Is the header compilable? |
| 6118 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6119 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6120 |
cat >conftest.$ac_ext <<_ACEOF |
| 6121 |
/* confdefs.h. */ |
| 6122 |
_ACEOF |
| 6123 |
cat confdefs.h >>conftest.$ac_ext |
| 6124 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6125 |
/* end confdefs.h. */ |
| 6126 |
$ac_includes_default |
| 6127 |
#include <$ac_header> |
| 6128 |
_ACEOF |
| 6129 |
rm -f conftest.$ac_objext |
| 6130 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6131 |
(eval $ac_compile) 2>conftest.er1 |
| 6132 |
ac_status=$? |
| 6133 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6134 |
rm -f conftest.er1 |
| 6135 |
cat conftest.err >&5 |
| 6136 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6137 |
(exit $ac_status); } && |
| 6138 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6139 |
|| test ! -s conftest.err' |
| 6140 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6141 |
(eval $ac_try) 2>&5 |
| 6142 |
ac_status=$? |
| 6143 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6144 |
(exit $ac_status); }; } && |
| 6145 |
{ ac_try='test -s conftest.$ac_objext' |
| 6146 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6147 |
(eval $ac_try) 2>&5 |
| 6148 |
ac_status=$? |
| 6149 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 |
(exit $ac_status); }; }; then |
| 6151 |
ac_header_compiler=yes |
| 6152 |
else |
| 6153 |
echo "$as_me: failed program was:" >&5 |
| 6154 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6155 |
|
| 6156 |
ac_header_compiler=no |
| 6157 |
fi |
| 6158 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6159 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6160 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6161 |
|
| 6162 |
# Is the header present? |
| 6163 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6164 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6165 |
cat >conftest.$ac_ext <<_ACEOF |
| 6166 |
/* confdefs.h. */ |
| 6167 |
_ACEOF |
| 6168 |
cat confdefs.h >>conftest.$ac_ext |
| 6169 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6170 |
/* end confdefs.h. */ |
| 6171 |
#include <$ac_header> |
| 6172 |
_ACEOF |
| 6173 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6174 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6175 |
ac_status=$? |
| 6176 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6177 |
rm -f conftest.er1 |
| 6178 |
cat conftest.err >&5 |
| 6179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 |
(exit $ac_status); } >/dev/null; then |
| 6181 |
if test -s conftest.err; then |
| 6182 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6183 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6184 |
else |
| 6185 |
ac_cpp_err= |
| 6186 |
fi |
| 6187 |
else |
| 6188 |
ac_cpp_err=yes |
| 6189 |
fi |
| 6190 |
if test -z "$ac_cpp_err"; then |
| 6191 |
ac_header_preproc=yes |
| 6192 |
else |
| 6193 |
echo "$as_me: failed program was:" >&5 |
| 6194 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6195 |
|
| 6196 |
ac_header_preproc=no |
| 6197 |
fi |
| 6198 |
rm -f conftest.err conftest.$ac_ext |
| 6199 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6200 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6201 |
|
| 6202 |
# So? What about this header? |
| 6203 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6204 |
yes:no: ) |
| 6205 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6206 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6207 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6208 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6209 |
ac_header_preproc=yes |
| 6210 |
;; |
| 6211 |
no:yes:* ) |
| 6212 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6213 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6214 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6215 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6216 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6217 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6218 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6219 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6220 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6221 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6222 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6223 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6224 |
( |
| 6225 |
cat <<\_ASBOX |
| 6226 |
## ------------------------------ ## |
| 6227 |
## Report this to bug-cvs@gnu.org ## |
| 6228 |
## ------------------------------ ## |
| 6229 |
_ASBOX |
| 6230 |
) | |
| 6231 |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6232 |
;; |
| 6233 |
esac |
| 6234 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6235 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6236 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6237 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6238 |
else |
| 6239 |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6240 |
fi |
| 6241 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6242 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6243 |
|
| 6244 |
fi |
| 6245 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6246 |
cat >>confdefs.h <<_ACEOF |
| 6247 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6248 |
_ACEOF |
| 6249 |
|
| 6250 |
fi |
| 6251 |
|
| 6252 |
done |
| 6253 |
|
| 6254 |
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 6255 |
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 |
| 6256 |
result= |
| 6257 |
cat >conftest.$ac_ext <<_ACEOF |
| 6258 |
/* confdefs.h. */ |
| 6259 |
_ACEOF |
| 6260 |
cat confdefs.h >>conftest.$ac_ext |
| 6261 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6262 |
/* end confdefs.h. */ |
| 6263 |
|
| 6264 |
#include <limits.h> |
| 6265 |
#if HAVE_STDINT_H |
| 6266 |
#include <stdint.h> |
| 6267 |
#endif |
| 6268 |
#ifdef SIZE_MAX |
| 6269 |
Found it |
| 6270 |
#endif |
| 6271 |
|
| 6272 |
_ACEOF |
| 6273 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6274 |
$EGREP "Found it" >/dev/null 2>&1; then |
| 6275 |
result=yes |
| 6276 |
fi |
| 6277 |
rm -f conftest* |
| 6278 |
|
| 6279 |
if test -z "$result"; then |
| 6280 |
if test "$cross_compiling" = yes; then |
| 6281 |
# Depending upon the size, compute the lo and hi bounds. |
| 6282 |
cat >conftest.$ac_ext <<_ACEOF |
| 6283 |
/* confdefs.h. */ |
| 6284 |
_ACEOF |
| 6285 |
cat confdefs.h >>conftest.$ac_ext |
| 6286 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6287 |
/* end confdefs.h. */ |
| 6288 |
#include <stddef.h> |
| 6289 |
int |
| 6290 |
main () |
| 6291 |
{ |
| 6292 |
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 6293 |
test_array [0] = 0 |
| 6294 |
|
| 6295 |
; |
| 6296 |
return 0; |
| 6297 |
} |
| 6298 |
_ACEOF |
| 6299 |
rm -f conftest.$ac_objext |
| 6300 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6301 |
(eval $ac_compile) 2>conftest.er1 |
| 6302 |
ac_status=$? |
| 6303 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6304 |
rm -f conftest.er1 |
| 6305 |
cat conftest.err >&5 |
| 6306 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 |
(exit $ac_status); } && |
| 6308 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6309 |
|| test ! -s conftest.err' |
| 6310 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6311 |
(eval $ac_try) 2>&5 |
| 6312 |
ac_status=$? |
| 6313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6314 |
(exit $ac_status); }; } && |
| 6315 |
{ ac_try='test -s conftest.$ac_objext' |
| 6316 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6317 |
(eval $ac_try) 2>&5 |
| 6318 |
ac_status=$? |
| 6319 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6320 |
(exit $ac_status); }; }; then |
| 6321 |
ac_lo=0 ac_mid=0 |
| 6322 |
while :; do |
| 6323 |
cat >conftest.$ac_ext <<_ACEOF |
| 6324 |
/* confdefs.h. */ |
| 6325 |
_ACEOF |
| 6326 |
cat confdefs.h >>conftest.$ac_ext |
| 6327 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6328 |
/* end confdefs.h. */ |
| 6329 |
#include <stddef.h> |
| 6330 |
int |
| 6331 |
main () |
| 6332 |
{ |
| 6333 |
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 6334 |
test_array [0] = 0 |
| 6335 |
|
| 6336 |
; |
| 6337 |
return 0; |
| 6338 |
} |
| 6339 |
_ACEOF |
| 6340 |
rm -f conftest.$ac_objext |
| 6341 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6342 |
(eval $ac_compile) 2>conftest.er1 |
| 6343 |
ac_status=$? |
| 6344 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6345 |
rm -f conftest.er1 |
| 6346 |
cat conftest.err >&5 |
| 6347 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 |
(exit $ac_status); } && |
| 6349 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6350 |
|| test ! -s conftest.err' |
| 6351 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6352 |
(eval $ac_try) 2>&5 |
| 6353 |
ac_status=$? |
| 6354 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6355 |
(exit $ac_status); }; } && |
| 6356 |
{ ac_try='test -s conftest.$ac_objext' |
| 6357 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6358 |
(eval $ac_try) 2>&5 |
| 6359 |
ac_status=$? |
| 6360 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6361 |
(exit $ac_status); }; }; then |
| 6362 |
ac_hi=$ac_mid; break |
| 6363 |
else |
| 6364 |
echo "$as_me: failed program was:" >&5 |
| 6365 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6366 |
|
| 6367 |
ac_lo=`expr $ac_mid + 1` |
| 6368 |
if test $ac_lo -le $ac_mid; then |
| 6369 |
ac_lo= ac_hi= |
| 6370 |
break |
| 6371 |
fi |
| 6372 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6373 |
fi |
| 6374 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6375 |
done |
| 6376 |
else |
| 6377 |
echo "$as_me: failed program was:" >&5 |
| 6378 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6379 |
|
| 6380 |
cat >conftest.$ac_ext <<_ACEOF |
| 6381 |
/* confdefs.h. */ |
| 6382 |
_ACEOF |
| 6383 |
cat confdefs.h >>conftest.$ac_ext |
| 6384 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6385 |
/* end confdefs.h. */ |
| 6386 |
#include <stddef.h> |
| 6387 |
int |
| 6388 |
main () |
| 6389 |
{ |
| 6390 |
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 6391 |
test_array [0] = 0 |
| 6392 |
|
| 6393 |
; |
| 6394 |
return 0; |
| 6395 |
} |
| 6396 |
_ACEOF |
| 6397 |
rm -f conftest.$ac_objext |
| 6398 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6399 |
(eval $ac_compile) 2>conftest.er1 |
| 6400 |
ac_status=$? |
| 6401 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6402 |
rm -f conftest.er1 |
| 6403 |
cat conftest.err >&5 |
| 6404 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 |
(exit $ac_status); } && |
| 6406 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6407 |
|| test ! -s conftest.err' |
| 6408 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6409 |
(eval $ac_try) 2>&5 |
| 6410 |
ac_status=$? |
| 6411 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 |
(exit $ac_status); }; } && |
| 6413 |
{ ac_try='test -s conftest.$ac_objext' |
| 6414 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6415 |
(eval $ac_try) 2>&5 |
| 6416 |
ac_status=$? |
| 6417 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6418 |
(exit $ac_status); }; }; then |
| 6419 |
ac_hi=-1 ac_mid=-1 |
| 6420 |
while :; do |
| 6421 |
cat >conftest.$ac_ext <<_ACEOF |
| 6422 |
/* confdefs.h. */ |
| 6423 |
_ACEOF |
| 6424 |
cat confdefs.h >>conftest.$ac_ext |
| 6425 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6426 |
/* end confdefs.h. */ |
| 6427 |
#include <stddef.h> |
| 6428 |
int |
| 6429 |
main () |
| 6430 |
{ |
| 6431 |
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 6432 |
test_array [0] = 0 |
| 6433 |
|
| 6434 |
; |
| 6435 |
return 0; |
| 6436 |
} |
| 6437 |
_ACEOF |
| 6438 |
rm -f conftest.$ac_objext |
| 6439 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6440 |
(eval $ac_compile) 2>conftest.er1 |
| 6441 |
ac_status=$? |
| 6442 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6443 |
rm -f conftest.er1 |
| 6444 |
cat conftest.err >&5 |
| 6445 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 |
(exit $ac_status); } && |
| 6447 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6448 |
|| test ! -s conftest.err' |
| 6449 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6450 |
(eval $ac_try) 2>&5 |
| 6451 |
ac_status=$? |
| 6452 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6453 |
(exit $ac_status); }; } && |
| 6454 |
{ ac_try='test -s conftest.$ac_objext' |
| 6455 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6456 |
(eval $ac_try) 2>&5 |
| 6457 |
ac_status=$? |
| 6458 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6459 |
(exit $ac_status); }; }; then |
| 6460 |
ac_lo=$ac_mid; break |
| 6461 |
else |
| 6462 |
echo "$as_me: failed program was:" >&5 |
| 6463 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6464 |
|
| 6465 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6466 |
if test $ac_mid -le $ac_hi; then |
| 6467 |
ac_lo= ac_hi= |
| 6468 |
break |
| 6469 |
fi |
| 6470 |
ac_mid=`expr 2 '*' $ac_mid` |
| 6471 |
fi |
| 6472 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6473 |
done |
| 6474 |
else |
| 6475 |
echo "$as_me: failed program was:" >&5 |
| 6476 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6477 |
|
| 6478 |
ac_lo= ac_hi= |
| 6479 |
fi |
| 6480 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6481 |
fi |
| 6482 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6483 |
# Binary search between lo and hi bounds. |
| 6484 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 6485 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6486 |
cat >conftest.$ac_ext <<_ACEOF |
| 6487 |
/* confdefs.h. */ |
| 6488 |
_ACEOF |
| 6489 |
cat confdefs.h >>conftest.$ac_ext |
| 6490 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6491 |
/* end confdefs.h. */ |
| 6492 |
#include <stddef.h> |
| 6493 |
int |
| 6494 |
main () |
| 6495 |
{ |
| 6496 |
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 6497 |
test_array [0] = 0 |
| 6498 |
|
| 6499 |
; |
| 6500 |
return 0; |
| 6501 |
} |
| 6502 |
_ACEOF |
| 6503 |
rm -f conftest.$ac_objext |
| 6504 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6505 |
(eval $ac_compile) 2>conftest.er1 |
| 6506 |
ac_status=$? |
| 6507 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6508 |
rm -f conftest.er1 |
| 6509 |
cat conftest.err >&5 |
| 6510 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6511 |
(exit $ac_status); } && |
| 6512 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6513 |
|| test ! -s conftest.err' |
| 6514 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6515 |
(eval $ac_try) 2>&5 |
| 6516 |
ac_status=$? |
| 6517 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6518 |
(exit $ac_status); }; } && |
| 6519 |
{ ac_try='test -s conftest.$ac_objext' |
| 6520 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6521 |
(eval $ac_try) 2>&5 |
| 6522 |
ac_status=$? |
| 6523 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6524 |
(exit $ac_status); }; }; then |
| 6525 |
ac_hi=$ac_mid |
| 6526 |
else |
| 6527 |
echo "$as_me: failed program was:" >&5 |
| 6528 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6529 |
|
| 6530 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6531 |
fi |
| 6532 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6533 |
done |
| 6534 |
case $ac_lo in |
| 6535 |
?*) res_hi=$ac_lo;; |
| 6536 |
'') result=? ;; |
| 6537 |
esac |
| 6538 |
else |
| 6539 |
if test "$cross_compiling" = yes; then |
| 6540 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6541 |
See \`config.log' for more details." >&5 |
| 6542 |
echo "$as_me: error: cannot run test program while cross compiling |
| 6543 |
See \`config.log' for more details." >&2;} |
| 6544 |
{ (exit 1); exit 1; }; } |
| 6545 |
else |
| 6546 |
cat >conftest.$ac_ext <<_ACEOF |
| 6547 |
/* confdefs.h. */ |
| 6548 |
_ACEOF |
| 6549 |
cat confdefs.h >>conftest.$ac_ext |
| 6550 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6551 |
/* end confdefs.h. */ |
| 6552 |
#include <stddef.h> |
| 6553 |
long longval () { return ~(size_t)0 / 10; } |
| 6554 |
unsigned long ulongval () { return ~(size_t)0 / 10; } |
| 6555 |
#include <stdio.h> |
| 6556 |
#include <stdlib.h> |
| 6557 |
int |
| 6558 |
main () |
| 6559 |
{ |
| 6560 |
|
| 6561 |
FILE *f = fopen ("conftest.val", "w"); |
| 6562 |
if (! f) |
| 6563 |
exit (1); |
| 6564 |
if ((~(size_t)0 / 10) < 0) |
| 6565 |
{ |
| 6566 |
long i = longval (); |
| 6567 |
if (i != (~(size_t)0 / 10)) |
| 6568 |
exit (1); |
| 6569 |
fprintf (f, "%ld\n", i); |
| 6570 |
} |
| 6571 |
else |
| 6572 |
{ |
| 6573 |
unsigned long i = ulongval (); |
| 6574 |
if (i != (~(size_t)0 / 10)) |
| 6575 |
exit (1); |
| 6576 |
fprintf (f, "%lu\n", i); |
| 6577 |
} |
| 6578 |
exit (ferror (f) || fclose (f) != 0); |
| 6579 |
|
| 6580 |
; |
| 6581 |
return 0; |
| 6582 |
} |
| 6583 |
_ACEOF |
| 6584 |
rm -f conftest$ac_exeext |
| 6585 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6586 |
(eval $ac_link) 2>&5 |
| 6587 |
ac_status=$? |
| 6588 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6590 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6591 |
(eval $ac_try) 2>&5 |
| 6592 |
ac_status=$? |
| 6593 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 |
(exit $ac_status); }; }; then |
| 6595 |
res_hi=`cat conftest.val` |
| 6596 |
else |
| 6597 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 6598 |
echo "$as_me: failed program was:" >&5 |
| 6599 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6600 |
|
| 6601 |
( exit $ac_status ) |
| 6602 |
result=? |
| 6603 |
fi |
| 6604 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6605 |
fi |
| 6606 |
fi |
| 6607 |
rm -f conftest.val |
| 6608 |
if test "$cross_compiling" = yes; then |
| 6609 |
# Depending upon the size, compute the lo and hi bounds. |
| 6610 |
cat >conftest.$ac_ext <<_ACEOF |
| 6611 |
/* confdefs.h. */ |
| 6612 |
_ACEOF |
| 6613 |
cat confdefs.h >>conftest.$ac_ext |
| 6614 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6615 |
/* end confdefs.h. */ |
| 6616 |
#include <stddef.h> |
| 6617 |
int |
| 6618 |
main () |
| 6619 |
{ |
| 6620 |
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 6621 |
test_array [0] = 0 |
| 6622 |
|
| 6623 |
; |
| 6624 |
return 0; |
| 6625 |
} |
| 6626 |
_ACEOF |
| 6627 |
rm -f conftest.$ac_objext |
| 6628 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6629 |
(eval $ac_compile) 2>conftest.er1 |
| 6630 |
ac_status=$? |
| 6631 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6632 |
rm -f conftest.er1 |
| 6633 |
cat conftest.err >&5 |
| 6634 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6635 |
(exit $ac_status); } && |
| 6636 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6637 |
|| test ! -s conftest.err' |
| 6638 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6639 |
(eval $ac_try) 2>&5 |
| 6640 |
ac_status=$? |
| 6641 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6642 |
(exit $ac_status); }; } && |
| 6643 |
{ ac_try='test -s conftest.$ac_objext' |
| 6644 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6645 |
(eval $ac_try) 2>&5 |
| 6646 |
ac_status=$? |
| 6647 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6648 |
(exit $ac_status); }; }; then |
| 6649 |
ac_lo=0 ac_mid=0 |
| 6650 |
while :; do |
| 6651 |
cat >conftest.$ac_ext <<_ACEOF |
| 6652 |
/* confdefs.h. */ |
| 6653 |
_ACEOF |
| 6654 |
cat confdefs.h >>conftest.$ac_ext |
| 6655 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6656 |
/* end confdefs.h. */ |
| 6657 |
#include <stddef.h> |
| 6658 |
int |
| 6659 |
main () |
| 6660 |
{ |
| 6661 |
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 6662 |
test_array [0] = 0 |
| 6663 |
|
| 6664 |
; |
| 6665 |
return 0; |
| 6666 |
} |
| 6667 |
_ACEOF |
| 6668 |
rm -f conftest.$ac_objext |
| 6669 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6670 |
(eval $ac_compile) 2>conftest.er1 |
| 6671 |
ac_status=$? |
| 6672 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6673 |
rm -f conftest.er1 |
| 6674 |
cat conftest.err >&5 |
| 6675 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6676 |
(exit $ac_status); } && |
| 6677 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6678 |
|| test ! -s conftest.err' |
| 6679 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6680 |
(eval $ac_try) 2>&5 |
| 6681 |
ac_status=$? |
| 6682 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6683 |
(exit $ac_status); }; } && |
| 6684 |
{ ac_try='test -s conftest.$ac_objext' |
| 6685 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6686 |
(eval $ac_try) 2>&5 |
| 6687 |
ac_status=$? |
| 6688 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6689 |
(exit $ac_status); }; }; then |
| 6690 |
ac_hi=$ac_mid; break |
| 6691 |
else |
| 6692 |
echo "$as_me: failed program was:" >&5 |
| 6693 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6694 |
|
| 6695 |
ac_lo=`expr $ac_mid + 1` |
| 6696 |
if test $ac_lo -le $ac_mid; then |
| 6697 |
ac_lo= ac_hi= |
| 6698 |
break |
| 6699 |
fi |
| 6700 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6701 |
fi |
| 6702 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6703 |
done |
| 6704 |
else |
| 6705 |
echo "$as_me: failed program was:" >&5 |
| 6706 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6707 |
|
| 6708 |
cat >conftest.$ac_ext <<_ACEOF |
| 6709 |
/* confdefs.h. */ |
| 6710 |
_ACEOF |
| 6711 |
cat confdefs.h >>conftest.$ac_ext |
| 6712 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6713 |
/* end confdefs.h. */ |
| 6714 |
#include <stddef.h> |
| 6715 |
int |
| 6716 |
main () |
| 6717 |
{ |
| 6718 |
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 6719 |
test_array [0] = 0 |
| 6720 |
|
| 6721 |
; |
| 6722 |
return 0; |
| 6723 |
} |
| 6724 |
_ACEOF |
| 6725 |
rm -f conftest.$ac_objext |
| 6726 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6727 |
(eval $ac_compile) 2>conftest.er1 |
| 6728 |
ac_status=$? |
| 6729 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6730 |
rm -f conftest.er1 |
| 6731 |
cat conftest.err >&5 |
| 6732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6733 |
(exit $ac_status); } && |
| 6734 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6735 |
|| test ! -s conftest.err' |
| 6736 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6737 |
(eval $ac_try) 2>&5 |
| 6738 |
ac_status=$? |
| 6739 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6740 |
(exit $ac_status); }; } && |
| 6741 |
{ ac_try='test -s conftest.$ac_objext' |
| 6742 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6743 |
(eval $ac_try) 2>&5 |
| 6744 |
ac_status=$? |
| 6745 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 |
(exit $ac_status); }; }; then |
| 6747 |
ac_hi=-1 ac_mid=-1 |
| 6748 |
while :; do |
| 6749 |
cat >conftest.$ac_ext <<_ACEOF |
| 6750 |
/* confdefs.h. */ |
| 6751 |
_ACEOF |
| 6752 |
cat confdefs.h >>conftest.$ac_ext |
| 6753 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6754 |
/* end confdefs.h. */ |
| 6755 |
#include <stddef.h> |
| 6756 |
int |
| 6757 |
main () |
| 6758 |
{ |
| 6759 |
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 6760 |
test_array [0] = 0 |
| 6761 |
|
| 6762 |
; |
| 6763 |
return 0; |
| 6764 |
} |
| 6765 |
_ACEOF |
| 6766 |
rm -f conftest.$ac_objext |
| 6767 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6768 |
(eval $ac_compile) 2>conftest.er1 |
| 6769 |
ac_status=$? |
| 6770 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6771 |
rm -f conftest.er1 |
| 6772 |
cat conftest.err >&5 |
| 6773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6774 |
(exit $ac_status); } && |
| 6775 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6776 |
|| test ! -s conftest.err' |
| 6777 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6778 |
(eval $ac_try) 2>&5 |
| 6779 |
ac_status=$? |
| 6780 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6781 |
(exit $ac_status); }; } && |
| 6782 |
{ ac_try='test -s conftest.$ac_objext' |
| 6783 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6784 |
(eval $ac_try) 2>&5 |
| 6785 |
ac_status=$? |
| 6786 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6787 |
(exit $ac_status); }; }; then |
| 6788 |
ac_lo=$ac_mid; break |
| 6789 |
else |
| 6790 |
echo "$as_me: failed program was:" >&5 |
| 6791 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6792 |
|
| 6793 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6794 |
if test $ac_mid -le $ac_hi; then |
| 6795 |
ac_lo= ac_hi= |
| 6796 |
break |
| 6797 |
fi |
| 6798 |
ac_mid=`expr 2 '*' $ac_mid` |
| 6799 |
fi |
| 6800 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6801 |
done |
| 6802 |
else |
| 6803 |
echo "$as_me: failed program was:" >&5 |
| 6804 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6805 |
|
| 6806 |
ac_lo= ac_hi= |
| 6807 |
fi |
| 6808 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6809 |
fi |
| 6810 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6811 |
# Binary search between lo and hi bounds. |
| 6812 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 6813 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6814 |
cat >conftest.$ac_ext <<_ACEOF |
| 6815 |
/* confdefs.h. */ |
| 6816 |
_ACEOF |
| 6817 |
cat confdefs.h >>conftest.$ac_ext |
| 6818 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6819 |
/* end confdefs.h. */ |
| 6820 |
#include <stddef.h> |
| 6821 |
int |
| 6822 |
main () |
| 6823 |
{ |
| 6824 |
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 6825 |
test_array [0] = 0 |
| 6826 |
|
| 6827 |
; |
| 6828 |
return 0; |
| 6829 |
} |
| 6830 |
_ACEOF |
| 6831 |
rm -f conftest.$ac_objext |
| 6832 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6833 |
(eval $ac_compile) 2>conftest.er1 |
| 6834 |
ac_status=$? |
| 6835 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6836 |
rm -f conftest.er1 |
| 6837 |
cat conftest.err >&5 |
| 6838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6839 |
(exit $ac_status); } && |
| 6840 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6841 |
|| test ! -s conftest.err' |
| 6842 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6843 |
(eval $ac_try) 2>&5 |
| 6844 |
ac_status=$? |
| 6845 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6846 |
(exit $ac_status); }; } && |
| 6847 |
{ ac_try='test -s conftest.$ac_objext' |
| 6848 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 |
(eval $ac_try) 2>&5 |
| 6850 |
ac_status=$? |
| 6851 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 |
(exit $ac_status); }; }; then |
| 6853 |
ac_hi=$ac_mid |
| 6854 |
else |
| 6855 |
echo "$as_me: failed program was:" >&5 |
| 6856 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6857 |
|
| 6858 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6859 |
fi |
| 6860 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6861 |
done |
| 6862 |
case $ac_lo in |
| 6863 |
?*) res_lo=$ac_lo;; |
| 6864 |
'') result=? ;; |
| 6865 |
esac |
| 6866 |
else |
| 6867 |
if test "$cross_compiling" = yes; then |
| 6868 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6869 |
See \`config.log' for more details." >&5 |
| 6870 |
echo "$as_me: error: cannot run test program while cross compiling |
| 6871 |
See \`config.log' for more details." >&2;} |
| 6872 |
{ (exit 1); exit 1; }; } |
| 6873 |
else |
| 6874 |
cat >conftest.$ac_ext <<_ACEOF |
| 6875 |
/* confdefs.h. */ |
| 6876 |
_ACEOF |
| 6877 |
cat confdefs.h >>conftest.$ac_ext |
| 6878 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6879 |
/* end confdefs.h. */ |
| 6880 |
#include <stddef.h> |
| 6881 |
long longval () { return ~(size_t)0 % 10; } |
| 6882 |
unsigned long ulongval () { return ~(size_t)0 % 10; } |
| 6883 |
#include <stdio.h> |
| 6884 |
#include <stdlib.h> |
| 6885 |
int |
| 6886 |
main () |
| 6887 |
{ |
| 6888 |
|
| 6889 |
FILE *f = fopen ("conftest.val", "w"); |
| 6890 |
if (! f) |
| 6891 |
exit (1); |
| 6892 |
if ((~(size_t)0 % 10) < 0) |
| 6893 |
{ |
| 6894 |
long i = longval (); |
| 6895 |
if (i != (~(size_t)0 % 10)) |
| 6896 |
exit (1); |
| 6897 |
fprintf (f, "%ld\n", i); |
| 6898 |
} |
| 6899 |
else |
| 6900 |
{ |
| 6901 |
unsigned long i = ulongval (); |
| 6902 |
if (i != (~(size_t)0 % 10)) |
| 6903 |
exit (1); |
| 6904 |
fprintf (f, "%lu\n", i); |
| 6905 |
} |
| 6906 |
exit (ferror (f) || fclose (f) != 0); |
| 6907 |
|
| 6908 |
; |
| 6909 |
return 0; |
| 6910 |
} |
| 6911 |
_ACEOF |
| 6912 |
rm -f conftest$ac_exeext |
| 6913 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6914 |
(eval $ac_link) 2>&5 |
| 6915 |
ac_status=$? |
| 6916 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6917 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6918 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6919 |
(eval $ac_try) 2>&5 |
| 6920 |
ac_status=$? |
| 6921 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6922 |
(exit $ac_status); }; }; then |
| 6923 |
res_lo=`cat conftest.val` |
| 6924 |
else |
| 6925 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 6926 |
echo "$as_me: failed program was:" >&5 |
| 6927 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6928 |
|
| 6929 |
( exit $ac_status ) |
| 6930 |
result=? |
| 6931 |
fi |
| 6932 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6933 |
fi |
| 6934 |
fi |
| 6935 |
rm -f conftest.val |
| 6936 |
if test "$cross_compiling" = yes; then |
| 6937 |
# Depending upon the size, compute the lo and hi bounds. |
| 6938 |
cat >conftest.$ac_ext <<_ACEOF |
| 6939 |
/* confdefs.h. */ |
| 6940 |
_ACEOF |
| 6941 |
cat confdefs.h >>conftest.$ac_ext |
| 6942 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6943 |
/* end confdefs.h. */ |
| 6944 |
#include <stddef.h> |
| 6945 |
int |
| 6946 |
main () |
| 6947 |
{ |
| 6948 |
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 6949 |
test_array [0] = 0 |
| 6950 |
|
| 6951 |
; |
| 6952 |
return 0; |
| 6953 |
} |
| 6954 |
_ACEOF |
| 6955 |
rm -f conftest.$ac_objext |
| 6956 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6957 |
(eval $ac_compile) 2>conftest.er1 |
| 6958 |
ac_status=$? |
| 6959 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6960 |
rm -f conftest.er1 |
| 6961 |
cat conftest.err >&5 |
| 6962 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6963 |
(exit $ac_status); } && |
| 6964 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6965 |
|| test ! -s conftest.err' |
| 6966 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6967 |
(eval $ac_try) 2>&5 |
| 6968 |
ac_status=$? |
| 6969 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6970 |
(exit $ac_status); }; } && |
| 6971 |
{ ac_try='test -s conftest.$ac_objext' |
| 6972 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6973 |
(eval $ac_try) 2>&5 |
| 6974 |
ac_status=$? |
| 6975 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6976 |
(exit $ac_status); }; }; then |
| 6977 |
ac_lo=0 ac_mid=0 |
| 6978 |
while :; do |
| 6979 |
cat >conftest.$ac_ext <<_ACEOF |
| 6980 |
/* confdefs.h. */ |
| 6981 |
_ACEOF |
| 6982 |
cat confdefs.h >>conftest.$ac_ext |
| 6983 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6984 |
/* end confdefs.h. */ |
| 6985 |
#include <stddef.h> |
| 6986 |
int |
| 6987 |
main () |
| 6988 |
{ |
| 6989 |
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 6990 |
test_array [0] = 0 |
| 6991 |
|
| 6992 |
; |
| 6993 |
return 0; |
| 6994 |
} |
| 6995 |
_ACEOF |
| 6996 |
rm -f conftest.$ac_objext |
| 6997 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6998 |
(eval $ac_compile) 2>conftest.er1 |
| 6999 |
ac_status=$? |
| 7000 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7001 |
rm -f conftest.er1 |
| 7002 |
cat conftest.err >&5 |
| 7003 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7004 |
(exit $ac_status); } && |
| 7005 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7006 |
|| test ! -s conftest.err' |
| 7007 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7008 |
(eval $ac_try) 2>&5 |
| 7009 |
ac_status=$? |
| 7010 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7011 |
(exit $ac_status); }; } && |
| 7012 |
{ ac_try='test -s conftest.$ac_objext' |
| 7013 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7014 |
(eval $ac_try) 2>&5 |
| 7015 |
ac_status=$? |
| 7016 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7017 |
(exit $ac_status); }; }; then |
| 7018 |
ac_hi=$ac_mid; break |
| 7019 |
else |
| 7020 |
echo "$as_me: failed program was:" >&5 |
| 7021 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7022 |
|
| 7023 |
ac_lo=`expr $ac_mid + 1` |
| 7024 |
if test $ac_lo -le $ac_mid; then |
| 7025 |
ac_lo= ac_hi= |
| 7026 |
break |
| 7027 |
fi |
| 7028 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7029 |
fi |
| 7030 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7031 |
done |
| 7032 |
else |
| 7033 |
echo "$as_me: failed program was:" >&5 |
| 7034 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7035 |
|
| 7036 |
cat >conftest.$ac_ext <<_ACEOF |
| 7037 |
/* confdefs.h. */ |
| 7038 |
_ACEOF |
| 7039 |
cat confdefs.h >>conftest.$ac_ext |
| 7040 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7041 |
/* end confdefs.h. */ |
| 7042 |
#include <stddef.h> |
| 7043 |
int |
| 7044 |
main () |
| 7045 |
{ |
| 7046 |
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7047 |
test_array [0] = 0 |
| 7048 |
|
| 7049 |
; |
| 7050 |
return 0; |
| 7051 |
} |
| 7052 |
_ACEOF |
| 7053 |
rm -f conftest.$ac_objext |
| 7054 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7055 |
(eval $ac_compile) 2>conftest.er1 |
| 7056 |
ac_status=$? |
| 7057 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7058 |
rm -f conftest.er1 |
| 7059 |
cat conftest.err >&5 |
| 7060 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7061 |
(exit $ac_status); } && |
| 7062 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7063 |
|| test ! -s conftest.err' |
| 7064 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7065 |
(eval $ac_try) 2>&5 |
| 7066 |
ac_status=$? |
| 7067 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7068 |
(exit $ac_status); }; } && |
| 7069 |
{ ac_try='test -s conftest.$ac_objext' |
| 7070 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7071 |
(eval $ac_try) 2>&5 |
| 7072 |
ac_status=$? |
| 7073 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7074 |
(exit $ac_status); }; }; then |
| 7075 |
ac_hi=-1 ac_mid=-1 |
| 7076 |
while :; do |
| 7077 |
cat >conftest.$ac_ext <<_ACEOF |
| 7078 |
/* confdefs.h. */ |
| 7079 |
_ACEOF |
| 7080 |
cat confdefs.h >>conftest.$ac_ext |
| 7081 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7082 |
/* end confdefs.h. */ |
| 7083 |
#include <stddef.h> |
| 7084 |
int |
| 7085 |
main () |
| 7086 |
{ |
| 7087 |
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7088 |
test_array [0] = 0 |
| 7089 |
|
| 7090 |
; |
| 7091 |
return 0; |
| 7092 |
} |
| 7093 |
_ACEOF |
| 7094 |
rm -f conftest.$ac_objext |
| 7095 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7096 |
(eval $ac_compile) 2>conftest.er1 |
| 7097 |
ac_status=$? |
| 7098 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7099 |
rm -f conftest.er1 |
| 7100 |
cat conftest.err >&5 |
| 7101 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 |
(exit $ac_status); } && |
| 7103 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7104 |
|| test ! -s conftest.err' |
| 7105 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7106 |
(eval $ac_try) 2>&5 |
| 7107 |
ac_status=$? |
| 7108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7109 |
(exit $ac_status); }; } && |
| 7110 |
{ ac_try='test -s conftest.$ac_objext' |
| 7111 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7112 |
(eval $ac_try) 2>&5 |
| 7113 |
ac_status=$? |
| 7114 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7115 |
(exit $ac_status); }; }; then |
| 7116 |
ac_lo=$ac_mid; break |
| 7117 |
else |
| 7118 |
echo "$as_me: failed program was:" >&5 |
| 7119 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7120 |
|
| 7121 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7122 |
if test $ac_mid -le $ac_hi; then |
| 7123 |
ac_lo= ac_hi= |
| 7124 |
break |
| 7125 |
fi |
| 7126 |
ac_mid=`expr 2 '*' $ac_mid` |
| 7127 |
fi |
| 7128 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7129 |
done |
| 7130 |
else |
| 7131 |
echo "$as_me: failed program was:" >&5 |
| 7132 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7133 |
|
| 7134 |
ac_lo= ac_hi= |
| 7135 |
fi |
| 7136 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7137 |
fi |
| 7138 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7139 |
# Binary search between lo and hi bounds. |
| 7140 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 7141 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7142 |
cat >conftest.$ac_ext <<_ACEOF |
| 7143 |
/* confdefs.h. */ |
| 7144 |
_ACEOF |
| 7145 |
cat confdefs.h >>conftest.$ac_ext |
| 7146 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7147 |
/* end confdefs.h. */ |
| 7148 |
#include <stddef.h> |
| 7149 |
int |
| 7150 |
main () |
| 7151 |
{ |
| 7152 |
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7153 |
test_array [0] = 0 |
| 7154 |
|
| 7155 |
; |
| 7156 |
return 0; |
| 7157 |
} |
| 7158 |
_ACEOF |
| 7159 |
rm -f conftest.$ac_objext |
| 7160 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7161 |
(eval $ac_compile) 2>conftest.er1 |
| 7162 |
ac_status=$? |
| 7163 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7164 |
rm -f conftest.er1 |
| 7165 |
cat conftest.err >&5 |
| 7166 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7167 |
(exit $ac_status); } && |
| 7168 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7169 |
|| test ! -s conftest.err' |
| 7170 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7171 |
(eval $ac_try) 2>&5 |
| 7172 |
ac_status=$? |
| 7173 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7174 |
(exit $ac_status); }; } && |
| 7175 |
{ ac_try='test -s conftest.$ac_objext' |
| 7176 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7177 |
(eval $ac_try) 2>&5 |
| 7178 |
ac_status=$? |
| 7179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7180 |
(exit $ac_status); }; }; then |
| 7181 |
ac_hi=$ac_mid |
| 7182 |
else |
| 7183 |
echo "$as_me: failed program was:" >&5 |
| 7184 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7185 |
|
| 7186 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7187 |
fi |
| 7188 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7189 |
done |
| 7190 |
case $ac_lo in |
| 7191 |
?*) fits_in_uint=$ac_lo;; |
| 7192 |
'') result=? ;; |
| 7193 |
esac |
| 7194 |
else |
| 7195 |
if test "$cross_compiling" = yes; then |
| 7196 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7197 |
See \`config.log' for more details." >&5 |
| 7198 |
echo "$as_me: error: cannot run test program while cross compiling |
| 7199 |
See \`config.log' for more details." >&2;} |
| 7200 |
{ (exit 1); exit 1; }; } |
| 7201 |
else |
| 7202 |
cat >conftest.$ac_ext <<_ACEOF |
| 7203 |
/* confdefs.h. */ |
| 7204 |
_ACEOF |
| 7205 |
cat confdefs.h >>conftest.$ac_ext |
| 7206 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7207 |
/* end confdefs.h. */ |
| 7208 |
#include <stddef.h> |
| 7209 |
long longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7210 |
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7211 |
#include <stdio.h> |
| 7212 |
#include <stdlib.h> |
| 7213 |
int |
| 7214 |
main () |
| 7215 |
{ |
| 7216 |
|
| 7217 |
FILE *f = fopen ("conftest.val", "w"); |
| 7218 |
if (! f) |
| 7219 |
exit (1); |
| 7220 |
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7221 |
{ |
| 7222 |
long i = longval (); |
| 7223 |
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 7224 |
exit (1); |
| 7225 |
fprintf (f, "%ld\n", i); |
| 7226 |
} |
| 7227 |
else |
| 7228 |
{ |
| 7229 |
unsigned long i = ulongval (); |
| 7230 |
if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 7231 |
exit (1); |
| 7232 |
fprintf (f, "%lu\n", i); |
| 7233 |
} |
| 7234 |
exit (ferror (f) || fclose (f) != 0); |
| 7235 |
|
| 7236 |
; |
| 7237 |
return 0; |
| 7238 |
} |
| 7239 |
_ACEOF |
| 7240 |
rm -f conftest$ac_exeext |
| 7241 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7242 |
(eval $ac_link) 2>&5 |
| 7243 |
ac_status=$? |
| 7244 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7245 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7246 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7247 |
(eval $ac_try) 2>&5 |
| 7248 |
ac_status=$? |
| 7249 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7250 |
(exit $ac_status); }; }; then |
| 7251 |
fits_in_uint=`cat conftest.val` |
| 7252 |
else |
| 7253 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 7254 |
echo "$as_me: failed program was:" >&5 |
| 7255 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7256 |
|
| 7257 |
( exit $ac_status ) |
| 7258 |
result=? |
| 7259 |
fi |
| 7260 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7261 |
fi |
| 7262 |
fi |
| 7263 |
rm -f conftest.val |
| 7264 |
if test "$fits_in_uint" = 1; then |
| 7265 |
cat >conftest.$ac_ext <<_ACEOF |
| 7266 |
/* confdefs.h. */ |
| 7267 |
_ACEOF |
| 7268 |
cat confdefs.h >>conftest.$ac_ext |
| 7269 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7270 |
/* end confdefs.h. */ |
| 7271 |
#include <stddef.h> |
| 7272 |
extern size_t foo; |
| 7273 |
extern unsigned long foo; |
| 7274 |
|
| 7275 |
int |
| 7276 |
main () |
| 7277 |
{ |
| 7278 |
|
| 7279 |
; |
| 7280 |
return 0; |
| 7281 |
} |
| 7282 |
_ACEOF |
| 7283 |
rm -f conftest.$ac_objext |
| 7284 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7285 |
(eval $ac_compile) 2>conftest.er1 |
| 7286 |
ac_status=$? |
| 7287 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7288 |
rm -f conftest.er1 |
| 7289 |
cat conftest.err >&5 |
| 7290 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7291 |
(exit $ac_status); } && |
| 7292 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7293 |
|| test ! -s conftest.err' |
| 7294 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7295 |
(eval $ac_try) 2>&5 |
| 7296 |
ac_status=$? |
| 7297 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7298 |
(exit $ac_status); }; } && |
| 7299 |
{ ac_try='test -s conftest.$ac_objext' |
| 7300 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7301 |
(eval $ac_try) 2>&5 |
| 7302 |
ac_status=$? |
| 7303 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7304 |
(exit $ac_status); }; }; then |
| 7305 |
fits_in_uint=0 |
| 7306 |
else |
| 7307 |
echo "$as_me: failed program was:" >&5 |
| 7308 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7309 |
|
| 7310 |
fi |
| 7311 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7312 |
fi |
| 7313 |
if test -z "$result"; then |
| 7314 |
if test "$fits_in_uint" = 1; then |
| 7315 |
result="$res_hi$res_lo"U |
| 7316 |
else |
| 7317 |
result="$res_hi$res_lo"UL |
| 7318 |
fi |
| 7319 |
else |
| 7320 |
result='~(size_t)0' |
| 7321 |
fi |
| 7322 |
fi |
| 7323 |
echo "$as_me:$LINENO: result: $result" >&5 |
| 7324 |
echo "${ECHO_T}$result" >&6 |
| 7325 |
if test "$result" != yes; then |
| 7326 |
|
| 7327 |
cat >>confdefs.h <<_ACEOF |
| 7328 |
#define SIZE_MAX $result |
| 7329 |
_ACEOF |
| 7330 |
|
| 7331 |
fi |
| 7332 |
|
| 7333 |
echo "$as_me:$LINENO: checking for inline" >&5 |
| 7334 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 7335 |
if test "${ac_cv_c_inline+set}" = set; then |
| 7336 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7337 |
else |
| 7338 |
ac_cv_c_inline=no |
| 7339 |
for ac_kw in inline __inline__ __inline; do |
| 7340 |
cat >conftest.$ac_ext <<_ACEOF |
| 7341 |
/* confdefs.h. */ |
| 7342 |
_ACEOF |
| 7343 |
cat confdefs.h >>conftest.$ac_ext |
| 7344 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7345 |
/* end confdefs.h. */ |
| 7346 |
#ifndef __cplusplus |
| 7347 |
typedef int foo_t; |
| 7348 |
static $ac_kw foo_t static_foo () {return 0; } |
| 7349 |
$ac_kw foo_t foo () {return 0; } |
| 7350 |
#endif |
| 7351 |
|
| 7352 |
_ACEOF |
| 7353 |
rm -f conftest.$ac_objext |
| 7354 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7355 |
(eval $ac_compile) 2>conftest.er1 |
| 7356 |
ac_status=$? |
| 7357 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7358 |
rm -f conftest.er1 |
| 7359 |
cat conftest.err >&5 |
| 7360 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7361 |
(exit $ac_status); } && |
| 7362 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7363 |
|| test ! -s conftest.err' |
| 7364 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7365 |
(eval $ac_try) 2>&5 |
| 7366 |
ac_status=$? |
| 7367 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7368 |
(exit $ac_status); }; } && |
| 7369 |
{ ac_try='test -s conftest.$ac_objext' |
| 7370 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7371 |
(eval $ac_try) 2>&5 |
| 7372 |
ac_status=$? |
| 7373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7374 |
(exit $ac_status); }; }; then |
| 7375 |
ac_cv_c_inline=$ac_kw; break |
| 7376 |
else |
| 7377 |
echo "$as_me: failed program was:" >&5 |
| 7378 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7379 |
|
| 7380 |
fi |
| 7381 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7382 |
done |
| 7383 |
|
| 7384 |
fi |
| 7385 |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 7386 |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 7387 |
|
| 7388 |
|
| 7389 |
case $ac_cv_c_inline in |
| 7390 |
inline | yes) ;; |
| 7391 |
*) |
| 7392 |
case $ac_cv_c_inline in |
| 7393 |
no) ac_val=;; |
| 7394 |
*) ac_val=$ac_cv_c_inline;; |
| 7395 |
esac |
| 7396 |
cat >>confdefs.h <<_ACEOF |
| 7397 |
#ifndef __cplusplus |
| 7398 |
#define inline $ac_val |
| 7399 |
#endif |
| 7400 |
_ACEOF |
| 7401 |
;; |
| 7402 |
esac |
| 7403 |
|
| 7404 |
|
| 7405 |
|
| 7406 |
|
| 7407 |
|
| 7408 |
for ac_header in stdint.h |
| 7409 |
do |
| 7410 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7411 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7412 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7413 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7414 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7415 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7416 |
fi |
| 7417 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7418 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7419 |
else |
| 7420 |
# Is the header compilable? |
| 7421 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7422 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7423 |
cat >conftest.$ac_ext <<_ACEOF |
| 7424 |
/* confdefs.h. */ |
| 7425 |
_ACEOF |
| 7426 |
cat confdefs.h >>conftest.$ac_ext |
| 7427 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7428 |
/* end confdefs.h. */ |
| 7429 |
$ac_includes_default |
| 7430 |
#include <$ac_header> |
| 7431 |
_ACEOF |
| 7432 |
rm -f conftest.$ac_objext |
| 7433 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7434 |
(eval $ac_compile) 2>conftest.er1 |
| 7435 |
ac_status=$? |
| 7436 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7437 |
rm -f conftest.er1 |
| 7438 |
cat conftest.err >&5 |
| 7439 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7440 |
(exit $ac_status); } && |
| 7441 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7442 |
|| test ! -s conftest.err' |
| 7443 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7444 |
(eval $ac_try) 2>&5 |
| 7445 |
ac_status=$? |
| 7446 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7447 |
(exit $ac_status); }; } && |
| 7448 |
{ ac_try='test -s conftest.$ac_objext' |
| 7449 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7450 |
(eval $ac_try) 2>&5 |
| 7451 |
ac_status=$? |
| 7452 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7453 |
(exit $ac_status); }; }; then |
| 7454 |
ac_header_compiler=yes |
| 7455 |
else |
| 7456 |
echo "$as_me: failed program was:" >&5 |
| 7457 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7458 |
|
| 7459 |
ac_header_compiler=no |
| 7460 |
fi |
| 7461 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7462 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7463 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7464 |
|
| 7465 |
# Is the header present? |
| 7466 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7467 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7468 |
cat >conftest.$ac_ext <<_ACEOF |
| 7469 |
/* confdefs.h. */ |
| 7470 |
_ACEOF |
| 7471 |
cat confdefs.h >>conftest.$ac_ext |
| 7472 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7473 |
/* end confdefs.h. */ |
| 7474 |
#include <$ac_header> |
| 7475 |
_ACEOF |
| 7476 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7477 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7478 |
ac_status=$? |
| 7479 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7480 |
rm -f conftest.er1 |
| 7481 |
cat conftest.err >&5 |
| 7482 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 |
(exit $ac_status); } >/dev/null; then |
| 7484 |
if test -s conftest.err; then |
| 7485 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7486 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7487 |
else |
| 7488 |
ac_cpp_err= |
| 7489 |
fi |
| 7490 |
else |
| 7491 |
ac_cpp_err=yes |
| 7492 |
fi |
| 7493 |
if test -z "$ac_cpp_err"; then |
| 7494 |
ac_header_preproc=yes |
| 7495 |
else |
| 7496 |
echo "$as_me: failed program was:" >&5 |
| 7497 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7498 |
|
| 7499 |
ac_header_preproc=no |
| 7500 |
fi |
| 7501 |
rm -f conftest.err conftest.$ac_ext |
| 7502 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7503 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7504 |
|
| 7505 |
# So? What about this header? |
| 7506 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7507 |
yes:no: ) |
| 7508 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7509 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7510 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7511 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7512 |
ac_header_preproc=yes |
| 7513 |
;; |
| 7514 |
no:yes:* ) |
| 7515 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7516 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7517 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7518 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7519 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7520 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7521 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7522 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7523 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7524 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7525 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7526 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7527 |
( |
| 7528 |
cat <<\_ASBOX |
| 7529 |
## ------------------------------ ## |
| 7530 |
## Report this to bug-cvs@gnu.org ## |
| 7531 |
## ------------------------------ ## |
| 7532 |
_ASBOX |
| 7533 |
) | |
| 7534 |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7535 |
;; |
| 7536 |
esac |
| 7537 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7538 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7539 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7540 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7541 |
else |
| 7542 |
eval "$as_ac_Header=\$ac_header_preproc" |
| 7543 |
fi |
| 7544 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7545 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7546 |
|
| 7547 |
fi |
| 7548 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7549 |
cat >>confdefs.h <<_ACEOF |
| 7550 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7551 |
_ACEOF |
| 7552 |
|
| 7553 |
fi |
| 7554 |
|
| 7555 |
done |
| 7556 |
|
| 7557 |
|
| 7558 |
|
| 7559 |
|
| 6105 |
cat >>confdefs.h <<\_ACEOF |
7560 |
cat >>confdefs.h <<\_ACEOF |
| 6106 |
#define getpass cvs_getpass |
7561 |
#define getpass cvs_getpass |
| 6107 |
_ACEOF |
7562 |
_ACEOF |