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