OpenVPN: Routing policy
[tomato.git] / release / src / router / dhcpv6 / configure
blob6f506343f024e73bc93f64b43e5521643d4100ac
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="dhcp6c.c"
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"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP YACC LEX LEXLIB LEX_OUTPUT_ROOT EGREP LIBOBJS localdbdir user group LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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 this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
833 _ACEOF
836 if test -n "$ac_init_help"; then
838 cat <<\_ACEOF
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --enable-pedant pedantic compilation
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-localdbdir=VALUE where to put local DB files
849 --with-user=USER set the owner of the programs
850 --with-group=GROUP set the group owner of the programs
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
859 CPP C preprocessor
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
864 _ACEOF
867 if test "$ac_init_help" = "recursive"; then
868 # If there are subdirs, report their specific --help.
869 ac_popdir=`pwd`
870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871 test -d $ac_dir || continue
872 ac_builddir=.
874 if test "$ac_dir" != .; then
875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876 # A "../" for each directory in $ac_dir_suffix.
877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 else
879 ac_dir_suffix= ac_top_builddir=
882 case $srcdir in
883 .) # No --srcdir option. We are building in place.
884 ac_srcdir=.
885 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=.
887 else
888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889 fi ;;
890 [\\/]* | ?:[\\/]* ) # Absolute path.
891 ac_srcdir=$srcdir$ac_dir_suffix;
892 ac_top_srcdir=$srcdir ;;
893 *) # Relative path.
894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 esac
898 # Do not use `cd foo && pwd` to compute absolute paths, because
899 # the directories may not exist.
900 case `pwd` in
901 .) ac_abs_builddir="$ac_dir";;
903 case "$ac_dir" in
904 .) ac_abs_builddir=`pwd`;;
905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
907 esac;;
908 esac
909 case $ac_abs_builddir in
910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
912 case ${ac_top_builddir}. in
913 .) ac_abs_top_builddir=$ac_abs_builddir;;
914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_srcdir=$ac_srcdir;;
921 case $ac_srcdir in
922 .) ac_abs_srcdir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
930 case $ac_top_srcdir in
931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
934 esac;;
935 esac
937 cd $ac_dir
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
940 echo
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
943 echo
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
947 echo
948 $ac_configure --help
949 else
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 cd $ac_popdir
953 done
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958 cat <<\_ACEOF
960 Copyright (C) 2003 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.59. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1034 for ac_arg
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1081 echo
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 esac;
1104 echo
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1205 done
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
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
1300 ac_aux_dir=
1301 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1302 if test -f $ac_dir/install-sh; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/install-sh -c"
1305 break
1306 elif test -f $ac_dir/install.sh; then
1307 ac_aux_dir=$ac_dir
1308 ac_install_sh="$ac_aux_dir/install.sh -c"
1309 break
1310 elif test -f $ac_dir/shtool; then
1311 ac_aux_dir=$ac_dir
1312 ac_install_sh="$ac_aux_dir/shtool install -c"
1313 break
1315 done
1316 if test -z "$ac_aux_dir"; then
1317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1318 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1319 { (exit 1); exit 1; }; }
1321 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1322 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1323 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1325 # Find a good install program. We prefer a C program (faster),
1326 # so one script is as good as another. But avoid the broken or
1327 # incompatible versions:
1328 # SysV /etc/install, /usr/sbin/install
1329 # SunOS /usr/etc/install
1330 # IRIX /sbin/install
1331 # AIX /bin/install
1332 # AmigaOS /C/install, which installs bootblocks on floppy discs
1333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1336 # OS/2's system install, which has a completely different semantic
1337 # ./install, which can be erroneously created by make from ./install.sh.
1338 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1340 if test -z "$INSTALL"; then
1341 if test "${ac_cv_path_install+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345 for as_dir in $PATH
1347 IFS=$as_save_IFS
1348 test -z "$as_dir" && as_dir=.
1349 # Account for people who put trailing slashes in PATH elements.
1350 case $as_dir/ in
1351 ./ | .// | /cC/* | \
1352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1354 /usr/ucb/* ) ;;
1356 # OSF1 and SCO ODT 3.0 have their own names for install.
1357 # Don't use installbsd from OSF since it installs stuff as root
1358 # by default.
1359 for ac_prog in ginstall scoinst install; do
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362 if test $ac_prog = install &&
1363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364 # AIX install. It has an incompatible calling convention.
1366 elif test $ac_prog = install &&
1367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368 # program-specific install script used by HP pwplus--don't use.
1370 else
1371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1372 break 3
1375 done
1376 done
1378 esac
1379 done
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL=$ac_cv_path_install
1385 else
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL=$ac_install_sh
1393 echo "$as_me:$LINENO: result: $INSTALL" >&5
1394 echo "${ECHO_T}$INSTALL" >&6
1396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397 # It thinks the first close brace ends the variable substitution.
1398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1405 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1406 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1407 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 cat >conftest.make <<\_ACEOF
1411 all:
1412 @echo 'ac_maketemp="$(MAKE)"'
1413 _ACEOF
1414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1415 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1416 if test -n "$ac_maketemp"; then
1417 eval ac_cv_prog_make_${ac_make}_set=yes
1418 else
1419 eval ac_cv_prog_make_${ac_make}_set=no
1421 rm -f conftest.make
1423 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1424 echo "$as_me:$LINENO: result: yes" >&5
1425 echo "${ECHO_T}yes" >&6
1426 SET_MAKE=
1427 else
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 SET_MAKE="MAKE=${MAKE-make}"
1433 ac_ext=c
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1475 if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478 set dummy gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1498 done
1499 done
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1512 CC=$ac_ct_CC
1513 else
1514 CC="$ac_cv_prog_CC"
1517 if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520 set dummy ${ac_tool_prefix}cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1540 done
1541 done
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1555 if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584 if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586 echo "${ECHO_T}$ac_ct_CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1592 CC=$ac_ct_CC
1593 else
1594 CC="$ac_cv_prog_CC"
1598 if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600 set dummy cc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 ac_prog_rejected=no
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1625 done
1626 done
1628 if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1677 done
1678 done
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1692 done
1694 if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1719 done
1720 done
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1728 else
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1734 done
1736 CC=$ac_ct_CC
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1776 main ()
1780 return 0;
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 conftest.$ac_ext )
1811 # This is the source file.
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 cat >conftest.$ac_ext <<_ACEOF
1925 /* confdefs.h. */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1932 main ()
1936 return 0;
1938 _ACEOF
1939 rm -f conftest.o conftest.obj
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951 done
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1968 ac_objext=$OBJEXT
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1982 main ()
1984 #ifndef __GNUC__
1985 choke me
1986 #endif
1989 return 0;
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_compiler_gnu=no
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h. */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2044 main ()
2048 return 0;
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2078 ac_cv_prog_cc_g=no
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2092 else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_cv_prog_cc_stdc=no
2105 ac_save_CC=$CC
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2112 #include <stdarg.h>
2113 #include <stdio.h>
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120 char **p;
2121 int i;
2123 return p[i];
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 int argc;
2149 char **argv;
2151 main ()
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 return 0;
2157 _ACEOF
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2204 case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220 choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259 $ac_declaration
2260 #include <stdlib.h>
2262 main ()
2264 exit (42);
2266 return 0;
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2296 continue
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2305 $ac_declaration
2307 main ()
2309 exit (42);
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 rm -f conftest*
2345 if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2369 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2370 # On Suns, sometimes $CPP names a directory.
2371 if test -n "$CPP" && test -d "$CPP"; then
2372 CPP=
2374 if test -z "$CPP"; then
2375 if test "${ac_cv_prog_CPP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 # Double quotes because CPP needs to be expanded
2379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2381 ac_preproc_ok=false
2382 for ac_c_preproc_warn_flag in '' yes
2384 # Use a header file that comes with gcc, so configuring glibc
2385 # with a fresh cross-compiler works.
2386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2387 # <limits.h> exists even on freestanding compilers.
2388 # On the NeXT, cc -E runs the code through the compiler's parser,
2389 # not just through cpp. "Syntax error" is here to catch this case.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2396 #ifdef __STDC__
2397 # include <limits.h>
2398 #else
2399 # include <assert.h>
2400 #endif
2401 Syntax error
2402 _ACEOF
2403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } >/dev/null; then
2411 if test -s conftest.err; then
2412 ac_cpp_err=$ac_c_preproc_warn_flag
2413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2414 else
2415 ac_cpp_err=
2417 else
2418 ac_cpp_err=yes
2420 if test -z "$ac_cpp_err"; then
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2427 continue
2429 rm -f conftest.err conftest.$ac_ext
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439 #include <ac_nonexistent.h>
2440 _ACEOF
2441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } >/dev/null; then
2449 if test -s conftest.err; then
2450 ac_cpp_err=$ac_c_preproc_warn_flag
2451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2452 else
2453 ac_cpp_err=
2455 else
2456 ac_cpp_err=yes
2458 if test -z "$ac_cpp_err"; then
2459 # Broken: success on invalid input.
2460 continue
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2465 # Passes both tests.
2466 ac_preproc_ok=:
2467 break
2469 rm -f conftest.err conftest.$ac_ext
2471 done
2472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2473 rm -f conftest.err conftest.$ac_ext
2474 if $ac_preproc_ok; then
2475 break
2478 done
2479 ac_cv_prog_CPP=$CPP
2482 CPP=$ac_cv_prog_CPP
2483 else
2484 ac_cv_prog_CPP=$CPP
2486 echo "$as_me:$LINENO: result: $CPP" >&5
2487 echo "${ECHO_T}$CPP" >&6
2488 ac_preproc_ok=false
2489 for ac_c_preproc_warn_flag in '' yes
2491 # Use a header file that comes with gcc, so configuring glibc
2492 # with a fresh cross-compiler works.
2493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2494 # <limits.h> exists even on freestanding compilers.
2495 # On the NeXT, cc -E runs the code through the compiler's parser,
2496 # not just through cpp. "Syntax error" is here to catch this case.
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h. */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2503 #ifdef __STDC__
2504 # include <limits.h>
2505 #else
2506 # include <assert.h>
2507 #endif
2508 Syntax error
2509 _ACEOF
2510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } >/dev/null; then
2518 if test -s conftest.err; then
2519 ac_cpp_err=$ac_c_preproc_warn_flag
2520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2521 else
2522 ac_cpp_err=
2524 else
2525 ac_cpp_err=yes
2527 if test -z "$ac_cpp_err"; then
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 # Broken: fails on valid input.
2534 continue
2536 rm -f conftest.err conftest.$ac_ext
2538 # OK, works on sane cases. Now check whether non-existent headers
2539 # can be detected and how.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 #include <ac_nonexistent.h>
2547 _ACEOF
2548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } >/dev/null; then
2556 if test -s conftest.err; then
2557 ac_cpp_err=$ac_c_preproc_warn_flag
2558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2559 else
2560 ac_cpp_err=
2562 else
2563 ac_cpp_err=yes
2565 if test -z "$ac_cpp_err"; then
2566 # Broken: success on invalid input.
2567 continue
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 # Passes both tests.
2573 ac_preproc_ok=:
2574 break
2576 rm -f conftest.err conftest.$ac_ext
2578 done
2579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2580 rm -f conftest.err conftest.$ac_ext
2581 if $ac_preproc_ok; then
2583 else
2584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 for ac_prog in 'bison -y' byacc
2599 # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${ac_cv_prog_YACC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$YACC"; then
2607 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 ac_cv_prog_YACC="$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2620 done
2621 done
2625 YACC=$ac_cv_prog_YACC
2626 if test -n "$YACC"; then
2627 echo "$as_me:$LINENO: result: $YACC" >&5
2628 echo "${ECHO_T}$YACC" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$YACC" && break
2635 done
2636 test -n "$YACC" || YACC="yacc"
2639 for ac_prog in flex lex
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_LEX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$LEX"; then
2649 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_LEX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2667 LEX=$ac_cv_prog_LEX
2668 if test -n "$LEX"; then
2669 echo "$as_me:$LINENO: result: $LEX" >&5
2670 echo "${ECHO_T}$LEX" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$LEX" && break
2677 done
2678 test -n "$LEX" || LEX=":"
2680 if test -z "$LEXLIB"
2681 then
2682 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2683 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2684 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 ac_check_lib_save_LIBS=$LIBS
2688 LIBS="-lfl $LIBS"
2689 cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h. */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 #ifdef __cplusplus
2698 extern "C"
2699 #endif
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2702 char yywrap ();
2704 main ()
2706 yywrap ();
2708 return 0;
2710 _ACEOF
2711 rm -f conftest.$ac_objext conftest$ac_exeext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713 (eval $ac_link) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest$ac_exeext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_lib_fl_yywrap=yes
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 ac_cv_lib_fl_yywrap=no
2740 rm -f conftest.err conftest.$ac_objext \
2741 conftest$ac_exeext conftest.$ac_ext
2742 LIBS=$ac_check_lib_save_LIBS
2744 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2745 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2746 if test $ac_cv_lib_fl_yywrap = yes; then
2747 LEXLIB="-lfl"
2748 else
2749 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2750 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2751 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 ac_check_lib_save_LIBS=$LIBS
2755 LIBS="-ll $LIBS"
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2763 /* Override any gcc2 internal prototype to avoid an error. */
2764 #ifdef __cplusplus
2765 extern "C"
2766 #endif
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2769 char yywrap ();
2771 main ()
2773 yywrap ();
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest$ac_exeext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_lib_l_yywrap=yes
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 ac_cv_lib_l_yywrap=no
2807 rm -f conftest.err conftest.$ac_objext \
2808 conftest$ac_exeext conftest.$ac_ext
2809 LIBS=$ac_check_lib_save_LIBS
2811 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2812 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2813 if test $ac_cv_lib_l_yywrap = yes; then
2814 LEXLIB="-ll"
2821 if test "x$LEX" != "x:"; then
2822 echo "$as_me:$LINENO: checking lex output file root" >&5
2823 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2824 if test "${ac_cv_prog_lex_root+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 # The minimal lex program is just a single line: %%. But some broken lexes
2828 # (Solaris, I think it was) want two %% lines, so accommodate them.
2829 cat >conftest.l <<_ACEOF
2832 _ACEOF
2833 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2834 (eval $LEX conftest.l) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 if test -f lex.yy.c; then
2839 ac_cv_prog_lex_root=lex.yy
2840 elif test -f lexyy.c; then
2841 ac_cv_prog_lex_root=lexyy
2842 else
2843 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2844 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2845 { (exit 1); exit 1; }; }
2848 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2849 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2850 rm -f conftest.l
2851 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2853 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2854 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2855 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 # POSIX says lex can declare yytext either as a pointer or an array; the
2859 # default is implementation-dependent. Figure out which it is, since
2860 # not all implementations provide the %pointer and %array declarations.
2861 ac_cv_prog_lex_yytext_pointer=no
2862 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2863 ac_save_LIBS=$LIBS
2864 LIBS="$LIBS $LEXLIB"
2865 cat >conftest.$ac_ext <<_ACEOF
2866 `cat $LEX_OUTPUT_ROOT.c`
2867 _ACEOF
2868 rm -f conftest.$ac_objext conftest$ac_exeext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870 (eval $ac_link) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_prog_lex_yytext_pointer=yes
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.err conftest.$ac_objext \
2897 conftest$ac_exeext conftest.$ac_ext
2898 LIBS=$ac_save_LIBS
2899 rm -f "${LEX_OUTPUT_ROOT}.c"
2902 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2903 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2904 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2906 cat >>confdefs.h <<\_ACEOF
2907 #define YYTEXT_POINTER 1
2908 _ACEOF
2916 CFLAGS="$CFLAGS -I\$(srcdir)"
2918 if test -x /usr/bin/sun && /usr/bin/sun; then
2919 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
2920 LDFLAGS="-lxnet -ldevinfo -lnsl -lsocket -lrt"
2923 echo "$as_me:$LINENO: checking for sys/queue.h" >&5
2924 echo $ECHO_N "checking for sys/queue.h... $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <sys/queue.h>
2933 main ()
2935 TAILQ_HEAD(test, none);
2937 return 0;
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2970 CFLAGS="$CFLAGS -I\$(srcdir)/missing"
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 echo "$as_me:$LINENO: checking for egrep" >&5
2976 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2977 if test "${ac_cv_prog_egrep+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2981 then ac_cv_prog_egrep='grep -E'
2982 else ac_cv_prog_egrep='egrep'
2985 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2986 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2987 EGREP=$ac_cv_prog_egrep
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <netinet/in.h>
2997 #ifdef __KAME__
2999 #endif
3000 _ACEOF
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 $EGREP "yes" >/dev/null 2>&1; then
3003 result=kame
3004 else
3005 result=regular
3007 rm -f conftest*
3009 echo "$as_me:$LINENO: checking for getaddrinfo/getnameinfo library" >&5
3010 echo $ECHO_N "checking for getaddrinfo/getnameinfo library... $ECHO_C" >&6
3011 echo "$as_me:$LINENO: result: $result" >&5
3012 echo "${ECHO_T}$result" >&6
3013 case $result in
3014 kame) cat >>confdefs.h <<\_ACEOF
3015 #define INET6 1
3016 _ACEOF
3018 o_LIBS="$LIBS"
3019 LIBS="$LIBS -L/usr/local/v6/lib"
3021 echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
3022 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6
3023 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_check_lib_save_LIBS=$LIBS
3027 LIBS="-linet6 $LIBS"
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 #ifdef __cplusplus
3037 extern "C"
3038 #endif
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char getaddrinfo ();
3043 main ()
3045 getaddrinfo ();
3047 return 0;
3049 _ACEOF
3050 rm -f conftest.$ac_objext conftest$ac_exeext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052 (eval $ac_link) 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_c_werror_flag"
3060 || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest$ac_exeext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_lib_inet6_getaddrinfo=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_cv_lib_inet6_getaddrinfo=no
3079 rm -f conftest.err conftest.$ac_objext \
3080 conftest$ac_exeext conftest.$ac_ext
3081 LIBS=$ac_check_lib_save_LIBS
3083 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
3084 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6
3085 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
3086 cat >>confdefs.h <<_ACEOF
3087 #define HAVE_LIBINET6 1
3088 _ACEOF
3090 LIBS="-linet6 $LIBS"
3092 else
3093 LIBS="$o_LIBS"
3097 *) ;;
3098 esac
3101 for ac_func in getaddrinfo
3103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3104 echo "$as_me:$LINENO: checking for $ac_func" >&5
3105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3106 if eval "test \"\${$as_ac_var+set}\" = set"; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3117 #define $ac_func innocuous_$ac_func
3119 /* System header to define __stub macros and hopefully few prototypes,
3120 which can conflict with char $ac_func (); below.
3121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 <limits.h> exists even on freestanding compilers. */
3124 #ifdef __STDC__
3125 # include <limits.h>
3126 #else
3127 # include <assert.h>
3128 #endif
3130 #undef $ac_func
3132 /* Override any gcc2 internal prototype to avoid an error. */
3133 #ifdef __cplusplus
3134 extern "C"
3136 #endif
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139 char $ac_func ();
3140 /* The GNU C library defines this for functions which it implements
3141 to always fail with ENOSYS. Some functions are actually named
3142 something starting with __ and the normal name is an alias. */
3143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3144 choke me
3145 #else
3146 char (*f) () = $ac_func;
3147 #endif
3148 #ifdef __cplusplus
3150 #endif
3153 main ()
3155 return f != $ac_func;
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext conftest$ac_exeext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162 (eval $ac_link) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest$ac_exeext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 eval "$as_ac_var=yes"
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 eval "$as_ac_var=no"
3189 rm -f conftest.err conftest.$ac_objext \
3190 conftest$ac_exeext conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3194 if test `eval echo '${'$as_ac_var'}'` = yes; then
3195 cat >>confdefs.h <<_ACEOF
3196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3197 _ACEOF
3199 else
3200 case $LIBOBJS in
3201 "$ac_func.$ac_objext" | \
3202 *" $ac_func.$ac_objext" | \
3203 "$ac_func.$ac_objext "* | \
3204 *" $ac_func.$ac_objext "* ) ;;
3205 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3206 esac
3209 done
3213 for ac_func in getnameinfo
3215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3216 echo "$as_me:$LINENO: checking for $ac_func" >&5
3217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3218 if eval "test \"\${$as_ac_var+set}\" = set"; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3229 #define $ac_func innocuous_$ac_func
3231 /* System header to define __stub macros and hopefully few prototypes,
3232 which can conflict with char $ac_func (); below.
3233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 <limits.h> exists even on freestanding compilers. */
3236 #ifdef __STDC__
3237 # include <limits.h>
3238 #else
3239 # include <assert.h>
3240 #endif
3242 #undef $ac_func
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 #ifdef __cplusplus
3246 extern "C"
3248 #endif
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3251 char $ac_func ();
3252 /* The GNU C library defines this for functions which it implements
3253 to always fail with ENOSYS. Some functions are actually named
3254 something starting with __ and the normal name is an alias. */
3255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3256 choke me
3257 #else
3258 char (*f) () = $ac_func;
3259 #endif
3260 #ifdef __cplusplus
3262 #endif
3265 main ()
3267 return f != $ac_func;
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext conftest$ac_exeext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3274 (eval $ac_link) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest$ac_exeext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 eval "$as_ac_var=yes"
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 eval "$as_ac_var=no"
3301 rm -f conftest.err conftest.$ac_objext \
3302 conftest$ac_exeext conftest.$ac_ext
3304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3306 if test `eval echo '${'$as_ac_var'}'` = yes; then
3307 cat >>confdefs.h <<_ACEOF
3308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3309 _ACEOF
3311 else
3312 case $LIBOBJS in
3313 "$ac_func.$ac_objext" | \
3314 *" $ac_func.$ac_objext" | \
3315 "$ac_func.$ac_objext "* | \
3316 *" $ac_func.$ac_objext "* ) ;;
3317 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3318 esac
3321 done
3325 for ac_func in getifaddrs
3327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3328 echo "$as_me:$LINENO: checking for $ac_func" >&5
3329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3330 if eval "test \"\${$as_ac_var+set}\" = set"; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3341 #define $ac_func innocuous_$ac_func
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char $ac_func (); below.
3345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 <limits.h> exists even on freestanding compilers. */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3354 #undef $ac_func
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 #ifdef __cplusplus
3358 extern "C"
3360 #endif
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3363 char $ac_func ();
3364 /* The GNU C library defines this for functions which it implements
3365 to always fail with ENOSYS. Some functions are actually named
3366 something starting with __ and the normal name is an alias. */
3367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3368 choke me
3369 #else
3370 char (*f) () = $ac_func;
3371 #endif
3372 #ifdef __cplusplus
3374 #endif
3377 main ()
3379 return f != $ac_func;
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext conftest$ac_exeext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386 (eval $ac_link) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 eval "$as_ac_var=yes"
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 eval "$as_ac_var=no"
3413 rm -f conftest.err conftest.$ac_objext \
3414 conftest$ac_exeext conftest.$ac_ext
3416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3418 if test `eval echo '${'$as_ac_var'}'` = yes; then
3419 cat >>confdefs.h <<_ACEOF
3420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3421 _ACEOF
3423 else
3424 case $LIBOBJS in
3425 "$ac_func.$ac_objext" | \
3426 *" $ac_func.$ac_objext" | \
3427 "$ac_func.$ac_objext "* | \
3428 *" $ac_func.$ac_objext "* ) ;;
3429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3430 esac
3433 done
3437 for ac_func in if_nametoindex
3439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3440 echo "$as_me:$LINENO: checking for $ac_func" >&5
3441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3442 if eval "test \"\${$as_ac_var+set}\" = set"; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3453 #define $ac_func innocuous_$ac_func
3455 /* System header to define __stub macros and hopefully few prototypes,
3456 which can conflict with char $ac_func (); below.
3457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3458 <limits.h> exists even on freestanding compilers. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3466 #undef $ac_func
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 #ifdef __cplusplus
3470 extern "C"
3472 #endif
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char $ac_func ();
3476 /* The GNU C library defines this for functions which it implements
3477 to always fail with ENOSYS. Some functions are actually named
3478 something starting with __ and the normal name is an alias. */
3479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3480 choke me
3481 #else
3482 char (*f) () = $ac_func;
3483 #endif
3484 #ifdef __cplusplus
3486 #endif
3489 main ()
3491 return f != $ac_func;
3493 return 0;
3495 _ACEOF
3496 rm -f conftest.$ac_objext conftest$ac_exeext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3498 (eval $ac_link) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest$ac_exeext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 eval "$as_ac_var=yes"
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 eval "$as_ac_var=no"
3525 rm -f conftest.err conftest.$ac_objext \
3526 conftest$ac_exeext conftest.$ac_ext
3528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3530 if test `eval echo '${'$as_ac_var'}'` = yes; then
3531 cat >>confdefs.h <<_ACEOF
3532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3533 _ACEOF
3536 done
3540 for ac_func in strlcpy strlcat
3542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3543 echo "$as_me:$LINENO: checking for $ac_func" >&5
3544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3545 if eval "test \"\${$as_ac_var+set}\" = set"; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3556 #define $ac_func innocuous_$ac_func
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func (); below.
3560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 <limits.h> exists even on freestanding compilers. */
3563 #ifdef __STDC__
3564 # include <limits.h>
3565 #else
3566 # include <assert.h>
3567 #endif
3569 #undef $ac_func
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 #ifdef __cplusplus
3573 extern "C"
3575 #endif
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3578 char $ac_func ();
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3583 choke me
3584 #else
3585 char (*f) () = $ac_func;
3586 #endif
3587 #ifdef __cplusplus
3589 #endif
3592 main ()
3594 return f != $ac_func;
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest$ac_exeext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 eval "$as_ac_var=yes"
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 eval "$as_ac_var=no"
3628 rm -f conftest.err conftest.$ac_objext \
3629 conftest$ac_exeext conftest.$ac_ext
3631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3633 if test `eval echo '${'$as_ac_var'}'` = yes; then
3634 cat >>confdefs.h <<_ACEOF
3635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3636 _ACEOF
3638 else
3639 case $LIBOBJS in
3640 "$ac_func.$ac_objext" | \
3641 *" $ac_func.$ac_objext" | \
3642 "$ac_func.$ac_objext "* | \
3643 *" $ac_func.$ac_objext "* ) ;;
3644 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3645 esac
3648 done
3652 for ac_func in daemon
3654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3655 echo "$as_me:$LINENO: checking for $ac_func" >&5
3656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3657 if eval "test \"\${$as_ac_var+set}\" = set"; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3668 #define $ac_func innocuous_$ac_func
3670 /* System header to define __stub macros and hopefully few prototypes,
3671 which can conflict with char $ac_func (); below.
3672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673 <limits.h> exists even on freestanding compilers. */
3675 #ifdef __STDC__
3676 # include <limits.h>
3677 #else
3678 # include <assert.h>
3679 #endif
3681 #undef $ac_func
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 #ifdef __cplusplus
3685 extern "C"
3687 #endif
3688 /* We use char because int might match the return type of a gcc2
3689 builtin and then its argument prototype would still apply. */
3690 char $ac_func ();
3691 /* The GNU C library defines this for functions which it implements
3692 to always fail with ENOSYS. Some functions are actually named
3693 something starting with __ and the normal name is an alias. */
3694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3695 choke me
3696 #else
3697 char (*f) () = $ac_func;
3698 #endif
3699 #ifdef __cplusplus
3701 #endif
3704 main ()
3706 return f != $ac_func;
3708 return 0;
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713 (eval $ac_link) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 eval "$as_ac_var=yes"
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 eval "$as_ac_var=no"
3740 rm -f conftest.err conftest.$ac_objext \
3741 conftest$ac_exeext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3745 if test `eval echo '${'$as_ac_var'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3748 _ACEOF
3750 else
3751 case $LIBOBJS in
3752 "$ac_func.$ac_objext" | \
3753 *" $ac_func.$ac_objext" | \
3754 "$ac_func.$ac_objext "* | \
3755 *" $ac_func.$ac_objext "* ) ;;
3756 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3757 esac
3760 done
3764 for ac_func in warnx
3766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3767 echo "$as_me:$LINENO: checking for $ac_func" >&5
3768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3769 if eval "test \"\${$as_ac_var+set}\" = set"; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3780 #define $ac_func innocuous_$ac_func
3782 /* System header to define __stub macros and hopefully few prototypes,
3783 which can conflict with char $ac_func (); below.
3784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 <limits.h> exists even on freestanding compilers. */
3787 #ifdef __STDC__
3788 # include <limits.h>
3789 #else
3790 # include <assert.h>
3791 #endif
3793 #undef $ac_func
3795 /* Override any gcc2 internal prototype to avoid an error. */
3796 #ifdef __cplusplus
3797 extern "C"
3799 #endif
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3802 char $ac_func ();
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3807 choke me
3808 #else
3809 char (*f) () = $ac_func;
3810 #endif
3811 #ifdef __cplusplus
3813 #endif
3816 main ()
3818 return f != $ac_func;
3820 return 0;
3822 _ACEOF
3823 rm -f conftest.$ac_objext conftest$ac_exeext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3825 (eval $ac_link) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag"
3833 || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 eval "$as_ac_var=yes"
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 eval "$as_ac_var=no"
3852 rm -f conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3857 if test `eval echo '${'$as_ac_var'}'` = yes; then
3858 cat >>confdefs.h <<_ACEOF
3859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3860 _ACEOF
3862 else
3863 case $LIBOBJS in
3864 "$ac_func.$ac_objext" | \
3865 *" $ac_func.$ac_objext" | \
3866 "$ac_func.$ac_objext "* | \
3867 *" $ac_func.$ac_objext "* ) ;;
3868 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3869 esac
3872 done
3876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3878 if test "${ac_cv_header_stdc+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <stdlib.h>
3888 #include <stdarg.h>
3889 #include <string.h>
3890 #include <float.h>
3893 main ()
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902 (eval $ac_compile) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest.$ac_objext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_header_stdc=yes
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 ac_cv_header_stdc=no
3929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3931 if test $ac_cv_header_stdc = yes; then
3932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <string.h>
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "memchr" >/dev/null 2>&1; then
3945 else
3946 ac_cv_header_stdc=no
3948 rm -f conftest*
3952 if test $ac_cv_header_stdc = yes; then
3953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #include <stdlib.h>
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "free" >/dev/null 2>&1; then
3966 else
3967 ac_cv_header_stdc=no
3969 rm -f conftest*
3973 if test $ac_cv_header_stdc = yes; then
3974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3975 if test "$cross_compiling" = yes; then
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <ctype.h>
3985 #if ((' ' & 0x0FF) == 0x020)
3986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3988 #else
3989 # define ISLOWER(c) \
3990 (('a' <= (c) && (c) <= 'i') \
3991 || ('j' <= (c) && (c) <= 'r') \
3992 || ('s' <= (c) && (c) <= 'z'))
3993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3994 #endif
3996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3998 main ()
4000 int i;
4001 for (i = 0; i < 256; i++)
4002 if (XOR (islower (i), ISLOWER (i))
4003 || toupper (i) != TOUPPER (i))
4004 exit(2);
4005 exit (0);
4007 _ACEOF
4008 rm -f conftest$ac_exeext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010 (eval $ac_link) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4020 else
4021 echo "$as_me: program exited with status $ac_status" >&5
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ( exit $ac_status )
4026 ac_cv_header_stdc=no
4028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4034 if test $ac_cv_header_stdc = yes; then
4036 cat >>confdefs.h <<\_ACEOF
4037 #define STDC_HEADERS 1
4038 _ACEOF
4042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 echo "$as_me:$LINENO: checking for $ac_header" >&5
4057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 $ac_includes_default
4069 #include <$ac_header>
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 eval "$as_ac_Header=yes"
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 eval "$as_ac_Header=no"
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4105 cat >>confdefs.h <<_ACEOF
4106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4107 _ACEOF
4111 done
4120 for ac_header in fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h ifaddrs.h
4122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124 echo "$as_me:$LINENO: checking for $ac_header" >&5
4125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4131 else
4132 # Is the header compilable?
4133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4142 #include <$ac_header>
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_header_compiler=yes
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_header_compiler=no
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4175 echo "${ECHO_T}$ac_header_compiler" >&6
4177 # Is the header present?
4178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <$ac_header>
4187 _ACEOF
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 else
4200 ac_cpp_err=
4202 else
4203 ac_cpp_err=yes
4205 if test -z "$ac_cpp_err"; then
4206 ac_header_preproc=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_header_preproc=no
4213 rm -f conftest.err conftest.$ac_ext
4214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4215 echo "${ECHO_T}$ac_header_preproc" >&6
4217 # So? What about this header?
4218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4219 yes:no: )
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4224 ac_header_preproc=yes
4226 no:yes:* )
4227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4240 cat <<\_ASBOX
4241 ## ------------------------------------------ ##
4242 ## Report this to the AC_PACKAGE_NAME lists. ##
4243 ## ------------------------------------------ ##
4244 _ASBOX
4246 sed "s/^/$as_me: WARNING: /" >&2
4248 esac
4249 echo "$as_me:$LINENO: checking for $ac_header" >&5
4250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 eval "$as_ac_Header=\$ac_header_preproc"
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4261 cat >>confdefs.h <<_ACEOF
4262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 _ACEOF
4267 done
4269 echo "$as_me:$LINENO: checking for socklen_t" >&5
4270 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/socket.h>
4280 main ()
4282 socklen_t x; x = 1; return x;
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 echo "$as_me:$LINENO: result: yes" >&5
4310 echo "${ECHO_T}yes" >&6
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317 echo "$as_me:$LINENO: checking for socklen_t" >&5
4318 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4319 if test "${ac_cv_type_socklen_t+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4330 main ()
4332 if ((socklen_t *) 0)
4333 return 0;
4334 if (sizeof (socklen_t))
4335 return 0;
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_type_socklen_t=yes
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_cv_type_socklen_t=no
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4372 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4373 if test $ac_cv_type_socklen_t = yes; then
4375 else
4377 cat >>confdefs.h <<_ACEOF
4378 #define socklen_t int
4379 _ACEOF
4384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4387 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4388 if test "${ac_cv_c_const+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4399 main ()
4401 /* FIXME: Include the comments suggested by Paul. */
4402 #ifndef __cplusplus
4403 /* Ultrix mips cc rejects this. */
4404 typedef int charset[2];
4405 const charset x;
4406 /* SunOS 4.1.1 cc rejects this. */
4407 char const *const *ccp;
4408 char **p;
4409 /* NEC SVR4.0.2 mips cc rejects this. */
4410 struct point {int x, y;};
4411 static struct point const zero = {0,0};
4412 /* AIX XL C 1.02.0.0 rejects this.
4413 It does not let you subtract one const X* pointer from another in
4414 an arm of an if-expression whose if-part is not a constant
4415 expression */
4416 const char *g = "string";
4417 ccp = &g + (g ? g-g : 0);
4418 /* HPUX 7.0 cc rejects these. */
4419 ++ccp;
4420 p = (char**) ccp;
4421 ccp = (char const *const *) p;
4422 { /* SCO 3.2v4 cc rejects this. */
4423 char *t;
4424 char const *s = 0 ? (char *) 0 : (char const *) 0;
4426 *t++ = 0;
4428 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4429 int x[] = {25, 17};
4430 const int *foo = &x[0];
4431 ++foo;
4433 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4434 typedef const int *iptr;
4435 iptr p = 0;
4436 ++p;
4438 { /* AIX XL C 1.02.0.0 rejects this saying
4439 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4440 struct s { int j; const int *ap[3]; };
4441 struct s *b; b->j = 5;
4443 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4444 const int foo = 10;
4446 #endif
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_c_const=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_cv_c_const=no
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4484 echo "${ECHO_T}$ac_cv_c_const" >&6
4485 if test $ac_cv_c_const = no; then
4487 cat >>confdefs.h <<\_ACEOF
4488 #define const
4489 _ACEOF
4493 echo "$as_me:$LINENO: checking for size_t" >&5
4494 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4495 if test "${ac_cv_type_size_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4506 main ()
4508 if ((size_t *) 0)
4509 return 0;
4510 if (sizeof (size_t))
4511 return 0;
4513 return 0;
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_type_size_t=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 ac_cv_type_size_t=no
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4548 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4549 if test $ac_cv_type_size_t = yes; then
4551 else
4553 cat >>confdefs.h <<_ACEOF
4554 #define size_t unsigned
4555 _ACEOF
4559 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4561 if test "${ac_cv_header_time+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/time.h>
4572 #include <time.h>
4575 main ()
4577 if ((struct tm *) 0)
4578 return 0;
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_header_time=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_header_time=no
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4615 echo "${ECHO_T}$ac_cv_header_time" >&6
4616 if test $ac_cv_header_time = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define TIME_WITH_SYS_TIME 1
4620 _ACEOF
4624 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4626 if test "${ac_cv_struct_tm+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <sys/types.h>
4636 #include <time.h>
4639 main ()
4641 struct tm *tp; tp->tm_sec;
4643 return 0;
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_cv_struct_tm=time.h
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_cv_struct_tm=sys/time.h
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4677 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4678 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4679 if test $ac_cv_struct_tm = sys/time.h; then
4681 cat >>confdefs.h <<\_ACEOF
4682 #define TM_IN_SYS_TIME 1
4683 _ACEOF
4687 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4688 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4689 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #include <sys/types.h>
4699 #include <$ac_cv_struct_tm>
4703 main ()
4705 static struct tm ac_aggr;
4706 if (ac_aggr.tm_zone)
4707 return 0;
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_member_struct_tm_tm_zone=yes
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <sys/types.h>
4746 #include <$ac_cv_struct_tm>
4750 main ()
4752 static struct tm ac_aggr;
4753 if (sizeof ac_aggr.tm_zone)
4754 return 0;
4756 return 0;
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag"
4769 || test ! -s conftest.err'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_cv_member_struct_tm_tm_zone=yes
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 ac_cv_member_struct_tm_tm_zone=no
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4793 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4794 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4796 cat >>confdefs.h <<_ACEOF
4797 #define HAVE_STRUCT_TM_TM_ZONE 1
4798 _ACEOF
4803 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4805 cat >>confdefs.h <<\_ACEOF
4806 #define HAVE_TM_ZONE 1
4807 _ACEOF
4809 else
4810 echo "$as_me:$LINENO: checking for tzname" >&5
4811 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4812 if test "${ac_cv_var_tzname+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <time.h>
4822 #ifndef tzname /* For SGI. */
4823 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4824 #endif
4827 main ()
4829 atoi(*tzname);
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest$ac_exeext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_var_tzname=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_var_tzname=no
4863 rm -f conftest.err conftest.$ac_objext \
4864 conftest$ac_exeext conftest.$ac_ext
4866 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4867 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4868 if test $ac_cv_var_tzname = yes; then
4870 cat >>confdefs.h <<\_ACEOF
4871 #define HAVE_TZNAME 1
4872 _ACEOF
4877 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
4878 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
4879 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 #include <signal.h>
4892 main ()
4894 if ((sig_atomic_t *) 0)
4895 return 0;
4896 if (sizeof (sig_atomic_t))
4897 return 0;
4899 return 0;
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_type_sig_atomic_t=yes
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_cv_type_sig_atomic_t=no
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4933 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
4934 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
4935 if test $ac_cv_type_sig_atomic_t = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define HAVE_SIG_ATOMIC_T 1
4939 _ACEOF
4942 else
4943 cat >>confdefs.h <<\_ACEOF
4944 #define sig_atomic_t u_long
4945 _ACEOF
4951 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
4952 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
4953 if test "${ac_cv_func_getpgrp_void+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 # Use it with a single arg.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4965 main ()
4967 getpgrp (0);
4969 return 0;
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_func_getpgrp_void=no
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_func_getpgrp_void=yes
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
5005 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5006 if test $ac_cv_func_getpgrp_void = yes; then
5008 cat >>confdefs.h <<\_ACEOF
5009 #define GETPGRP_VOID 1
5010 _ACEOF
5014 if test $ac_cv_c_compiler_gnu = yes; then
5015 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5016 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5017 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_pattern="Autoconf.*'x'"
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <sgtty.h>
5028 Autoconf TIOCGETP
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5032 ac_cv_prog_gcc_traditional=yes
5033 else
5034 ac_cv_prog_gcc_traditional=no
5036 rm -f conftest*
5039 if test $ac_cv_prog_gcc_traditional = no; then
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <termio.h>
5047 Autoconf TCGETA
5048 _ACEOF
5049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5050 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5051 ac_cv_prog_gcc_traditional=yes
5053 rm -f conftest*
5057 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5058 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5059 if test $ac_cv_prog_gcc_traditional = yes; then
5060 CC="$CC -traditional"
5064 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
5065 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
5066 if test "${ac_cv_func_setpgrp_void+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test "$cross_compiling" = yes; then
5070 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
5071 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
5072 { (exit 1); exit 1; }; }
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #if HAVE_UNISTD_H
5081 # include <unistd.h>
5082 #endif
5085 main ()
5087 /* If this system has a BSD-style setpgrp which takes arguments,
5088 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
5089 exit successfully. */
5090 exit (setpgrp (1,1) == -1 ? 0 : 1);
5092 return 0;
5094 _ACEOF
5095 rm -f conftest$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_func_setpgrp_void=no
5107 else
5108 echo "$as_me: program exited with status $ac_status" >&5
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ( exit $ac_status )
5113 ac_cv_func_setpgrp_void=yes
5115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
5119 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
5120 if test $ac_cv_func_setpgrp_void = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define SETPGRP_VOID 1
5124 _ACEOF
5128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5130 if test "${ac_cv_type_signal+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #include <sys/types.h>
5140 #include <signal.h>
5141 #ifdef signal
5142 # undef signal
5143 #endif
5144 #ifdef __cplusplus
5145 extern "C" void (*signal (int, void (*)(int)))(int);
5146 #else
5147 void (*signal ()) ();
5148 #endif
5151 main ()
5153 int i;
5155 return 0;
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_type_signal=void
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 ac_cv_type_signal=int
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5190 echo "${ECHO_T}$ac_cv_type_signal" >&6
5192 cat >>confdefs.h <<_ACEOF
5193 #define RETSIGTYPE $ac_cv_type_signal
5194 _ACEOF
5200 for ac_func in mktime select socket
5202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5203 echo "$as_me:$LINENO: checking for $ac_func" >&5
5204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5205 if eval "test \"\${$as_ac_var+set}\" = set"; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5216 #define $ac_func innocuous_$ac_func
5218 /* System header to define __stub macros and hopefully few prototypes,
5219 which can conflict with char $ac_func (); below.
5220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 <limits.h> exists even on freestanding compilers. */
5223 #ifdef __STDC__
5224 # include <limits.h>
5225 #else
5226 # include <assert.h>
5227 #endif
5229 #undef $ac_func
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 #ifdef __cplusplus
5233 extern "C"
5235 #endif
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5238 char $ac_func ();
5239 /* The GNU C library defines this for functions which it implements
5240 to always fail with ENOSYS. Some functions are actually named
5241 something starting with __ and the normal name is an alias. */
5242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5243 choke me
5244 #else
5245 char (*f) () = $ac_func;
5246 #endif
5247 #ifdef __cplusplus
5249 #endif
5252 main ()
5254 return f != $ac_func;
5256 return 0;
5258 _ACEOF
5259 rm -f conftest.$ac_objext conftest$ac_exeext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5261 (eval $ac_link) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 eval "$as_ac_var=yes"
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 eval "$as_ac_var=no"
5288 rm -f conftest.err conftest.$ac_objext \
5289 conftest$ac_exeext conftest.$ac_ext
5291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5293 if test `eval echo '${'$as_ac_var'}'` = yes; then
5294 cat >>confdefs.h <<_ACEOF
5295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5296 _ACEOF
5299 done
5302 for ac_func in clock_gettime
5304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5305 echo "$as_me:$LINENO: checking for $ac_func" >&5
5306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5307 if eval "test \"\${$as_ac_var+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5318 #define $ac_func innocuous_$ac_func
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func (); below.
5322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 <limits.h> exists even on freestanding compilers. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5331 #undef $ac_func
5333 /* Override any gcc2 internal prototype to avoid an error. */
5334 #ifdef __cplusplus
5335 extern "C"
5337 #endif
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5340 char $ac_func ();
5341 /* The GNU C library defines this for functions which it implements
5342 to always fail with ENOSYS. Some functions are actually named
5343 something starting with __ and the normal name is an alias. */
5344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5345 choke me
5346 #else
5347 char (*f) () = $ac_func;
5348 #endif
5349 #ifdef __cplusplus
5351 #endif
5354 main ()
5356 return f != $ac_func;
5358 return 0;
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest$ac_exeext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_var=yes"
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 eval "$as_ac_var=no"
5390 rm -f conftest.err conftest.$ac_objext \
5391 conftest$ac_exeext conftest.$ac_ext
5393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5395 if test `eval echo '${'$as_ac_var'}'` = yes; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5398 _ACEOF
5401 done
5404 echo "$as_me:$LINENO: checking for local DB directory" >&5
5405 echo $ECHO_N "checking for local DB directory... $ECHO_C" >&6
5407 # Check whether --with-localdbdir or --without-localdbdir was given.
5408 if test "${with_localdbdir+set}" = set; then
5409 withval="$with_localdbdir"
5410 localdbdir="$withval"
5411 else
5412 localdbdir="/var/db"
5414 echo "$as_me:$LINENO: result: $localdbdir" >&5
5415 echo "${ECHO_T}$localdbdir" >&6
5419 for ac_func in arc4random
5421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5422 echo "$as_me:$LINENO: checking for $ac_func" >&5
5423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_var+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5435 #define $ac_func innocuous_$ac_func
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func (); below.
5439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440 <limits.h> exists even on freestanding compilers. */
5442 #ifdef __STDC__
5443 # include <limits.h>
5444 #else
5445 # include <assert.h>
5446 #endif
5448 #undef $ac_func
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 #ifdef __cplusplus
5452 extern "C"
5454 #endif
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5457 char $ac_func ();
5458 /* The GNU C library defines this for functions which it implements
5459 to always fail with ENOSYS. Some functions are actually named
5460 something starting with __ and the normal name is an alias. */
5461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 choke me
5463 #else
5464 char (*f) () = $ac_func;
5465 #endif
5466 #ifdef __cplusplus
5468 #endif
5471 main ()
5473 return f != $ac_func;
5475 return 0;
5477 _ACEOF
5478 rm -f conftest.$ac_objext conftest$ac_exeext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480 (eval $ac_link) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -z "$ac_c_werror_flag"
5488 || test ! -s conftest.err'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest$ac_exeext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 eval "$as_ac_var=yes"
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 eval "$as_ac_var=no"
5507 rm -f conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5512 if test `eval echo '${'$as_ac_var'}'` = yes; then
5513 cat >>confdefs.h <<_ACEOF
5514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5515 _ACEOF
5517 else
5518 case $LIBOBJS in
5519 "$ac_func.$ac_objext" | \
5520 *" $ac_func.$ac_objext" | \
5521 "$ac_func.$ac_objext "* | \
5522 *" $ac_func.$ac_objext "* ) ;;
5523 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5524 esac
5527 done
5531 echo "$as_me:$LINENO: checking if --enable-pedant option is specified" >&5
5532 echo $ECHO_N "checking if --enable-pedant option is specified... $ECHO_C" >&6
5533 # Check whether --enable-pedant or --disable-pedant was given.
5534 if test "${enable_pedant+set}" = set; then
5535 enableval="$enable_pedant"
5536 if test "$enableval" = "yes"; then
5537 CFLAGS="-Wall -Werror $CFLAGS"
5539 else
5540 enableval=no
5542 echo "$as_me:$LINENO: result: $enableval" >&5
5543 echo "${ECHO_T}$enableval" >&6;
5545 echo "$as_me:$LINENO: checking ANSI predeclared __func__" >&5
5546 echo $ECHO_N "checking ANSI predeclared __func__... $ECHO_C" >&6
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5555 main ()
5557 void func(void) {printf("%s\n", __func__);}
5559 return 0;
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag"
5572 || test ! -s conftest.err'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 echo "$as_me:$LINENO: result: yes" >&5
5585 echo "${ECHO_T}yes" >&6
5586 pred_func_id=ansi
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6
5593 pred_func_id=no
5595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5596 if test $pred_func_id = no; then
5597 echo "$as_me:$LINENO: checking gcc predelcared __FUNCTION__" >&5
5598 echo $ECHO_N "checking gcc predelcared __FUNCTION__... $ECHO_C" >&6
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5607 main ()
5609 void func(void) {printf("%s\n", __FUNCTION__);}
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag"
5624 || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637 echo "${ECHO_T}yes" >&6
5638 pred_func_id=gcc
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6
5645 pred_func_id=no
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 case $pred_func_id in
5650 ansi)
5651 cat >>confdefs.h <<\_ACEOF
5652 #define HAVE_ANSI_FUNC 1
5653 _ACEOF
5656 gcc)
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_GCC_FUNCTION 1
5659 _ACEOF
5662 esac
5665 echo "$as_me:$LINENO: checking checking the existence TAILQ_FOREACH_REVERSE" >&5
5666 echo $ECHO_N "checking checking the existence TAILQ_FOREACH_REVERSE... $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <sys/queue.h>
5674 #ifdef TAILQ_FOREACH_REVERSE
5676 #endif
5677 _ACEOF
5678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5679 $EGREP "yes" >/dev/null 2>&1; then
5680 result=yes
5681 else
5682 result=no
5684 rm -f conftest*
5686 echo "$as_me:$LINENO: result: $result" >&5
5687 echo "${ECHO_T}$result" >&6
5688 case $result in
5689 yes) tailq_foreach=yes
5691 *) tailq_foreach=no
5693 esac
5695 if test $tailq_foreach = yes ; then
5696 echo "$as_me:$LINENO: checking argument order of TAILQ_FOREACH_REVERSE" >&5
5697 echo $ECHO_N "checking argument order of TAILQ_FOREACH_REVERSE... $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5706 main ()
5709 #include <stdio.h>
5710 #include <sys/queue.h>
5712 TAILQ_HEAD(tailhead, entry) head = TAILQ_HEAD_INITIALIZER(head);
5713 struct entry {
5714 TAILQ_ENTRY(entry) entries;
5715 } *p;
5717 int i;
5718 struct tailhead *headp;
5720 TAILQ_FOREACH_REVERSE(p, headp, tailhead, entries) {
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 echo "$as_me:$LINENO: result: new" >&5
5750 echo "${ECHO_T}new" >&6
5751 cat >>confdefs.h <<\_ACEOF
5752 #define HAVE_TAILQ_FOREACH_REVERSE 1
5753 _ACEOF
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 echo "$as_me:$LINENO: result: old" >&5
5760 echo "${ECHO_T}old" >&6
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_TAILQ_FOREACH_REVERSE_OLD 1
5763 _ACEOF
5766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
5769 echo "$as_me:$LINENO: checking if you have a length field in struct sockaddr*" >&5
5770 echo $ECHO_N "checking if you have a length field in struct sockaddr*... $ECHO_C" >&6
5771 if test "${ts_cv_sa_len+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 #include <sys/types.h>
5782 #include <sys/socket.h>
5785 main ()
5788 struct sockaddr a;
5789 a.sa_len = 1;
5792 return 0;
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ts_cv_sa_len="yes"
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 ts_cv_sa_len="no"
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ts_cv_sa_len" >&5
5828 echo "${ECHO_T}$ts_cv_sa_len" >&6;
5829 if test "$ts_cv_sa_len" = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_SA_LEN 1
5833 _ACEOF
5837 echo "$as_me:$LINENO: checking the owner of the programs" >&5
5838 echo $ECHO_N "checking the owner of the programs... $ECHO_C" >&6
5840 # Check whether --with-user or --without-user was given.
5841 if test "${with_user+set}" = set; then
5842 withval="$with_user"
5843 user="$withval"
5844 else
5845 user="bin"
5847 echo "$as_me:$LINENO: result: $user" >&5
5848 echo "${ECHO_T}$user" >&6
5851 echo "$as_me:$LINENO: checking the group owner of the programs" >&5
5852 echo $ECHO_N "checking the group owner of the programs... $ECHO_C" >&6
5854 # Check whether --with-group or --without-group was given.
5855 if test "${with_group+set}" = set; then
5856 withval="$with_group"
5857 group="$withval"
5858 else
5859 group="bin"
5861 echo "$as_me:$LINENO: result: $group" >&5
5862 echo "${ECHO_T}$group" >&6
5866 for ac_header in stdarg.h
5868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5870 echo "$as_me:$LINENO: checking for $ac_header" >&5
5871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877 else
5878 # Is the header compilable?
5879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 #include <$ac_header>
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag"
5900 || test ! -s conftest.err'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 ac_header_compiler=yes
5913 else
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_header_compiler=no
5919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5921 echo "${ECHO_T}$ac_header_compiler" >&6
5923 # Is the header present?
5924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #include <$ac_header>
5933 _ACEOF
5934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } >/dev/null; then
5942 if test -s conftest.err; then
5943 ac_cpp_err=$ac_c_preproc_warn_flag
5944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5945 else
5946 ac_cpp_err=
5948 else
5949 ac_cpp_err=yes
5951 if test -z "$ac_cpp_err"; then
5952 ac_header_preproc=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_header_preproc=no
5959 rm -f conftest.err conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5961 echo "${ECHO_T}$ac_header_preproc" >&6
5963 # So? What about this header?
5964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5965 yes:no: )
5966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5970 ac_header_preproc=yes
5972 no:yes:* )
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5986 cat <<\_ASBOX
5987 ## ------------------------------------------ ##
5988 ## Report this to the AC_PACKAGE_NAME lists. ##
5989 ## ------------------------------------------ ##
5990 _ASBOX
5992 sed "s/^/$as_me: WARNING: /" >&2
5994 esac
5995 echo "$as_me:$LINENO: checking for $ac_header" >&5
5996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 eval "$as_ac_Header=\$ac_header_preproc"
6002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6013 done
6016 ac_config_files="$ac_config_files Makefile"
6017 cat >confcache <<\_ACEOF
6018 # This file is a shell script that caches the results of configure
6019 # tests run on this system so they can be shared between configure
6020 # scripts and configure runs, see configure's option --config-cache.
6021 # It is not useful on other systems. If it contains results you don't
6022 # want to keep, you may remove or edit it.
6024 # config.status only pays attention to the cache file if you give it
6025 # the --recheck option to rerun configure.
6027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6029 # following values.
6031 _ACEOF
6033 # The following way of writing the cache mishandles newlines in values,
6034 # but we know of no workaround that is simple, portable, and efficient.
6035 # So, don't put newlines in cache variables' values.
6036 # Ultrix sh set writes to stderr and can't be redirected directly,
6037 # and sets the high bit in the cache file unless we assign to the vars.
6039 (set) 2>&1 |
6040 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6041 *ac_space=\ *)
6042 # `set' does not quote correctly, so add quotes (double-quote
6043 # substitution turns \\\\ into \\, and sed turns \\ into \).
6044 sed -n \
6045 "s/'/'\\\\''/g;
6046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6049 # `set' quotes correctly as required by POSIX, so do not add quotes.
6050 sed -n \
6051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6053 esac;
6055 sed '
6056 t clear
6057 : clear
6058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6059 t end
6060 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6061 : end' >>confcache
6062 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6063 if test -w $cache_file; then
6064 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6065 cat confcache >$cache_file
6066 else
6067 echo "not updating unwritable cache $cache_file"
6070 rm -f confcache
6072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6073 # Let make expand exec_prefix.
6074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6076 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6077 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6078 # trailing colons and then remove the whole line if VPATH becomes empty
6079 # (actually we leave an empty line to preserve line numbers).
6080 if test "x$srcdir" = x.; then
6081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6082 s/:*\$(srcdir):*/:/;
6083 s/:*\${srcdir}:*/:/;
6084 s/:*@srcdir@:*/:/;
6085 s/^\([^=]*=[ ]*\):*/\1/;
6086 s/:*$//;
6087 s/^[^=]*=[ ]*$//;
6091 # Transform confdefs.h into DEFS.
6092 # Protect against shell expansion while executing Makefile rules.
6093 # Protect against Makefile macro expansion.
6095 # If the first sed substitution is executed (which looks for macros that
6096 # take arguments), then we branch to the quote section. Otherwise,
6097 # look for a macro that doesn't take arguments.
6098 cat >confdef2opt.sed <<\_ACEOF
6099 t clear
6100 : clear
6101 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6102 t quote
6103 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6104 t quote
6106 : quote
6107 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6108 s,\[,\\&,g
6109 s,\],\\&,g
6110 s,\$,$$,g
6112 _ACEOF
6113 # We use echo to avoid assuming a particular line-breaking character.
6114 # The extra dot is to prevent the shell from consuming trailing
6115 # line-breaks from the sub-command output. A line-break within
6116 # single-quotes doesn't work because, if this script is created in a
6117 # platform that uses two characters for line-breaks (e.g., DOS), tr
6118 # would break.
6119 ac_LF_and_DOT=`echo; echo .`
6120 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6121 rm -f confdef2opt.sed
6124 ac_libobjs=
6125 ac_ltlibobjs=
6126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6127 # 1. Remove the extension, and $U if already installed.
6128 ac_i=`echo "$ac_i" |
6129 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6130 # 2. Add them.
6131 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6132 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6133 done
6134 LIBOBJS=$ac_libobjs
6136 LTLIBOBJS=$ac_ltlibobjs
6140 : ${CONFIG_STATUS=./config.status}
6141 ac_clean_files_save=$ac_clean_files
6142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6143 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6144 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6145 cat >$CONFIG_STATUS <<_ACEOF
6146 #! $SHELL
6147 # Generated by $as_me.
6148 # Run this file to recreate the current configuration.
6149 # Compiler output produced by configure, useful for debugging
6150 # configure, is in config.log if it exists.
6152 debug=false
6153 ac_cs_recheck=false
6154 ac_cs_silent=false
6155 SHELL=\${CONFIG_SHELL-$SHELL}
6156 _ACEOF
6158 cat >>$CONFIG_STATUS <<\_ACEOF
6159 ## --------------------- ##
6160 ## M4sh Initialization. ##
6161 ## --------------------- ##
6163 # Be Bourne compatible
6164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6165 emulate sh
6166 NULLCMD=:
6167 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6168 # is contrary to our usage. Disable this feature.
6169 alias -g '${1+"$@"}'='"$@"'
6170 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6171 set -o posix
6173 DUALCASE=1; export DUALCASE # for MKS sh
6175 # Support unset when possible.
6176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6177 as_unset=unset
6178 else
6179 as_unset=false
6183 # Work around bugs in pre-3.0 UWIN ksh.
6184 $as_unset ENV MAIL MAILPATH
6185 PS1='$ '
6186 PS2='> '
6187 PS4='+ '
6189 # NLS nuisances.
6190 for as_var in \
6191 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6192 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6193 LC_TELEPHONE LC_TIME
6195 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6196 eval $as_var=C; export $as_var
6197 else
6198 $as_unset $as_var
6200 done
6202 # Required to use basename.
6203 if expr a : '\(a\)' >/dev/null 2>&1; then
6204 as_expr=expr
6205 else
6206 as_expr=false
6209 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6210 as_basename=basename
6211 else
6212 as_basename=false
6216 # Name of the executable.
6217 as_me=`$as_basename "$0" ||
6218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6219 X"$0" : 'X\(//\)$' \| \
6220 X"$0" : 'X\(/\)$' \| \
6221 . : '\(.\)' 2>/dev/null ||
6222 echo X/"$0" |
6223 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6224 /^X\/\(\/\/\)$/{ s//\1/; q; }
6225 /^X\/\(\/\).*/{ s//\1/; q; }
6226 s/.*/./; q'`
6229 # PATH needs CR, and LINENO needs CR and PATH.
6230 # Avoid depending upon Character Ranges.
6231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6234 as_cr_digits='0123456789'
6235 as_cr_alnum=$as_cr_Letters$as_cr_digits
6237 # The user is always right.
6238 if test "${PATH_SEPARATOR+set}" != set; then
6239 echo "#! /bin/sh" >conf$$.sh
6240 echo "exit 0" >>conf$$.sh
6241 chmod +x conf$$.sh
6242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6243 PATH_SEPARATOR=';'
6244 else
6245 PATH_SEPARATOR=:
6247 rm -f conf$$.sh
6251 as_lineno_1=$LINENO
6252 as_lineno_2=$LINENO
6253 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6254 test "x$as_lineno_1" != "x$as_lineno_2" &&
6255 test "x$as_lineno_3" = "x$as_lineno_2" || {
6256 # Find who we are. Look in the path if we contain no path at all
6257 # relative or not.
6258 case $0 in
6259 *[\\/]* ) as_myself=$0 ;;
6260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6266 done
6269 esac
6270 # We did not find ourselves, most probably we were run as `sh COMMAND'
6271 # in which case we are not to be found in the path.
6272 if test "x$as_myself" = x; then
6273 as_myself=$0
6275 if test ! -f "$as_myself"; then
6276 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6278 { (exit 1); exit 1; }; }
6280 case $CONFIG_SHELL in
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for as_base in sh bash ksh sh5; do
6288 case $as_dir in
6290 if ("$as_dir/$as_base" -c '
6291 as_lineno_1=$LINENO
6292 as_lineno_2=$LINENO
6293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6294 test "x$as_lineno_1" != "x$as_lineno_2" &&
6295 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6296 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6297 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6298 CONFIG_SHELL=$as_dir/$as_base
6299 export CONFIG_SHELL
6300 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6301 fi;;
6302 esac
6303 done
6304 done
6306 esac
6308 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6309 # uniformly replaced by the line number. The first 'sed' inserts a
6310 # line-number line before each line; the second 'sed' does the real
6311 # work. The second script uses 'N' to pair each line-number line
6312 # with the numbered line, and appends trailing '-' during
6313 # substitution so that $LINENO is not a special case at line end.
6314 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6315 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6316 sed '=' <$as_myself |
6317 sed '
6319 s,$,-,
6320 : loop
6321 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6322 t loop
6323 s,-$,,
6324 s,^['$as_cr_digits']*\n,,
6325 ' >$as_me.lineno &&
6326 chmod +x $as_me.lineno ||
6327 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6328 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6329 { (exit 1); exit 1; }; }
6331 # Don't try to exec as it changes $[0], causing all sort of problems
6332 # (the dirname of $[0] is not the place where we might find the
6333 # original and so on. Autoconf is especially sensible to this).
6334 . ./$as_me.lineno
6335 # Exit status is that of the last command.
6336 exit
6340 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6341 *c*,-n*) ECHO_N= ECHO_C='
6342 ' ECHO_T=' ' ;;
6343 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6344 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6345 esac
6347 if expr a : '\(a\)' >/dev/null 2>&1; then
6348 as_expr=expr
6349 else
6350 as_expr=false
6353 rm -f conf$$ conf$$.exe conf$$.file
6354 echo >conf$$.file
6355 if ln -s conf$$.file conf$$ 2>/dev/null; then
6356 # We could just check for DJGPP; but this test a) works b) is more generic
6357 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6358 if test -f conf$$.exe; then
6359 # Don't use ln at all; we don't have any links
6360 as_ln_s='cp -p'
6361 else
6362 as_ln_s='ln -s'
6364 elif ln conf$$.file conf$$ 2>/dev/null; then
6365 as_ln_s=ln
6366 else
6367 as_ln_s='cp -p'
6369 rm -f conf$$ conf$$.exe conf$$.file
6371 if mkdir -p . 2>/dev/null; then
6372 as_mkdir_p=:
6373 else
6374 test -d ./-p && rmdir ./-p
6375 as_mkdir_p=false
6378 as_executable_p="test -f"
6380 # Sed expression to map a string onto a valid CPP name.
6381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6383 # Sed expression to map a string onto a valid variable name.
6384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6387 # IFS
6388 # We need space, tab and new line, in precisely that order.
6389 as_nl='
6391 IFS=" $as_nl"
6393 # CDPATH.
6394 $as_unset CDPATH
6396 exec 6>&1
6398 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6399 # report actual input values of CONFIG_FILES etc. instead of their
6400 # values after options handling. Logging --version etc. is OK.
6401 exec 5>>config.log
6403 echo
6404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6405 ## Running $as_me. ##
6406 _ASBOX
6407 } >&5
6408 cat >&5 <<_CSEOF
6410 This file was extended by $as_me, which was
6411 generated by GNU Autoconf 2.59. Invocation command line was
6413 CONFIG_FILES = $CONFIG_FILES
6414 CONFIG_HEADERS = $CONFIG_HEADERS
6415 CONFIG_LINKS = $CONFIG_LINKS
6416 CONFIG_COMMANDS = $CONFIG_COMMANDS
6417 $ $0 $@
6419 _CSEOF
6420 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6421 echo >&5
6422 _ACEOF
6424 # Files that config.status was made for.
6425 if test -n "$ac_config_files"; then
6426 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6429 if test -n "$ac_config_headers"; then
6430 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6433 if test -n "$ac_config_links"; then
6434 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6437 if test -n "$ac_config_commands"; then
6438 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6441 cat >>$CONFIG_STATUS <<\_ACEOF
6443 ac_cs_usage="\
6444 \`$as_me' instantiates files from templates according to the
6445 current configuration.
6447 Usage: $0 [OPTIONS] [FILE]...
6449 -h, --help print this help, then exit
6450 -V, --version print version number, then exit
6451 -q, --quiet do not print progress messages
6452 -d, --debug don't remove temporary files
6453 --recheck update $as_me by reconfiguring in the same conditions
6454 --file=FILE[:TEMPLATE]
6455 instantiate the configuration file FILE
6457 Configuration files:
6458 $config_files
6460 Report bugs to <bug-autoconf@gnu.org>."
6461 _ACEOF
6463 cat >>$CONFIG_STATUS <<_ACEOF
6464 ac_cs_version="\\
6465 config.status
6466 configured by $0, generated by GNU Autoconf 2.59,
6467 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6469 Copyright (C) 2003 Free Software Foundation, Inc.
6470 This config.status script is free software; the Free Software Foundation
6471 gives unlimited permission to copy, distribute and modify it."
6472 srcdir=$srcdir
6473 INSTALL="$INSTALL"
6474 _ACEOF
6476 cat >>$CONFIG_STATUS <<\_ACEOF
6477 # If no file are specified by the user, then we need to provide default
6478 # value. By we need to know if files were specified by the user.
6479 ac_need_defaults=:
6480 while test $# != 0
6482 case $1 in
6483 --*=*)
6484 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6485 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6486 ac_shift=:
6489 ac_option=$1
6490 ac_optarg=$2
6491 ac_shift=shift
6493 *) # This is not an option, so the user has probably given explicit
6494 # arguments.
6495 ac_option=$1
6496 ac_need_defaults=false;;
6497 esac
6499 case $ac_option in
6500 # Handling of the options.
6501 _ACEOF
6502 cat >>$CONFIG_STATUS <<\_ACEOF
6503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6504 ac_cs_recheck=: ;;
6505 --version | --vers* | -V )
6506 echo "$ac_cs_version"; exit 0 ;;
6507 --he | --h)
6508 # Conflict between --help and --header
6509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6510 Try \`$0 --help' for more information." >&5
6511 echo "$as_me: error: ambiguous option: $1
6512 Try \`$0 --help' for more information." >&2;}
6513 { (exit 1); exit 1; }; };;
6514 --help | --hel | -h )
6515 echo "$ac_cs_usage"; exit 0 ;;
6516 --debug | --d* | -d )
6517 debug=: ;;
6518 --file | --fil | --fi | --f )
6519 $ac_shift
6520 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6521 ac_need_defaults=false;;
6522 --header | --heade | --head | --hea )
6523 $ac_shift
6524 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6525 ac_need_defaults=false;;
6526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6528 ac_cs_silent=: ;;
6530 # This is an error.
6531 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6532 Try \`$0 --help' for more information." >&5
6533 echo "$as_me: error: unrecognized option: $1
6534 Try \`$0 --help' for more information." >&2;}
6535 { (exit 1); exit 1; }; } ;;
6537 *) ac_config_targets="$ac_config_targets $1" ;;
6539 esac
6540 shift
6541 done
6543 ac_configure_extra_args=
6545 if $ac_cs_silent; then
6546 exec 6>/dev/null
6547 ac_configure_extra_args="$ac_configure_extra_args --silent"
6550 _ACEOF
6551 cat >>$CONFIG_STATUS <<_ACEOF
6552 if \$ac_cs_recheck; then
6553 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6554 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6557 _ACEOF
6563 cat >>$CONFIG_STATUS <<\_ACEOF
6564 for ac_config_target in $ac_config_targets
6566 case "$ac_config_target" in
6567 # Handling of arguments.
6568 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6569 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6570 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6571 { (exit 1); exit 1; }; };;
6572 esac
6573 done
6575 # If the user did not use the arguments to specify the items to instantiate,
6576 # then the envvar interface is used. Set only those that are not.
6577 # We use the long form for the default assignment because of an extremely
6578 # bizarre bug on SunOS 4.1.3.
6579 if $ac_need_defaults; then
6580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6583 # Have a temporary directory for convenience. Make it in the build tree
6584 # simply because there is no reason to put it here, and in addition,
6585 # creating and moving files from /tmp can sometimes cause problems.
6586 # Create a temporary directory, and hook for its removal unless debugging.
6587 $debug ||
6589 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6590 trap '{ (exit 1); exit 1; }' 1 2 13 15
6593 # Create a (secure) tmp directory for tmp files.
6596 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6597 test -n "$tmp" && test -d "$tmp"
6598 } ||
6600 tmp=./confstat$$-$RANDOM
6601 (umask 077 && mkdir $tmp)
6602 } ||
6604 echo "$me: cannot create a temporary directory in ." >&2
6605 { (exit 1); exit 1; }
6608 _ACEOF
6610 cat >>$CONFIG_STATUS <<_ACEOF
6613 # CONFIG_FILES section.
6616 # No need to generate the scripts if there are no CONFIG_FILES.
6617 # This happens for instance when ./config.status config.h
6618 if test -n "\$CONFIG_FILES"; then
6619 # Protect against being on the right side of a sed subst in config.status.
6620 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6621 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6622 s,@SHELL@,$SHELL,;t t
6623 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6624 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6625 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6626 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6627 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6628 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6629 s,@exec_prefix@,$exec_prefix,;t t
6630 s,@prefix@,$prefix,;t t
6631 s,@program_transform_name@,$program_transform_name,;t t
6632 s,@bindir@,$bindir,;t t
6633 s,@sbindir@,$sbindir,;t t
6634 s,@libexecdir@,$libexecdir,;t t
6635 s,@datadir@,$datadir,;t t
6636 s,@sysconfdir@,$sysconfdir,;t t
6637 s,@sharedstatedir@,$sharedstatedir,;t t
6638 s,@localstatedir@,$localstatedir,;t t
6639 s,@libdir@,$libdir,;t t
6640 s,@includedir@,$includedir,;t t
6641 s,@oldincludedir@,$oldincludedir,;t t
6642 s,@infodir@,$infodir,;t t
6643 s,@mandir@,$mandir,;t t
6644 s,@build_alias@,$build_alias,;t t
6645 s,@host_alias@,$host_alias,;t t
6646 s,@target_alias@,$target_alias,;t t
6647 s,@DEFS@,$DEFS,;t t
6648 s,@ECHO_C@,$ECHO_C,;t t
6649 s,@ECHO_N@,$ECHO_N,;t t
6650 s,@ECHO_T@,$ECHO_T,;t t
6651 s,@LIBS@,$LIBS,;t t
6652 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6653 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6654 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6655 s,@SET_MAKE@,$SET_MAKE,;t t
6656 s,@CC@,$CC,;t t
6657 s,@CFLAGS@,$CFLAGS,;t t
6658 s,@LDFLAGS@,$LDFLAGS,;t t
6659 s,@CPPFLAGS@,$CPPFLAGS,;t t
6660 s,@ac_ct_CC@,$ac_ct_CC,;t t
6661 s,@EXEEXT@,$EXEEXT,;t t
6662 s,@OBJEXT@,$OBJEXT,;t t
6663 s,@CPP@,$CPP,;t t
6664 s,@YACC@,$YACC,;t t
6665 s,@LEX@,$LEX,;t t
6666 s,@LEXLIB@,$LEXLIB,;t t
6667 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6668 s,@EGREP@,$EGREP,;t t
6669 s,@LIBOBJS@,$LIBOBJS,;t t
6670 s,@localdbdir@,$localdbdir,;t t
6671 s,@user@,$user,;t t
6672 s,@group@,$group,;t t
6673 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6674 CEOF
6676 _ACEOF
6678 cat >>$CONFIG_STATUS <<\_ACEOF
6679 # Split the substitutions into bite-sized pieces for seds with
6680 # small command number limits, like on Digital OSF/1 and HP-UX.
6681 ac_max_sed_lines=48
6682 ac_sed_frag=1 # Number of current file.
6683 ac_beg=1 # First line for current file.
6684 ac_end=$ac_max_sed_lines # Line after last line for current file.
6685 ac_more_lines=:
6686 ac_sed_cmds=
6687 while $ac_more_lines; do
6688 if test $ac_beg -gt 1; then
6689 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6690 else
6691 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6693 if test ! -s $tmp/subs.frag; then
6694 ac_more_lines=false
6695 else
6696 # The purpose of the label and of the branching condition is to
6697 # speed up the sed processing (if there are no `@' at all, there
6698 # is no need to browse any of the substitutions).
6699 # These are the two extra sed commands mentioned above.
6700 (echo ':t
6701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6702 if test -z "$ac_sed_cmds"; then
6703 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6704 else
6705 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6707 ac_sed_frag=`expr $ac_sed_frag + 1`
6708 ac_beg=$ac_end
6709 ac_end=`expr $ac_end + $ac_max_sed_lines`
6711 done
6712 if test -z "$ac_sed_cmds"; then
6713 ac_sed_cmds=cat
6715 fi # test -n "$CONFIG_FILES"
6717 _ACEOF
6718 cat >>$CONFIG_STATUS <<\_ACEOF
6719 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6721 case $ac_file in
6722 - | *:- | *:-:* ) # input from stdin
6723 cat >$tmp/stdin
6724 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6726 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6728 * ) ac_file_in=$ac_file.in ;;
6729 esac
6731 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6732 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6733 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6734 X"$ac_file" : 'X\(//\)[^/]' \| \
6735 X"$ac_file" : 'X\(//\)$' \| \
6736 X"$ac_file" : 'X\(/\)' \| \
6737 . : '\(.\)' 2>/dev/null ||
6738 echo X"$ac_file" |
6739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6741 /^X\(\/\/\)$/{ s//\1/; q; }
6742 /^X\(\/\).*/{ s//\1/; q; }
6743 s/.*/./; q'`
6744 { if $as_mkdir_p; then
6745 mkdir -p "$ac_dir"
6746 else
6747 as_dir="$ac_dir"
6748 as_dirs=
6749 while test ! -d "$as_dir"; do
6750 as_dirs="$as_dir $as_dirs"
6751 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6753 X"$as_dir" : 'X\(//\)[^/]' \| \
6754 X"$as_dir" : 'X\(//\)$' \| \
6755 X"$as_dir" : 'X\(/\)' \| \
6756 . : '\(.\)' 2>/dev/null ||
6757 echo X"$as_dir" |
6758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6760 /^X\(\/\/\)$/{ s//\1/; q; }
6761 /^X\(\/\).*/{ s//\1/; q; }
6762 s/.*/./; q'`
6763 done
6764 test ! -n "$as_dirs" || mkdir $as_dirs
6765 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6766 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6767 { (exit 1); exit 1; }; }; }
6769 ac_builddir=.
6771 if test "$ac_dir" != .; then
6772 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6773 # A "../" for each directory in $ac_dir_suffix.
6774 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6775 else
6776 ac_dir_suffix= ac_top_builddir=
6779 case $srcdir in
6780 .) # No --srcdir option. We are building in place.
6781 ac_srcdir=.
6782 if test -z "$ac_top_builddir"; then
6783 ac_top_srcdir=.
6784 else
6785 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6786 fi ;;
6787 [\\/]* | ?:[\\/]* ) # Absolute path.
6788 ac_srcdir=$srcdir$ac_dir_suffix;
6789 ac_top_srcdir=$srcdir ;;
6790 *) # Relative path.
6791 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6792 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6793 esac
6795 # Do not use `cd foo && pwd` to compute absolute paths, because
6796 # the directories may not exist.
6797 case `pwd` in
6798 .) ac_abs_builddir="$ac_dir";;
6800 case "$ac_dir" in
6801 .) ac_abs_builddir=`pwd`;;
6802 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6803 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6804 esac;;
6805 esac
6806 case $ac_abs_builddir in
6807 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6809 case ${ac_top_builddir}. in
6810 .) ac_abs_top_builddir=$ac_abs_builddir;;
6811 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6812 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6813 esac;;
6814 esac
6815 case $ac_abs_builddir in
6816 .) ac_abs_srcdir=$ac_srcdir;;
6818 case $ac_srcdir in
6819 .) ac_abs_srcdir=$ac_abs_builddir;;
6820 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6821 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6822 esac;;
6823 esac
6824 case $ac_abs_builddir in
6825 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6827 case $ac_top_srcdir in
6828 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6829 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6830 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6831 esac;;
6832 esac
6835 case $INSTALL in
6836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6837 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6838 esac
6840 if test x"$ac_file" != x-; then
6841 { echo "$as_me:$LINENO: creating $ac_file" >&5
6842 echo "$as_me: creating $ac_file" >&6;}
6843 rm -f "$ac_file"
6845 # Let's still pretend it is `configure' which instantiates (i.e., don't
6846 # use $as_me), people would be surprised to read:
6847 # /* config.h. Generated by config.status. */
6848 if test x"$ac_file" = x-; then
6849 configure_input=
6850 else
6851 configure_input="$ac_file. "
6853 configure_input=$configure_input"Generated from `echo $ac_file_in |
6854 sed 's,.*/,,'` by configure."
6856 # First look for the input files in the build tree, otherwise in the
6857 # src tree.
6858 ac_file_inputs=`IFS=:
6859 for f in $ac_file_in; do
6860 case $f in
6861 -) echo $tmp/stdin ;;
6862 [\\/$]*)
6863 # Absolute (can't be DOS-style, as IFS=:)
6864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6865 echo "$as_me: error: cannot find input file: $f" >&2;}
6866 { (exit 1); exit 1; }; }
6867 echo "$f";;
6868 *) # Relative
6869 if test -f "$f"; then
6870 # Build tree
6871 echo "$f"
6872 elif test -f "$srcdir/$f"; then
6873 # Source tree
6874 echo "$srcdir/$f"
6875 else
6876 # /dev/null tree
6877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6878 echo "$as_me: error: cannot find input file: $f" >&2;}
6879 { (exit 1); exit 1; }; }
6880 fi;;
6881 esac
6882 done` || { (exit 1); exit 1; }
6883 _ACEOF
6884 cat >>$CONFIG_STATUS <<_ACEOF
6885 sed "$ac_vpsub
6886 $extrasub
6887 _ACEOF
6888 cat >>$CONFIG_STATUS <<\_ACEOF
6890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6891 s,@configure_input@,$configure_input,;t t
6892 s,@srcdir@,$ac_srcdir,;t t
6893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6894 s,@top_srcdir@,$ac_top_srcdir,;t t
6895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6896 s,@builddir@,$ac_builddir,;t t
6897 s,@abs_builddir@,$ac_abs_builddir,;t t
6898 s,@top_builddir@,$ac_top_builddir,;t t
6899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6900 s,@INSTALL@,$ac_INSTALL,;t t
6901 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6902 rm -f $tmp/stdin
6903 if test x"$ac_file" != x-; then
6904 mv $tmp/out $ac_file
6905 else
6906 cat $tmp/out
6907 rm -f $tmp/out
6910 done
6911 _ACEOF
6913 cat >>$CONFIG_STATUS <<\_ACEOF
6915 { (exit 0); exit 0; }
6916 _ACEOF
6917 chmod +x $CONFIG_STATUS
6918 ac_clean_files=$ac_clean_files_save
6921 # configure is writing to config.log, and then calls config.status.
6922 # config.status does its own redirection, appending to config.log.
6923 # Unfortunately, on DOS this fails, as config.log is still kept open
6924 # by configure, so config.status won't be able to write to it; its
6925 # output is simply discarded. So we exec the FD to /dev/null,
6926 # effectively closing config.log, so it can be properly (re)opened and
6927 # appended to by config.status. When coming back to configure, we
6928 # need to make the FD available again.
6929 if test "$no_create" != yes; then
6930 ac_cs_success=:
6931 ac_config_status_args=
6932 test "$silent" = yes &&
6933 ac_config_status_args="$ac_config_status_args --quiet"
6934 exec 5>/dev/null
6935 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6936 exec 5>>config.log
6937 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6938 # would make configure fail if this is the last instruction.
6939 $ac_cs_success || { (exit 1); exit 1; }