configure revision 1.50 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libnbcompat noversion.
4 #
5 # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libnbcompat'
271 PACKAGE_TARNAME='libnbcompat'
272 PACKAGE_VERSION='noversion'
273 PACKAGE_STRING='libnbcompat noversion'
274 PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
275
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BSHELL ALLOCA LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838 case $ac_init_help in
839 short | recursive ) echo "Configuration of libnbcompat noversion:";;
840 esac
841 cat <<\_ACEOF
842
843 Some influential environment variables:
844 CC C compiler command
845 CFLAGS C compiler flags
846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
847 nonstandard directory <lib dir>
848 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
849 headers in a nonstandard directory <include dir>
850 CPP C preprocessor
851
852 Use these variables to override the choices made by `configure' or to help
853 it to find libraries and programs with nonstandard names/locations.
854
855 Report bugs to <lib-bug-people@NetBSD.org>.
856 _ACEOF
857 fi
858
859 if test "$ac_init_help" = "recursive"; then
860 # If there are subdirs, report their specific --help.
861 ac_popdir=`pwd`
862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863 test -d $ac_dir || continue
864 ac_builddir=.
865
866 if test "$ac_dir" != .; then
867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868 # A "../" for each directory in $ac_dir_suffix.
869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 else
871 ac_dir_suffix= ac_top_builddir=
872 fi
873
874 case $srcdir in
875 .) # No --srcdir option. We are building in place.
876 ac_srcdir=.
877 if test -z "$ac_top_builddir"; then
878 ac_top_srcdir=.
879 else
880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 fi ;;
882 [\\/]* | ?:[\\/]* ) # Absolute path.
883 ac_srcdir=$srcdir$ac_dir_suffix;
884 ac_top_srcdir=$srcdir ;;
885 *) # Relative path.
886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 esac
889
890 # Do not use `cd foo && pwd` to compute absolute paths, because
891 # the directories may not exist.
892 case `pwd` in
893 .) ac_abs_builddir="$ac_dir";;
894 *)
895 case "$ac_dir" in
896 .) ac_abs_builddir=`pwd`;;
897 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898 *) ac_abs_builddir=`pwd`/"$ac_dir";;
899 esac;;
900 esac
901 case $ac_abs_builddir in
902 .) ac_abs_top_builddir=${ac_top_builddir}.;;
903 *)
904 case ${ac_top_builddir}. in
905 .) ac_abs_top_builddir=$ac_abs_builddir;;
906 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
908 esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_srcdir=$ac_srcdir;;
912 *)
913 case $ac_srcdir in
914 .) ac_abs_srcdir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_srcdir=$ac_top_srcdir;;
921 *)
922 case $ac_top_srcdir in
923 .) ac_abs_top_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926 esac;;
927 esac
928
929 cd $ac_dir
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
932 echo
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
935 echo
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
939 echo
940 $ac_configure --help
941 else
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 fi
944 cd $ac_popdir
945 done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950 cat <<\_ACEOF
951 libnbcompat configure noversion
952 generated by GNU Autoconf 2.59
953
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958 exit 0
959 fi
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
964
965 It was created by libnbcompat $as_me noversion, which was
966 generated by GNU Autoconf 2.59. Invocation command line was
967
968 $ $0 $@
969
970 _ACEOF
971 {
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
976
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993
994 _ASUNAME
995
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
998 do
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002 done
1003
1004 } >&5
1005
1006 cat >&5 <<_ACEOF
1007
1008
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1012
1013 _ACEOF
1014
1015
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1027 do
1028 for ac_arg
1029 do
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 2)
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1053 ;;
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1056 fi
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1060 ;;
1061 esac
1062 done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1074 {
1075 echo
1076
1077 cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1084 {
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091 ;;
1092 *)
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ;;
1096 esac;
1097 }
1098 echo
1099
1100 cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1107 do
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1112
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1121 do
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1126 fi
1127
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1137 fi
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1145 ' 0
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1150
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1155
1156 # Predefined preprocessor variables.
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1181
1182
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190 fi
1191 fi
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1197 . "$ac_site_file"
1198 fi
1199 done
1200
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1211 fi
1212 else
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1216 fi
1217
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1237 *)
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1259 fi
1260 done
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1267 fi
1268
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 ac_config_headers="$ac_config_headers nbtool_config.h"
1302
1303 ac_config_files="$ac_config_files defs.mk"
1304
1305
1306 # AC_NETBSD
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313 if test -n "$ac_tool_prefix"; then
1314 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1315 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CC+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CC"; then
1322 ac_cv_prog_CC="$CC" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1326 do
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1334 fi
1335 done
1336 done
1337
1338 fi
1339 fi
1340 CC=$ac_cv_prog_CC
1341 if test -n "$CC"; then
1342 echo "$as_me:$LINENO: result: $CC" >&5
1343 echo "${ECHO_T}$CC" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1347 fi
1348
1349 fi
1350 if test -z "$ac_cv_prog_CC"; then
1351 ac_ct_CC=$CC
1352 # Extract the first word of "gcc", so it can be a program name with args.
1353 set dummy gcc; ac_word=$2
1354 echo "$as_me:$LINENO: checking for $ac_word" >&5
1355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 if test -n "$ac_ct_CC"; then
1360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361 else
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 for ac_exec_ext in '' $ac_executable_extensions; do
1368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1369 ac_cv_prog_ac_ct_CC="gcc"
1370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1371 break 2
1372 fi
1373 done
1374 done
1375
1376 fi
1377 fi
1378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379 if test -n "$ac_ct_CC"; then
1380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1381 echo "${ECHO_T}$ac_ct_CC" >&6
1382 else
1383 echo "$as_me:$LINENO: result: no" >&5
1384 echo "${ECHO_T}no" >&6
1385 fi
1386
1387 CC=$ac_ct_CC
1388 else
1389 CC="$ac_cv_prog_CC"
1390 fi
1391
1392 if test -z "$CC"; then
1393 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}cc; ac_word=$2
1396 echo "$as_me:$LINENO: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 else
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407 IFS=$as_save_IFS
1408 test -z "$as_dir" && as_dir=.
1409 for ac_exec_ext in '' $ac_executable_extensions; do
1410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411 ac_cv_prog_CC="${ac_tool_prefix}cc"
1412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 break 2
1414 fi
1415 done
1416 done
1417
1418 fi
1419 fi
1420 CC=$ac_cv_prog_CC
1421 if test -n "$CC"; then
1422 echo "$as_me:$LINENO: result: $CC" >&5
1423 echo "${ECHO_T}$CC" >&6
1424 else
1425 echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1427 fi
1428
1429 fi
1430 if test -z "$ac_cv_prog_CC"; then
1431 ac_ct_CC=$CC
1432 # Extract the first word of "cc", so it can be a program name with args.
1433 set dummy cc; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 if test -n "$ac_ct_CC"; then
1440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1441 else
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 for as_dir in $PATH
1444 do
1445 IFS=$as_save_IFS
1446 test -z "$as_dir" && as_dir=.
1447 for ac_exec_ext in '' $ac_executable_extensions; do
1448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449 ac_cv_prog_ac_ct_CC="cc"
1450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 break 2
1452 fi
1453 done
1454 done
1455
1456 fi
1457 fi
1458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459 if test -n "$ac_ct_CC"; then
1460 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1461 echo "${ECHO_T}$ac_ct_CC" >&6
1462 else
1463 echo "$as_me:$LINENO: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1465 fi
1466
1467 CC=$ac_ct_CC
1468 else
1469 CC="$ac_cv_prog_CC"
1470 fi
1471
1472 fi
1473 if test -z "$CC"; then
1474 # Extract the first word of "cc", so it can be a program name with args.
1475 set dummy cc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 ac_prog_rejected=no
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1493 ac_prog_rejected=yes
1494 continue
1495 fi
1496 ac_cv_prog_CC="cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500 done
1501 done
1502
1503 if test $ac_prog_rejected = yes; then
1504 # We found a bogon in the path, so make sure we never use it.
1505 set dummy $ac_cv_prog_CC
1506 shift
1507 if test $# != 0; then
1508 # We chose a different compiler from the bogus one.
1509 # However, it has the same basename, so the bogon will be chosen
1510 # first if we set CC to just the basename; use the full file name.
1511 shift
1512 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1513 fi
1514 fi
1515 fi
1516 fi
1517 CC=$ac_cv_prog_CC
1518 if test -n "$CC"; then
1519 echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1521 else
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 fi
1525
1526 fi
1527 if test -z "$CC"; then
1528 if test -n "$ac_tool_prefix"; then
1529 for ac_prog in cl
1530 do
1531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1533 echo "$as_me:$LINENO: checking for $ac_word" >&5
1534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535 if test "${ac_cv_prog_CC+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 if test -n "$CC"; then
1539 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 else
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 for as_dir in $PATH
1543 do
1544 IFS=$as_save_IFS
1545 test -z "$as_dir" && as_dir=.
1546 for ac_exec_ext in '' $ac_executable_extensions; do
1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552 done
1553 done
1554
1555 fi
1556 fi
1557 CC=$ac_cv_prog_CC
1558 if test -n "$CC"; then
1559 echo "$as_me:$LINENO: result: $CC" >&5
1560 echo "${ECHO_T}$CC" >&6
1561 else
1562 echo "$as_me:$LINENO: result: no" >&5
1563 echo "${ECHO_T}no" >&6
1564 fi
1565
1566 test -n "$CC" && break
1567 done
1568 fi
1569 if test -z "$CC"; then
1570 ac_ct_CC=$CC
1571 for ac_prog in cl
1572 do
1573 # Extract the first word of "$ac_prog", so it can be a program name with args.
1574 set dummy $ac_prog; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 if test -n "$ac_ct_CC"; then
1581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_ac_ct_CC="$ac_prog"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1593 fi
1594 done
1595 done
1596
1597 fi
1598 fi
1599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600 if test -n "$ac_ct_CC"; then
1601 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1602 echo "${ECHO_T}$ac_ct_CC" >&6
1603 else
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 fi
1607
1608 test -n "$ac_ct_CC" && break
1609 done
1610
1611 CC=$ac_ct_CC
1612 fi
1613
1614 fi
1615
1616
1617 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1618 See \`config.log' for more details." >&5
1619 echo "$as_me: error: no acceptable C compiler found in \$PATH
1620 See \`config.log' for more details." >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 # Provide some information about the compiler.
1624 echo "$as_me:$LINENO:" \
1625 "checking for C compiler version" >&5
1626 ac_compiler=`set X $ac_compile; echo $2`
1627 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1628 (eval $ac_compiler --version </dev/null >&5) 2>&5
1629 ac_status=$?
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }
1632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1633 (eval $ac_compiler -v </dev/null >&5) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1637 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1638 (eval $ac_compiler -V </dev/null >&5) 2>&5
1639 ac_status=$?
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); }
1642
1643 cat >conftest.$ac_ext <<_ACEOF
1644 /* confdefs.h. */
1645 _ACEOF
1646 cat confdefs.h >>conftest.$ac_ext
1647 cat >>conftest.$ac_ext <<_ACEOF
1648 /* end confdefs.h. */
1649
1650 int
1651 main ()
1652 {
1653
1654 ;
1655 return 0;
1656 }
1657 _ACEOF
1658 ac_clean_files_save=$ac_clean_files
1659 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1660 # Try to create an executable without -o first, disregard a.out.
1661 # It will help us diagnose broken compilers, and finding out an intuition
1662 # of exeext.
1663 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1664 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1665 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1666 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1667 (eval $ac_link_default) 2>&5
1668 ac_status=$?
1669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670 (exit $ac_status); }; then
1671 # Find the output, starting from the most likely. This scheme is
1672 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1673 # resort.
1674
1675 # Be careful to initialize this variable, since it used to be cached.
1676 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1677 ac_cv_exeext=
1678 # b.out is created by i960 compilers.
1679 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680 do
1681 test -f "$ac_file" || continue
1682 case $ac_file in
1683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1684 ;;
1685 conftest.$ac_ext )
1686 # This is the source file.
1687 ;;
1688 [ab].out )
1689 # We found the default executable, but exeext='' is most
1690 # certainly right.
1691 break;;
1692 *.* )
1693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1694 # FIXME: I believe we export ac_cv_exeext for Libtool,
1695 # but it would be cool to find out if it's true. Does anybody
1696 # maintain Libtool? --akim.
1697 export ac_cv_exeext
1698 break;;
1699 * )
1700 break;;
1701 esac
1702 done
1703 else
1704 echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1708 See \`config.log' for more details." >&5
1709 echo "$as_me: error: C compiler cannot create executables
1710 See \`config.log' for more details." >&2;}
1711 { (exit 77); exit 77; }; }
1712 fi
1713
1714 ac_exeext=$ac_cv_exeext
1715 echo "$as_me:$LINENO: result: $ac_file" >&5
1716 echo "${ECHO_T}$ac_file" >&6
1717
1718 # Check the compiler produces executables we can run. If not, either
1719 # the compiler is broken, or we cross compile.
1720 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1721 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1722 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1723 # If not cross compiling, check that we can run a simple program.
1724 if test "$cross_compiling" != yes; then
1725 if { ac_try='./$ac_file'
1726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1727 (eval $ac_try) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; }; then
1731 cross_compiling=no
1732 else
1733 if test "$cross_compiling" = maybe; then
1734 cross_compiling=yes
1735 else
1736 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1737 If you meant to cross compile, use \`--host'.
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: cannot run C compiled programs.
1740 If you meant to cross compile, use \`--host'.
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743 fi
1744 fi
1745 fi
1746 echo "$as_me:$LINENO: result: yes" >&5
1747 echo "${ECHO_T}yes" >&6
1748
1749 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1750 ac_clean_files=$ac_clean_files_save
1751 # Check the compiler produces executables we can run. If not, either
1752 # the compiler is broken, or we cross compile.
1753 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1754 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1755 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1756 echo "${ECHO_T}$cross_compiling" >&6
1757
1758 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1759 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1761 (eval $ac_link) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; then
1765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1767 # work properly (i.e., refer to `conftest.exe'), while it won't with
1768 # `rm'.
1769 for ac_file in conftest.exe conftest conftest.*; do
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774 export ac_cv_exeext
1775 break;;
1776 * ) break;;
1777 esac
1778 done
1779 else
1780 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1783 See \`config.log' for more details." >&2;}
1784 { (exit 1); exit 1; }; }
1785 fi
1786
1787 rm -f conftest$ac_cv_exeext
1788 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1789 echo "${ECHO_T}$ac_cv_exeext" >&6
1790
1791 rm -f conftest.$ac_ext
1792 EXEEXT=$ac_cv_exeext
1793 ac_exeext=$EXEEXT
1794 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1795 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1796 if test "${ac_cv_objext+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 cat >conftest.$ac_ext <<_ACEOF
1800 /* confdefs.h. */
1801 _ACEOF
1802 cat confdefs.h >>conftest.$ac_ext
1803 cat >>conftest.$ac_ext <<_ACEOF
1804 /* end confdefs.h. */
1805
1806 int
1807 main ()
1808 {
1809
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 rm -f conftest.o conftest.obj
1815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821 case $ac_file in
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1834 See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }
1836 fi
1837
1838 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839 fi
1840 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1841 echo "${ECHO_T}$ac_cv_objext" >&6
1842 OBJEXT=$ac_cv_objext
1843 ac_objext=$OBJEXT
1844 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1845 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1846 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 cat >conftest.$ac_ext <<_ACEOF
1850 /* confdefs.h. */
1851 _ACEOF
1852 cat confdefs.h >>conftest.$ac_ext
1853 cat >>conftest.$ac_ext <<_ACEOF
1854 /* end confdefs.h. */
1855
1856 int
1857 main ()
1858 {
1859 #ifndef __GNUC__
1860 choke me
1861 #endif
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 rm -f conftest.$ac_objext
1868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>conftest.er1
1870 ac_status=$?
1871 grep -v '^ *+' conftest.er1 >conftest.err
1872 rm -f conftest.er1
1873 cat conftest.err >&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); } &&
1876 { ac_try='test -z "$ac_c_werror_flag"
1877 || test ! -s conftest.err'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; } &&
1883 { ac_try='test -s conftest.$ac_objext'
1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885 (eval $ac_try) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; }; then
1889 ac_compiler_gnu=yes
1890 else
1891 echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_compiler_gnu=no
1895 fi
1896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1898
1899 fi
1900 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1901 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1902 GCC=`test $ac_compiler_gnu = yes && echo yes`
1903 ac_test_CFLAGS=${CFLAGS+set}
1904 ac_save_CFLAGS=$CFLAGS
1905 CFLAGS="-g"
1906 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1907 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1908 if test "${ac_cv_prog_cc_g+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 cat >conftest.$ac_ext <<_ACEOF
1912 /* confdefs.h. */
1913 _ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1917
1918 int
1919 main ()
1920 {
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 rm -f conftest.$ac_objext
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>conftest.er1
1929 ac_status=$?
1930 grep -v '^ *+' conftest.er1 >conftest.err
1931 rm -f conftest.er1
1932 cat conftest.err >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -z "$ac_c_werror_flag"
1936 || test ! -s conftest.err'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938 (eval $ac_try) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 ac_cv_prog_cc_g=yes
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_cv_prog_cc_g=no
1954 fi
1955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959 if test "$ac_test_CFLAGS" = set; then
1960 CFLAGS=$ac_save_CFLAGS
1961 elif test $ac_cv_prog_cc_g = yes; then
1962 if test "$GCC" = yes; then
1963 CFLAGS="-g -O2"
1964 else
1965 CFLAGS="-g"
1966 fi
1967 else
1968 if test "$GCC" = yes; then
1969 CFLAGS="-O2"
1970 else
1971 CFLAGS=
1972 fi
1973 fi
1974 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1975 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1976 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 ac_cv_prog_cc_stdc=no
1980 ac_save_CC=$CC
1981 cat >conftest.$ac_ext <<_ACEOF
1982 /* confdefs.h. */
1983 _ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1987 #include <stdarg.h>
1988 #include <stdio.h>
1989 #include <sys/types.h>
1990 #include <sys/stat.h>
1991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1992 struct buf { int x; };
1993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1994 static char *e (p, i)
1995 char **p;
1996 int i;
1997 {
1998 return p[i];
1999 }
2000 static char *f (char * (*g) (char **, int), char **p, ...)
2001 {
2002 char *s;
2003 va_list v;
2004 va_start (v,p);
2005 s = g (p, va_arg (v,int));
2006 va_end (v);
2007 return s;
2008 }
2009
2010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2011 function prototypes and stuff, but not '\xHH' hex character constants.
2012 These don't provoke an error unfortunately, instead are silently treated
2013 as 'x'. The following induces an error, until -std1 is added to get
2014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2015 array size at least. It's necessary to write '\x00'==0 to get something
2016 that's true only with -std1. */
2017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2018
2019 int test (int i, double x);
2020 struct s1 {int (*f) (int a);};
2021 struct s2 {int (*f) (double a);};
2022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2023 int argc;
2024 char **argv;
2025 int
2026 main ()
2027 {
2028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 # Don't try gcc -ansi; that turns off useful extensions and
2034 # breaks some systems' header files.
2035 # AIX -qlanglvl=ansi
2036 # Ultrix and OSF/1 -std1
2037 # HP-UX 10.20 and later -Ae
2038 # HP-UX older versions -Aa -D_HPUX_SOURCE
2039 # SVR4 -Xc -D__EXTENSIONS__
2040 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041 do
2042 CC="$ac_save_CC $ac_arg"
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>conftest.er1
2046 ac_status=$?
2047 grep -v '^ *+' conftest.er1 >conftest.err
2048 rm -f conftest.er1
2049 cat conftest.err >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -z "$ac_c_werror_flag"
2053 || test ! -s conftest.err'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 (eval $ac_try) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2065 ac_cv_prog_cc_stdc=$ac_arg
2066 break
2067 else
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 fi
2072 rm -f conftest.err conftest.$ac_objext
2073 done
2074 rm -f conftest.$ac_ext conftest.$ac_objext
2075 CC=$ac_save_CC
2076
2077 fi
2078
2079 case "x$ac_cv_prog_cc_stdc" in
2080 x|xno)
2081 echo "$as_me:$LINENO: result: none needed" >&5
2082 echo "${ECHO_T}none needed" >&6 ;;
2083 *)
2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2085 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2086 CC="$CC $ac_cv_prog_cc_stdc" ;;
2087 esac
2088
2089 # Some people use a C++ compiler to compile C. Since we use `exit',
2090 # in C++ we need to declare it. In case someone uses the same compiler
2091 # for both compiling C and C++ we need to have the C++ compiler decide
2092 # the declaration of exit, since it's the most demanding environment.
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #ifndef __cplusplus
2095 choke me
2096 #endif
2097 _ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>conftest.er1
2101 ac_status=$?
2102 grep -v '^ *+' conftest.er1 >conftest.err
2103 rm -f conftest.er1
2104 cat conftest.err >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -z "$ac_c_werror_flag"
2108 || test ! -s conftest.err'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 for ac_declaration in \
2121 '' \
2122 'extern "C" void std::exit (int) throw (); using std::exit;' \
2123 'extern "C" void std::exit (int); using std::exit;' \
2124 'extern "C" void exit (int) throw ();' \
2125 'extern "C" void exit (int);' \
2126 'void exit (int);'
2127 do
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2134 $ac_declaration
2135 #include <stdlib.h>
2136 int
2137 main ()
2138 {
2139 exit (42);
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2147 ac_status=$?
2148 grep -v '^ *+' conftest.er1 >conftest.err
2149 rm -f conftest.er1
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 :
2167 else
2168 echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 continue
2172 fi
2173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174 cat >conftest.$ac_ext <<_ACEOF
2175 /* confdefs.h. */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2180 $ac_declaration
2181 int
2182 main ()
2183 {
2184 exit (42);
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2192 ac_status=$?
2193 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2211 break
2212 else
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 fi
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 rm -f conftest*
2220 if test -n "$ac_declaration"; then
2221 echo '#ifdef __cplusplus' >>confdefs.h
2222 echo $ac_declaration >>confdefs.h
2223 echo '#endif' >>confdefs.h
2224 fi
2225
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 fi
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 ac_ext=c
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237
2238
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2246 # On Suns, sometimes $CPP names a directory.
2247 if test -n "$CPP" && test -d "$CPP"; then
2248 CPP=
2249 fi
2250 if test -z "$CPP"; then
2251 if test "${ac_cv_prog_CPP+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 # Double quotes because CPP needs to be expanded
2255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2256 do
2257 ac_preproc_ok=false
2258 for ac_c_preproc_warn_flag in '' yes
2259 do
2260 # Use a header file that comes with gcc, so configuring glibc
2261 # with a fresh cross-compiler works.
2262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263 # <limits.h> exists even on freestanding compilers.
2264 # On the NeXT, cc -E runs the code through the compiler's parser,
2265 # not just through cpp. "Syntax error" is here to catch this case.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2272 #ifdef __STDC__
2273 # include <limits.h>
2274 #else
2275 # include <assert.h>
2276 #endif
2277 Syntax error
2278 _ACEOF
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2290 else
2291 ac_cpp_err=
2292 fi
2293 else
2294 ac_cpp_err=yes
2295 fi
2296 if test -z "$ac_cpp_err"; then
2297 :
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 # Broken: fails on valid input.
2303 continue
2304 fi
2305 rm -f conftest.err conftest.$ac_ext
2306
2307 # OK, works on sane cases. Now check whether non-existent headers
2308 # can be detected and how.
2309 cat >conftest.$ac_ext <<_ACEOF
2310 /* confdefs.h. */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2315 #include <ac_nonexistent.h>
2316 _ACEOF
2317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319 ac_status=$?
2320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } >/dev/null; then
2325 if test -s conftest.err; then
2326 ac_cpp_err=$ac_c_preproc_warn_flag
2327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2328 else
2329 ac_cpp_err=
2330 fi
2331 else
2332 ac_cpp_err=yes
2333 fi
2334 if test -z "$ac_cpp_err"; then
2335 # Broken: success on invalid input.
2336 continue
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 # Passes both tests.
2342 ac_preproc_ok=:
2343 break
2344 fi
2345 rm -f conftest.err conftest.$ac_ext
2346
2347 done
2348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2349 rm -f conftest.err conftest.$ac_ext
2350 if $ac_preproc_ok; then
2351 break
2352 fi
2353
2354 done
2355 ac_cv_prog_CPP=$CPP
2356
2357 fi
2358 CPP=$ac_cv_prog_CPP
2359 else
2360 ac_cv_prog_CPP=$CPP
2361 fi
2362 echo "$as_me:$LINENO: result: $CPP" >&5
2363 echo "${ECHO_T}$CPP" >&6
2364 ac_preproc_ok=false
2365 for ac_c_preproc_warn_flag in '' yes
2366 do
2367 # Use a header file that comes with gcc, so configuring glibc
2368 # with a fresh cross-compiler works.
2369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370 # <limits.h> exists even on freestanding compilers.
2371 # On the NeXT, cc -E runs the code through the compiler's parser,
2372 # not just through cpp. "Syntax error" is here to catch this case.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #ifdef __STDC__
2380 # include <limits.h>
2381 #else
2382 # include <assert.h>
2383 #endif
2384 Syntax error
2385 _ACEOF
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } >/dev/null; then
2394 if test -s conftest.err; then
2395 ac_cpp_err=$ac_c_preproc_warn_flag
2396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397 else
2398 ac_cpp_err=
2399 fi
2400 else
2401 ac_cpp_err=yes
2402 fi
2403 if test -z "$ac_cpp_err"; then
2404 :
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 # Broken: fails on valid input.
2410 continue
2411 fi
2412 rm -f conftest.err conftest.$ac_ext
2413
2414 # OK, works on sane cases. Now check whether non-existent headers
2415 # can be detected and how.
2416 cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h. */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2422 #include <ac_nonexistent.h>
2423 _ACEOF
2424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426 ac_status=$?
2427 grep -v '^ *+' conftest.er1 >conftest.err
2428 rm -f conftest.er1
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } >/dev/null; then
2432 if test -s conftest.err; then
2433 ac_cpp_err=$ac_c_preproc_warn_flag
2434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2435 else
2436 ac_cpp_err=
2437 fi
2438 else
2439 ac_cpp_err=yes
2440 fi
2441 if test -z "$ac_cpp_err"; then
2442 # Broken: success on invalid input.
2443 continue
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 # Passes both tests.
2449 ac_preproc_ok=:
2450 break
2451 fi
2452 rm -f conftest.err conftest.$ac_ext
2453
2454 done
2455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456 rm -f conftest.err conftest.$ac_ext
2457 if $ac_preproc_ok; then
2458 :
2459 else
2460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2465 fi
2466
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474 echo "$as_me:$LINENO: checking for egrep" >&5
2475 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2476 if test "${ac_cv_prog_egrep+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2480 then ac_cv_prog_egrep='grep -E'
2481 else ac_cv_prog_egrep='egrep'
2482 fi
2483 fi
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2485 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2486 EGREP=$ac_cv_prog_egrep
2487
2488
2489 echo "$as_me:$LINENO: checking for NetBSD" >&5
2490 echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
2491 cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h. */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2497 #ifdef __NetBSD__
2498 yes
2499 #endif
2500
2501 _ACEOF
2502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503 $EGREP "yes" >/dev/null 2>&1; then
2504 echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6
2506 cat >>confdefs.h <<\_ACEOF
2507 #define _POSIX_SOURCE 1
2508 _ACEOF
2509 cat >>confdefs.h <<\_ACEOF
2510 #define _POSIX_C_SOURCE 200112L
2511 _ACEOF
2512 cat >>confdefs.h <<\_ACEOF
2513 #define _XOPEN_SOURCE 600
2514 _ACEOF
2515
2516 else
2517 echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2519 fi
2520 rm -f conftest*
2521
2522
2523 # Extract the first word of "sh", so it can be a program name with args.
2524 set dummy sh; ac_word=$2
2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_path_BSHELL+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 case $BSHELL in
2531 [\\/]* | ?:[\\/]*)
2532 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
2533 ;;
2534 *)
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548
2549 ;;
2550 esac
2551 fi
2552 BSHELL=$ac_cv_path_BSHELL
2553
2554 if test -n "$BSHELL"; then
2555 echo "$as_me:$LINENO: result: $BSHELL" >&5
2556 echo "${ECHO_T}$BSHELL" >&6
2557 else
2558 echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6
2560 fi
2561
2562 if test x"$BSHELL" = x; then
2563 { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
2564 echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
2565 { (exit 1); exit 1; }; }
2566 fi
2567 cat >>confdefs.h <<_ACEOF
2568 #define PATH_BSHELL "$BSHELL"
2569 _ACEOF
2570
2571
2572 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2573 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2574 if test "${ac_cv_c_bigendian+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 # See if sys/param.h defines the BYTE_ORDER macro.
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 #include <sys/types.h>
2585 #include <sys/param.h>
2586
2587 int
2588 main ()
2589 {
2590 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2591 bogus endian macros
2592 #endif
2593
2594 ;
2595 return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 # It does; now see whether it defined to BIG_ENDIAN or not.
2621 cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h. */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2627 #include <sys/types.h>
2628 #include <sys/param.h>
2629
2630 int
2631 main ()
2632 {
2633 #if BYTE_ORDER != BIG_ENDIAN
2634 not big endian
2635 #endif
2636
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_c_bigendian=yes
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_cv_c_bigendian=no
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 else
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 # It does not; compile a test program.
2676 if test "$cross_compiling" = yes; then
2677 # try to guess the endianness by grepping values into an object file
2678 ac_cv_c_bigendian=unknown
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2686 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2687 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2688 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2689 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2690 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2691 int
2692 main ()
2693 {
2694 _ascii (); _ebcdic ();
2695 ;
2696 return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag"
2709 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2722 ac_cv_c_bigendian=yes
2723 fi
2724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2725 if test "$ac_cv_c_bigendian" = unknown; then
2726 ac_cv_c_bigendian=no
2727 else
2728 # finding both strings is unlikely to happen, but who knows?
2729 ac_cv_c_bigendian=unknown
2730 fi
2731 fi
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 else
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745 int
2746 main ()
2747 {
2748 /* Are we little or big endian? From Harbison&Steele. */
2749 union
2750 {
2751 long l;
2752 char c[sizeof (long)];
2753 } u;
2754 u.l = 1;
2755 exit (u.c[sizeof (long) - 1] == 1);
2756 }
2757 _ACEOF
2758 rm -f conftest$ac_exeext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760 (eval $ac_link) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv_c_bigendian=no
2770 else
2771 echo "$as_me: program exited with status $ac_status" >&5
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 ( exit $ac_status )
2776 ac_cv_c_bigendian=yes
2777 fi
2778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2779 fi
2780 fi
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2785 case $ac_cv_c_bigendian in
2786 yes)
2787
2788 cat >>confdefs.h <<\_ACEOF
2789 #define WORDS_BIGENDIAN 1
2790 _ACEOF
2791 ;;
2792 no)
2793 ;;
2794 *)
2795 { { echo "$as_me:$LINENO: error: unknown endianness
2796 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2797 echo "$as_me: error: unknown endianness
2798 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2799 { (exit 1); exit 1; }; } ;;
2800 esac
2801
2802 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804 if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <stdlib.h>
2814 #include <stdarg.h>
2815 #include <string.h>
2816 #include <float.h>
2817
2818 int
2819 main ()
2820 {
2821
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 ac_cv_header_stdc=yes
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 ac_cv_header_stdc=no
2854 fi
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856
2857 if test $ac_cv_header_stdc = yes; then
2858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 #include <string.h>
2866
2867 _ACEOF
2868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869 $EGREP "memchr" >/dev/null 2>&1; then
2870 :
2871 else
2872 ac_cv_header_stdc=no
2873 fi
2874 rm -f conftest*
2875
2876 fi
2877
2878 if test $ac_cv_header_stdc = yes; then
2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 #include <stdlib.h>
2887
2888 _ACEOF
2889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2890 $EGREP "free" >/dev/null 2>&1; then
2891 :
2892 else
2893 ac_cv_header_stdc=no
2894 fi
2895 rm -f conftest*
2896
2897 fi
2898
2899 if test $ac_cv_header_stdc = yes; then
2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901 if test "$cross_compiling" = yes; then
2902 :
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ctype.h>
2911 #if ((' ' & 0x0FF) == 0x020)
2912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2914 #else
2915 # define ISLOWER(c) \
2916 (('a' <= (c) && (c) <= 'i') \
2917 || ('j' <= (c) && (c) <= 'r') \
2918 || ('s' <= (c) && (c) <= 'z'))
2919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2920 #endif
2921
2922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2923 int
2924 main ()
2925 {
2926 int i;
2927 for (i = 0; i < 256; i++)
2928 if (XOR (islower (i), ISLOWER (i))
2929 || toupper (i) != TOUPPER (i))
2930 exit(2);
2931 exit (0);
2932 }
2933 _ACEOF
2934 rm -f conftest$ac_exeext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 :
2946 else
2947 echo "$as_me: program exited with status $ac_status" >&5
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 ( exit $ac_status )
2952 ac_cv_header_stdc=no
2953 fi
2954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 fi
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2959 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2960 if test $ac_cv_header_stdc = yes; then
2961
2962 cat >>confdefs.h <<\_ACEOF
2963 #define STDC_HEADERS 1
2964 _ACEOF
2965
2966 fi
2967
2968
2969 # Confirm existence of zlib. (This is available as a default install
2970 # option on many OS's; this could be added as a reachover build in the
2971 # future.)
2972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2983 inttypes.h stdint.h unistd.h
2984 do
2985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2986 echo "$as_me:$LINENO: checking for $ac_header" >&5
2987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 $ac_includes_default
2998
2999 #include <$ac_header>
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003 (eval $ac_compile) 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 { ac_try='test -z "$ac_c_werror_flag"
3011 || test ! -s conftest.err'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 (eval $ac_try) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 eval "$as_ac_Header=yes"
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 eval "$as_ac_Header=no"
3029 fi
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 fi
3032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3035 cat >>confdefs.h <<_ACEOF
3036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3037 _ACEOF
3038
3039 fi
3040
3041 done
3042
3043
3044 if test "${ac_cv_header_zlib_h+set}" = set; then
3045 echo "$as_me:$LINENO: checking for zlib.h" >&5
3046 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3047 if test "${ac_cv_header_zlib_h+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3051 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3052 else
3053 # Is the header compilable?
3054 echo "$as_me:$LINENO: checking zlib.h usability" >&5
3055 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 $ac_includes_default
3063 #include <zlib.h>
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag"
3075 || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_header_compiler=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_header_compiler=no
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3096 echo "${ECHO_T}$ac_header_compiler" >&6
3097
3098 # Is the header present?
3099 echo "$as_me:$LINENO: checking zlib.h presence" >&5
3100 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107 #include <zlib.h>
3108 _ACEOF
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev/null; then
3117 if test -s conftest.err; then
3118 ac_cpp_err=$ac_c_preproc_warn_flag
3119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3120 else
3121 ac_cpp_err=
3122 fi
3123 else
3124 ac_cpp_err=yes
3125 fi
3126 if test -z "$ac_cpp_err"; then
3127 ac_header_preproc=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_header_preproc=no
3133 fi
3134 rm -f conftest.err conftest.$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3136 echo "${ECHO_T}$ac_header_preproc" >&6
3137
3138 # So? What about this header?
3139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3140 yes:no: )
3141 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3142 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3143 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3144 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3145 ac_header_preproc=yes
3146 ;;
3147 no:yes:* )
3148 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3149 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3150 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
3151 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
3152 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3153 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3154 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
3155 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3156 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3157 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3159 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3160 (
3161 cat <<\_ASBOX
3162 ## ---------------------------------------- ##
3163 ## Report this to lib-bug-people (at] NetBSD.org ##
3164 ## ---------------------------------------- ##
3165 _ASBOX
3166 ) |
3167 sed "s/^/$as_me: WARNING: /" >&2
3168 ;;
3169 esac
3170 echo "$as_me:$LINENO: checking for zlib.h" >&5
3171 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3172 if test "${ac_cv_header_zlib_h+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 ac_cv_header_zlib_h=$ac_header_preproc
3176 fi
3177 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3178 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3179
3180 fi
3181 if test $ac_cv_header_zlib_h = yes; then
3182 :
3183 else
3184 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3185 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3186 { (exit 1); exit 1; }; }
3187 fi
3188
3189
3190
3191 echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3192 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
3193 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 ac_check_lib_save_LIBS=$LIBS
3197 LIBS="-lz $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3211 char gzdopen ();
3212 int
3213 main ()
3214 {
3215 gzdopen ();
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_z_gzdopen=yes
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_cv_lib_z_gzdopen=no
3248 fi
3249 rm -f conftest.err conftest.$ac_objext \
3250 conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3252 fi
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3254 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
3255 if test $ac_cv_lib_z_gzdopen = yes; then
3256 cat >>confdefs.h <<_ACEOF
3257 #define HAVE_LIBZ 1
3258 _ACEOF
3259
3260 LIBS="-lz $LIBS"
3261
3262 else
3263 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3264 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3265 { (exit 1); exit 1; }; }
3266 fi
3267
3268
3269 # Make sure certain required headers are available.
3270 # These are not necessarily required by the code, but they are not
3271 # currently conditionalized.
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298 for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
3299 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3300 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3301 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3302 termios.h unistd.h
3303 do
3304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3306 echo "$as_me:$LINENO: checking for $ac_header" >&5
3307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 fi
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 else
3314 # Is the header compilable?
3315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 $ac_includes_default
3324 #include <$ac_header>
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag"
3336 || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_header_compiler=yes
3349 else
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 ac_header_compiler=no
3354 fi
3355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3357 echo "${ECHO_T}$ac_header_compiler" >&6
3358
3359 # Is the header present?
3360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <$ac_header>
3369 _ACEOF
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384 else
3385 ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388 ac_header_preproc=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 ac_header_preproc=no
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3397 echo "${ECHO_T}$ac_header_preproc" >&6
3398
3399 # So? What about this header?
3400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3401 yes:no: )
3402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3406 ac_header_preproc=yes
3407 ;;
3408 no:yes:* )
3409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3421 (
3422 cat <<\_ASBOX
3423 ## ---------------------------------------- ##
3424 ## Report this to lib-bug-people (at] NetBSD.org ##
3425 ## ---------------------------------------- ##
3426 _ASBOX
3427 ) |
3428 sed "s/^/$as_me: WARNING: /" >&2
3429 ;;
3430 esac
3431 echo "$as_me:$LINENO: checking for $ac_header" >&5
3432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 eval "$as_ac_Header=\$ac_header_preproc"
3437 fi
3438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3440
3441 fi
3442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3443 cat >>confdefs.h <<_ACEOF
3444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3445 _ACEOF
3446
3447 else
3448 { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
3449 echo "$as_me: error: standard system header file not found" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453 done
3454
3455
3456 # Find headers that may not be available.
3457
3458
3459
3460
3461
3462 ac_header_dirent=no
3463 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3464 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3465 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3466 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <sys/types.h>
3477 #include <$ac_hdr>
3478
3479 int
3480 main ()
3481 {
3482 if ((DIR *) 0)
3483 return 0;
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 eval "$as_ac_Header=yes"
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 eval "$as_ac_Header=no"
3516 fi
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3522 cat >>confdefs.h <<_ACEOF
3523 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3524 _ACEOF
3525
3526 ac_header_dirent=$ac_hdr; break
3527 fi
3528
3529 done
3530 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3531 if test $ac_header_dirent = dirent.h; then
3532 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3533 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3534 if test "${ac_cv_search_opendir+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 ac_func_search_save_LIBS=$LIBS
3538 ac_cv_search_opendir=no
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 #ifdef __cplusplus
3548 extern "C"
3549 #endif
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char opendir ();
3553 int
3554 main ()
3555 {
3556 opendir ();
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext conftest$ac_exeext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563 (eval $ac_link) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_search_opendir="none required"
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 fi
3589 rm -f conftest.err conftest.$ac_objext \
3590 conftest$ac_exeext conftest.$ac_ext
3591 if test "$ac_cv_search_opendir" = no; then
3592 for ac_lib in dir; do
3593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 #ifdef __cplusplus
3603 extern "C"
3604 #endif
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607 char opendir ();
3608 int
3609 main ()
3610 {
3611 opendir ();
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest$ac_exeext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_cv_search_opendir="-l$ac_lib"
3639 break
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 fi
3645 rm -f conftest.err conftest.$ac_objext \
3646 conftest$ac_exeext conftest.$ac_ext
3647 done
3648 fi
3649 LIBS=$ac_func_search_save_LIBS
3650 fi
3651 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3652 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3653 if test "$ac_cv_search_opendir" != no; then
3654 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3655
3656 fi
3657
3658 else
3659 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3660 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3661 if test "${ac_cv_search_opendir+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 ac_func_search_save_LIBS=$LIBS
3665 ac_cv_search_opendir=no
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 #ifdef __cplusplus
3675 extern "C"
3676 #endif
3677 /* We use char because int might match the return type of a gcc2
3678 builtin and then its argument prototype would still apply. */
3679 char opendir ();
3680 int
3681 main ()
3682 {
3683 opendir ();
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext conftest$ac_exeext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest$ac_exeext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_search_opendir="none required"
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 fi
3716 rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
3718 if test "$ac_cv_search_opendir" = no; then
3719 for ac_lib in x; do
3720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727
3728 /* Override any gcc2 internal prototype to avoid an error. */
3729 #ifdef __cplusplus
3730 extern "C"
3731 #endif
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3734 char opendir ();
3735 int
3736 main ()
3737 {
3738 opendir ();
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745 (eval $ac_link) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest$ac_exeext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_search_opendir="-l$ac_lib"
3766 break
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 fi
3772 rm -f conftest.err conftest.$ac_objext \
3773 conftest$ac_exeext conftest.$ac_ext
3774 done
3775 fi
3776 LIBS=$ac_func_search_save_LIBS
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3779 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3780 if test "$ac_cv_search_opendir" != no; then
3781 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3782
3783 fi
3784
3785 fi
3786
3787
3788
3789
3790
3791
3792
3793
3794 for ac_header in sys/sysmacros.h sys/syslimits.h \
3795 getopt.h features.h malloc.h sys/poll.h stddef.h
3796 do
3797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3799 echo "$as_me:$LINENO: checking for $ac_header" >&5
3800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 fi
3804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3806 else
3807 # Is the header compilable?
3808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 $ac_includes_default
3817 #include <$ac_header>
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821 (eval $ac_compile) 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -z "$ac_c_werror_flag"
3829 || test ! -s conftest.err'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_header_compiler=yes
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 ac_header_compiler=no
3847 fi
3848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3850 echo "${ECHO_T}$ac_header_compiler" >&6
3851
3852 # Is the header present?
3853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #include <$ac_header>
3862 _ACEOF
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null; then
3871 if test -s conftest.err; then
3872 ac_cpp_err=$ac_c_preproc_warn_flag
3873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3874 else
3875 ac_cpp_err=
3876 fi
3877 else
3878 ac_cpp_err=yes
3879 fi
3880 if test -z "$ac_cpp_err"; then
3881 ac_header_preproc=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ac_header_preproc=no
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3890 echo "${ECHO_T}$ac_header_preproc" >&6
3891
3892 # So? What about this header?
3893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3894 yes:no: )
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3899 ac_header_preproc=yes
3900 ;;
3901 no:yes:* )
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3914 (
3915 cat <<\_ASBOX
3916 ## ---------------------------------------- ##
3917 ## Report this to lib-bug-people (at] NetBSD.org ##
3918 ## ---------------------------------------- ##
3919 _ASBOX
3920 ) |
3921 sed "s/^/$as_me: WARNING: /" >&2
3922 ;;
3923 esac
3924 echo "$as_me:$LINENO: checking for $ac_header" >&5
3925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 eval "$as_ac_Header=\$ac_header_preproc"
3930 fi
3931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3933
3934 fi
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936 cat >>confdefs.h <<_ACEOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3938 _ACEOF
3939
3940 fi
3941
3942 done
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954 for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
3955 err.h inttypes.h libgen.h paths.h stdint.h util.h
3956 do
3957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959 echo "$as_me:$LINENO: checking for $ac_header" >&5
3960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 fi
3964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966 else
3967 # Is the header compilable?
3968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977 #include <$ac_header>
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_header_compiler=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ac_header_compiler=no
4007 fi
4008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010 echo "${ECHO_T}$ac_header_compiler" >&6
4011
4012 # Is the header present?
4013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h. */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <$ac_header>
4022 _ACEOF
4023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev/null; then
4031 if test -s conftest.err; then
4032 ac_cpp_err=$ac_c_preproc_warn_flag
4033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4034 else
4035 ac_cpp_err=
4036 fi
4037 else
4038 ac_cpp_err=yes
4039 fi
4040 if test -z "$ac_cpp_err"; then
4041 ac_header_preproc=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 ac_header_preproc=no
4047 fi
4048 rm -f conftest.err conftest.$ac_ext
4049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050 echo "${ECHO_T}$ac_header_preproc" >&6
4051
4052 # So? What about this header?
4053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4054 yes:no: )
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4059 ac_header_preproc=yes
4060 ;;
4061 no:yes:* )
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4074 (
4075 cat <<\_ASBOX
4076 ## ---------------------------------------- ##
4077 ## Report this to lib-bug-people (at] NetBSD.org ##
4078 ## ---------------------------------------- ##
4079 _ASBOX
4080 ) |
4081 sed "s/^/$as_me: WARNING: /" >&2
4082 ;;
4083 esac
4084 echo "$as_me:$LINENO: checking for $ac_header" >&5
4085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 eval "$as_ac_Header=\$ac_header_preproc"
4090 fi
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093
4094 fi
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 _ACEOF
4099
4100 else
4101 test -f include/$ac_header || touch include/$ac_header
4102 fi
4103
4104 done
4105
4106
4107
4108 for ac_header in rpc/types.h netconfig.h
4109 do
4110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4112 echo "$as_me:$LINENO: checking for $ac_header" >&5
4113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 fi
4117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119 else
4120 # Is the header compilable?
4121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4130 #include <$ac_header>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_header_compiler=yes
4155 else
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 ac_header_compiler=no
4160 fi
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4163 echo "${ECHO_T}$ac_header_compiler" >&6
4164
4165 # Is the header present?
4166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 #include <$ac_header>
4175 _ACEOF
4176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null; then
4184 if test -s conftest.err; then
4185 ac_cpp_err=$ac_c_preproc_warn_flag
4186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4187 else
4188 ac_cpp_err=
4189 fi
4190 else
4191 ac_cpp_err=yes
4192 fi
4193 if test -z "$ac_cpp_err"; then
4194 ac_header_preproc=yes
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_header_preproc=no
4200 fi
4201 rm -f conftest.err conftest.$ac_ext
4202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4203 echo "${ECHO_T}$ac_header_preproc" >&6
4204
4205 # So? What about this header?
4206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4207 yes:no: )
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4212 ac_header_preproc=yes
4213 ;;
4214 no:yes:* )
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4227 (
4228 cat <<\_ASBOX
4229 ## ---------------------------------------- ##
4230 ## Report this to lib-bug-people (at] NetBSD.org ##
4231 ## ---------------------------------------- ##
4232 _ASBOX
4233 ) |
4234 sed "s/^/$as_me: WARNING: /" >&2
4235 ;;
4236 esac
4237 echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 eval "$as_ac_Header=\$ac_header_preproc"
4243 fi
4244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246
4247 fi
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 _ACEOF
4252
4253 else
4254 echo '#include "nbtool_config.h"' >include/$ac_header.new
4255 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4256 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4257 rm -f include/$ac_header.new
4258 else
4259 mv -f include/$ac_header.new include/$ac_header
4260 fi
4261 fi
4262
4263 done
4264
4265
4266 # Typedefs.
4267 echo "$as_me:$LINENO: checking for size_t" >&5
4268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4269 if test "${ac_cv_type_size_t+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4279 int
4280 main ()
4281 {
4282 if ((size_t *) 0)
4283 return 0;
4284 if (sizeof (size_t))
4285 return 0;
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_type_size_t=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 ac_cv_type_size_t=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4323 if test $ac_cv_type_size_t = yes; then
4324 :
4325 else
4326
4327 cat >>confdefs.h <<_ACEOF
4328 #define size_t unsigned
4329 _ACEOF
4330
4331 fi
4332
4333 echo "$as_me:$LINENO: checking for id_t" >&5
4334 echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4335 if test "${ac_cv_type_id_t+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 if ((id_t *) 0)
4349 return 0;
4350 if (sizeof (id_t))
4351 return 0;
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_type_id_t=yes
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 ac_cv_type_id_t=no
4384 fi
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4388 echo "${ECHO_T}$ac_cv_type_id_t" >&6
4389 if test $ac_cv_type_id_t = yes; then
4390
4391 cat >>confdefs.h <<_ACEOF
4392 #define HAVE_ID_T 1
4393 _ACEOF
4394
4395
4396 fi
4397 echo "$as_me:$LINENO: checking for long long" >&5
4398 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4399 if test "${ac_cv_type_long_long+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4409 int
4410 main ()
4411 {
4412 if ((long long *) 0)
4413 return 0;
4414 if (sizeof (long long))
4415 return 0;
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_type_long_long=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 ac_cv_type_long_long=no
4448 fi
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450 fi
4451 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4452 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4453 if test $ac_cv_type_long_long = yes; then
4454
4455 cat >>confdefs.h <<_ACEOF
4456 #define HAVE_LONG_LONG 1
4457 _ACEOF
4458
4459
4460 fi
4461 echo "$as_me:$LINENO: checking for u_long" >&5
4462 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4463 if test "${ac_cv_type_u_long+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4473 int
4474 main ()
4475 {
4476 if ((u_long *) 0)
4477 return 0;
4478 if (sizeof (u_long))
4479 return 0;
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag"
4494 || test ! -s conftest.err'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; } &&
4500 { ac_try='test -s conftest.$ac_objext'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 ac_cv_type_u_long=yes
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 ac_cv_type_u_long=no
4512 fi
4513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4516 echo "${ECHO_T}$ac_cv_type_u_long" >&6
4517 if test $ac_cv_type_u_long = yes; then
4518
4519 cat >>confdefs.h <<_ACEOF
4520 #define HAVE_U_LONG 1
4521 _ACEOF
4522
4523
4524 fi
4525 echo "$as_me:$LINENO: checking for u_char" >&5
4526 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
4527 if test "${ac_cv_type_u_char+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 $ac_includes_default
4537 int
4538 main ()
4539 {
4540 if ((u_char *) 0)
4541 return 0;
4542 if (sizeof (u_char))
4543 return 0;
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_type_u_char=yes
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_cv_type_u_char=no
4576 fi
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4580 echo "${ECHO_T}$ac_cv_type_u_char" >&6
4581 if test $ac_cv_type_u_char = yes; then
4582
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_U_CHAR 1
4585 _ACEOF
4586
4587
4588 fi
4589 echo "$as_me:$LINENO: checking for u_short" >&5
4590 echo $ECHO_N "checking for u_short... $ECHO_C" >&6
4591 if test "${ac_cv_type_u_short+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4601 int
4602 main ()
4603 {
4604 if ((u_short *) 0)
4605 return 0;
4606 if (sizeof (u_short))
4607 return 0;
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_type_u_short=yes
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 ac_cv_type_u_short=no
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 fi
4643 echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
4644 echo "${ECHO_T}$ac_cv_type_u_short" >&6
4645 if test $ac_cv_type_u_short = yes; then
4646
4647 cat >>confdefs.h <<_ACEOF
4648 #define HAVE_U_SHORT 1
4649 _ACEOF
4650
4651
4652 fi
4653 echo "$as_me:$LINENO: checking for u_int" >&5
4654 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
4655 if test "${ac_cv_type_u_int+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 $ac_includes_default
4665 int
4666 main ()
4667 {
4668 if ((u_int *) 0)
4669 return 0;
4670 if (sizeof (u_int))
4671 return 0;
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>conftest.er1
4679 ac_status=$?
4680 grep -v '^ *+' conftest.er1 >conftest.err
4681 rm -f conftest.er1
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -z "$ac_c_werror_flag"
4686 || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_type_u_int=yes
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ac_cv_type_u_int=no
4704 fi
4705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4708 echo "${ECHO_T}$ac_cv_type_u_int" >&6
4709 if test $ac_cv_type_u_int = yes; then
4710
4711 cat >>confdefs.h <<_ACEOF
4712 #define HAVE_U_INT 1
4713 _ACEOF
4714
4715
4716 fi
4717 echo "$as_me:$LINENO: checking for u_quad_t" >&5
4718 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4719 if test "${ac_cv_type_u_quad_t+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4729 int
4730 main ()
4731 {
4732 if ((u_quad_t *) 0)
4733 return 0;
4734 if (sizeof (u_quad_t))
4735 return 0;
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_type_u_quad_t=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_cv_type_u_quad_t=no
4768 fi
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4772 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4773 if test $ac_cv_type_u_quad_t = yes; then
4774
4775 cat >>confdefs.h <<_ACEOF
4776 #define HAVE_U_QUAD_T 1
4777 _ACEOF
4778
4779
4780 fi
4781
4782 echo "$as_me:$LINENO: checking for socklen_t" >&5
4783 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4784 if test "${ac_cv_type_socklen_t+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <sys/types.h>
4794 #include <sys/socket.h>
4795
4796 int
4797 main ()
4798 {
4799 if ((socklen_t *) 0)
4800 return 0;
4801 if (sizeof (socklen_t))
4802 return 0;
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_type_socklen_t=yes
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_cv_type_socklen_t=no
4835 fi
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837 fi
4838 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4839 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4840 if test $ac_cv_type_socklen_t = yes; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define HAVE_SOCKLEN_T 1
4843 _ACEOF
4844
4845 fi
4846
4847
4848
4849
4850
4851 echo "$as_me:$LINENO: checking for uint8_t" >&5
4852 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4853 if test "${ac_cv_type_uint8_t+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 $ac_includes_default
4863 int
4864 main ()
4865 {
4866 if ((uint8_t *) 0)
4867 return 0;
4868 if (sizeof (uint8_t))
4869 return 0;
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_type_uint8_t=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_type_uint8_t=no
4902 fi
4903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4906 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4907 if test $ac_cv_type_uint8_t = yes; then
4908 :
4909 else
4910
4911 echo "$as_me:$LINENO: checking for u_int8_t" >&5
4912 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4913 if test "${ac_cv_type_u_int8_t+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4923 int
4924 main ()
4925 {
4926 if ((u_int8_t *) 0)
4927 return 0;
4928 if (sizeof (u_int8_t))
4929 return 0;
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_type_u_int8_t=yes
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 ac_cv_type_u_int8_t=no
4962 fi
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 fi
4965 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4966 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4967 if test $ac_cv_type_u_int8_t = yes; then
4968 cat >>confdefs.h <<\_ACEOF
4969 #define uint8_t u_int8_t
4970 _ACEOF
4971
4972 else
4973 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4974 echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4975 { (exit 1); exit 1; }; }
4976 fi
4977
4978
4979 fi
4980
4981 echo "$as_me:$LINENO: checking for u_int8_t" >&5
4982 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4983 if test "${ac_cv_type_u_int8_t+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 $ac_includes_default
4993 int
4994 main ()
4995 {
4996 if ((u_int8_t *) 0)
4997 return 0;
4998 if (sizeof (u_int8_t))
4999 return 0;
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag"
5014 || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_type_u_int8_t=yes
5027 else
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 ac_cv_type_u_int8_t=no
5032 fi
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5036 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
5037 if test $ac_cv_type_u_int8_t = yes; then
5038 :
5039 else
5040
5041 echo "$as_me:$LINENO: checking for uint8_t" >&5
5042 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5043 if test "${ac_cv_type_uint8_t+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5053 int
5054 main ()
5055 {
5056 if ((uint8_t *) 0)
5057 return 0;
5058 if (sizeof (uint8_t))
5059 return 0;
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_type_uint8_t=yes
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_cv_type_uint8_t=no
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 fi
5095 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5096 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5097 if test $ac_cv_type_uint8_t = yes; then
5098 cat >>confdefs.h <<\_ACEOF
5099 #define u_int8_t uint8_t
5100 _ACEOF
5101
5102 else
5103 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5104 echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5105 { (exit 1); exit 1; }; }
5106 fi
5107
5108
5109 fi
5110
5111
5112
5113 echo "$as_me:$LINENO: checking for uint16_t" >&5
5114 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5115 if test "${ac_cv_type_uint16_t+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 $ac_includes_default
5125 int
5126 main ()
5127 {
5128 if ((uint16_t *) 0)
5129 return 0;
5130 if (sizeof (uint16_t))
5131 return 0;
5132 ;
5133 return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_c_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_type_uint16_t=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ac_cv_type_uint16_t=no
5164 fi
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166 fi
5167 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5168 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5169 if test $ac_cv_type_uint16_t = yes; then
5170 :
5171 else
5172
5173 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5174 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5175 if test "${ac_cv_type_u_int16_t+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 $ac_includes_default
5185 int
5186 main ()
5187 {
5188 if ((u_int16_t *) 0)
5189 return 0;
5190 if (sizeof (u_int16_t))
5191 return 0;
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_type_u_int16_t=yes
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_cv_type_u_int16_t=no
5224 fi
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5228 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5229 if test $ac_cv_type_u_int16_t = yes; then
5230 cat >>confdefs.h <<\_ACEOF
5231 #define uint16_t u_int16_t
5232 _ACEOF
5233
5234 else
5235 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5236 echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5237 { (exit 1); exit 1; }; }
5238 fi
5239
5240
5241 fi
5242
5243 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5244 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5245 if test "${ac_cv_type_u_int16_t+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5255 int
5256 main ()
5257 {
5258 if ((u_int16_t *) 0)
5259 return 0;
5260 if (sizeof (u_int16_t))
5261 return 0;
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_c_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_type_u_int16_t=yes
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 ac_cv_type_u_int16_t=no
5294 fi
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 fi
5297 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5298 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5299 if test $ac_cv_type_u_int16_t = yes; then
5300 :
5301 else
5302
5303 echo "$as_me:$LINENO: checking for uint16_t" >&5
5304 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5305 if test "${ac_cv_type_uint16_t+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 int
5316 main ()
5317 {
5318 if ((uint16_t *) 0)
5319 return 0;
5320 if (sizeof (uint16_t))
5321 return 0;
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_type_uint16_t=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_type_uint16_t=no
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5358 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5359 if test $ac_cv_type_uint16_t = yes; then
5360 cat >>confdefs.h <<\_ACEOF
5361 #define u_int16_t uint16_t
5362 _ACEOF
5363
5364 else
5365 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5366 echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5367 { (exit 1); exit 1; }; }
5368 fi
5369
5370
5371 fi
5372
5373
5374
5375 echo "$as_me:$LINENO: checking for uint32_t" >&5
5376 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5377 if test "${ac_cv_type_uint32_t+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 if ((uint32_t *) 0)
5391 return 0;
5392 if (sizeof (uint32_t))
5393 return 0;
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_type_uint32_t=yes
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_cv_type_uint32_t=no
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5430 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5431 if test $ac_cv_type_uint32_t = yes; then
5432 :
5433 else
5434
5435 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5436 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5437 if test "${ac_cv_type_u_int32_t+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5447 int
5448 main ()
5449 {
5450 if ((u_int32_t *) 0)
5451 return 0;
5452 if (sizeof (u_int32_t))
5453 return 0;
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 rm -f conftest.$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest.$ac_objext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_cv_type_u_int32_t=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 ac_cv_type_u_int32_t=no
5486 fi
5487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5490 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5491 if test $ac_cv_type_u_int32_t = yes; then
5492 cat >>confdefs.h <<\_ACEOF
5493 #define uint32_t u_int32_t
5494 _ACEOF
5495
5496 else
5497 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
5498 echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
5499 { (exit 1); exit 1; }; }
5500 fi
5501
5502
5503 fi
5504
5505 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5506 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5507 if test "${ac_cv_type_u_int32_t+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 int
5518 main ()
5519 {
5520 if ((u_int32_t *) 0)
5521 return 0;
5522 if (sizeof (u_int32_t))
5523 return 0;
5524 ;
5525 return 0;
5526 }
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_type_u_int32_t=yes
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cv_type_u_int32_t=no
5556 fi
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5560 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5561 if test $ac_cv_type_u_int32_t = yes; then
5562 :
5563 else
5564
5565 echo "$as_me:$LINENO: checking for uint32_t" >&5
5566 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5567 if test "${ac_cv_type_uint32_t+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 $ac_includes_default
5577 int
5578 main ()
5579 {
5580 if ((uint32_t *) 0)
5581 return 0;
5582 if (sizeof (uint32_t))
5583 return 0;
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -z "$ac_c_werror_flag"
5598 || test ! -s conftest.err'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_type_uint32_t=yes
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ac_cv_type_uint32_t=no
5616 fi
5617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5620 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5621 if test $ac_cv_type_uint32_t = yes; then
5622 cat >>confdefs.h <<\_ACEOF
5623 #define u_int32_t uint32_t
5624 _ACEOF
5625
5626 else
5627 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5628 echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5629 { (exit 1); exit 1; }; }
5630 fi
5631
5632
5633 fi
5634
5635
5636
5637 echo "$as_me:$LINENO: checking for uint64_t" >&5
5638 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5639 if test "${ac_cv_type_uint64_t+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((uint64_t *) 0)
5653 return 0;
5654 if (sizeof (uint64_t))
5655 return 0;
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_type_uint64_t=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_type_uint64_t=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5692 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5693 if test $ac_cv_type_uint64_t = yes; then
5694 :
5695 else
5696
5697 echo "$as_me:$LINENO: checking for u_int64_t" >&5
5698 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5699 if test "${ac_cv_type_u_int64_t+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5709 int
5710 main ()
5711 {
5712 if ((u_int64_t *) 0)
5713 return 0;
5714 if (sizeof (u_int64_t))
5715 return 0;
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try='test -z "$ac_c_werror_flag"
5730 || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_type_u_int64_t=yes
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_cv_type_u_int64_t=no
5748 fi
5749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5752 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5753 if test $ac_cv_type_u_int64_t = yes; then
5754 cat >>confdefs.h <<\_ACEOF
5755 #define uint64_t u_int64_t
5756 _ACEOF
5757
5758 else
5759 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5760 echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5761 { (exit 1); exit 1; }; }
5762 fi
5763
5764
5765 fi
5766
5767 echo "$as_me:$LINENO: checking for u_int64_t" >&5
5768 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5769 if test "${ac_cv_type_u_int64_t+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 $ac_includes_default
5779 int
5780 main ()
5781 {
5782 if ((u_int64_t *) 0)
5783 return 0;
5784 if (sizeof (u_int64_t))
5785 return 0;
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag"
5800 || test ! -s conftest.err'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; } &&
5806 { ac_try='test -s conftest.$ac_objext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_cv_type_u_int64_t=yes
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_cv_type_u_int64_t=no
5818 fi
5819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5822 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5823 if test $ac_cv_type_u_int64_t = yes; then
5824 :
5825 else
5826
5827 echo "$as_me:$LINENO: checking for uint64_t" >&5
5828 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5829 if test "${ac_cv_type_uint64_t+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 $ac_includes_default
5839 int
5840 main ()
5841 {
5842 if ((uint64_t *) 0)
5843 return 0;
5844 if (sizeof (uint64_t))
5845 return 0;
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag"
5860 || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest.$ac_objext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_type_uint64_t=yes
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_cv_type_uint64_t=no
5878 fi
5879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5882 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5883 if test $ac_cv_type_uint64_t = yes; then
5884 cat >>confdefs.h <<\_ACEOF
5885 #define u_int64_t uint64_t
5886 _ACEOF
5887
5888 else
5889 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5890 echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5891 { (exit 1); exit 1; }; }
5892 fi
5893
5894
5895 fi
5896
5897
5898
5899 # Struct members.
5900 echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5901 echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5902 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 #include <dirent.h>
5913
5914 int
5915 main ()
5916 {
5917 static DIR ac_aggr;
5918 if (ac_aggr.dd_fd)
5919 return 0;
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_member_DIR_dd_fd=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 #include <dirent.h>
5959
5960 int
5961 main ()
5962 {
5963 static DIR ac_aggr;
5964 if (sizeof ac_aggr.dd_fd)
5965 return 0;
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_member_DIR_dd_fd=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997 ac_cv_member_DIR_dd_fd=no
5998 fi
5999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6000 fi
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6004 echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
6005 if test $ac_cv_member_DIR_dd_fd = yes; then
6006
6007 cat >>confdefs.h <<_ACEOF
6008 #define HAVE_DIR_DD_FD 1
6009 _ACEOF
6010
6011
6012 fi
6013 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6014 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
6015 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 #include <dirent.h>
6026
6027 int
6028 main ()
6029 {
6030 static struct dirent ac_aggr;
6031 if (ac_aggr.d_namlen)
6032 return 0;
6033 ;
6034 return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_c_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_member_struct_dirent_d_namlen=yes
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <dirent.h>
6072
6073 int
6074 main ()
6075 {
6076 static struct dirent ac_aggr;
6077 if (sizeof ac_aggr.d_namlen)
6078 return 0;
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_member_struct_dirent_d_namlen=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_member_struct_dirent_d_namlen=no
6111 fi
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 fi
6114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115 fi
6116 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6117 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
6118 if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6122 _ACEOF
6123
6124
6125 fi
6126
6127 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6128 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
6129 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <sys/stat.h>
6139
6140 int
6141 main ()
6142 {
6143 static struct stat ac_aggr;
6144 if (ac_aggr.st_flags)
6145 return 0;
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try='test -s conftest.$ac_objext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_member_struct_stat_st_flags=yes
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 #include <sys/stat.h>
6184
6185 int
6186 main ()
6187 {
6188 static struct stat ac_aggr;
6189 if (sizeof ac_aggr.st_flags)
6190 return 0;
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_member_struct_stat_st_flags=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_cv_member_struct_stat_st_flags=no
6223 fi
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 fi
6226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6227 fi
6228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
6230 if test $ac_cv_member_struct_stat_st_flags = yes; then
6231
6232 cat >>confdefs.h <<_ACEOF
6233 #define HAVE_STRUCT_STAT_ST_FLAGS 1
6234 _ACEOF
6235
6236
6237 fi
6238 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6239 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
6240 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <sys/stat.h>
6250
6251 int
6252 main ()
6253 {
6254 static struct stat ac_aggr;
6255 if (ac_aggr.st_gen)
6256 return 0;
6257 ;
6258 return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_member_struct_stat_st_gen=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/stat.h>
6295
6296 int
6297 main ()
6298 {
6299 static struct stat ac_aggr;
6300 if (sizeof ac_aggr.st_gen)
6301 return 0;
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_member_struct_stat_st_gen=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_cv_member_struct_stat_st_gen=no
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6340 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
6341 if test $ac_cv_member_struct_stat_st_gen = yes; then
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define HAVE_STRUCT_STAT_ST_GEN 1
6345 _ACEOF
6346
6347
6348 fi
6349 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6350 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
6351 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h. */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 #include <sys/stat.h>
6361
6362 int
6363 main ()
6364 {
6365 static struct stat ac_aggr;
6366 if (ac_aggr.st_birthtime)
6367 return 0;
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -z "$ac_c_werror_flag"
6382 || test ! -s conftest.err'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; } &&
6388 { ac_try='test -s conftest.$ac_objext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_member_struct_stat_st_birthtime=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <sys/stat.h>
6406
6407 int
6408 main ()
6409 {
6410 static struct stat ac_aggr;
6411 if (sizeof ac_aggr.st_birthtime)
6412 return 0;
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_member_struct_stat_st_birthtime=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_cv_member_struct_stat_st_birthtime=no
6445 fi
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
6451 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
6452 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
6453
6454 cat >>confdefs.h <<_ACEOF
6455 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6456 _ACEOF
6457
6458
6459 fi
6460 echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
6461 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
6462 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <sys/stat.h>
6472
6473 int
6474 main ()
6475 {
6476 static struct stat ac_aggr;
6477 if (ac_aggr.st_birthtimensec)
6478 return 0;
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_member_struct_stat_st_birthtimensec=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <sys/stat.h>
6517
6518 int
6519 main ()
6520 {
6521 static struct stat ac_aggr;
6522 if (sizeof ac_aggr.st_birthtimensec)
6523 return 0;
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_member_struct_stat_st_birthtimensec=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_cv_member_struct_stat_st_birthtimensec=no
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
6562 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
6563 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
6567 _ACEOF
6568
6569
6570 fi
6571 echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
6572 echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
6573 if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <sys/stat.h>
6583
6584 int
6585 main ()
6586 {
6587 static struct stat ac_aggr;
6588 if (ac_aggr.st_atim)
6589 return 0;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_member_struct_stat_st_atim=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/stat.h>
6628
6629 int
6630 main ()
6631 {
6632 static struct stat ac_aggr;
6633 if (sizeof ac_aggr.st_atim)
6634 return 0;
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641 (eval $ac_compile) 2>conftest.er1
6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_c_werror_flag"
6649 || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_member_struct_stat_st_atim=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_cv_member_struct_stat_st_atim=no
6667 fi
6668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6669 fi
6670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
6673 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
6674 if test $ac_cv_member_struct_stat_st_atim = yes; then
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_STAT_ST_ATIM 1
6678 _ACEOF
6679
6680
6681 fi
6682 echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
6683 echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
6684 if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <sys/stat.h>
6694
6695 int
6696 main ()
6697 {
6698 static struct stat ac_aggr;
6699 if (ac_aggr.st_mtimensec)
6700 return 0;
6701 ;
6702 return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707 (eval $ac_compile) 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } &&
6714 { ac_try='test -z "$ac_c_werror_flag"
6715 || test ! -s conftest.err'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_member_struct_stat_st_mtimensec=yes
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <sys/stat.h>
6739
6740 int
6741 main ()
6742 {
6743 static struct stat ac_aggr;
6744 if (sizeof ac_aggr.st_mtimensec)
6745 return 0;
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752 (eval $ac_compile) 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -z "$ac_c_werror_flag"
6760 || test ! -s conftest.err'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; } &&
6766 { ac_try='test -s conftest.$ac_objext'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6772 ac_cv_member_struct_stat_st_mtimensec=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_cv_member_struct_stat_st_mtimensec=no
6778 fi
6779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 fi
6781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
6784 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
6785 if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
6786
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6789 _ACEOF
6790
6791
6792 fi
6793
6794 echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
6795 echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
6796 if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 #include <sys/statvfs.h>
6806
6807 int
6808 main ()
6809 {
6810 static struct statvfs ac_aggr;
6811 if (ac_aggr.f_iosize)
6812 return 0;
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_member_struct_statvfs_f_iosize=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <sys/statvfs.h>
6851
6852 int
6853 main ()
6854 {
6855 static struct statvfs ac_aggr;
6856 if (sizeof ac_aggr.f_iosize)
6857 return 0;
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864 (eval $ac_compile) 2>conftest.er1
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -z "$ac_c_werror_flag"
6872 || test ! -s conftest.err'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
6878 { ac_try='test -s conftest.$ac_objext'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 ac_cv_member_struct_statvfs_f_iosize=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 ac_cv_member_struct_statvfs_f_iosize=no
6890 fi
6891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894 fi
6895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
6896 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
6897 if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
6901 _ACEOF
6902
6903
6904 fi
6905
6906
6907 # Global variable decls.
6908 echo "$as_me:$LINENO: checking whether optind is declared" >&5
6909 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
6910 if test "${ac_cv_have_decl_optind+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919
6920 #include <stdio.h>
6921 #include <stdlib.h>
6922 #include <unistd.h>
6923
6924
6925 int
6926 main ()
6927 {
6928 #ifndef optind
6929 char *p = (char *) optind;
6930 #endif
6931
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_have_decl_optind=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_have_decl_optind=no
6964 fi
6965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
6968 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
6969 if test $ac_cv_have_decl_optind = yes; then
6970
6971 cat >>confdefs.h <<_ACEOF
6972 #define HAVE_DECL_OPTIND 1
6973 _ACEOF
6974
6975
6976 else
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_DECL_OPTIND 0
6979 _ACEOF
6980
6981
6982 fi
6983 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6984 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
6985 if test "${ac_cv_have_decl_optreset+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994
6995 #include <stdio.h>
6996 #include <stdlib.h>
6997 #include <unistd.h>
6998
6999
7000 int
7001 main ()
7002 {
7003 #ifndef optreset
7004 char *p = (char *) optreset;
7005 #endif
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_have_decl_optreset=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038 ac_cv_have_decl_optreset=no
7039 fi
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7043 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
7044 if test $ac_cv_have_decl_optreset = yes; then
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_DECL_OPTRESET 1
7048 _ACEOF
7049
7050
7051 else
7052 cat >>confdefs.h <<_ACEOF
7053 #define HAVE_DECL_OPTRESET 0
7054 _ACEOF
7055
7056
7057 fi
7058
7059
7060 echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7061 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
7062 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #include <signal.h>
7072
7073 int
7074 main ()
7075 {
7076 #ifndef sys_signame
7077 char *p = (char *) sys_signame;
7078 #endif
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -z "$ac_c_werror_flag"
7094 || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_have_decl_sys_signame=yes
7107 else
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 ac_cv_have_decl_sys_signame=no
7112 fi
7113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 fi
7115 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7116 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
7117 if test $ac_cv_have_decl_sys_signame = yes; then
7118
7119 cat >>confdefs.h <<_ACEOF
7120 #define HAVE_DECL_SYS_SIGNAME 1
7121 _ACEOF
7122
7123
7124 else
7125 cat >>confdefs.h <<_ACEOF
7126 #define HAVE_DECL_SYS_SIGNAME 0
7127 _ACEOF
7128
7129
7130 fi
7131
7132
7133
7134 # Library functions (where a .h check isn't enough).
7135 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7136 # for constant arguments. Useless!
7137 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7138 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7139 if test "${ac_cv_working_alloca_h+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
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 <alloca.h>
7149 int
7150 main ()
7151 {
7152 char *p = (char *) alloca (2 * sizeof (int));
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_working_alloca_h=yes
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_cv_working_alloca_h=no
7185 fi
7186 rm -f conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 fi
7189 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7190 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7191 if test $ac_cv_working_alloca_h = yes; then
7192
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_ALLOCA_H 1
7195 _ACEOF
7196
7197 fi
7198
7199 echo "$as_me:$LINENO: checking for alloca" >&5
7200 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7201 if test "${ac_cv_func_alloca_works+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #ifdef __GNUC__
7211 # define alloca __builtin_alloca
7212 #else
7213 # ifdef _MSC_VER
7214 # include <malloc.h>
7215 # define alloca _alloca
7216 # else
7217 # if HAVE_ALLOCA_H
7218 # include <alloca.h>
7219 # else
7220 # ifdef _AIX
7221 #pragma alloca
7222 # else
7223 # ifndef alloca /* predefined by HP cc +Olibcalls */
7224 char *alloca ();
7225 # endif
7226 # endif
7227 # endif
7228 # endif
7229 #endif
7230
7231 int
7232 main ()
7233 {
7234 char *p = (char *) alloca (1);
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag"
7249 || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest$ac_exeext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_func_alloca_works=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 ac_cv_func_alloca_works=no
7267 fi
7268 rm -f conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 fi
7271 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7272 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7273
7274 if test $ac_cv_func_alloca_works = yes; then
7275
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_ALLOCA 1
7278 _ACEOF
7279
7280 else
7281 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7282 # that cause trouble. Some versions do not even contain alloca or
7283 # contain a buggy version. If you still want to use their alloca,
7284 # use ar to extract alloca.o from them instead of compiling alloca.c.
7285
7286 ALLOCA=alloca.$ac_objext
7287
7288 cat >>confdefs.h <<\_ACEOF
7289 #define C_ALLOCA 1
7290 _ACEOF
7291
7292
7293 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7294 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7295 if test "${ac_cv_os_cray+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #if defined(CRAY) && ! defined(CRAY2)
7305 webecray
7306 #else
7307 wenotbecray
7308 #endif
7309
7310 _ACEOF
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 $EGREP "webecray" >/dev/null 2>&1; then
7313 ac_cv_os_cray=yes
7314 else
7315 ac_cv_os_cray=no
7316 fi
7317 rm -f conftest*
7318
7319 fi
7320 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7321 echo "${ECHO_T}$ac_cv_os_cray" >&6
7322 if test $ac_cv_os_cray = yes; then
7323 for ac_func in _getb67 GETB67 getb67; do
7324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7325 echo "$as_me:$LINENO: checking for $ac_func" >&5
7326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7327 if eval "test \"\${$as_ac_var+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7338 #define $ac_func innocuous_$ac_func
7339
7340 /* System header to define __stub macros and hopefully few prototypes,
7341 which can conflict with char $ac_func (); below.
7342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343 <limits.h> exists even on freestanding compilers. */
7344
7345 #ifdef __STDC__
7346 # include <limits.h>
7347 #else
7348 # include <assert.h>
7349 #endif
7350
7351 #undef $ac_func
7352
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 #ifdef __cplusplus
7355 extern "C"
7356 {
7357 #endif
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7360 char $ac_func ();
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 choke me
7366 #else
7367 char (*f) () = $ac_func;
7368 #endif
7369 #ifdef __cplusplus
7370 }
7371 #endif
7372
7373 int
7374 main ()
7375 {
7376 return f != $ac_func;
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7407
7408 eval "$as_ac_var=no"
7409 fi
7410 rm -f conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 fi
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7415 if test `eval echo '${'$as_ac_var'}'` = yes; then
7416
7417 cat >>confdefs.h <<_ACEOF
7418 #define CRAY_STACKSEG_END $ac_func
7419 _ACEOF
7420
7421 break
7422 fi
7423
7424 done
7425 fi
7426
7427 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7428 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7429 if test "${ac_cv_c_stack_direction+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 if test "$cross_compiling" = yes; then
7433 ac_cv_c_stack_direction=0
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 int
7442 find_stack_direction ()
7443 {
7444 static char *addr = 0;
7445 auto char dummy;
7446 if (addr == 0)
7447 {
7448 addr = &dummy;
7449 return find_stack_direction ();
7450 }
7451 else
7452 return (&dummy > addr) ? 1 : -1;
7453 }
7454
7455 int
7456 main ()
7457 {
7458 exit (find_stack_direction () < 0);
7459 }
7460 _ACEOF
7461 rm -f conftest$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_c_stack_direction=1
7473 else
7474 echo "$as_me: program exited with status $ac_status" >&5
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 ( exit $ac_status )
7479 ac_cv_c_stack_direction=-1
7480 fi
7481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 fi
7484 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7485 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define STACK_DIRECTION $ac_cv_c_stack_direction
7489 _ACEOF
7490
7491
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
7538 fgetln flock fparseln futimes getopt getopt_long group_from_gid \
7539 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
7540 mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
7541 setgroupent setprogname setpassent snprintf strlcat strlcpy strsep \
7542 strsuftoll strtoll \
7543 user_from_uid vasprintf vasnprintf vsnprintf
7544 do
7545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7546 echo "$as_me:$LINENO: checking for $ac_func" >&5
7547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7548 if eval "test \"\${$as_ac_var+set}\" = set"; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7559 #define $ac_func innocuous_$ac_func
7560
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func (); below.
7563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564 <limits.h> exists even on freestanding compilers. */
7565
7566 #ifdef __STDC__
7567 # include <limits.h>
7568 #else
7569 # include <assert.h>
7570 #endif
7571
7572 #undef $ac_func
7573
7574 /* Override any gcc2 internal prototype to avoid an error. */
7575 #ifdef __cplusplus
7576 extern "C"
7577 {
7578 #endif
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7581 char $ac_func ();
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7586 choke me
7587 #else
7588 char (*f) () = $ac_func;
7589 #endif
7590 #ifdef __cplusplus
7591 }
7592 #endif
7593
7594 int
7595 main ()
7596 {
7597 return f != $ac_func;
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 eval "$as_ac_var=yes"
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 eval "$as_ac_var=no"
7630 fi
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 fi
7634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7636 if test `eval echo '${'$as_ac_var'}'` = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7639 _ACEOF
7640
7641 fi
7642 done
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 for ac_func in htobe16, htobe32, htobe64, htole16, htole32, htole64, be16toh, be32toh, be64toh, le16toh, le32toh, le64toh
7658 do
7659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7660 echo "$as_me:$LINENO: checking for $ac_func" >&5
7661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_var+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7673 #define $ac_func innocuous_$ac_func
7674
7675 /* System header to define __stub macros and hopefully few prototypes,
7676 which can conflict with char $ac_func (); below.
7677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7678 <limits.h> exists even on freestanding compilers. */
7679
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685
7686 #undef $ac_func
7687
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 #ifdef __cplusplus
7690 extern "C"
7691 {
7692 #endif
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char $ac_func ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 choke me
7701 #else
7702 char (*f) () = $ac_func;
7703 #endif
7704 #ifdef __cplusplus
7705 }
7706 #endif
7707
7708 int
7709 main ()
7710 {
7711 return f != $ac_func;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 eval "$as_ac_var=yes"
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 eval "$as_ac_var=no"
7744 fi
7745 rm -f conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 fi
7748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7750 if test `eval echo '${'$as_ac_var'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7753 _ACEOF
7754
7755 fi
7756 done
7757
7758
7759
7760
7761
7762 for ac_func in bswap16, bswap32, bswap64
7763 do
7764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7765 echo "$as_me:$LINENO: checking for $ac_func" >&5
7766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7767 if eval "test \"\${$as_ac_var+set}\" = set"; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7778 #define $ac_func innocuous_$ac_func
7779
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func (); below.
7782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783 <limits.h> exists even on freestanding compilers. */
7784
7785 #ifdef __STDC__
7786 # include <limits.h>
7787 #else
7788 # include <assert.h>
7789 #endif
7790
7791 #undef $ac_func
7792
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 #ifdef __cplusplus
7795 extern "C"
7796 {
7797 #endif
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7800 char $ac_func ();
7801 /* The GNU C library defines this for functions which it implements
7802 to always fail with ENOSYS. Some functions are actually named
7803 something starting with __ and the normal name is an alias. */
7804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7805 choke me
7806 #else
7807 char (*f) () = $ac_func;
7808 #endif
7809 #ifdef __cplusplus
7810 }
7811 #endif
7812
7813 int
7814 main ()
7815 {
7816 return f != $ac_func;
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823 (eval $ac_link) 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -z "$ac_c_werror_flag"
7831 || test ! -s conftest.err'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; } &&
7837 { ac_try='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 eval "$as_ac_var=yes"
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 eval "$as_ac_var=no"
7849 fi
7850 rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7855 if test `eval echo '${'$as_ac_var'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7858 _ACEOF
7859
7860 fi
7861 done
7862
7863
7864
7865 for ac_func in fstatvfs
7866 do
7867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7868 echo "$as_me:$LINENO: checking for $ac_func" >&5
7869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_var+set}\" = set"; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7881 #define $ac_func innocuous_$ac_func
7882
7883 /* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char $ac_func (); below.
7885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7886 <limits.h> exists even on freestanding compilers. */
7887
7888 #ifdef __STDC__
7889 # include <limits.h>
7890 #else
7891 # include <assert.h>
7892 #endif
7893
7894 #undef $ac_func
7895
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 {
7900 #endif
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7903 char $ac_func ();
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 choke me
7909 #else
7910 char (*f) () = $ac_func;
7911 #endif
7912 #ifdef __cplusplus
7913 }
7914 #endif
7915
7916 int
7917 main ()
7918 {
7919 return f != $ac_func;
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 eval "$as_ac_var=yes"
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 eval "$as_ac_var=no"
7952 fi
7953 rm -f conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955 fi
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7958 if test `eval echo '${'$as_ac_var'}'` = yes; then
7959 cat >>confdefs.h <<_ACEOF
7960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7961 _ACEOF
7962
7963 fi
7964 done
7965
7966
7967 echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
7968 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
7969 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978
7979 #include <sys/types.h>
7980 #include <grp.h>
7981 #include <pwd.h>
7982
7983
7984 int
7985 main ()
7986 {
7987 #ifndef setgroupent
7988 char *p = (char *) setgroupent;
7989 #endif
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 rm -f conftest.$ac_objext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7997 (eval $ac_compile) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest.$ac_objext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_have_decl_setgroupent=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_have_decl_setgroupent=no
8023 fi
8024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
8027 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
8028 if test $ac_cv_have_decl_setgroupent = yes; then
8029
8030 cat >>confdefs.h <<_ACEOF
8031 #define HAVE_DECL_SETGROUPENT 1
8032 _ACEOF
8033
8034
8035 else
8036 cat >>confdefs.h <<_ACEOF
8037 #define HAVE_DECL_SETGROUPENT 0
8038 _ACEOF
8039
8040
8041 fi
8042 echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
8043 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
8044 if test "${ac_cv_have_decl_setpassent+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053
8054 #include <sys/types.h>
8055 #include <grp.h>
8056 #include <pwd.h>
8057
8058
8059 int
8060 main ()
8061 {
8062 #ifndef setpassent
8063 char *p = (char *) setpassent;
8064 #endif
8065
8066 ;
8067 return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try='test -z "$ac_c_werror_flag"
8080 || test ! -s conftest.err'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_have_decl_setpassent=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 ac_cv_have_decl_setpassent=no
8098 fi
8099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
8102 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
8103 if test $ac_cv_have_decl_setpassent = yes; then
8104
8105 cat >>confdefs.h <<_ACEOF
8106 #define HAVE_DECL_SETPASSENT 1
8107 _ACEOF
8108
8109
8110 else
8111 cat >>confdefs.h <<_ACEOF
8112 #define HAVE_DECL_SETPASSENT 0
8113 _ACEOF
8114
8115
8116 fi
8117
8118
8119
8120 # regcomp() and regexec() are also names of functions in the old V8
8121 # regexp package. To avoid them, we need to find out who has regfree().
8122
8123
8124 echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
8125 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
8126 if test "${ac_cv_lib_regex_regfree+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lregex $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137
8138 /* Override any gcc2 internal prototype to avoid an error. */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144 char regfree ();
8145 int
8146 main ()
8147 {
8148 regfree ();
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_cv_lib_regex_regfree=yes
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_cv_lib_regex_regfree=no
8181 fi
8182 rm -f conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_check_lib_save_LIBS
8185 fi
8186 echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
8187 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
8188 if test $ac_cv_lib_regex_regfree = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define HAVE_LIBREGEX 1
8191 _ACEOF
8192
8193 LIBS="-lregex $LIBS"
8194
8195 fi
8196
8197 echo "$as_me:$LINENO: checking for library containing regfree" >&5
8198 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
8199 if test "${ac_cv_search_regfree+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 ac_func_search_save_LIBS=$LIBS
8203 ac_cv_search_regfree=no
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217 char regfree ();
8218 int
8219 main ()
8220 {
8221 regfree ();
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest$ac_exeext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_search_regfree="none required"
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 fi
8254 rm -f conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 if test "$ac_cv_search_regfree" = no; then
8257 for ac_lib in rx posix; do
8258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272 char regfree ();
8273 int
8274 main ()
8275 {
8276 regfree ();
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_search_regfree="-l$ac_lib"
8304 break
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 done
8313 fi
8314 LIBS=$ac_func_search_save_LIBS
8315 fi
8316 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
8317 echo "${ECHO_T}$ac_cv_search_regfree" >&6
8318 if test "$ac_cv_search_regfree" != no; then
8319 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
8320
8321 fi
8322
8323
8324 cat >confcache <<\_ACEOF
8325 # This file is a shell script that caches the results of configure
8326 # tests run on this system so they can be shared between configure
8327 # scripts and configure runs, see configure's option --config-cache.
8328 # It is not useful on other systems. If it contains results you don't
8329 # want to keep, you may remove or edit it.
8330 #
8331 # config.status only pays attention to the cache file if you give it
8332 # the --recheck option to rerun configure.
8333 #
8334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8336 # following values.
8337
8338 _ACEOF
8339
8340 # The following way of writing the cache mishandles newlines in values,
8341 # but we know of no workaround that is simple, portable, and efficient.
8342 # So, don't put newlines in cache variables' values.
8343 # Ultrix sh set writes to stderr and can't be redirected directly,
8344 # and sets the high bit in the cache file unless we assign to the vars.
8345 {
8346 (set) 2>&1 |
8347 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8348 *ac_space=\ *)
8349 # `set' does not quote correctly, so add quotes (double-quote
8350 # substitution turns \\\\ into \\, and sed turns \\ into \).
8351 sed -n \
8352 "s/'/'\\\\''/g;
8353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8354 ;;
8355 *)
8356 # `set' quotes correctly as required by POSIX, so do not add quotes.
8357 sed -n \
8358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8359 ;;
8360 esac;
8361 } |
8362 sed '
8363 t clear
8364 : clear
8365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8366 t end
8367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8368 : end' >>confcache
8369 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8370 if test -w $cache_file; then
8371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8372 cat confcache >$cache_file
8373 else
8374 echo "not updating unwritable cache $cache_file"
8375 fi
8376 fi
8377 rm -f confcache
8378
8379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8380 # Let make expand exec_prefix.
8381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8382
8383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8385 # trailing colons and then remove the whole line if VPATH becomes empty
8386 # (actually we leave an empty line to preserve line numbers).
8387 if test "x$srcdir" = x.; then
8388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8389 s/:*\$(srcdir):*/:/;
8390 s/:*\${srcdir}:*/:/;
8391 s/:*@srcdir@:*/:/;
8392 s/^\([^=]*=[ ]*\):*/\1/;
8393 s/:*$//;
8394 s/^[^=]*=[ ]*$//;
8395 }'
8396 fi
8397
8398 DEFS=-DHAVE_CONFIG_H
8399
8400 ac_libobjs=
8401 ac_ltlibobjs=
8402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8403 # 1. Remove the extension, and $U if already installed.
8404 ac_i=`echo "$ac_i" |
8405 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8406 # 2. Add them.
8407 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8408 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8409 done
8410 LIBOBJS=$ac_libobjs
8411
8412 LTLIBOBJS=$ac_ltlibobjs
8413
8414
8415
8416 : ${CONFIG_STATUS=./config.status}
8417 ac_clean_files_save=$ac_clean_files
8418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8421 cat >$CONFIG_STATUS <<_ACEOF
8422 #! $SHELL
8423 # Generated by $as_me.
8424 # Run this file to recreate the current configuration.
8425 # Compiler output produced by configure, useful for debugging
8426 # configure, is in config.log if it exists.
8427
8428 debug=false
8429 ac_cs_recheck=false
8430 ac_cs_silent=false
8431 SHELL=\${CONFIG_SHELL-$SHELL}
8432 _ACEOF
8433
8434 cat >>$CONFIG_STATUS <<\_ACEOF
8435 ## --------------------- ##
8436 ## M4sh Initialization. ##
8437 ## --------------------- ##
8438
8439 # Be Bourne compatible
8440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8441 emulate sh
8442 NULLCMD=:
8443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8444 # is contrary to our usage. Disable this feature.
8445 alias -g '${1+"$@"}'='"$@"'
8446 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8447 set -o posix
8448 fi
8449 DUALCASE=1; export DUALCASE # for MKS sh
8450
8451 # Support unset when possible.
8452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8453 as_unset=unset
8454 else
8455 as_unset=false
8456 fi
8457
8458
8459 # Work around bugs in pre-3.0 UWIN ksh.
8460 $as_unset ENV MAIL MAILPATH
8461 PS1='$ '
8462 PS2='> '
8463 PS4='+ '
8464
8465 # NLS nuisances.
8466 for as_var in \
8467 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8468 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8469 LC_TELEPHONE LC_TIME
8470 do
8471 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8472 eval $as_var=C; export $as_var
8473 else
8474 $as_unset $as_var
8475 fi
8476 done
8477
8478 # Required to use basename.
8479 if expr a : '\(a\)' >/dev/null 2>&1; then
8480 as_expr=expr
8481 else
8482 as_expr=false
8483 fi
8484
8485 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8486 as_basename=basename
8487 else
8488 as_basename=false
8489 fi
8490
8491
8492 # Name of the executable.
8493 as_me=`$as_basename "$0" ||
8494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8495 X"$0" : 'X\(//\)$' \| \
8496 X"$0" : 'X\(/\)$' \| \
8497 . : '\(.\)' 2>/dev/null ||
8498 echo X/"$0" |
8499 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8500 /^X\/\(\/\/\)$/{ s//\1/; q; }
8501 /^X\/\(\/\).*/{ s//\1/; q; }
8502 s/.*/./; q'`
8503
8504
8505 # PATH needs CR, and LINENO needs CR and PATH.
8506 # Avoid depending upon Character Ranges.
8507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8510 as_cr_digits='0123456789'
8511 as_cr_alnum=$as_cr_Letters$as_cr_digits
8512
8513 # The user is always right.
8514 if test "${PATH_SEPARATOR+set}" != set; then
8515 echo "#! /bin/sh" >conf$$.sh
8516 echo "exit 0" >>conf$$.sh
8517 chmod +x conf$$.sh
8518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8519 PATH_SEPARATOR=';'
8520 else
8521 PATH_SEPARATOR=:
8522 fi
8523 rm -f conf$$.sh
8524 fi
8525
8526
8527 as_lineno_1=$LINENO
8528 as_lineno_2=$LINENO
8529 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8530 test "x$as_lineno_1" != "x$as_lineno_2" &&
8531 test "x$as_lineno_3" = "x$as_lineno_2" || {
8532 # Find who we are. Look in the path if we contain no path at all
8533 # relative or not.
8534 case $0 in
8535 *[\\/]* ) as_myself=$0 ;;
8536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8542 done
8543
8544 ;;
8545 esac
8546 # We did not find ourselves, most probably we were run as `sh COMMAND'
8547 # in which case we are not to be found in the path.
8548 if test "x$as_myself" = x; then
8549 as_myself=$0
8550 fi
8551 if test ! -f "$as_myself"; then
8552 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8554 { (exit 1); exit 1; }; }
8555 fi
8556 case $CONFIG_SHELL in
8557 '')
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8560 do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for as_base in sh bash ksh sh5; do
8564 case $as_dir in
8565 /*)
8566 if ("$as_dir/$as_base" -c '
8567 as_lineno_1=$LINENO
8568 as_lineno_2=$LINENO
8569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8570 test "x$as_lineno_1" != "x$as_lineno_2" &&
8571 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8572 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8573 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8574 CONFIG_SHELL=$as_dir/$as_base
8575 export CONFIG_SHELL
8576 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8577 fi;;
8578 esac
8579 done
8580 done
8581 ;;
8582 esac
8583
8584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8585 # uniformly replaced by the line number. The first 'sed' inserts a
8586 # line-number line before each line; the second 'sed' does the real
8587 # work. The second script uses 'N' to pair each line-number line
8588 # with the numbered line, and appends trailing '-' during
8589 # substitution so that $LINENO is not a special case at line end.
8590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8591 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8592 sed '=' <$as_myself |
8593 sed '
8594 N
8595 s,$,-,
8596 : loop
8597 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8598 t loop
8599 s,-$,,
8600 s,^['$as_cr_digits']*\n,,
8601 ' >$as_me.lineno &&
8602 chmod +x $as_me.lineno ||
8603 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8605 { (exit 1); exit 1; }; }
8606
8607 # Don't try to exec as it changes $[0], causing all sort of problems
8608 # (the dirname of $[0] is not the place where we might find the
8609 # original and so on. Autoconf is especially sensible to this).
8610 . ./$as_me.lineno
8611 # Exit status is that of the last command.
8612 exit
8613 }
8614
8615
8616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8617 *c*,-n*) ECHO_N= ECHO_C='
8618 ' ECHO_T=' ' ;;
8619 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8620 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8621 esac
8622
8623 if expr a : '\(a\)' >/dev/null 2>&1; then
8624 as_expr=expr
8625 else
8626 as_expr=false
8627 fi
8628
8629 rm -f conf$$ conf$$.exe conf$$.file
8630 echo >conf$$.file
8631 if ln -s conf$$.file conf$$ 2>/dev/null; then
8632 # We could just check for DJGPP; but this test a) works b) is more generic
8633 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8634 if test -f conf$$.exe; then
8635 # Don't use ln at all; we don't have any links
8636 as_ln_s='cp -p'
8637 else
8638 as_ln_s='ln -s'
8639 fi
8640 elif ln conf$$.file conf$$ 2>/dev/null; then
8641 as_ln_s=ln
8642 else
8643 as_ln_s='cp -p'
8644 fi
8645 rm -f conf$$ conf$$.exe conf$$.file
8646
8647 if mkdir -p . 2>/dev/null; then
8648 as_mkdir_p=:
8649 else
8650 test -d ./-p && rmdir ./-p
8651 as_mkdir_p=false
8652 fi
8653
8654 as_executable_p="test -f"
8655
8656 # Sed expression to map a string onto a valid CPP name.
8657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8658
8659 # Sed expression to map a string onto a valid variable name.
8660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8661
8662
8663 # IFS
8664 # We need space, tab and new line, in precisely that order.
8665 as_nl='
8666 '
8667 IFS=" $as_nl"
8668
8669 # CDPATH.
8670 $as_unset CDPATH
8671
8672 exec 6>&1
8673
8674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8675 # report actual input values of CONFIG_FILES etc. instead of their
8676 # values after options handling. Logging --version etc. is OK.
8677 exec 5>>config.log
8678 {
8679 echo
8680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8681 ## Running $as_me. ##
8682 _ASBOX
8683 } >&5
8684 cat >&5 <<_CSEOF
8685
8686 This file was extended by libnbcompat $as_me noversion, which was
8687 generated by GNU Autoconf 2.59. Invocation command line was
8688
8689 CONFIG_FILES = $CONFIG_FILES
8690 CONFIG_HEADERS = $CONFIG_HEADERS
8691 CONFIG_LINKS = $CONFIG_LINKS
8692 CONFIG_COMMANDS = $CONFIG_COMMANDS
8693 $ $0 $@
8694
8695 _CSEOF
8696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8697 echo >&5
8698 _ACEOF
8699
8700 # Files that config.status was made for.
8701 if test -n "$ac_config_files"; then
8702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8703 fi
8704
8705 if test -n "$ac_config_headers"; then
8706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8707 fi
8708
8709 if test -n "$ac_config_links"; then
8710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8711 fi
8712
8713 if test -n "$ac_config_commands"; then
8714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8715 fi
8716
8717 cat >>$CONFIG_STATUS <<\_ACEOF
8718
8719 ac_cs_usage="\
8720 \`$as_me' instantiates files from templates according to the
8721 current configuration.
8722
8723 Usage: $0 [OPTIONS] [FILE]...
8724
8725 -h, --help print this help, then exit
8726 -V, --version print version number, then exit
8727 -q, --quiet do not print progress messages
8728 -d, --debug don't remove temporary files
8729 --recheck update $as_me by reconfiguring in the same conditions
8730 --file=FILE[:TEMPLATE]
8731 instantiate the configuration file FILE
8732 --header=FILE[:TEMPLATE]
8733 instantiate the configuration header FILE
8734
8735 Configuration files:
8736 $config_files
8737
8738 Configuration headers:
8739 $config_headers
8740
8741 Report bugs to <bug-autoconf@gnu.org>."
8742 _ACEOF
8743
8744 cat >>$CONFIG_STATUS <<_ACEOF
8745 ac_cs_version="\\
8746 libnbcompat config.status noversion
8747 configured by $0, generated by GNU Autoconf 2.59,
8748 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8749
8750 Copyright (C) 2003 Free Software Foundation, Inc.
8751 This config.status script is free software; the Free Software Foundation
8752 gives unlimited permission to copy, distribute and modify it."
8753 srcdir=$srcdir
8754 _ACEOF
8755
8756 cat >>$CONFIG_STATUS <<\_ACEOF
8757 # If no file are specified by the user, then we need to provide default
8758 # value. By we need to know if files were specified by the user.
8759 ac_need_defaults=:
8760 while test $# != 0
8761 do
8762 case $1 in
8763 --*=*)
8764 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8765 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8766 ac_shift=:
8767 ;;
8768 -*)
8769 ac_option=$1
8770 ac_optarg=$2
8771 ac_shift=shift
8772 ;;
8773 *) # This is not an option, so the user has probably given explicit
8774 # arguments.
8775 ac_option=$1
8776 ac_need_defaults=false;;
8777 esac
8778
8779 case $ac_option in
8780 # Handling of the options.
8781 _ACEOF
8782 cat >>$CONFIG_STATUS <<\_ACEOF
8783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8784 ac_cs_recheck=: ;;
8785 --version | --vers* | -V )
8786 echo "$ac_cs_version"; exit 0 ;;
8787 --he | --h)
8788 # Conflict between --help and --header
8789 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8790 Try \`$0 --help' for more information." >&5
8791 echo "$as_me: error: ambiguous option: $1
8792 Try \`$0 --help' for more information." >&2;}
8793 { (exit 1); exit 1; }; };;
8794 --help | --hel | -h )
8795 echo "$ac_cs_usage"; exit 0 ;;
8796 --debug | --d* | -d )
8797 debug=: ;;
8798 --file | --fil | --fi | --f )
8799 $ac_shift
8800 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8801 ac_need_defaults=false;;
8802 --header | --heade | --head | --hea )
8803 $ac_shift
8804 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8805 ac_need_defaults=false;;
8806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8808 ac_cs_silent=: ;;
8809
8810 # This is an error.
8811 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8812 Try \`$0 --help' for more information." >&5
8813 echo "$as_me: error: unrecognized option: $1
8814 Try \`$0 --help' for more information." >&2;}
8815 { (exit 1); exit 1; }; } ;;
8816
8817 *) ac_config_targets="$ac_config_targets $1" ;;
8818
8819 esac
8820 shift
8821 done
8822
8823 ac_configure_extra_args=
8824
8825 if $ac_cs_silent; then
8826 exec 6>/dev/null
8827 ac_configure_extra_args="$ac_configure_extra_args --silent"
8828 fi
8829
8830 _ACEOF
8831 cat >>$CONFIG_STATUS <<_ACEOF
8832 if \$ac_cs_recheck; then
8833 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8834 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8835 fi
8836
8837 _ACEOF
8838
8839
8840
8841
8842
8843 cat >>$CONFIG_STATUS <<\_ACEOF
8844 for ac_config_target in $ac_config_targets
8845 do
8846 case "$ac_config_target" in
8847 # Handling of arguments.
8848 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
8849 "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
8850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8852 { (exit 1); exit 1; }; };;
8853 esac
8854 done
8855
8856 # If the user did not use the arguments to specify the items to instantiate,
8857 # then the envvar interface is used. Set only those that are not.
8858 # We use the long form for the default assignment because of an extremely
8859 # bizarre bug on SunOS 4.1.3.
8860 if $ac_need_defaults; then
8861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8863 fi
8864
8865 # Have a temporary directory for convenience. Make it in the build tree
8866 # simply because there is no reason to put it here, and in addition,
8867 # creating and moving files from /tmp can sometimes cause problems.
8868 # Create a temporary directory, and hook for its removal unless debugging.
8869 $debug ||
8870 {
8871 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8872 trap '{ (exit 1); exit 1; }' 1 2 13 15
8873 }
8874
8875 # Create a (secure) tmp directory for tmp files.
8876
8877 {
8878 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8879 test -n "$tmp" && test -d "$tmp"
8880 } ||
8881 {
8882 tmp=./confstat$$-$RANDOM
8883 (umask 077 && mkdir $tmp)
8884 } ||
8885 {
8886 echo "$me: cannot create a temporary directory in ." >&2
8887 { (exit 1); exit 1; }
8888 }
8889
8890 _ACEOF
8891
8892 cat >>$CONFIG_STATUS <<_ACEOF
8893
8894 #
8895 # CONFIG_FILES section.
8896 #
8897
8898 # No need to generate the scripts if there are no CONFIG_FILES.
8899 # This happens for instance when ./config.status config.h
8900 if test -n "\$CONFIG_FILES"; then
8901 # Protect against being on the right side of a sed subst in config.status.
8902 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8903 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8904 s,@SHELL@,$SHELL,;t t
8905 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8906 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8907 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8908 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8909 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8910 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8911 s,@exec_prefix@,$exec_prefix,;t t
8912 s,@prefix@,$prefix,;t t
8913 s,@program_transform_name@,$program_transform_name,;t t
8914 s,@bindir@,$bindir,;t t
8915 s,@sbindir@,$sbindir,;t t
8916 s,@libexecdir@,$libexecdir,;t t
8917 s,@datadir@,$datadir,;t t
8918 s,@sysconfdir@,$sysconfdir,;t t
8919 s,@sharedstatedir@,$sharedstatedir,;t t
8920 s,@localstatedir@,$localstatedir,;t t
8921 s,@libdir@,$libdir,;t t
8922 s,@includedir@,$includedir,;t t
8923 s,@oldincludedir@,$oldincludedir,;t t
8924 s,@infodir@,$infodir,;t t
8925 s,@mandir@,$mandir,;t t
8926 s,@build_alias@,$build_alias,;t t
8927 s,@host_alias@,$host_alias,;t t
8928 s,@target_alias@,$target_alias,;t t
8929 s,@DEFS@,$DEFS,;t t
8930 s,@ECHO_C@,$ECHO_C,;t t
8931 s,@ECHO_N@,$ECHO_N,;t t
8932 s,@ECHO_T@,$ECHO_T,;t t
8933 s,@LIBS@,$LIBS,;t t
8934 s,@CC@,$CC,;t t
8935 s,@CFLAGS@,$CFLAGS,;t t
8936 s,@LDFLAGS@,$LDFLAGS,;t t
8937 s,@CPPFLAGS@,$CPPFLAGS,;t t
8938 s,@ac_ct_CC@,$ac_ct_CC,;t t
8939 s,@EXEEXT@,$EXEEXT,;t t
8940 s,@OBJEXT@,$OBJEXT,;t t
8941 s,@CPP@,$CPP,;t t
8942 s,@EGREP@,$EGREP,;t t
8943 s,@BSHELL@,$BSHELL,;t t
8944 s,@ALLOCA@,$ALLOCA,;t t
8945 s,@LIBOBJS@,$LIBOBJS,;t t
8946 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8947 CEOF
8948
8949 _ACEOF
8950
8951 cat >>$CONFIG_STATUS <<\_ACEOF
8952 # Split the substitutions into bite-sized pieces for seds with
8953 # small command number limits, like on Digital OSF/1 and HP-UX.
8954 ac_max_sed_lines=48
8955 ac_sed_frag=1 # Number of current file.
8956 ac_beg=1 # First line for current file.
8957 ac_end=$ac_max_sed_lines # Line after last line for current file.
8958 ac_more_lines=:
8959 ac_sed_cmds=
8960 while $ac_more_lines; do
8961 if test $ac_beg -gt 1; then
8962 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8963 else
8964 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8965 fi
8966 if test ! -s $tmp/subs.frag; then
8967 ac_more_lines=false
8968 else
8969 # The purpose of the label and of the branching condition is to
8970 # speed up the sed processing (if there are no `@' at all, there
8971 # is no need to browse any of the substitutions).
8972 # These are the two extra sed commands mentioned above.
8973 (echo ':t
8974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8975 if test -z "$ac_sed_cmds"; then
8976 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8977 else
8978 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8979 fi
8980 ac_sed_frag=`expr $ac_sed_frag + 1`
8981 ac_beg=$ac_end
8982 ac_end=`expr $ac_end + $ac_max_sed_lines`
8983 fi
8984 done
8985 if test -z "$ac_sed_cmds"; then
8986 ac_sed_cmds=cat
8987 fi
8988 fi # test -n "$CONFIG_FILES"
8989
8990 _ACEOF
8991 cat >>$CONFIG_STATUS <<\_ACEOF
8992 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8994 case $ac_file in
8995 - | *:- | *:-:* ) # input from stdin
8996 cat >$tmp/stdin
8997 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8999 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9001 * ) ac_file_in=$ac_file.in ;;
9002 esac
9003
9004 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9005 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9007 X"$ac_file" : 'X\(//\)[^/]' \| \
9008 X"$ac_file" : 'X\(//\)$' \| \
9009 X"$ac_file" : 'X\(/\)' \| \
9010 . : '\(.\)' 2>/dev/null ||
9011 echo X"$ac_file" |
9012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9014 /^X\(\/\/\)$/{ s//\1/; q; }
9015 /^X\(\/\).*/{ s//\1/; q; }
9016 s/.*/./; q'`
9017 { if $as_mkdir_p; then
9018 mkdir -p "$ac_dir"
9019 else
9020 as_dir="$ac_dir"
9021 as_dirs=
9022 while test ! -d "$as_dir"; do
9023 as_dirs="$as_dir $as_dirs"
9024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9026 X"$as_dir" : 'X\(//\)[^/]' \| \
9027 X"$as_dir" : 'X\(//\)$' \| \
9028 X"$as_dir" : 'X\(/\)' \| \
9029 . : '\(.\)' 2>/dev/null ||
9030 echo X"$as_dir" |
9031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9033 /^X\(\/\/\)$/{ s//\1/; q; }
9034 /^X\(\/\).*/{ s//\1/; q; }
9035 s/.*/./; q'`
9036 done
9037 test ! -n "$as_dirs" || mkdir $as_dirs
9038 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9040 { (exit 1); exit 1; }; }; }
9041
9042 ac_builddir=.
9043
9044 if test "$ac_dir" != .; then
9045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9046 # A "../" for each directory in $ac_dir_suffix.
9047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9048 else
9049 ac_dir_suffix= ac_top_builddir=
9050 fi
9051
9052 case $srcdir in
9053 .) # No --srcdir option. We are building in place.
9054 ac_srcdir=.
9055 if test -z "$ac_top_builddir"; then
9056 ac_top_srcdir=.
9057 else
9058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9059 fi ;;
9060 [\\/]* | ?:[\\/]* ) # Absolute path.
9061 ac_srcdir=$srcdir$ac_dir_suffix;
9062 ac_top_srcdir=$srcdir ;;
9063 *) # Relative path.
9064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9066 esac
9067
9068 # Do not use `cd foo && pwd` to compute absolute paths, because
9069 # the directories may not exist.
9070 case `pwd` in
9071 .) ac_abs_builddir="$ac_dir";;
9072 *)
9073 case "$ac_dir" in
9074 .) ac_abs_builddir=`pwd`;;
9075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9077 esac;;
9078 esac
9079 case $ac_abs_builddir in
9080 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9081 *)
9082 case ${ac_top_builddir}. in
9083 .) ac_abs_top_builddir=$ac_abs_builddir;;
9084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9086 esac;;
9087 esac
9088 case $ac_abs_builddir in
9089 .) ac_abs_srcdir=$ac_srcdir;;
9090 *)
9091 case $ac_srcdir in
9092 .) ac_abs_srcdir=$ac_abs_builddir;;
9093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9095 esac;;
9096 esac
9097 case $ac_abs_builddir in
9098 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9099 *)
9100 case $ac_top_srcdir in
9101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9104 esac;;
9105 esac
9106
9107
9108
9109 if test x"$ac_file" != x-; then
9110 { echo "$as_me:$LINENO: creating $ac_file" >&5
9111 echo "$as_me: creating $ac_file" >&6;}
9112 rm -f "$ac_file"
9113 fi
9114 # Let's still pretend it is `configure' which instantiates (i.e., don't
9115 # use $as_me), people would be surprised to read:
9116 # /* config.h. Generated by config.status. */
9117 if test x"$ac_file" = x-; then
9118 configure_input=
9119 else
9120 configure_input="$ac_file. "
9121 fi
9122 configure_input=$configure_input"Generated from `echo $ac_file_in |
9123 sed 's,.*/,,'` by configure."
9124
9125 # First look for the input files in the build tree, otherwise in the
9126 # src tree.
9127 ac_file_inputs=`IFS=:
9128 for f in $ac_file_in; do
9129 case $f in
9130 -) echo $tmp/stdin ;;
9131 [\\/$]*)
9132 # Absolute (can't be DOS-style, as IFS=:)
9133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9134 echo "$as_me: error: cannot find input file: $f" >&2;}
9135 { (exit 1); exit 1; }; }
9136 echo "$f";;
9137 *) # Relative
9138 if test -f "$f"; then
9139 # Build tree
9140 echo "$f"
9141 elif test -f "$srcdir/$f"; then
9142 # Source tree
9143 echo "$srcdir/$f"
9144 else
9145 # /dev/null tree
9146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9147 echo "$as_me: error: cannot find input file: $f" >&2;}
9148 { (exit 1); exit 1; }; }
9149 fi;;
9150 esac
9151 done` || { (exit 1); exit 1; }
9152 _ACEOF
9153 cat >>$CONFIG_STATUS <<_ACEOF
9154 sed "$ac_vpsub
9155 $extrasub
9156 _ACEOF
9157 cat >>$CONFIG_STATUS <<\_ACEOF
9158 :t
9159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9160 s,@configure_input@,$configure_input,;t t
9161 s,@srcdir@,$ac_srcdir,;t t
9162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9163 s,@top_srcdir@,$ac_top_srcdir,;t t
9164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9165 s,@builddir@,$ac_builddir,;t t
9166 s,@abs_builddir@,$ac_abs_builddir,;t t
9167 s,@top_builddir@,$ac_top_builddir,;t t
9168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9169 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9170 rm -f $tmp/stdin
9171 if test x"$ac_file" != x-; then
9172 mv $tmp/out $ac_file
9173 else
9174 cat $tmp/out
9175 rm -f $tmp/out
9176 fi
9177
9178 done
9179 _ACEOF
9180 cat >>$CONFIG_STATUS <<\_ACEOF
9181
9182 #
9183 # CONFIG_HEADER section.
9184 #
9185
9186 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9187 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9188 #
9189 # ac_d sets the value in "#define NAME VALUE" lines.
9190 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9191 ac_dB='[ ].*$,\1#\2'
9192 ac_dC=' '
9193 ac_dD=',;t'
9194 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9195 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9196 ac_uB='$,\1#\2define\3'
9197 ac_uC=' '
9198 ac_uD=',;t'
9199
9200 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9202 case $ac_file in
9203 - | *:- | *:-:* ) # input from stdin
9204 cat >$tmp/stdin
9205 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9207 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9209 * ) ac_file_in=$ac_file.in ;;
9210 esac
9211
9212 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9213 echo "$as_me: creating $ac_file" >&6;}
9214
9215 # First look for the input files in the build tree, otherwise in the
9216 # src tree.
9217 ac_file_inputs=`IFS=:
9218 for f in $ac_file_in; do
9219 case $f in
9220 -) echo $tmp/stdin ;;
9221 [\\/$]*)
9222 # Absolute (can't be DOS-style, as IFS=:)
9223 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9224 echo "$as_me: error: cannot find input file: $f" >&2;}
9225 { (exit 1); exit 1; }; }
9226 # Do quote $f, to prevent DOS paths from being IFS'd.
9227 echo "$f";;
9228 *) # Relative
9229 if test -f "$f"; then
9230 # Build tree
9231 echo "$f"
9232 elif test -f "$srcdir/$f"; then
9233 # Source tree
9234 echo "$srcdir/$f"
9235 else
9236 # /dev/null tree
9237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9238 echo "$as_me: error: cannot find input file: $f" >&2;}
9239 { (exit 1); exit 1; }; }
9240 fi;;
9241 esac
9242 done` || { (exit 1); exit 1; }
9243 # Remove the trailing spaces.
9244 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9245
9246 _ACEOF
9247
9248 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9249 # `conftest.undefs', that substitutes the proper values into
9250 # config.h.in to produce config.h. The first handles `#define'
9251 # templates, and the second `#undef' templates.
9252 # And first: Protect against being on the right side of a sed subst in
9253 # config.status. Protect against being in an unquoted here document
9254 # in config.status.
9255 rm -f conftest.defines conftest.undefs
9256 # Using a here document instead of a string reduces the quoting nightmare.
9257 # Putting comments in sed scripts is not portable.
9258 #
9259 # `end' is used to avoid that the second main sed command (meant for
9260 # 0-ary CPP macros) applies to n-ary macro definitions.
9261 # See the Autoconf documentation for `clear'.
9262 cat >confdef2sed.sed <<\_ACEOF
9263 s/[\\&,]/\\&/g
9264 s,[\\$`],\\&,g
9265 t clear
9266 : clear
9267 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9268 t end
9269 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9270 : end
9271 _ACEOF
9272 # If some macros were called several times there might be several times
9273 # the same #defines, which is useless. Nevertheless, we may not want to
9274 # sort them, since we want the *last* AC-DEFINE to be honored.
9275 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9276 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9277 rm -f confdef2sed.sed
9278
9279 # This sed command replaces #undef with comments. This is necessary, for
9280 # example, in the case of _POSIX_SOURCE, which is predefined and required
9281 # on some systems where configure will not decide to define it.
9282 cat >>conftest.undefs <<\_ACEOF
9283 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9284 _ACEOF
9285
9286 # Break up conftest.defines because some shells have a limit on the size
9287 # of here documents, and old seds have small limits too (100 cmds).
9288 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9289 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9290 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9291 echo ' :' >>$CONFIG_STATUS
9292 rm -f conftest.tail
9293 while grep . conftest.defines >/dev/null
9294 do
9295 # Write a limited-size here document to $tmp/defines.sed.
9296 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9297 # Speed up: don't consider the non `#define' lines.
9298 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9299 # Work around the forget-to-reset-the-flag bug.
9300 echo 't clr' >>$CONFIG_STATUS
9301 echo ': clr' >>$CONFIG_STATUS
9302 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9303 echo 'CEOF
9304 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9305 rm -f $tmp/in
9306 mv $tmp/out $tmp/in
9307 ' >>$CONFIG_STATUS
9308 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9309 rm -f conftest.defines
9310 mv conftest.tail conftest.defines
9311 done
9312 rm -f conftest.defines
9313 echo ' fi # grep' >>$CONFIG_STATUS
9314 echo >>$CONFIG_STATUS
9315
9316 # Break up conftest.undefs because some shells have a limit on the size
9317 # of here documents, and old seds have small limits too (100 cmds).
9318 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9319 rm -f conftest.tail
9320 while grep . conftest.undefs >/dev/null
9321 do
9322 # Write a limited-size here document to $tmp/undefs.sed.
9323 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9324 # Speed up: don't consider the non `#undef'
9325 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9326 # Work around the forget-to-reset-the-flag bug.
9327 echo 't clr' >>$CONFIG_STATUS
9328 echo ': clr' >>$CONFIG_STATUS
9329 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9330 echo 'CEOF
9331 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9332 rm -f $tmp/in
9333 mv $tmp/out $tmp/in
9334 ' >>$CONFIG_STATUS
9335 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9336 rm -f conftest.undefs
9337 mv conftest.tail conftest.undefs
9338 done
9339 rm -f conftest.undefs
9340
9341 cat >>$CONFIG_STATUS <<\_ACEOF
9342 # Let's still pretend it is `configure' which instantiates (i.e., don't
9343 # use $as_me), people would be surprised to read:
9344 # /* config.h. Generated by config.status. */
9345 if test x"$ac_file" = x-; then
9346 echo "/* Generated by configure. */" >$tmp/config.h
9347 else
9348 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9349 fi
9350 cat $tmp/in >>$tmp/config.h
9351 rm -f $tmp/in
9352 if test x"$ac_file" != x-; then
9353 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9354 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9355 echo "$as_me: $ac_file is unchanged" >&6;}
9356 else
9357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9359 X"$ac_file" : 'X\(//\)[^/]' \| \
9360 X"$ac_file" : 'X\(//\)$' \| \
9361 X"$ac_file" : 'X\(/\)' \| \
9362 . : '\(.\)' 2>/dev/null ||
9363 echo X"$ac_file" |
9364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9366 /^X\(\/\/\)$/{ s//\1/; q; }
9367 /^X\(\/\).*/{ s//\1/; q; }
9368 s/.*/./; q'`
9369 { if $as_mkdir_p; then
9370 mkdir -p "$ac_dir"
9371 else
9372 as_dir="$ac_dir"
9373 as_dirs=
9374 while test ! -d "$as_dir"; do
9375 as_dirs="$as_dir $as_dirs"
9376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9378 X"$as_dir" : 'X\(//\)[^/]' \| \
9379 X"$as_dir" : 'X\(//\)$' \| \
9380 X"$as_dir" : 'X\(/\)' \| \
9381 . : '\(.\)' 2>/dev/null ||
9382 echo X"$as_dir" |
9383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9385 /^X\(\/\/\)$/{ s//\1/; q; }
9386 /^X\(\/\).*/{ s//\1/; q; }
9387 s/.*/./; q'`
9388 done
9389 test ! -n "$as_dirs" || mkdir $as_dirs
9390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9392 { (exit 1); exit 1; }; }; }
9393
9394 rm -f $ac_file
9395 mv $tmp/config.h $ac_file
9396 fi
9397 else
9398 cat $tmp/config.h
9399 rm -f $tmp/config.h
9400 fi
9401 done
9402 _ACEOF
9403
9404 cat >>$CONFIG_STATUS <<\_ACEOF
9405
9406 { (exit 0); exit 0; }
9407 _ACEOF
9408 chmod +x $CONFIG_STATUS
9409 ac_clean_files=$ac_clean_files_save
9410
9411
9412 # configure is writing to config.log, and then calls config.status.
9413 # config.status does its own redirection, appending to config.log.
9414 # Unfortunately, on DOS this fails, as config.log is still kept open
9415 # by configure, so config.status won't be able to write to it; its
9416 # output is simply discarded. So we exec the FD to /dev/null,
9417 # effectively closing config.log, so it can be properly (re)opened and
9418 # appended to by config.status. When coming back to configure, we
9419 # need to make the FD available again.
9420 if test "$no_create" != yes; then
9421 ac_cs_success=:
9422 ac_config_status_args=
9423 test "$silent" = yes &&
9424 ac_config_status_args="$ac_config_status_args --quiet"
9425 exec 5>/dev/null
9426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9427 exec 5>>config.log
9428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9429 # would make configure fail if this is the last instruction.
9430 $ac_cs_success || { (exit 1); exit 1; }
9431 fi
9432
9433