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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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.
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
853 --enable-profile Enable profiling support (add -pg to CFLAGS)
854 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
855 --enable-warnings Enable warnings (add -Wall to CFLAGS)
856 --disable-inlines Disable inlining for a few critical functions
857 --disable-devpoll Disable the /dev/poll-based engine
858 --disable-kqueue Disable the kqueue-based engine
859 --disable-epoll Disable the epoll-based engine
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-optimization=-O2 Explicitly set the compiler optimization flags
866 --with-leak-detect Turn on the leak detector(requires patched boehm)
867 --without-ipv6 disable IPv6 support (default is autodetect)
868 --with-symlink=name Name to give the symlink; if name is "no," no
869 symlink will be created.
870 --with-mode=mode Permissions (in octal) to give the binary
871 --with-owner=owner Specify owner of the installed binary
872 --with-group=group Specify group owner of the installed binary
873 --with-domain=domain Domain name to use in local statistics gathering
874 --with-chroot=dir Specify that the server will be operated under
875 a different root directory given by dir. See
876 doc/readme.chroot for more information.
877 --with-dpath=dir Directory for all server data files
878 --with-cpath=file Set server configuration file
879 --with-lpath=file Set the debugging log file
880 --with-maxcon=maxcon Maximum number of connections server will accept
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 echo "$as_me:$LINENO: checking for installation prefix" >&5
1332 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1333 if test "${unet_cv_prefix+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 unet_cv_prefix=$HOME
1339 if test x"$prefix" != xNONE; then
1340 unet_cv_prefix=$prefix
1342 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1343 echo "${ECHO_T}$unet_cv_prefix" >&6
1344 ac_default_prefix=$unet_cv_prefix
1346 ac_config_headers="$ac_config_headers config.h"
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$CC" && break
1692 if test -z "$CC"; then
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$ac_ct_CC" && break
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1766 cat >conftest.$ac_ext <<_ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 test -f "$ac_file" || continue
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 # This is the source file.
1812 # We found the default executable, but exeext='' is most
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 if test "$cross_compiling" = maybe; then
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 cat >conftest.$ac_ext <<_ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1994 grep -v '^ *+' conftest.er1 >conftest.err
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2089 if test "$GCC" = yes; then
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_prog_cc_stdc=no
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2126 s = g (p, va_arg (v,int));
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.err conftest.$ac_objext
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2199 case "x$ac_cv_prog_cc_stdc" in
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2222 grep -v '^ *+' conftest.er1 >conftest.err
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2241 'extern "C" void std::exit (int) throw (); using std::exit;' \
2242 'extern "C" void std::exit (int); using std::exit;' \
2243 'extern "C" void exit (int) throw ();' \
2244 'extern "C" void exit (int);' \
2247 cat >conftest.$ac_ext <<_ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2267 grep -v '^ *+' conftest.er1 >conftest.err
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1 >conftest.err
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 if test -n "$ac_declaration"; then
2338 echo '#ifdef __cplusplus' >>confdefs.h
2339 echo $ac_declaration >>confdefs.h
2340 echo '#endif' >>confdefs.h
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 if test -n "$CC"; then
2390 echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "cc", so it can be a program name with args.
2481 set dummy cc; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="cc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2521 if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected=yes
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 if test $ac_prog_rejected = yes; then
2552 # We found a bogon in the path, so make sure we never use it.
2553 set dummy $ac_cv_prog_CC
2555 if test $# != 0; then
2556 # We chose a different compiler from the bogus one.
2557 # However, it has the same basename, so the bogon will be chosen
2558 # first if we set CC to just the basename; use the full file name.
2560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566 if test -n "$CC"; then
2567 echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test -n "$CC"; then
2607 echo "$as_me:$LINENO: result: $CC" >&5
2608 echo "${ECHO_T}$CC" >&6
2610 echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2614 test -n "$CC" && break
2617 if test -z "$CC"; then
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC="$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6
2652 echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2656 test -n "$ac_ct_CC" && break
2665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
2671 # Provide some information about the compiler.
2672 echo "$as_me:$LINENO:" \
2673 "checking for C compiler version" >&5
2674 ac_compiler=`set X $ac_compile; echo $2`
2675 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2676 (eval $ac_compiler --version </dev/null >&5) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2681 (eval $ac_compiler -v </dev/null >&5) 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2686 (eval $ac_compiler -V </dev/null >&5) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2691 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2737 echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2752 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2753 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2754 if test "${ac_cv_prog_cc_g+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804 if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2813 if test "$GCC" = yes; then
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 ac_cv_prog_cc_stdc=no
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2850 s = g (p, va_arg (v,int));
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
2858 as 'x'. The following induces an error, until -std1 is added to get
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
2861 that's true only with -std1. */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2864 int test (int i, double x);
2865 struct s1 {int (*f) (int a);};
2866 struct s2 {int (*f) (double a);};
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2878 # Don't try gcc -ansi; that turns off useful extensions and
2879 # breaks some systems' header files.
2880 # AIX -qlanglvl=ansi
2881 # Ultrix and OSF/1 -std1
2882 # HP-UX 10.20 and later -Ae
2883 # HP-UX older versions -Aa -D_HPUX_SOURCE
2884 # SVR4 -Xc -D__EXTENSIONS__
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2887 CC="$ac_save_CC $ac_arg"
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_prog_cc_stdc=$ac_arg
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext
2918 rm -f conftest.$ac_ext conftest.$ac_objext
2923 case "x$ac_cv_prog_cc_stdc" in
2925 echo "$as_me:$LINENO: result: none needed" >&5
2926 echo "${ECHO_T}none needed" >&6 ;;
2928 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2930 CC="$CC $ac_cv_prog_cc_stdc" ;;
2933 # Some people use a C++ compiler to compile C. Since we use `exit',
2934 # in C++ we need to declare it. In case someone uses the same compiler
2935 # for both compiling C and C++ we need to have the C++ compiler decide
2936 # the declaration of exit, since it's the most demanding environment.
2937 cat >conftest.$ac_ext <<_ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 for ac_declaration in \
2965 'extern "C" void std::exit (int) throw (); using std::exit;' \
2966 'extern "C" void std::exit (int); using std::exit;' \
2967 'extern "C" void exit (int) throw ();' \
2968 'extern "C" void exit (int);' \
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 if test -n "$ac_declaration"; then
3062 echo '#ifdef __cplusplus' >>confdefs.h
3063 echo $ac_declaration >>confdefs.h
3064 echo '#endif' >>confdefs.h
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3083 # Check whether --with-optimization or --without-optimization was given.
3084 if test "${with_optimization+set}" = set; then
3085 withval="$with_optimization"
3086 unet_cv_optimization=$withval
3088 unet_cv_optimization='-O3'
3090 echo "$as_me:$LINENO: checking optimization level" >&5
3091 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
3092 if test "${unet_cv_optimization+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 unet_cv_optimization='-O3'
3097 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
3098 echo "${ECHO_T}$unet_cv_optimization" >&6
3099 if test "x$unet_cv_optimization" = "xno" ; then
3100 unet_cv_optimization=""
3102 if test x"$CFLAGS" != x; then
3103 CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
3105 if test x"$CFLAGS" != x; then
3106 unet_old_cflags=$CFLAGS
3107 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
3109 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3110 # If -g was already there, force symbols to be enabled
3111 unet_cv_enable_symbols=yes
3113 if test x"$CFLAGS" != x; then
3114 unet_old_cflags=$CFLAGS
3115 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
3117 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3118 # If -pg was already there, force profiling to be enabled
3119 unet_cv_enable_profile=yes
3121 if test x"$CFLAGS" != x; then
3122 unet_old_cflags=$CFLAGS
3123 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
3125 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3126 # If -Wall was already there, force warnings to be enabled
3127 unet_cv_enable_warnings=yes
3129 if test x"$CFLAGS" != x; then
3130 unet_old_cflags=$CFLAGS
3131 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
3133 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3134 # If -pedantic was already there, force pedatic to be enabled
3135 unet_cv_enable_pedantic=yes
3140 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3141 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3142 if test "${ac_cv_search_crypt+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 ac_func_search_save_LIBS=$LIBS
3146 ac_cv_search_crypt=no
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3154 /* Override any gcc2 internal prototype to avoid an error. */
3158 /* We use char because int might match the return type of a gcc2
3159 builtin and then its argument prototype would still apply. */
3169 rm -f conftest.$ac_objext conftest$ac_exeext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest$ac_exeext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_search_crypt="none required"
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext \
3197 conftest$ac_exeext conftest.$ac_ext
3198 if test "$ac_cv_search_crypt" = no; then
3199 for ac_lib in descrypt crypt; do
3200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225 (eval $ac_link) 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest$ac_exeext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_search_crypt="-l$ac_lib"
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_func_search_save_LIBS
3257 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3258 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3259 if test "$ac_cv_search_crypt" != no; then
3260 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3263 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3264 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3265 { (exit 1); exit 1; }; }
3270 # Most operating systems have gethostbyname() in the default searched
3271 # libraries (i.e. libc):
3272 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3273 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3274 if test "${ac_cv_func_gethostbyname+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3285 #define gethostbyname innocuous_gethostbyname
3287 /* System header to define __stub macros and hopefully few prototypes,
3288 which can conflict with char gethostbyname (); below.
3289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290 <limits.h> exists even on freestanding compilers. */
3293 # include <limits.h>
3295 # include <assert.h>
3298 #undef gethostbyname
3300 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char gethostbyname ();
3308 /* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3314 char (*f) () = gethostbyname;
3323 return f != gethostbyname;
3328 rm -f conftest.$ac_objext conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest$ac_exeext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_func_gethostbyname=yes
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ac_cv_func_gethostbyname=no
3356 rm -f conftest.err conftest.$ac_objext \
3357 conftest$ac_exeext conftest.$ac_ext
3359 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3360 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3361 if test $ac_cv_func_gethostbyname = yes; then
3364 # Some OSes (eg. Solaris) place it in libnsl:
3366 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3367 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3368 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 ac_check_lib_save_LIBS=$LIBS
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3386 char gethostbyname ();
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest$ac_exeext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_lib_nsl_gethostbyname=yes
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_cv_lib_nsl_gethostbyname=no
3423 rm -f conftest.err conftest.$ac_objext \
3424 conftest$ac_exeext conftest.$ac_ext
3425 LIBS=$ac_check_lib_save_LIBS
3427 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3430 cat >>confdefs.h <<_ACEOF
3431 #define HAVE_LIBNSL 1
3437 # Some strange OSes (SINIX) have it in libsocket:
3439 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3440 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3441 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_check_lib_save_LIBS=$LIBS
3445 LIBS="-lsocket $LIBS"
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3453 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3459 char gethostbyname ();
3468 rm -f conftest.$ac_objext conftest$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470 (eval $ac_link) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_lib_socket_gethostbyname=yes
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_cv_lib_socket_gethostbyname=no
3496 rm -f conftest.err conftest.$ac_objext \
3497 conftest$ac_exeext conftest.$ac_ext
3498 LIBS=$ac_check_lib_save_LIBS
3500 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3501 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3502 if test $ac_cv_lib_socket_gethostbyname = yes; then
3503 cat >>confdefs.h <<_ACEOF
3504 #define HAVE_LIBSOCKET 1
3507 LIBS="-lsocket $LIBS"
3510 # Unfortunately libsocket sometimes depends on libnsl.
3511 # AC_CHECK_LIB's API is essentially broken so the following
3512 # ugliness is necessary:
3513 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3514 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3515 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 ac_check_lib_save_LIBS=$LIBS
3519 LIBS="-lsocket -lnsl $LIBS"
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3527 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3533 char gethostbyname ();
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3544 (eval $ac_link) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest$ac_exeext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_lib_socket_gethostbyname=yes
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 ac_cv_lib_socket_gethostbyname=no
3570 rm -f conftest.err conftest.$ac_objext \
3571 conftest$ac_exeext conftest.$ac_ext
3572 LIBS=$ac_check_lib_save_LIBS
3574 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3575 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3576 if test $ac_cv_lib_socket_gethostbyname = yes; then
3577 LIBS="-lsocket -lnsl $LIBS"
3580 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3581 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3582 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lresolv $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char gethostbyname ();
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611 (eval $ac_link) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest$ac_exeext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_lib_resolv_gethostbyname=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_lib_resolv_gethostbyname=no
3637 rm -f conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
3639 LIBS=$ac_check_lib_save_LIBS
3641 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3642 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3643 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3644 cat >>confdefs.h <<_ACEOF
3645 #define HAVE_LIBRESOLV 1
3648 LIBS="-lresolv $LIBS"
3663 echo "$as_me:$LINENO: checking for socket" >&5
3664 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3665 if test "${ac_cv_func_socket+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3676 #define socket innocuous_socket
3678 /* System header to define __stub macros and hopefully few prototypes,
3679 which can conflict with char socket (); below.
3680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681 <limits.h> exists even on freestanding compilers. */
3684 # include <limits.h>
3686 # include <assert.h>
3691 /* Override any gcc2 internal prototype to avoid an error. */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_socket) || defined (__stub___socket)
3705 char (*f) () = socket;
3719 rm -f conftest.$ac_objext conftest$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_cv_func_socket=yes
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 ac_cv_func_socket=no
3747 rm -f conftest.err conftest.$ac_objext \
3748 conftest$ac_exeext conftest.$ac_ext
3750 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3751 echo "${ECHO_T}$ac_cv_func_socket" >&6
3752 if test $ac_cv_func_socket = yes; then
3756 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3757 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3758 if test "${ac_cv_lib_socket_socket+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_check_lib_save_LIBS=$LIBS
3762 LIBS="-lsocket $LIBS"
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3770 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787 (eval $ac_link) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest$ac_exeext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_lib_socket_socket=yes
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_lib_socket_socket=no
3813 rm -f conftest.err conftest.$ac_objext \
3814 conftest$ac_exeext conftest.$ac_ext
3815 LIBS=$ac_check_lib_save_LIBS
3817 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3818 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3819 if test $ac_cv_lib_socket_socket = yes; then
3820 cat >>confdefs.h <<_ACEOF
3821 #define HAVE_LIBSOCKET 1
3824 LIBS="-lsocket $LIBS"
3827 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3828 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3829 if test "${ac_cv_lib_socket_socket+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_check_lib_save_LIBS=$LIBS
3833 LIBS="-lsocket -lnsl $LIBS"
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3841 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_lib_socket_socket=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_lib_socket_socket=no
3884 rm -f conftest.err conftest.$ac_objext \
3885 conftest$ac_exeext conftest.$ac_ext
3886 LIBS=$ac_check_lib_save_LIBS
3888 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3889 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3890 if test $ac_cv_lib_socket_socket = yes; then
3891 LIBS="-lsocket -lnsl $LIBS"
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3906 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3907 # On Suns, sometimes $CPP names a directory.
3908 if test -n "$CPP" && test -d "$CPP"; then
3911 if test -z "$CPP"; then
3912 if test "${ac_cv_prog_CPP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 # Double quotes because CPP needs to be expanded
3916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 for ac_c_preproc_warn_flag in '' yes
3921 # Use a header file that comes with gcc, so configuring glibc
3922 # with a fresh cross-compiler works.
3923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924 # <limits.h> exists even on freestanding compilers.
3925 # On the NeXT, cc -E runs the code through the compiler's parser,
3926 # not just through cpp. "Syntax error" is here to catch this case.
3927 cat >conftest.$ac_ext <<_ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3934 # include <limits.h>
3936 # include <assert.h>
3940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_c_preproc_warn_flag
3950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957 if test -z "$ac_cpp_err"; then
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 # Broken: fails on valid input.
3966 rm -f conftest.err conftest.$ac_ext
3968 # OK, works on sane cases. Now check whether non-existent headers
3969 # can be detected and how.
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #include <ac_nonexistent.h>
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null; then
3986 if test -s conftest.err; then
3987 ac_cpp_err=$ac_c_preproc_warn_flag
3988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3995 if test -z "$ac_cpp_err"; then
3996 # Broken: success on invalid input.
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 # Passes both tests.
4006 rm -f conftest.err conftest.$ac_ext
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.err conftest.$ac_ext
4011 if $ac_preproc_ok; then
4023 echo "$as_me:$LINENO: result: $CPP" >&5
4024 echo "${ECHO_T}$CPP" >&6
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 # include <limits.h>
4043 # include <assert.h>
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064 if test -z "$ac_cpp_err"; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4102 if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Passes both tests.
4113 rm -f conftest.err conftest.$ac_ext
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4121 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&5
4123 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 echo "$as_me:$LINENO: checking for egrep" >&5
4136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137 if test "${ac_cv_prog_egrep+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141 then ac_cv_prog_egrep='grep -E'
4142 else ac_cv_prog_egrep='egrep'
4145 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147 EGREP=$ac_cv_prog_egrep
4150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152 if test "${ac_cv_header_stdc+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_header_stdc=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_header_stdc=no
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "memchr" >/dev/null 2>&1; then
4219 ac_cv_header_stdc=no
4225 if test $ac_cv_header_stdc = yes; then
4226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then
4240 ac_cv_header_stdc=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4258 #if ((' ' & 0x0FF) == 0x020)
4259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262 # define ISLOWER(c) \
4263 (('a' <= (c) && (c) <= 'i') \
4264 || ('j' <= (c) && (c) <= 'r') \
4265 || ('s' <= (c) && (c) <= 'z'))
4266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274 for (i = 0; i < 256; i++)
4275 if (XOR (islower (i), ISLOWER (i))
4276 || toupper (i) != TOUPPER (i))
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_header_stdc=no
4301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4307 if test $ac_cv_header_stdc = yes; then
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4342 #include <$ac_header>
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 eval "$as_ac_Header=yes"
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 eval "$as_ac_Header=no"
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377 cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo "$as_me:$LINENO: checking for $ac_header" >&5
4401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 # Is the header compilable?
4409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4418 #include <$ac_header>
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_header_compiler=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_compiler=no
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4450 echo "${ECHO_T}$ac_header_compiler" >&6
4452 # Is the header present?
4453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <$ac_header>
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_c_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480 if test -z "$ac_cpp_err"; then
4481 ac_header_preproc=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_header_preproc=no
4488 rm -f conftest.err conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6
4492 # So? What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4499 ac_header_preproc=yes
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 ## ------------------------------------------ ##
4517 ## Report this to the AC_PACKAGE_NAME lists. ##
4518 ## ------------------------------------------ ##
4521 sed "s/^/$as_me: WARNING: /" >&2
4524 echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 eval "$as_ac_Header=\$ac_header_preproc"
4531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4536 cat >>confdefs.h <<_ACEOF
4537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4545 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4546 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4547 if test "${ac_cv_c_bigendian+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 # See if sys/param.h defines the BYTE_ORDER macro.
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <sys/types.h>
4558 #include <sys/param.h>
4563 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 # It does; now see whether it defined to BIG_ENDIAN or not.
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #include <sys/types.h>
4600 #include <sys/param.h>
4605 #if BYTE_ORDER != BIG_ENDIAN
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_c_bigendian=yes
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 ac_cv_c_bigendian=no
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 # It does not; compile a test program.
4647 if test "$cross_compiling" = yes; then
4648 # try to guess the endianness by grepping values into an object file
4649 ac_cv_c_bigendian=unknown
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4657 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4659 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4665 _ascii (); _ebcdic ();
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4674 grep -v '^ *+' conftest.er1 >conftest.err
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4692 ac_cv_c_bigendian=yes
4694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4695 if test "$ac_cv_c_bigendian" = unknown; then
4696 ac_cv_c_bigendian=no
4698 # finding both strings is unlikely to happen, but who knows?
4699 ac_cv_c_bigendian=unknown
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4718 /* Are we little or big endian? From Harbison&Steele. */
4722 char c[sizeof (long)];
4725 exit (u.c[sizeof (long) - 1] == 1);
4728 rm -f conftest$ac_exeext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4730 (eval $ac_link) 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_cv_c_bigendian=no
4741 echo "$as_me: program exited with status $ac_status" >&5
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_c_bigendian=yes
4748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4754 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4755 case $ac_cv_c_bigendian in
4758 cat >>confdefs.h <<\_ACEOF
4759 #define WORDS_BIGENDIAN 1
4765 { { echo "$as_me:$LINENO: error: unknown endianness
4766 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4767 echo "$as_me: error: unknown endianness
4768 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4772 echo "$as_me:$LINENO: checking for size_t" >&5
4773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4774 if test "${ac_cv_type_size_t+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_includes_default
4789 if (sizeof (size_t))
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_cv_type_size_t=yes
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ac_cv_type_size_t=no
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4826 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4827 if test $ac_cv_type_size_t = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define size_t unsigned
4837 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4838 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4839 if test "${ac_cv_header_time+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <sys/types.h>
4849 #include <sys/time.h>
4855 if ((struct tm *) 0)
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_header_time=yes
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cv_header_time=no
4889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4892 echo "${ECHO_T}$ac_cv_header_time" >&6
4893 if test $ac_cv_header_time = yes; then
4895 cat >>confdefs.h <<\_ACEOF
4896 #define TIME_WITH_SYS_TIME 1
4901 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4902 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4903 if test "${ac_cv_struct_tm+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <sys/types.h>
4918 struct tm *tp; tp->tm_sec;
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_struct_tm=time.h
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 ac_cv_struct_tm=sys/time.h
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4954 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4955 if test $ac_cv_struct_tm = sys/time.h; then
4957 cat >>confdefs.h <<\_ACEOF
4958 #define TM_IN_SYS_TIME 1
4963 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4964 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4965 if test "${ac_cv_type_uid_t+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 cat >conftest.$ac_ext <<_ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <sys/types.h>
4977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4978 $EGREP "uid_t" >/dev/null 2>&1; then
4979 ac_cv_type_uid_t=yes
4986 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4987 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4988 if test $ac_cv_type_uid_t = no; then
4990 cat >>confdefs.h <<\_ACEOF
4995 cat >>confdefs.h <<\_ACEOF
5001 echo "$as_me:$LINENO: checking for short" >&5
5002 echo $ECHO_N "checking for short... $ECHO_C" >&6
5003 if test "${ac_cv_type_short+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_type_short=yes
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5055 echo "${ECHO_T}$ac_cv_type_short" >&6
5057 echo "$as_me:$LINENO: checking size of short" >&5
5058 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5059 if test "${ac_cv_sizeof_short+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 if test "$ac_cv_type_short" = yes; then
5063 # The cast to unsigned long works around a bug in the HP C Compiler
5064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5066 # This bug is HP SR number 8606223364.
5067 if test "$cross_compiling" = yes; then
5068 # Depending upon the size, compute the lo and hi bounds.
5069 cat >conftest.$ac_ext <<_ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5079 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 $ac_includes_default
5119 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5126 rm -f conftest.$ac_objext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128 (eval $ac_compile) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_hi=$ac_mid; break
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_lo=`expr $ac_mid + 1`
5153 if test $ac_lo -le $ac_mid; then
5157 ac_mid=`expr 2 '*' $ac_mid + 1`
5159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5175 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest.$ac_objext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 $ac_includes_default
5215 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_lo=$ac_mid; break
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 ac_hi=`expr '(' $ac_mid ')' - 1`
5249 if test $ac_mid -le $ac_hi; then
5253 ac_mid=`expr 2 '*' $ac_mid`
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 # Binary search between lo and hi bounds.
5267 while test "x$ac_lo" != "x$ac_hi"; do
5268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5279 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_lo=`expr '(' $ac_mid ')' + 1`
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 ?*) ac_cv_sizeof_short=$ac_lo;;
5318 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: cannot compute sizeof (short), 77
5321 See \`config.log' for more details." >&2;}
5322 { (exit 1); exit 1; }; } ;;
5325 if test "$cross_compiling" = yes; then
5326 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5327 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5328 { (exit 1); exit 1; }; }
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5337 long longval () { return (long) (sizeof (short)); }
5338 unsigned long ulongval () { return (long) (sizeof (short)); }
5345 FILE *f = fopen ("conftest.val", "w");
5348 if (((long) (sizeof (short))) < 0)
5350 long i = longval ();
5351 if (i != ((long) (sizeof (short))))
5353 fprintf (f, "%ld\n", i);
5357 unsigned long i = ulongval ();
5358 if (i != ((long) (sizeof (short))))
5360 fprintf (f, "%lu\n", i);
5362 exit (ferror (f) || fclose (f) != 0);
5368 rm -f conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_sizeof_short=`cat conftest.val`
5381 echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute sizeof (short), 77
5389 See \`config.log' for more details." >&2;}
5390 { (exit 1); exit 1; }; }
5392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5397 ac_cv_sizeof_short=0
5400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5401 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5402 cat >>confdefs.h <<_ACEOF
5403 #define SIZEOF_SHORT $ac_cv_sizeof_short
5407 echo "$as_me:$LINENO: checking for int" >&5
5408 echo $ECHO_N "checking for int... $ECHO_C" >&6
5409 if test "${ac_cv_type_int+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5461 echo "${ECHO_T}$ac_cv_type_int" >&6
5463 echo "$as_me:$LINENO: checking size of int" >&5
5464 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5465 if test "${ac_cv_sizeof_int+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 if test "$ac_cv_type_int" = yes; then
5469 # The cast to unsigned long works around a bug in the HP C Compiler
5470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5472 # This bug is HP SR number 8606223364.
5473 if test "$cross_compiling" = yes; then
5474 # Depending upon the size, compute the lo and hi bounds.
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5515 cat >conftest.$ac_ext <<_ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 $ac_includes_default
5525 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_hi=$ac_mid; break
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ac_lo=`expr $ac_mid + 1`
5559 if test $ac_lo -le $ac_mid; then
5563 ac_mid=`expr 2 '*' $ac_mid + 1`
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5581 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5621 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_lo=$ac_mid; break
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_hi=`expr '(' $ac_mid ')' - 1`
5655 if test $ac_mid -le $ac_hi; then
5659 ac_mid=`expr 2 '*' $ac_mid`
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 # Binary search between lo and hi bounds.
5673 while test "x$ac_lo" != "x$ac_hi"; do
5674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5685 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 ac_lo=`expr '(' $ac_mid ')' + 1`
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 ?*) ac_cv_sizeof_int=$ac_lo;;
5724 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: cannot compute sizeof (int), 77
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; } ;;
5731 if test "$cross_compiling" = yes; then
5732 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5733 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5734 { (exit 1); exit 1; }; }
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5743 long longval () { return (long) (sizeof (int)); }
5744 unsigned long ulongval () { return (long) (sizeof (int)); }
5751 FILE *f = fopen ("conftest.val", "w");
5754 if (((long) (sizeof (int))) < 0)
5756 long i = longval ();
5757 if (i != ((long) (sizeof (int))))
5759 fprintf (f, "%ld\n", i);
5763 unsigned long i = ulongval ();
5764 if (i != ((long) (sizeof (int))))
5766 fprintf (f, "%lu\n", i);
5768 exit (ferror (f) || fclose (f) != 0);
5774 rm -f conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_sizeof_int=`cat conftest.val`
5787 echo "$as_me: program exited with status $ac_status" >&5
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: cannot compute sizeof (int), 77
5795 See \`config.log' for more details." >&2;}
5796 { (exit 1); exit 1; }; }
5798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5807 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5808 cat >>confdefs.h <<_ACEOF
5809 #define SIZEOF_INT $ac_cv_sizeof_int
5813 echo "$as_me:$LINENO: checking for long" >&5
5814 echo $ECHO_N "checking for long... $ECHO_C" >&6
5815 if test "${ac_cv_type_long+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try='test -s conftest.$ac_objext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5867 echo "${ECHO_T}$ac_cv_type_long" >&6
5869 echo "$as_me:$LINENO: checking size of long" >&5
5870 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5871 if test "${ac_cv_sizeof_long+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if test "$ac_cv_type_long" = yes; then
5875 # The cast to unsigned long works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 if test "$cross_compiling" = yes; then
5880 # Depending upon the size, compute the lo and hi bounds.
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5891 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_hi=$ac_mid; break
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_lo=`expr $ac_mid + 1`
5965 if test $ac_lo -le $ac_mid; then
5969 ac_mid=`expr 2 '*' $ac_mid + 1`
5971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5987 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5998 grep -v '^ *+' conftest.er1 >conftest.err
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6027 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_lo=$ac_mid; break
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_hi=`expr '(' $ac_mid ')' - 1`
6061 if test $ac_mid -le $ac_hi; then
6065 ac_mid=`expr 2 '*' $ac_mid`
6067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078 # Binary search between lo and hi bounds.
6079 while test "x$ac_lo" != "x$ac_hi"; do
6080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6081 cat >conftest.$ac_ext <<_ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 $ac_includes_default
6091 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_lo=`expr '(' $ac_mid ')' + 1`
6126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ?*) ac_cv_sizeof_long=$ac_lo;;
6130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6131 See \`config.log' for more details." >&5
6132 echo "$as_me: error: cannot compute sizeof (long), 77
6133 See \`config.log' for more details." >&2;}
6134 { (exit 1); exit 1; }; } ;;
6137 if test "$cross_compiling" = yes; then
6138 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6139 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6140 { (exit 1); exit 1; }; }
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 long longval () { return (long) (sizeof (long)); }
6150 unsigned long ulongval () { return (long) (sizeof (long)); }
6157 FILE *f = fopen ("conftest.val", "w");
6160 if (((long) (sizeof (long))) < 0)
6162 long i = longval ();
6163 if (i != ((long) (sizeof (long))))
6165 fprintf (f, "%ld\n", i);
6169 unsigned long i = ulongval ();
6170 if (i != ((long) (sizeof (long))))
6172 fprintf (f, "%lu\n", i);
6174 exit (ferror (f) || fclose (f) != 0);
6180 rm -f conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_sizeof_long=`cat conftest.val`
6193 echo "$as_me: program exited with status $ac_status" >&5
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6199 See \`config.log' for more details." >&5
6200 echo "$as_me: error: cannot compute sizeof (long), 77
6201 See \`config.log' for more details." >&2;}
6202 { (exit 1); exit 1; }; }
6204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6213 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6214 cat >>confdefs.h <<_ACEOF
6215 #define SIZEOF_LONG $ac_cv_sizeof_long
6219 echo "$as_me:$LINENO: checking for void *" >&5
6220 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6221 if test "${ac_cv_type_void_p+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 $ac_includes_default
6236 if (sizeof (void *))
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_type_void_p=yes
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_cv_type_void_p=no
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6273 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6275 echo "$as_me:$LINENO: checking size of void *" >&5
6276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6277 if test "${ac_cv_sizeof_void_p+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 if test "$ac_cv_type_void_p" = yes; then
6281 # The cast to unsigned long works around a bug in the HP C Compiler
6282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6284 # This bug is HP SR number 8606223364.
6285 if test "$cross_compiling" = yes; then
6286 # Depending upon the size, compute the lo and hi bounds.
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6297 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6337 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_hi=$ac_mid; break
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_lo=`expr $ac_mid + 1`
6371 if test $ac_lo -le $ac_mid; then
6375 ac_mid=`expr 2 '*' $ac_mid + 1`
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6393 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6433 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_lo=$ac_mid; break
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ac_hi=`expr '(' $ac_mid ')' - 1`
6467 if test $ac_mid -le $ac_hi; then
6471 ac_mid=`expr 2 '*' $ac_mid`
6473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484 # Binary search between lo and hi bounds.
6485 while test "x$ac_lo" != "x$ac_hi"; do
6486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 $ac_includes_default
6497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_lo=`expr '(' $ac_mid ')' + 1`
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: cannot compute sizeof (void *), 77
6539 See \`config.log' for more details." >&2;}
6540 { (exit 1); exit 1; }; } ;;
6543 if test "$cross_compiling" = yes; then
6544 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6545 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6546 { (exit 1); exit 1; }; }
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6555 long longval () { return (long) (sizeof (void *)); }
6556 unsigned long ulongval () { return (long) (sizeof (void *)); }
6563 FILE *f = fopen ("conftest.val", "w");
6566 if (((long) (sizeof (void *))) < 0)
6568 long i = longval ();
6569 if (i != ((long) (sizeof (void *))))
6571 fprintf (f, "%ld\n", i);
6575 unsigned long i = ulongval ();
6576 if (i != ((long) (sizeof (void *))))
6578 fprintf (f, "%lu\n", i);
6580 exit (ferror (f) || fclose (f) != 0);
6586 rm -f conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_sizeof_void_p=`cat conftest.val`
6599 echo "$as_me: program exited with status $ac_status" >&5
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6605 See \`config.log' for more details." >&5
6606 echo "$as_me: error: cannot compute sizeof (void *), 77
6607 See \`config.log' for more details." >&2;}
6608 { (exit 1); exit 1; }; }
6610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6615 ac_cv_sizeof_void_p=0
6618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6619 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6620 cat >>confdefs.h <<_ACEOF
6621 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6625 echo "$as_me:$LINENO: checking for int64_t" >&5
6626 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6627 if test "${ac_cv_type_int64_t+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6642 if (sizeof (int64_t))
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_type_int64_t=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_type_int64_t=no
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6679 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6681 echo "$as_me:$LINENO: checking size of int64_t" >&5
6682 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6683 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 if test "$ac_cv_type_int64_t" = yes; then
6687 # The cast to unsigned long works around a bug in the HP C Compiler
6688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6690 # This bug is HP SR number 8606223364.
6691 if test "$cross_compiling" = yes; then
6692 # Depending upon the size, compute the lo and hi bounds.
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6703 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6710 rm -f conftest.$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 $ac_includes_default
6743 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6750 rm -f conftest.$ac_objext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752 (eval $ac_compile) 2>conftest.er1
6754 grep -v '^ *+' conftest.er1 >conftest.err
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_hi=$ac_mid; break
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_lo=`expr $ac_mid + 1`
6777 if test $ac_lo -le $ac_mid; then
6781 ac_mid=`expr 2 '*' $ac_mid + 1`
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6799 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6839 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>conftest.er1
6850 grep -v '^ *+' conftest.er1 >conftest.err
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; } &&
6861 { ac_try='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_lo=$ac_mid; break
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6872 ac_hi=`expr '(' $ac_mid ')' - 1`
6873 if test $ac_mid -le $ac_hi; then
6877 ac_mid=`expr 2 '*' $ac_mid`
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 # Binary search between lo and hi bounds.
6891 while test "x$ac_lo" != "x$ac_hi"; do
6892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest.$ac_objext'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_lo=`expr '(' $ac_mid ')' + 1`
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6943 See \`config.log' for more details." >&5
6944 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6945 See \`config.log' for more details." >&2;}
6946 { (exit 1); exit 1; }; } ;;
6949 if test "$cross_compiling" = yes; then
6950 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6951 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6952 { (exit 1); exit 1; }; }
6954 cat >conftest.$ac_ext <<_ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (int64_t)); }
6962 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6969 FILE *f = fopen ("conftest.val", "w");
6972 if (((long) (sizeof (int64_t))) < 0)
6974 long i = longval ();
6975 if (i != ((long) (sizeof (int64_t))))
6977 fprintf (f, "%ld\n", i);
6981 unsigned long i = ulongval ();
6982 if (i != ((long) (sizeof (int64_t))))
6984 fprintf (f, "%lu\n", i);
6986 exit (ferror (f) || fclose (f) != 0);
6992 rm -f conftest$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_sizeof_int64_t=`cat conftest.val`
7005 echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7021 ac_cv_sizeof_int64_t=0
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7026 cat >>confdefs.h <<_ACEOF
7027 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7031 echo "$as_me:$LINENO: checking for long long" >&5
7032 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7033 if test "${ac_cv_type_long_long+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7046 if ((long long *) 0)
7048 if (sizeof (long long))
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_type_long_long=yes
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_type_long_long=no
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7085 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7087 echo "$as_me:$LINENO: checking size of long long" >&5
7088 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7089 if test "${ac_cv_sizeof_long_long+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test "$ac_cv_type_long_long" = yes; then
7093 # The cast to unsigned long works around a bug in the HP C Compiler
7094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7096 # This bug is HP SR number 8606223364.
7097 if test "$cross_compiling" = yes; then
7098 # Depending upon the size, compute the lo and hi bounds.
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 $ac_includes_default
7109 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7149 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest.$ac_objext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_hi=$ac_mid; break
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_lo=`expr $ac_mid + 1`
7183 if test $ac_lo -le $ac_mid; then
7187 ac_mid=`expr 2 '*' $ac_mid + 1`
7189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 cat >conftest.$ac_ext <<_ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7205 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 $ac_includes_default
7245 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_lo=$ac_mid; break
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_hi=`expr '(' $ac_mid ')' - 1`
7279 if test $ac_mid -le $ac_hi; then
7283 ac_mid=`expr 2 '*' $ac_mid`
7285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 # Binary search between lo and hi bounds.
7297 while test "x$ac_lo" != "x$ac_hi"; do
7298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7299 cat >conftest.$ac_ext <<_ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7309 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_lo=`expr '(' $ac_mid ')' + 1`
7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7349 See \`config.log' for more details." >&5
7350 echo "$as_me: error: cannot compute sizeof (long long), 77
7351 See \`config.log' for more details." >&2;}
7352 { (exit 1); exit 1; }; } ;;
7355 if test "$cross_compiling" = yes; then
7356 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7357 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7358 { (exit 1); exit 1; }; }
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7367 long longval () { return (long) (sizeof (long long)); }
7368 unsigned long ulongval () { return (long) (sizeof (long long)); }
7375 FILE *f = fopen ("conftest.val", "w");
7378 if (((long) (sizeof (long long))) < 0)
7380 long i = longval ();
7381 if (i != ((long) (sizeof (long long))))
7383 fprintf (f, "%ld\n", i);
7387 unsigned long i = ulongval ();
7388 if (i != ((long) (sizeof (long long))))
7390 fprintf (f, "%lu\n", i);
7392 exit (ferror (f) || fclose (f) != 0);
7398 rm -f conftest$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_sizeof_long_long=`cat conftest.val`
7411 echo "$as_me: program exited with status $ac_status" >&5
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7417 See \`config.log' for more details." >&5
7418 echo "$as_me: error: cannot compute sizeof (long long), 77
7419 See \`config.log' for more details." >&2;}
7420 { (exit 1); exit 1; }; }
7422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7427 ac_cv_sizeof_long_long=0
7430 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7431 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7432 cat >>confdefs.h <<_ACEOF
7433 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7437 if test "$ac_cv_sizeof_int" = 2 ; then
7438 echo "$as_me:$LINENO: checking for int16_t" >&5
7439 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7440 if test "${ac_cv_type_int16_t+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7455 if (sizeof (int16_t))
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1 >conftest.err
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_type_int16_t=yes
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_cv_type_int16_t=no
7489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7491 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7492 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7493 if test $ac_cv_type_int16_t = yes; then
7497 cat >>confdefs.h <<_ACEOF
7503 echo "$as_me:$LINENO: checking for uint16_t" >&5
7504 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7505 if test "${ac_cv_type_uint16_t+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7520 if (sizeof (uint16_t))
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_type_uint16_t=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_type_uint16_t=no
7554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7557 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7558 if test $ac_cv_type_uint16_t = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define uint16_t unsigned int
7568 elif test "$ac_cv_sizeof_short" = 2 ; then
7569 echo "$as_me:$LINENO: checking for int16_t" >&5
7570 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7571 if test "${ac_cv_type_int16_t+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7586 if (sizeof (int16_t))
7592 rm -f conftest.$ac_objext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594 (eval $ac_compile) 2>conftest.er1
7596 grep -v '^ *+' conftest.er1 >conftest.err
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_type_int16_t=yes
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_cv_type_int16_t=no
7620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7623 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7624 if test $ac_cv_type_int16_t = yes; then
7628 cat >>confdefs.h <<_ACEOF
7629 #define int16_t short
7634 echo "$as_me:$LINENO: checking for uint16_t" >&5
7635 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7636 if test "${ac_cv_type_uint16_t+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7651 if (sizeof (uint16_t))
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest.$ac_objext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_type_uint16_t=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_cv_type_uint16_t=no
7685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7688 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7689 if test $ac_cv_type_uint16_t = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define uint16_t unsigned short
7700 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7701 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7702 { (exit 1); exit 1; }; }
7704 if test "$ac_cv_sizeof_int" = 4 ; then
7705 echo "$as_me:$LINENO: checking for int32_t" >&5
7706 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7707 if test "${ac_cv_type_int32_t+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 $ac_includes_default
7722 if (sizeof (int32_t))
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_type_int32_t=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_type_int32_t=no
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7759 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7760 if test $ac_cv_type_int32_t = yes; then
7764 cat >>confdefs.h <<_ACEOF
7770 echo "$as_me:$LINENO: checking for uint32_t" >&5
7771 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7772 if test "${ac_cv_type_uint32_t+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 cat >conftest.$ac_ext <<_ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 $ac_includes_default
7787 if (sizeof (uint32_t))
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_cv_type_uint32_t=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_cv_type_uint32_t=no
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7824 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7825 if test $ac_cv_type_uint32_t = yes; then
7829 cat >>confdefs.h <<_ACEOF
7830 #define uint32_t unsigned int
7835 elif test "$ac_cv_sizeof_short" = 4 ; then
7836 echo "$as_me:$LINENO: checking for int32_t" >&5
7837 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7838 if test "${ac_cv_type_int32_t+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7853 if (sizeof (int32_t))
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_type_int32_t=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_type_int32_t=no
7887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7890 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7891 if test $ac_cv_type_int32_t = yes; then
7895 cat >>confdefs.h <<_ACEOF
7896 #define int32_t short
7901 echo "$as_me:$LINENO: checking for uint32_t" >&5
7902 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7903 if test "${ac_cv_type_uint32_t+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7918 if (sizeof (uint32_t))
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926 (eval $ac_compile) 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; } &&
7939 { ac_try='test -s conftest.$ac_objext'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; }; then
7945 ac_cv_type_uint32_t=yes
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_cv_type_uint32_t=no
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7955 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7956 if test $ac_cv_type_uint32_t = yes; then
7960 cat >>confdefs.h <<_ACEOF
7961 #define uint32_t unsigned short
7966 elif test "$ac_cv_sizeof_long" = 4 ; then
7967 echo "$as_me:$LINENO: checking for int32_t" >&5
7968 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7969 if test "${ac_cv_type_int32_t+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.$ac_ext <<_ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 $ac_includes_default
7984 if (sizeof (int32_t))
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest.$ac_objext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_cv_type_int32_t=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_cv_type_int32_t=no
8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8021 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8022 if test $ac_cv_type_int32_t = yes; then
8026 cat >>confdefs.h <<_ACEOF
8027 #define int32_t long
8032 echo "$as_me:$LINENO: checking for uint32_t" >&5
8033 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8034 if test "${ac_cv_type_uint32_t+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8049 if (sizeof (uint32_t))
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8059 grep -v '^ *+' conftest.er1 >conftest.err
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_type_uint32_t=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_type_uint32_t=no
8083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8086 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8087 if test $ac_cv_type_uint32_t = yes; then
8091 cat >>confdefs.h <<_ACEOF
8092 #define uint32_t unsigned long
8098 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8099 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8100 { (exit 1); exit 1; }; }
8102 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8103 echo "$as_me:$LINENO: checking for int64_t" >&5
8104 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8105 if test "${ac_cv_type_int64_t+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.$ac_ext <<_ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 $ac_includes_default
8120 if (sizeof (int64_t))
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_cv_type_int64_t=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_type_int64_t=no
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8157 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8159 echo "$as_me:$LINENO: checking for uint64_t" >&5
8160 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8161 if test "${ac_cv_type_uint64_t+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 $ac_includes_default
8176 if (sizeof (uint64_t))
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>conftest.er1
8186 grep -v '^ *+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_cv_type_uint64_t=yes
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_cv_type_uint64_t=no
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8213 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8215 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8216 echo "$as_me:$LINENO: checking for int64_t" >&5
8217 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8218 if test "${ac_cv_type_int64_t+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8233 if (sizeof (int64_t))
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241 (eval $ac_compile) 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_type_int64_t=yes
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8265 ac_cv_type_int64_t=no
8267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8269 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8270 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8271 if test $ac_cv_type_int64_t = yes; then
8275 cat >>confdefs.h <<_ACEOF
8276 #define int64_t long long
8281 echo "$as_me:$LINENO: checking for uint64_t" >&5
8282 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8283 if test "${ac_cv_type_uint64_t+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8298 if (sizeof (uint64_t))
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306 (eval $ac_compile) 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_type_uint64_t=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_cv_type_uint64_t=no
8332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8334 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8335 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8336 if test $ac_cv_type_uint64_t = yes; then
8340 cat >>confdefs.h <<_ACEOF
8341 #define uint64_t unsigned long long
8347 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8348 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8349 { (exit 1); exit 1; }; }
8351 echo "$as_me:$LINENO: checking for socklen_t" >&5
8352 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8353 if test "${ac_cv_type_socklen_t+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8366 if ((socklen_t *) 0)
8368 if (sizeof (socklen_t))
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest.$ac_objext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_type_socklen_t=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_type_socklen_t=no
8402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8405 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8406 if test $ac_cv_type_socklen_t = yes; then
8410 cat >>confdefs.h <<_ACEOF
8411 #define socklen_t unsigned int
8416 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8417 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8418 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <sys/types.h>
8428 #include <netinet/in.h>
8433 if ((struct sockaddr_in6 *) 0)
8435 if (sizeof (struct sockaddr_in6))
8441 rm -f conftest.$ac_objext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8443 (eval $ac_compile) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_type_struct_sockaddr_in6=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_type_struct_sockaddr_in6=no
8469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8471 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8472 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8473 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8474 unet_have_sockaddr_in6="yes"
8476 unet_have_sockaddr_in6="no"
8484 for ac_func in kqueue setrlimit getrusage times
8486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8487 echo "$as_me:$LINENO: checking for $ac_func" >&5
8488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8489 if eval "test \"\${$as_ac_var+set}\" = set"; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8500 #define $ac_func innocuous_$ac_func
8502 /* System header to define __stub macros and hopefully few prototypes,
8503 which can conflict with char $ac_func (); below.
8504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505 <limits.h> exists even on freestanding compilers. */
8508 # include <limits.h>
8510 # include <assert.h>
8515 /* Override any gcc2 internal prototype to avoid an error. */
8520 /* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8523 /* The GNU C library defines this for functions which it implements
8524 to always fail with ENOSYS. Some functions are actually named
8525 something starting with __ and the normal name is an alias. */
8526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8529 char (*f) () = $ac_func;
8538 return f != $ac_func;
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 eval "$as_ac_var=yes"
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 eval "$as_ac_var=no"
8571 rm -f conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8576 if test `eval echo '${'$as_ac_var'}'` = yes; then
8577 cat >>confdefs.h <<_ACEOF
8578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8585 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8586 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8587 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/wait.h>
8599 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8602 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8610 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_cv_header_sys_wait_h=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_cv_header_sys_wait_h=no
8643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8646 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8647 if test $ac_cv_header_sys_wait_h = yes; then
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_SYS_WAIT_H 1
8656 for ac_header in unistd.h
8658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8668 # Is the header compilable?
8669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 #include <$ac_header>
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_header_compiler=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_header_compiler=no
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710 echo "${ECHO_T}$ac_header_compiler" >&6
8712 # Is the header present?
8713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 #include <$ac_header>
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 if test -z "$ac_cpp_err"; then
8741 ac_header_preproc=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_header_preproc=no
8748 rm -f conftest.err conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6
8752 # So? What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759 ac_header_preproc=yes
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8776 ## ------------------------------------------ ##
8777 ## Report this to the AC_PACKAGE_NAME lists. ##
8778 ## ------------------------------------------ ##
8781 sed "s/^/$as_me: WARNING: /" >&2
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 eval "$as_ac_Header=\$ac_header_preproc"
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796 cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8805 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8806 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 if test "$cross_compiling" = yes; then
8810 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8811 See \`config.log' for more details." >&5
8812 echo "$as_me: error: cannot run test program while cross compiling
8813 See \`config.log' for more details." >&2;}
8814 { (exit 1); exit 1; }; }
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 /* Exit 0 (true) if wait returns something other than -1,
8823 i.e. the pid of the child, which means that wait was restarted
8824 after getting the signal. */
8826 #include <sys/types.h>
8829 # include <unistd.h>
8832 # include <sys/wait.h>
8835 /* Some platforms explicitly require an extern "C" signal handler
8838 extern "C" void ucatch (int dummy) { }
8840 void ucatch (dummy) int dummy; { }
8846 int i = fork (), status;
8851 kill (getppid (), SIGINT);
8856 signal (SIGINT, ucatch);
8862 exit (status == -1);
8865 rm -f conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_sys_restartable_syscalls=yes
8878 echo "$as_me: program exited with status $ac_status" >&5
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_cv_sys_restartable_syscalls=no
8885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8889 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8890 if test $ac_cv_sys_restartable_syscalls = yes; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_RESTARTABLE_SYSCALLS 1
8899 echo "$as_me:$LINENO: checking for donuts" >&5
8900 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8904 for ac_prog in gawk mawk nawk awk
8906 # Extract the first word of "$ac_prog", so it can be a program name with args.
8907 set dummy $ac_prog; ac_word=$2
8908 echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910 if test "${ac_cv_prog_AWK+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 if test -n "$AWK"; then
8914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_AWK="$ac_prog"
8924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 if test -n "$AWK"; then
8934 echo "$as_me:$LINENO: result: $AWK" >&5
8935 echo "${ECHO_T}$AWK" >&6
8937 echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8941 test -n "$AWK" && break
8944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8945 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.make <<\_ACEOF
8952 @echo 'ac_maketemp="$(MAKE)"'
8954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8956 if test -n "$ac_maketemp"; then
8957 eval ac_cv_prog_make_${ac_make}_set=yes
8959 eval ac_cv_prog_make_${ac_make}_set=no
8963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8964 echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6
8968 echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970 SET_MAKE="MAKE=${MAKE-make}"
8973 # Find a good install program. We prefer a C program (faster),
8974 # so one script is as good as another. But avoid the broken or
8975 # incompatible versions:
8976 # SysV /etc/install, /usr/sbin/install
8977 # SunOS /usr/etc/install
8978 # IRIX /sbin/install
8980 # AmigaOS /C/install, which installs bootblocks on floppy discs
8981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8984 # OS/2's system install, which has a completely different semantic
8985 # ./install, which can be erroneously created by make from ./install.sh.
8986 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8988 if test -z "$INSTALL"; then
8989 if test "${ac_cv_path_install+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 test -z "$as_dir" && as_dir=.
8997 # Account for people who put trailing slashes in PATH elements.
8999 ./ | .// | /cC/* | \
9000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9004 # OSF1 and SCO ODT 3.0 have their own names for install.
9005 # Don't use installbsd from OSF since it installs stuff as root
9007 for ac_prog in ginstall scoinst install; do
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9010 if test $ac_prog = install &&
9011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9012 # AIX install. It has an incompatible calling convention.
9014 elif test $ac_prog = install &&
9015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9016 # program-specific install script used by HP pwplus--don't use.
9019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9031 if test "${ac_cv_path_install+set}" = set; then
9032 INSTALL=$ac_cv_path_install
9034 # As a last resort, use the slow shell script. We don't cache a
9035 # path for INSTALL within a source directory, because that will
9036 # break other packages using the cache if that directory is
9037 # removed, or if the path is relative.
9038 INSTALL=$ac_install_sh
9041 echo "$as_me:$LINENO: result: $INSTALL" >&5
9042 echo "${ECHO_T}$INSTALL" >&6
9044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9045 # It thinks the first close brace ends the variable substitution.
9046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9055 if test "$LN_S" = "ln -s"; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057 echo "${ECHO_T}yes" >&6
9059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9060 echo "${ECHO_T}no, using $LN_S" >&6
9065 # Extract the first word of "$ac_prog", so it can be a program name with args.
9066 set dummy $ac_prog; ac_word=$2
9067 echo "$as_me:$LINENO: checking for $ac_word" >&5
9068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9069 if test "${ac_cv_path_RMPROG+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 RMPROG=$ac_cv_path_RMPROG
9096 if test -n "$RMPROG"; then
9097 echo "$as_me:$LINENO: result: $RMPROG" >&5
9098 echo "${ECHO_T}$RMPROG" >&6
9100 echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6
9104 test -n "$RMPROG" && break
9106 test -n "$RMPROG" || RMPROG="/bin/rm"
9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114 if test "${ac_cv_path_SHPROG+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 SHPROG=$ac_cv_path_SHPROG
9141 if test -n "$SHPROG"; then
9142 echo "$as_me:$LINENO: result: $SHPROG" >&5
9143 echo "${ECHO_T}$SHPROG" >&6
9145 echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6
9149 test -n "$SHPROG" && break
9151 test -n "$SHPROG" || SHPROG="/bin/sh"
9154 for ac_prog in flex lex
9156 # Extract the first word of "$ac_prog", so it can be a program name with args.
9157 set dummy $ac_prog; ac_word=$2
9158 echo "$as_me:$LINENO: checking for $ac_word" >&5
9159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160 if test "${ac_cv_prog_LEX+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 if test -n "$LEX"; then
9164 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_prog_LEX="$ac_prog"
9174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 if test -n "$LEX"; then
9184 echo "$as_me:$LINENO: result: $LEX" >&5
9185 echo "${ECHO_T}$LEX" >&6
9187 echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6
9191 test -n "$LEX" && break
9193 test -n "$LEX" || LEX=":"
9195 if test -z "$LEXLIB"
9197 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9198 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9199 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 ac_check_lib_save_LIBS=$LIBS
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9211 /* Override any gcc2 internal prototype to avoid an error. */
9215 /* We use char because int might match the return type of a gcc2
9216 builtin and then its argument prototype would still apply. */
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_lib_fl_yywrap=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 ac_cv_lib_fl_yywrap=no
9254 rm -f conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9259 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9260 if test $ac_cv_lib_fl_yywrap = yes; then
9263 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9264 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9265 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 ac_check_lib_save_LIBS=$LIBS
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9277 /* Override any gcc2 internal prototype to avoid an error. */
9281 /* We use char because int might match the return type of a gcc2
9282 builtin and then its argument prototype would still apply. */
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_lib_l_yywrap=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_cv_lib_l_yywrap=no
9320 rm -f conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9325 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9326 if test $ac_cv_lib_l_yywrap = yes; then
9334 if test "x$LEX" != "x:"; then
9335 echo "$as_me:$LINENO: checking lex output file root" >&5
9336 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9337 if test "${ac_cv_prog_lex_root+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 # The minimal lex program is just a single line: %%. But some broken lexes
9341 # (Solaris, I think it was) want two %% lines, so accommodate them.
9342 cat >conftest.l <<_ACEOF
9346 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9347 (eval $LEX conftest.l) 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }
9351 if test -f lex.yy.c; then
9352 ac_cv_prog_lex_root=lex.yy
9353 elif test -f lexyy.c; then
9354 ac_cv_prog_lex_root=lexyy
9356 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9357 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9358 { (exit 1); exit 1; }; }
9361 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9362 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9366 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9367 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9368 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 # POSIX says lex can declare yytext either as a pointer or an array; the
9372 # default is implementation-dependent. Figure out which it is, since
9373 # not all implementations provide the %pointer and %array declarations.
9374 ac_cv_prog_lex_yytext_pointer=no
9375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9377 LIBS="$LIBS $LEXLIB"
9378 cat >conftest.$ac_ext <<_ACEOF
9379 `cat $LEX_OUTPUT_ROOT.c`
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9385 grep -v '^ *+' conftest.er1 >conftest.err
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_prog_lex_yytext_pointer=yes
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9408 rm -f conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9411 rm -f "${LEX_OUTPUT_ROOT}.c"
9414 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9415 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9416 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9418 cat >>confdefs.h <<\_ACEOF
9419 #define YYTEXT_POINTER 1
9425 if test "$LEX" = ":" ; then
9426 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9427 echo "$as_me: error: Cannot find flex." >&2;}
9428 { (exit 1); exit 1; }; }
9429 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9432 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9433 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9434 { (exit 1); exit 1; }; }
9437 if test -z "$LEXLIB" ; then
9438 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9439 It's possible the compiler you're using ($CC) is incompatible with the
9441 See \`config.log' for more details." >&5
9442 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9443 It's possible the compiler you're using ($CC) is incompatible with the
9445 See \`config.log' for more details." >&2;}
9446 { (exit 1); exit 1; }; }
9449 LIBS="$LEXLIB $LIBS"
9451 for ac_prog in 'bison -y' byacc
9453 # Extract the first word of "$ac_prog", so it can be a program name with args.
9454 set dummy $ac_prog; ac_word=$2
9455 echo "$as_me:$LINENO: checking for $ac_word" >&5
9456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9457 if test "${ac_cv_prog_YACC+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 if test -n "$YACC"; then
9461 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9470 ac_cv_prog_YACC="$ac_prog"
9471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 YACC=$ac_cv_prog_YACC
9480 if test -n "$YACC"; then
9481 echo "$as_me:$LINENO: result: $YACC" >&5
9482 echo "${ECHO_T}$YACC" >&6
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9488 test -n "$YACC" && break
9490 test -n "$YACC" || YACC="yacc"
9492 if test "$YACC" = ":" ; then
9493 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9494 echo "$as_me: error: Cannot find yacc." >&2;}
9495 { (exit 1); exit 1; }; }
9496 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9499 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9500 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9503 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9504 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9505 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test "$cross_compiling" = yes; then
9509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: cannot run test program while cross compiling
9512 See \`config.log' for more details." >&2;}
9513 { (exit 1); exit 1; }; }
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 #include <sys/types.h>
9522 #include <sys/socket.h>
9524 #include <sys/ioctl.h>
9525 #include <sys/file.h>
9527 $ac_cv_type_signal alarmed() { exit(1); }
9532 size_t l = sizeof(x);
9533 int f = socket(AF_INET, SOCK_DGRAM, 0);
9534 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9536 signal(SIGALRM, alarmed);
9538 recvfrom(f, b, 12, 0, &x, &l);
9545 rm -f conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 unet_cv_sys_nonblocking_posix=yes
9558 echo "$as_me: program exited with status $ac_status" >&5
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9563 unet_cv_sys_nonblocking_posix=no
9565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9569 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9570 if test $unet_cv_sys_nonblocking_posix = yes; then
9572 cat >>confdefs.h <<\_ACEOF
9573 #define NBLOCK_POSIX
9577 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9578 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9579 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 if test "$cross_compiling" = yes; then
9583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9584 See \`config.log' for more details." >&5
9585 echo "$as_me: error: cannot run test program while cross compiling
9586 See \`config.log' for more details." >&2;}
9587 { (exit 1); exit 1; }; }
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 #include <sys/types.h>
9596 #include <sys/socket.h>
9598 #include <sys/ioctl.h>
9599 #include <sys/file.h>
9601 $ac_cv_type_signal alarmed() { exit(1); }
9606 size_t l = sizeof(x);
9607 int f = socket(AF_INET, SOCK_DGRAM, 0);
9608 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9610 signal(SIGALRM, alarmed);
9612 recvfrom(f, b, 12, 0, &x, &l);
9619 rm -f conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 unet_cv_sys_nonblocking_bsd=yes
9632 echo "$as_me: program exited with status $ac_status" >&5
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9637 unet_cv_sys_nonblocking_bsd=no
9639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9643 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9644 if test $unet_cv_sys_nonblocking_bsd = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9652 cat >>confdefs.h <<\_ACEOF
9658 echo "$as_me:$LINENO: checking for posix signals" >&5
9659 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9660 if test "${unet_cv_sys_signal_posix+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9673 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9678 rm -f conftest.$ac_objext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 unet_cv_sys_signal_posix=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 unet_cv_sys_signal_posix=no
9706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9708 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9709 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9710 if test $unet_cv_sys_signal_posix = yes; then
9712 cat >>confdefs.h <<\_ACEOF
9713 #define POSIX_SIGNALS
9717 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9718 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9719 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 if test "$cross_compiling" = yes; then
9723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9724 See \`config.log' for more details." >&5
9725 echo "$as_me: error: cannot run test program while cross compiling
9726 See \`config.log' for more details." >&2;}
9727 { (exit 1); exit 1; }; }
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9737 $ac_cv_type_signal handler()
9741 kill(getpid(), SIGTERM);
9746 signal(SIGTERM, handler);
9747 kill(getpid(), SIGTERM);
9751 rm -f conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 unet_cv_sys_signal_bsd=yes
9764 echo "$as_me: program exited with status $ac_status" >&5
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9769 unet_cv_sys_signal_bsd=no
9771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9775 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9776 if test $unet_cv_sys_signal_bsd = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define BSD_RELIABLE_SIGNALS
9784 cat >>confdefs.h <<\_ACEOF
9785 #define SYSV_UNRELIABLE_SIGNALS
9791 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9792 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9795 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9796 echo "${ECHO_T}Linux ($host) found." >&6
9797 unet_poll_syscall=yes
9801 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9802 echo "${ECHO_T}Solaris ($host) found." >&6
9803 if test x"$ac_cv_header_poll_h" = xyes; then
9804 unet_poll_syscall=yes
9806 unet_poll_syscall=no
9811 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9812 echo "${ECHO_T}Solaris ($host) found." >&6
9813 unet_poll_syscall=no
9817 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9818 echo "${ECHO_T}OpenBSD ($host) found." >&6
9819 if test x"$ac_cv_header_poll_h" = xyes; then
9820 unet_poll_syscall=yes
9822 unet_poll_syscall=no
9827 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9828 echo "${ECHO_T}Generic BSD ($host) found." >&6
9829 if test x"$ac_cv_header_poll_h" = xyes; then
9830 unet_poll_syscall=yes
9832 unet_poll_syscall=no
9837 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9838 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9839 unet_poll_syscall=no
9843 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9844 echo "${ECHO_T}Unknown system type $host found." >&6
9845 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9846 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9847 unet_poll_syscall=no
9851 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9852 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9853 # Check whether --enable-poll or --disable-poll was given.
9854 if test "${enable_poll+set}" = set; then
9855 enableval="$enable_poll"
9856 unet_cv_enable_poll=$enable_poll
9858 if test "${unet_cv_enable_poll+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 unet_cv_enable_poll=$unet_poll_syscall
9866 # Force poll to be disabled if there is no poll.h
9867 if test x"$ac_cv_header_poll_h" != xyes; then
9868 unet_cv_enable_poll=no
9871 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9872 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9874 if test x"$unet_cv_enable_poll" = xyes; then
9876 cat >>confdefs.h <<\_ACEOF
9880 ENGINE_C=engine_poll.c
9882 ENGINE_C=engine_select.c
9886 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9887 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9888 # Check whether --enable-debug or --disable-debug was given.
9889 if test "${enable_debug+set}" = set; then
9890 enableval="$enable_debug"
9891 unet_cv_enable_debug=$enable_debug
9893 if test "${unet_cv_enable_debug+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 unet_cv_enable_debug=no
9900 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9901 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9903 if test x"$unet_cv_enable_debug" = xyes; then
9905 cat >>confdefs.h <<\_ACEOF
9911 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9912 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9914 # Check whether --with-leak-detect or --without-leak-detect was given.
9915 if test "${with_leak_detect+set}" = set; then
9916 withval="$with_leak_detect"
9917 unet_cv_with_leak_detect=$with_leak_detect
9919 if test "${unet_cv_with_leak_detect+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 unet_cv_with_leak_detect=no
9926 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9927 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9929 if test x"$unet_cv_with_leak_detect" != xno; then
9931 CFLAGS="-DMDEBUG $CFLAGS"
9932 if test x"$unet_cv_with_leak_detect" != xyes; then
9933 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9938 # Check whether --with-ipv6 or --without-ipv6 was given.
9939 if test "${with_ipv6+set}" = set; then
9940 withval="$with_ipv6"
9941 ac_cv_use_ipv6=$withval
9943 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9945 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9946 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9947 if test "${ac_cv_use_ipv6+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9953 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9954 if test x"$ac_cv_use_ipv6" != "xno" ; then
9956 cat >>confdefs.h <<\_ACEOF
9962 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9963 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9964 # Check whether --enable-asserts or --disable-asserts was given.
9965 if test "${enable_asserts+set}" = set; then
9966 enableval="$enable_asserts"
9967 unet_cv_enable_asserts=$enable_asserts
9969 if test "${unet_cv_enable_asserts+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 unet_cv_enable_asserts=yes
9976 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9977 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9979 if test x"$unet_cv_enable_asserts" = xno; then
9981 cat >>confdefs.h <<\_ACEOF
9987 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9988 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9989 # Check whether --enable-symbols or --disable-symbols was given.
9990 if test "${enable_symbols+set}" = set; then
9991 enableval="$enable_symbols"
9992 unet_cv_enable_symbols=$enable_symbols
9994 if test "${unet_cv_enable_symbols+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 unet_cv_enable_symbols=yes
10001 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
10002 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
10004 if test x"$unet_cv_enable_symbols" = xyes; then
10005 CFLAGS="-g $CFLAGS"
10008 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10009 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10010 # Check whether --enable-profile or --disable-profile was given.
10011 if test "${enable_profile+set}" = set; then
10012 enableval="$enable_profile"
10013 unet_cv_enable_profile=$enable_profile
10015 if test "${unet_cv_enable_profile+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 unet_cv_enable_profile=no
10022 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10023 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10025 if test x"$unet_cv_enable_profile" = xyes; then
10026 CFLAGS="-pg $CFLAGS"
10027 LDFLAGS="-pg $LDFLAGS"
10030 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10031 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10032 # Check whether --enable-pedantic or --disable-pedantic was given.
10033 if test "${enable_pedantic+set}" = set; then
10034 enableval="$enable_pedantic"
10035 unet_cv_enable_pedantic=$enable_pedantic
10037 if test "${unet_cv_enable_pedantic+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 unet_cv_enable_pedantic=no
10044 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10045 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10047 if test x"$unet_cv_enable_pedantic" = xyes; then
10048 CFLAGS="-pedantic $CFLAGS"
10051 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10052 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10053 # Check whether --enable-warnings or --disable-warnings was given.
10054 if test "${enable_warnings+set}" = set; then
10055 enableval="$enable_warnings"
10056 unet_cv_enable_warnings=$enable_warnings
10058 if test "${unet_cv_enable_warnings+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 unet_cv_enable_warnings=no
10065 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10066 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10068 if test x"$unet_cv_enable_warnings" = xyes; then
10069 CFLAGS="-Wall $CFLAGS"
10072 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10073 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10074 # Check whether --enable-inlines or --disable-inlines was given.
10075 if test "${enable_inlines+set}" = set; then
10076 enableval="$enable_inlines"
10077 unet_cv_enable_inlines=$enable_inlines
10079 if test "${unet_cv_enable_inlines+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 unet_cv_enable_inlines=yes
10086 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10087 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10089 if test x"$unet_cv_enable_inlines" = xyes; then
10091 cat >>confdefs.h <<\_ACEOF
10092 #define FORCEINLINE 1
10097 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10098 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10099 # Check whether --enable-devpoll or --disable-devpoll was given.
10100 if test "${enable_devpoll+set}" = set; then
10101 enableval="$enable_devpoll"
10102 unet_cv_enable_devpoll=$enable_devpoll
10104 if test "${unet_cv_enable_devpoll+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 unet_cv_enable_devpoll=yes
10112 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10113 unet_cv_enable_devpoll=no
10116 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10117 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10119 if test x"$unet_cv_enable_devpoll" != xno; then
10121 cat >>confdefs.h <<\_ACEOF
10122 #define USE_DEVPOLL 1
10125 ENGINE_C="engine_devpoll.c $ENGINE_C"
10128 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10129 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10130 # Check whether --enable-kqueue or --disable-kqueue was given.
10131 if test "${enable_kqueue+set}" = set; then
10132 enableval="$enable_kqueue"
10133 unet_cv_enable_kqueue=$enable_kqueue
10135 if test "${unet_cv_enable_kqueue+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 unet_cv_enable_kqueue=yes
10143 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10144 unet_cv_enable_kqueue=no
10147 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10148 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10150 if test x"$unet_cv_enable_kqueue" != xno; then
10152 cat >>confdefs.h <<\_ACEOF
10153 #define USE_KQUEUE 1
10156 ENGINE_C="engine_kqueue.c $ENGINE_C"
10159 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10160 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10161 # Check whether --enable-epoll or --disable-epoll was given.
10162 if test "${enable_epoll+set}" = set; then
10163 enableval="$enable_epoll"
10164 unet_cv_enable_epoll=$enable_epoll
10166 if test "${unet_cv_enable_epoll+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 unet_cv_enable_epoll=yes
10174 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10175 unet_cv_enable_epoll=no
10178 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10179 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10181 if test x"$unet_cv_enable_epoll" != xno; then
10182 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10183 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <sys/epoll.h>
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 echo "$as_me:$LINENO: result: yes" >&5
10221 echo "${ECHO_T}yes" >&6
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 echo "$as_me:$LINENO: result: no" >&5
10227 echo "${ECHO_T}no" >&6
10229 cat >>confdefs.h <<\_ACEOF
10230 #define EPOLL_NEED_BODY 1
10234 rm -f conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10237 cat >>confdefs.h <<\_ACEOF
10238 #define USE_EPOLL 1
10241 ENGINE_C="engine_epoll.c $ENGINE_C"
10244 echo "$as_me:$LINENO: checking for va_copy" >&5
10245 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10246 if test "${unet_cv_c_va_copy+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.$ac_ext <<_ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255 #include <stdarg.h>
10259 va_list ap1, ap2; va_copy(ap1, ap2);
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 unet_cv_c_va_copy="yes"
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 unet_cv_c_va_copy="no"
10293 rm -f conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10297 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10298 if test "$unet_cv_c_va_copy" = "yes" ; then
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_VA_COPY 1
10306 echo "$as_me:$LINENO: checking for __va_copy" >&5
10307 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10308 if test "${unet_cv_c___va_copy+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 #include <stdarg.h>
10321 va_list ap1, ap2; __va_copy(ap1, ap2);
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 unet_cv_c___va_copy="yes"
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 unet_cv_c___va_copy="no"
10355 rm -f conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10358 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10359 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10360 if test "$unet_cv_c___va_copy" = "yes" ; then
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE___VA_COPY 1
10368 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10369 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10371 # Check whether --with-symlink or --without-symlink was given.
10372 if test "${with_symlink+set}" = set; then
10373 withval="$with_symlink"
10374 unet_cv_with_symlink=$with_symlink
10376 if test "${unet_cv_with_symlink+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 unet_cv_with_symlink="ircd"
10384 if test x"$unet_cv_with_symlink" = xyes; then
10385 unet_cv_with_symlink="ircd"
10388 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10389 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10391 if test x"$unet_cv_with_symlink" = xno; then
10392 INSTALL_RULE=install-no-symlink
10395 INSTALL_RULE=install-with-symlink
10396 SYMLINK=$unet_cv_with_symlink
10401 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10402 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10404 # Check whether --with-mode or --without-mode was given.
10405 if test "${with_mode+set}" = set; then
10406 withval="$with_mode"
10407 unet_cv_with_mode=$with_mode
10409 if test "${unet_cv_with_mode+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 unet_cv_with_mode=711
10417 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10418 unet_cv_with_mode=711
10421 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10422 echo "${ECHO_T}$unet_cv_with_mode" >&6
10424 IRCDMODE=$unet_cv_with_mode
10427 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10428 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10429 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10431 # Check whether --with-owner or --without-owner was given.
10432 if test "${with_owner+set}" = set; then
10433 withval="$with_owner"
10434 unet_cv_with_owner=$with_owner
10436 if test "${unet_cv_with_owner+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 unet_cv_with_owner=$unet_uid
10444 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10445 unet_cv_with_owner=$unet_uid
10448 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10449 echo "${ECHO_T}$unet_cv_with_owner" >&6
10451 IRCDOWN=$unet_cv_with_owner
10454 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10455 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10456 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10458 # Check whether --with-group or --without-group was given.
10459 if test "${with_group+set}" = set; then
10460 withval="$with_group"
10461 unet_cv_with_group=$with_group
10463 if test "${unet_cv_with_group+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 unet_cv_with_group=$unet_gid
10471 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10472 unet_cv_with_group=$unet_gid
10475 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10476 echo "${ECHO_T}$unet_cv_with_group" >&6
10478 IRCDGRP=$unet_cv_with_group
10482 if test -f /etc/resolv.conf; then
10483 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10484 if test x"$unet_domain" = x; then
10485 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10488 echo "$as_me:$LINENO: checking for site domain name" >&5
10489 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10491 # Check whether --with-domain or --without-domain was given.
10492 if test "${with_domain+set}" = set; then
10493 withval="$with_domain"
10494 unet_cv_with_domain=$with_domain
10496 if test "${unet_cv_with_domain+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 unet_cv_with_domain=$unet_domain
10504 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10505 unet_cv_with_domain=$unet_domain
10507 if test x"$unet_cv_with_domain" = xno; then
10508 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10509 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10510 { (exit 1); exit 1; }; }
10513 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10514 echo "${ECHO_T}$unet_cv_with_domain" >&6
10517 cat >>confdefs.h <<_ACEOF
10518 #define DOMAINNAME "*$unet_cv_with_domain"
10522 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10523 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10525 # Check whether --with-chroot or --without-chroot was given.
10526 if test "${with_chroot+set}" = set; then
10527 withval="$with_chroot"
10528 unet_cv_with_chroot=$with_chroot
10530 if test "${unet_cv_with_chroot+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 unet_cv_with_chroot=no
10538 if test x"$unet_cv_with_chroot" = xyes; then
10539 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10540 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10541 { (exit 1); exit 1; }; }
10544 # Ensure there are no trailing /'s to mess us up
10545 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10547 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10548 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10550 # Deal with the annoying value "NONE" here
10551 unet_save_prefix=$prefix
10552 if test x"$prefix" = xNONE; then
10553 prefix=$ac_default_prefix
10558 unet_save_exec_prefix=$exec_prefix
10559 if test x"$exec_prefix" = xNONE; then
10560 exec_prefix=$prefix
10562 exec_prefix=$exec_prefix
10565 # Obtain the actual interesting directories
10566 unet_bindir=`eval echo "$bindir"`
10567 unet_libdir=`eval echo "$libdir"`
10569 # Restore the original settings of $prefix and $exec_prefix
10570 prefix=$unet_save_prefix
10571 exec_prefix=$unet_save_exec_prefix
10573 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10574 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10575 if test x"$unet_cv_with_symlink" = xno; then
10576 unet_spath="$unet_bindir/ircd"
10578 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10580 echo "$as_me:$LINENO: result: $unet_spath" >&5
10581 echo "${ECHO_T}$unet_spath" >&6
10583 if test x"$unet_cv_with_chroot" != xno; then
10584 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10585 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10587 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10588 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10593 cat >>confdefs.h <<_ACEOF
10594 #define SPATH "$unet_spath"
10598 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10599 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10601 # Check whether --with-dpath or --without-dpath was given.
10602 if test "${with_dpath+set}" = set; then
10603 withval="$with_dpath"
10604 unet_cv_with_dpath=$with_dpath
10606 if test "${unet_cv_with_dpath+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 unet_cv_with_dpath=$unet_libdir
10614 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10615 unet_cv_with_dpath=$unet_libdir
10618 # Ensure there are no trailing /'s to mess us up
10619 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10621 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10622 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10624 if test x"$unet_cv_with_chroot" != xno; then
10625 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10626 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10628 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10629 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10630 { (exit 1); exit 1; }; }
10633 unet_dpath=$unet_cv_with_dpath
10637 cat >>confdefs.h <<_ACEOF
10638 #define DPATH "$unet_dpath"
10642 DPATH=$unet_cv_with_dpath
10645 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10646 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10648 # Check whether --with-cpath or --without-cpath was given.
10649 if test "${with_cpath+set}" = set; then
10650 withval="$with_cpath"
10651 unet_cv_with_cpath=$with_cpath
10653 if test "${unet_cv_with_cpath+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 unet_cv_with_cpath="ircd.conf"
10661 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10662 unet_cv_with_cpath="ircd.conf"
10665 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10666 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10668 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10669 # Absolute path; check against chroot stuff
10670 if test x"$unet_cv_with_chroot" != xno; then
10671 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10672 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10674 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10675 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10676 { (exit 1); exit 1; }; }
10679 unet_cpath=$unet_cv_with_cpath
10682 unet_cpath=$unet_cv_with_cpath
10686 cat >>confdefs.h <<_ACEOF
10687 #define CPATH "$unet_cpath"
10691 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10692 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10694 # Check whether --with-lpath or --without-lpath was given.
10695 if test "${with_lpath+set}" = set; then
10696 withval="$with_lpath"
10697 unet_cv_with_lpath=$with_lpath
10699 if test "${unet_cv_with_lpath+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 unet_cv_with_lpath="ircd.log"
10707 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10708 unet_cv_with_lpath="ircd.log"
10711 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10712 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10714 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10715 # Absolute path; check against chroot stuff
10716 if test x"$unet_cv_with_chroot" != xno; then
10717 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10718 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10720 { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10721 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
10722 unet_cv_with_lpath="ircd.log"
10723 unet_lpath="ircd.log"
10726 unet_lpath=$unet_cv_with_lpath
10729 unet_lpath=$unet_cv_with_lpath
10733 cat >>confdefs.h <<_ACEOF
10734 #define LPATH "$unet_lpath"
10738 unet_maxcon=`ulimit -Hn`
10739 if test x"$unet_maxcon" = xunlimited; then
10740 unet_maxcon=`ulimit -Sn`
10742 unet_maxcon=`expr $unet_maxcon - 4`
10743 echo "$as_me:$LINENO: checking max connections" >&5
10744 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10746 # Check whether --with-maxcon or --without-maxcon was given.
10747 if test "${with_maxcon+set}" = set; then
10748 withval="$with_maxcon"
10749 unet_cv_with_maxcon=$with_maxcon
10751 if test "${unet_cv_with_maxcon+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 unet_cv_with_maxcon=$unet_maxcon
10759 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10760 unet_cv_with_maxcon=$unet_maxcon
10763 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10764 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10767 cat >>confdefs.h <<_ACEOF
10768 #define MAXCONNECTIONS $unet_cv_with_maxcon
10772 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10773 ac_config_commands="$ac_config_commands default"
10774 cat >confcache <<\_ACEOF
10775 # This file is a shell script that caches the results of configure
10776 # tests run on this system so they can be shared between configure
10777 # scripts and configure runs, see configure's option --config-cache.
10778 # It is not useful on other systems. If it contains results you don't
10779 # want to keep, you may remove or edit it.
10781 # config.status only pays attention to the cache file if you give it
10782 # the --recheck option to rerun configure.
10784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10786 # following values.
10790 # The following way of writing the cache mishandles newlines in values,
10791 # but we know of no workaround that is simple, portable, and efficient.
10792 # So, don't put newlines in cache variables' values.
10793 # Ultrix sh set writes to stderr and can't be redirected directly,
10794 # and sets the high bit in the cache file unless we assign to the vars.
10797 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10799 # `set' does not quote correctly, so add quotes (double-quote
10800 # substitution turns \\\\ into \\, and sed turns \\ into \).
10803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10806 # `set' quotes correctly as required by POSIX, so do not add quotes.
10808 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10817 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10819 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10820 if test -w $cache_file; then
10821 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10822 cat confcache >$cache_file
10824 echo "not updating unwritable cache $cache_file"
10829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10830 # Let make expand exec_prefix.
10831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10835 # trailing colons and then remove the whole line if VPATH becomes empty
10836 # (actually we leave an empty line to preserve line numbers).
10837 if test "x$srcdir" = x.; then
10838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10839 s/:*\$(srcdir):*/:/;
10840 s/:*\${srcdir}:*/:/;
10842 s/^\([^=]*=[ ]*\):*/\1/;
10848 DEFS=-DHAVE_CONFIG_H
10852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10853 # 1. Remove the extension, and $U if already installed.
10854 ac_i=`echo "$ac_i" |
10855 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10857 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10858 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10860 LIBOBJS=$ac_libobjs
10862 LTLIBOBJS=$ac_ltlibobjs
10866 : ${CONFIG_STATUS=./config.status}
10867 ac_clean_files_save=$ac_clean_files
10868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10869 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10870 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10871 cat >$CONFIG_STATUS <<_ACEOF
10873 # Generated by $as_me.
10874 # Run this file to recreate the current configuration.
10875 # Compiler output produced by configure, useful for debugging
10876 # configure, is in config.log if it exists.
10879 ac_cs_recheck=false
10881 SHELL=\${CONFIG_SHELL-$SHELL}
10884 cat >>$CONFIG_STATUS <<\_ACEOF
10885 ## --------------------- ##
10886 ## M4sh Initialization. ##
10887 ## --------------------- ##
10889 # Be Bourne compatible
10890 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10893 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10894 # is contrary to our usage. Disable this feature.
10895 alias -g '${1+"$@"}'='"$@"'
10896 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10899 DUALCASE=1; export DUALCASE # for MKS sh
10901 # Support unset when possible.
10902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10909 # Work around bugs in pre-3.0 UWIN ksh.
10910 $as_unset ENV MAIL MAILPATH
10917 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10918 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10919 LC_TELEPHONE LC_TIME
10921 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10922 eval $as_var=C; export $as_var
10928 # Required to use basename.
10929 if expr a : '\(a\)' >/dev/null 2>&1; then
10935 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10936 as_basename=basename
10942 # Name of the executable.
10943 as_me=`$as_basename "$0" ||
10944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10945 X"$0" : 'X\(//\)$' \| \
10946 X"$0" : 'X\(/\)$' \| \
10947 . : '\(.\)' 2>/dev/null ||
10949 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10950 /^X\/\(\/\/\)$/{ s//\1/; q; }
10951 /^X\/\(\/\).*/{ s//\1/; q; }
10955 # PATH needs CR, and LINENO needs CR and PATH.
10956 # Avoid depending upon Character Ranges.
10957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10960 as_cr_digits='0123456789'
10961 as_cr_alnum=$as_cr_Letters$as_cr_digits
10963 # The user is always right.
10964 if test "${PATH_SEPARATOR+set}" != set; then
10965 echo "#! /bin/sh" >conf$$.sh
10966 echo "exit 0" >>conf$$.sh
10968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10977 as_lineno_1=$LINENO
10978 as_lineno_2=$LINENO
10979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10980 test "x$as_lineno_1" != "x$as_lineno_2" &&
10981 test "x$as_lineno_3" = "x$as_lineno_2" || {
10982 # Find who we are. Look in the path if we contain no path at all
10985 *[\\/]* ) as_myself=$0 ;;
10986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10990 test -z "$as_dir" && as_dir=.
10991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10996 # We did not find ourselves, most probably we were run as `sh COMMAND'
10997 # in which case we are not to be found in the path.
10998 if test "x$as_myself" = x; then
11001 if test ! -f "$as_myself"; then
11002 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11003 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11004 { (exit 1); exit 1; }; }
11006 case $CONFIG_SHELL in
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11012 test -z "$as_dir" && as_dir=.
11013 for as_base in sh bash ksh sh5; do
11016 if ("$as_dir/$as_base" -c '
11017 as_lineno_1=$LINENO
11018 as_lineno_2=$LINENO
11019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11020 test "x$as_lineno_1" != "x$as_lineno_2" &&
11021 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11022 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11023 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11024 CONFIG_SHELL=$as_dir/$as_base
11025 export CONFIG_SHELL
11026 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11034 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11035 # uniformly replaced by the line number. The first 'sed' inserts a
11036 # line-number line before each line; the second 'sed' does the real
11037 # work. The second script uses 'N' to pair each line-number line
11038 # with the numbered line, and appends trailing '-' during
11039 # substitution so that $LINENO is not a special case at line end.
11040 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11041 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11042 sed '=' <$as_myself |
11047 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11050 s,^['$as_cr_digits']*\n,,
11051 ' >$as_me.lineno &&
11052 chmod +x $as_me.lineno ||
11053 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11054 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11055 { (exit 1); exit 1; }; }
11057 # Don't try to exec as it changes $[0], causing all sort of problems
11058 # (the dirname of $[0] is not the place where we might find the
11059 # original and so on. Autoconf is especially sensible to this).
11061 # Exit status is that of the last command.
11066 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11067 *c*,-n*) ECHO_N= ECHO_C='
11069 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11070 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11073 if expr a : '\(a\)' >/dev/null 2>&1; then
11079 rm -f conf$$ conf$$.exe conf$$.file
11081 if ln -s conf$$.file conf$$ 2>/dev/null; then
11082 # We could just check for DJGPP; but this test a) works b) is more generic
11083 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11084 if test -f conf$$.exe; then
11085 # Don't use ln at all; we don't have any links
11090 elif ln conf$$.file conf$$ 2>/dev/null; then
11095 rm -f conf$$ conf$$.exe conf$$.file
11097 if mkdir -p . 2>/dev/null; then
11100 test -d ./-p && rmdir ./-p
11104 as_executable_p="test -f"
11106 # Sed expression to map a string onto a valid CPP name.
11107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11109 # Sed expression to map a string onto a valid variable name.
11110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11114 # We need space, tab and new line, in precisely that order.
11124 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11125 # report actual input values of CONFIG_FILES etc. instead of their
11126 # values after options handling. Logging --version etc. is OK.
11130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11131 ## Running $as_me. ##
11136 This file was extended by $as_me, which was
11137 generated by GNU Autoconf 2.59. Invocation command line was
11139 CONFIG_FILES = $CONFIG_FILES
11140 CONFIG_HEADERS = $CONFIG_HEADERS
11141 CONFIG_LINKS = $CONFIG_LINKS
11142 CONFIG_COMMANDS = $CONFIG_COMMANDS
11146 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11150 # Files that config.status was made for.
11151 if test -n "$ac_config_files"; then
11152 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11155 if test -n "$ac_config_headers"; then
11156 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11159 if test -n "$ac_config_links"; then
11160 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11163 if test -n "$ac_config_commands"; then
11164 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11167 cat >>$CONFIG_STATUS <<\_ACEOF
11170 \`$as_me' instantiates files from templates according to the
11171 current configuration.
11173 Usage: $0 [OPTIONS] [FILE]...
11175 -h, --help print this help, then exit
11176 -V, --version print version number, then exit
11177 -q, --quiet do not print progress messages
11178 -d, --debug don't remove temporary files
11179 --recheck update $as_me by reconfiguring in the same conditions
11180 --file=FILE[:TEMPLATE]
11181 instantiate the configuration file FILE
11182 --header=FILE[:TEMPLATE]
11183 instantiate the configuration header FILE
11185 Configuration files:
11188 Configuration headers:
11191 Configuration commands:
11194 Report bugs to <bug-autoconf@gnu.org>."
11197 cat >>$CONFIG_STATUS <<_ACEOF
11200 configured by $0, generated by GNU Autoconf 2.59,
11201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11203 Copyright (C) 2003 Free Software Foundation, Inc.
11204 This config.status script is free software; the Free Software Foundation
11205 gives unlimited permission to copy, distribute and modify it."
11210 cat >>$CONFIG_STATUS <<\_ACEOF
11211 # If no file are specified by the user, then we need to provide default
11212 # value. By we need to know if files were specified by the user.
11218 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11219 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11227 *) # This is not an option, so the user has probably given explicit
11230 ac_need_defaults=false;;
11234 # Handling of the options.
11236 cat >>$CONFIG_STATUS <<\_ACEOF
11237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11239 --version | --vers* | -V )
11240 echo "$ac_cs_version"; exit 0 ;;
11242 # Conflict between --help and --header
11243 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11244 Try \`$0 --help' for more information." >&5
11245 echo "$as_me: error: ambiguous option: $1
11246 Try \`$0 --help' for more information." >&2;}
11247 { (exit 1); exit 1; }; };;
11248 --help | --hel | -h )
11249 echo "$ac_cs_usage"; exit 0 ;;
11250 --debug | --d* | -d )
11252 --file | --fil | --fi | --f )
11254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11255 ac_need_defaults=false;;
11256 --header | --heade | --head | --hea )
11258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11259 ac_need_defaults=false;;
11260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11264 # This is an error.
11265 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11266 Try \`$0 --help' for more information." >&5
11267 echo "$as_me: error: unrecognized option: $1
11268 Try \`$0 --help' for more information." >&2;}
11269 { (exit 1); exit 1; }; } ;;
11271 *) ac_config_targets="$ac_config_targets $1" ;;
11277 ac_configure_extra_args=
11279 if $ac_cs_silent; then
11281 ac_configure_extra_args="$ac_configure_extra_args --silent"
11285 cat >>$CONFIG_STATUS <<_ACEOF
11286 if \$ac_cs_recheck; then
11287 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11288 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11297 cat >>$CONFIG_STATUS <<\_ACEOF
11298 for ac_config_target in $ac_config_targets
11300 case "$ac_config_target" in
11301 # Handling of arguments.
11302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11303 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11304 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11305 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11306 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11307 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11308 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11309 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11310 { (exit 1); exit 1; }; };;
11314 # If the user did not use the arguments to specify the items to instantiate,
11315 # then the envvar interface is used. Set only those that are not.
11316 # We use the long form for the default assignment because of an extremely
11317 # bizarre bug on SunOS 4.1.3.
11318 if $ac_need_defaults; then
11319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11321 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11324 # Have a temporary directory for convenience. Make it in the build tree
11325 # simply because there is no reason to put it here, and in addition,
11326 # creating and moving files from /tmp can sometimes cause problems.
11327 # Create a temporary directory, and hook for its removal unless debugging.
11330 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11331 trap '{ (exit 1); exit 1; }' 1 2 13 15
11334 # Create a (secure) tmp directory for tmp files.
11337 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11338 test -n "$tmp" && test -d "$tmp"
11341 tmp=./confstat$$-$RANDOM
11342 (umask 077 && mkdir $tmp)
11345 echo "$me: cannot create a temporary directory in ." >&2
11346 { (exit 1); exit 1; }
11351 cat >>$CONFIG_STATUS <<_ACEOF
11354 # CONFIG_FILES section.
11357 # No need to generate the scripts if there are no CONFIG_FILES.
11358 # This happens for instance when ./config.status config.h
11359 if test -n "\$CONFIG_FILES"; then
11360 # Protect against being on the right side of a sed subst in config.status.
11361 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11362 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11363 s,@SHELL@,$SHELL,;t t
11364 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11365 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11366 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11367 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11368 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11369 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11370 s,@exec_prefix@,$exec_prefix,;t t
11371 s,@prefix@,$prefix,;t t
11372 s,@program_transform_name@,$program_transform_name,;t t
11373 s,@bindir@,$bindir,;t t
11374 s,@sbindir@,$sbindir,;t t
11375 s,@libexecdir@,$libexecdir,;t t
11376 s,@datadir@,$datadir,;t t
11377 s,@sysconfdir@,$sysconfdir,;t t
11378 s,@sharedstatedir@,$sharedstatedir,;t t
11379 s,@localstatedir@,$localstatedir,;t t
11380 s,@libdir@,$libdir,;t t
11381 s,@includedir@,$includedir,;t t
11382 s,@oldincludedir@,$oldincludedir,;t t
11383 s,@infodir@,$infodir,;t t
11384 s,@mandir@,$mandir,;t t
11385 s,@build_alias@,$build_alias,;t t
11386 s,@host_alias@,$host_alias,;t t
11387 s,@target_alias@,$target_alias,;t t
11388 s,@DEFS@,$DEFS,;t t
11389 s,@ECHO_C@,$ECHO_C,;t t
11390 s,@ECHO_N@,$ECHO_N,;t t
11391 s,@ECHO_T@,$ECHO_T,;t t
11392 s,@LIBS@,$LIBS,;t t
11393 s,@build@,$build,;t t
11394 s,@build_cpu@,$build_cpu,;t t
11395 s,@build_vendor@,$build_vendor,;t t
11396 s,@build_os@,$build_os,;t t
11397 s,@host@,$host,;t t
11398 s,@host_cpu@,$host_cpu,;t t
11399 s,@host_vendor@,$host_vendor,;t t
11400 s,@host_os@,$host_os,;t t
11402 s,@CFLAGS@,$CFLAGS,;t t
11403 s,@LDFLAGS@,$LDFLAGS,;t t
11404 s,@CPPFLAGS@,$CPPFLAGS,;t t
11405 s,@ac_ct_CC@,$ac_ct_CC,;t t
11406 s,@EXEEXT@,$EXEEXT,;t t
11407 s,@OBJEXT@,$OBJEXT,;t t
11409 s,@EGREP@,$EGREP,;t t
11411 s,@SET_MAKE@,$SET_MAKE,;t t
11412 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11413 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11414 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11415 s,@LN_S@,$LN_S,;t t
11416 s,@RMPROG@,$RMPROG,;t t
11417 s,@SHPROG@,$SHPROG,;t t
11419 s,@LEXLIB@,$LEXLIB,;t t
11420 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11421 s,@YACC@,$YACC,;t t
11422 s,@ENGINE_C@,$ENGINE_C,;t t
11423 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11424 s,@SYMLINK@,$SYMLINK,;t t
11425 s,@IRCDMODE@,$IRCDMODE,;t t
11426 s,@IRCDOWN@,$IRCDOWN,;t t
11427 s,@IRCDGRP@,$IRCDGRP,;t t
11428 s,@DPATH@,$DPATH,;t t
11429 s,@LIBOBJS@,$LIBOBJS,;t t
11430 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11435 cat >>$CONFIG_STATUS <<\_ACEOF
11436 # Split the substitutions into bite-sized pieces for seds with
11437 # small command number limits, like on Digital OSF/1 and HP-UX.
11438 ac_max_sed_lines=48
11439 ac_sed_frag=1 # Number of current file.
11440 ac_beg=1 # First line for current file.
11441 ac_end=$ac_max_sed_lines # Line after last line for current file.
11444 while $ac_more_lines; do
11445 if test $ac_beg -gt 1; then
11446 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11448 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11450 if test ! -s $tmp/subs.frag; then
11451 ac_more_lines=false
11453 # The purpose of the label and of the branching condition is to
11454 # speed up the sed processing (if there are no `@' at all, there
11455 # is no need to browse any of the substitutions).
11456 # These are the two extra sed commands mentioned above.
11458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11459 if test -z "$ac_sed_cmds"; then
11460 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11462 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11464 ac_sed_frag=`expr $ac_sed_frag + 1`
11466 ac_end=`expr $ac_end + $ac_max_sed_lines`
11469 if test -z "$ac_sed_cmds"; then
11472 fi # test -n "$CONFIG_FILES"
11475 cat >>$CONFIG_STATUS <<\_ACEOF
11476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11479 - | *:- | *:-:* ) # input from stdin
11481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11485 * ) ac_file_in=$ac_file.in ;;
11488 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11491 X"$ac_file" : 'X\(//\)[^/]' \| \
11492 X"$ac_file" : 'X\(//\)$' \| \
11493 X"$ac_file" : 'X\(/\)' \| \
11494 . : '\(.\)' 2>/dev/null ||
11496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11498 /^X\(\/\/\)$/{ s//\1/; q; }
11499 /^X\(\/\).*/{ s//\1/; q; }
11501 { if $as_mkdir_p; then
11506 while test ! -d "$as_dir"; do
11507 as_dirs="$as_dir $as_dirs"
11508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11510 X"$as_dir" : 'X\(//\)[^/]' \| \
11511 X"$as_dir" : 'X\(//\)$' \| \
11512 X"$as_dir" : 'X\(/\)' \| \
11513 . : '\(.\)' 2>/dev/null ||
11515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11517 /^X\(\/\/\)$/{ s//\1/; q; }
11518 /^X\(\/\).*/{ s//\1/; q; }
11521 test ! -n "$as_dirs" || mkdir $as_dirs
11522 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11524 { (exit 1); exit 1; }; }; }
11528 if test "$ac_dir" != .; then
11529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11530 # A "../" for each directory in $ac_dir_suffix.
11531 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11533 ac_dir_suffix= ac_top_builddir=
11537 .) # No --srcdir option. We are building in place.
11539 if test -z "$ac_top_builddir"; then
11542 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11544 [\\/]* | ?:[\\/]* ) # Absolute path.
11545 ac_srcdir=$srcdir$ac_dir_suffix;
11546 ac_top_srcdir=$srcdir ;;
11547 *) # Relative path.
11548 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11549 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11552 # Do not use `cd foo && pwd` to compute absolute paths, because
11553 # the directories may not exist.
11555 .) ac_abs_builddir="$ac_dir";;
11558 .) ac_abs_builddir=`pwd`;;
11559 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11560 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11563 case $ac_abs_builddir in
11564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11566 case ${ac_top_builddir}. in
11567 .) ac_abs_top_builddir=$ac_abs_builddir;;
11568 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11569 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11572 case $ac_abs_builddir in
11573 .) ac_abs_srcdir=$ac_srcdir;;
11576 .) ac_abs_srcdir=$ac_abs_builddir;;
11577 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11578 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11581 case $ac_abs_builddir in
11582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11584 case $ac_top_srcdir in
11585 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11586 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11587 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11594 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11597 # Let's still pretend it is `configure' which instantiates (i.e., don't
11598 # use $as_me), people would be surprised to read:
11599 # /* config.h. Generated by config.status. */
11600 if test x"$ac_file" = x-; then
11603 configure_input="$ac_file. "
11605 configure_input=$configure_input"Generated from `echo $ac_file_in |
11606 sed 's,.*/,,'` by configure."
11608 # First look for the input files in the build tree, otherwise in the
11610 ac_file_inputs=`IFS=:
11611 for f in $ac_file_in; do
11613 -) echo $tmp/stdin ;;
11615 # Absolute (can't be DOS-style, as IFS=:)
11616 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11617 echo "$as_me: error: cannot find input file: $f" >&2;}
11618 { (exit 1); exit 1; }; }
11621 if test -f "$f"; then
11624 elif test -f "$srcdir/$f"; then
11629 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11630 echo "$as_me: error: cannot find input file: $f" >&2;}
11631 { (exit 1); exit 1; }; }
11634 done` || { (exit 1); exit 1; }
11636 if test x"$ac_file" != x-; then
11637 { echo "$as_me:$LINENO: creating $ac_file" >&5
11638 echo "$as_me: creating $ac_file" >&6;}
11642 cat >>$CONFIG_STATUS <<_ACEOF
11646 cat >>$CONFIG_STATUS <<\_ACEOF
11648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11649 s,@configure_input@,$configure_input,;t t
11650 s,@srcdir@,$ac_srcdir,;t t
11651 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11652 s,@top_srcdir@,$ac_top_srcdir,;t t
11653 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11654 s,@builddir@,$ac_builddir,;t t
11655 s,@abs_builddir@,$ac_abs_builddir,;t t
11656 s,@top_builddir@,$ac_top_builddir,;t t
11657 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11658 s,@INSTALL@,$ac_INSTALL,;t t
11659 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11661 if test x"$ac_file" != x-; then
11662 mv $tmp/out $ac_file
11670 cat >>$CONFIG_STATUS <<\_ACEOF
11673 # CONFIG_HEADER section.
11676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11679 # ac_d sets the value in "#define NAME VALUE" lines.
11680 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11681 ac_dB='[ ].*$,\1#\2'
11684 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11685 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11686 ac_uB='$,\1#\2define\3'
11690 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11693 - | *:- | *:-:* ) # input from stdin
11695 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11697 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11699 * ) ac_file_in=$ac_file.in ;;
11702 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11703 echo "$as_me: creating $ac_file" >&6;}
11705 # First look for the input files in the build tree, otherwise in the
11707 ac_file_inputs=`IFS=:
11708 for f in $ac_file_in; do
11710 -) echo $tmp/stdin ;;
11712 # Absolute (can't be DOS-style, as IFS=:)
11713 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11714 echo "$as_me: error: cannot find input file: $f" >&2;}
11715 { (exit 1); exit 1; }; }
11716 # Do quote $f, to prevent DOS paths from being IFS'd.
11719 if test -f "$f"; then
11722 elif test -f "$srcdir/$f"; then
11727 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11728 echo "$as_me: error: cannot find input file: $f" >&2;}
11729 { (exit 1); exit 1; }; }
11732 done` || { (exit 1); exit 1; }
11733 # Remove the trailing spaces.
11734 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11738 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11739 # `conftest.undefs', that substitutes the proper values into
11740 # config.h.in to produce config.h. The first handles `#define'
11741 # templates, and the second `#undef' templates.
11742 # And first: Protect against being on the right side of a sed subst in
11743 # config.status. Protect against being in an unquoted here document
11744 # in config.status.
11745 rm -f conftest.defines conftest.undefs
11746 # Using a here document instead of a string reduces the quoting nightmare.
11747 # Putting comments in sed scripts is not portable.
11749 # `end' is used to avoid that the second main sed command (meant for
11750 # 0-ary CPP macros) applies to n-ary macro definitions.
11751 # See the Autoconf documentation for `clear'.
11752 cat >confdef2sed.sed <<\_ACEOF
11757 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11759 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11762 # If some macros were called several times there might be several times
11763 # the same #defines, which is useless. Nevertheless, we may not want to
11764 # sort them, since we want the *last* AC-DEFINE to be honored.
11765 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11766 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11767 rm -f confdef2sed.sed
11769 # This sed command replaces #undef with comments. This is necessary, for
11770 # example, in the case of _POSIX_SOURCE, which is predefined and required
11771 # on some systems where configure will not decide to define it.
11772 cat >>conftest.undefs <<\_ACEOF
11773 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11776 # Break up conftest.defines because some shells have a limit on the size
11777 # of here documents, and old seds have small limits too (100 cmds).
11778 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11779 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11780 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11781 echo ' :' >>$CONFIG_STATUS
11782 rm -f conftest.tail
11783 while grep . conftest.defines >/dev/null
11785 # Write a limited-size here document to $tmp/defines.sed.
11786 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11787 # Speed up: don't consider the non `#define' lines.
11788 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11789 # Work around the forget-to-reset-the-flag bug.
11790 echo 't clr' >>$CONFIG_STATUS
11791 echo ': clr' >>$CONFIG_STATUS
11792 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11794 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11796 mv $tmp/out $tmp/in
11798 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11799 rm -f conftest.defines
11800 mv conftest.tail conftest.defines
11802 rm -f conftest.defines
11803 echo ' fi # grep' >>$CONFIG_STATUS
11804 echo >>$CONFIG_STATUS
11806 # Break up conftest.undefs because some shells have a limit on the size
11807 # of here documents, and old seds have small limits too (100 cmds).
11808 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11809 rm -f conftest.tail
11810 while grep . conftest.undefs >/dev/null
11812 # Write a limited-size here document to $tmp/undefs.sed.
11813 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11814 # Speed up: don't consider the non `#undef'
11815 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11816 # Work around the forget-to-reset-the-flag bug.
11817 echo 't clr' >>$CONFIG_STATUS
11818 echo ': clr' >>$CONFIG_STATUS
11819 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11821 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11823 mv $tmp/out $tmp/in
11825 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11826 rm -f conftest.undefs
11827 mv conftest.tail conftest.undefs
11829 rm -f conftest.undefs
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11832 # Let's still pretend it is `configure' which instantiates (i.e., don't
11833 # use $as_me), people would be surprised to read:
11834 # /* config.h. Generated by config.status. */
11835 if test x"$ac_file" = x-; then
11836 echo "/* Generated by configure. */" >$tmp/config.h
11838 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11840 cat $tmp/in >>$tmp/config.h
11842 if test x"$ac_file" != x-; then
11843 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11844 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11845 echo "$as_me: $ac_file is unchanged" >&6;}
11847 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849 X"$ac_file" : 'X\(//\)[^/]' \| \
11850 X"$ac_file" : 'X\(//\)$' \| \
11851 X"$ac_file" : 'X\(/\)' \| \
11852 . : '\(.\)' 2>/dev/null ||
11854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856 /^X\(\/\/\)$/{ s//\1/; q; }
11857 /^X\(\/\).*/{ s//\1/; q; }
11859 { if $as_mkdir_p; then
11864 while test ! -d "$as_dir"; do
11865 as_dirs="$as_dir $as_dirs"
11866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868 X"$as_dir" : 'X\(//\)[^/]' \| \
11869 X"$as_dir" : 'X\(//\)$' \| \
11870 X"$as_dir" : 'X\(/\)' \| \
11871 . : '\(.\)' 2>/dev/null ||
11873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11875 /^X\(\/\/\)$/{ s//\1/; q; }
11876 /^X\(\/\).*/{ s//\1/; q; }
11879 test ! -n "$as_dirs" || mkdir $as_dirs
11880 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11882 { (exit 1); exit 1; }; }; }
11885 mv $tmp/config.h $ac_file
11889 rm -f $tmp/config.h
11893 cat >>$CONFIG_STATUS <<\_ACEOF
11896 # CONFIG_COMMANDS section.
11898 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11899 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11900 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11901 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11902 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11903 X"$ac_dest" : 'X\(//\)[^/]' \| \
11904 X"$ac_dest" : 'X\(//\)$' \| \
11905 X"$ac_dest" : 'X\(/\)' \| \
11906 . : '\(.\)' 2>/dev/null ||
11908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11910 /^X\(\/\/\)$/{ s//\1/; q; }
11911 /^X\(\/\).*/{ s//\1/; q; }
11913 { if $as_mkdir_p; then
11918 while test ! -d "$as_dir"; do
11919 as_dirs="$as_dir $as_dirs"
11920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11922 X"$as_dir" : 'X\(//\)[^/]' \| \
11923 X"$as_dir" : 'X\(//\)$' \| \
11924 X"$as_dir" : 'X\(/\)' \| \
11925 . : '\(.\)' 2>/dev/null ||
11927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11929 /^X\(\/\/\)$/{ s//\1/; q; }
11930 /^X\(\/\).*/{ s//\1/; q; }
11933 test ! -n "$as_dirs" || mkdir $as_dirs
11934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11936 { (exit 1); exit 1; }; }; }
11940 if test "$ac_dir" != .; then
11941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11942 # A "../" for each directory in $ac_dir_suffix.
11943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11945 ac_dir_suffix= ac_top_builddir=
11949 .) # No --srcdir option. We are building in place.
11951 if test -z "$ac_top_builddir"; then
11954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11956 [\\/]* | ?:[\\/]* ) # Absolute path.
11957 ac_srcdir=$srcdir$ac_dir_suffix;
11958 ac_top_srcdir=$srcdir ;;
11959 *) # Relative path.
11960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11964 # Do not use `cd foo && pwd` to compute absolute paths, because
11965 # the directories may not exist.
11967 .) ac_abs_builddir="$ac_dir";;
11970 .) ac_abs_builddir=`pwd`;;
11971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11975 case $ac_abs_builddir in
11976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11978 case ${ac_top_builddir}. in
11979 .) ac_abs_top_builddir=$ac_abs_builddir;;
11980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11984 case $ac_abs_builddir in
11985 .) ac_abs_srcdir=$ac_srcdir;;
11988 .) ac_abs_srcdir=$ac_abs_builddir;;
11989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11993 case $ac_abs_builddir in
11994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11996 case $ac_top_srcdir in
11997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12004 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12005 echo "$as_me: executing $ac_dest commands" >&6;}
12007 default ) echo timestamp > stamp-h ;;
12012 cat >>$CONFIG_STATUS <<\_ACEOF
12014 { (exit 0); exit 0; }
12016 chmod +x $CONFIG_STATUS
12017 ac_clean_files=$ac_clean_files_save
12020 # configure is writing to config.log, and then calls config.status.
12021 # config.status does its own redirection, appending to config.log.
12022 # Unfortunately, on DOS this fails, as config.log is still kept open
12023 # by configure, so config.status won't be able to write to it; its
12024 # output is simply discarded. So we exec the FD to /dev/null,
12025 # effectively closing config.log, so it can be properly (re)opened and
12026 # appended to by config.status. When coming back to configure, we
12027 # need to make the FD available again.
12028 if test "$no_create" != yes; then
12030 ac_config_status_args=
12031 test "$silent" = yes &&
12032 ac_config_status_args="$ac_config_status_args --quiet"
12034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12037 # would make configure fail if this is the last instruction.
12038 $ac_cs_success || { (exit 1); exit 1; }
12042 ac_config_commands="$ac_config_commands default-1"