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"
2000 || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 cat >conftest.$ac_ext <<_ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2053 grep -v '^ *+' conftest.er1 >conftest.err
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag"
2059 || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082 if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS=$ac_save_CFLAGS
2084 elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2091 if test "$GCC" = yes; then
2097 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 ac_cv_prog_cc_stdc=no
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2115 struct buf { int x; };
2116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2128 s = g (p, va_arg (v,int));
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not '\xHH' hex character constants.
2135 These don't provoke an error unfortunately, instead are silently treated
2136 as 'x'. The following induces an error, until -std1 is added to get
2137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2138 array size at least. It's necessary to write '\x00'==0 to get something
2139 that's true only with -std1. */
2140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2170 grep -v '^ *+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_cv_prog_cc_stdc=$ac_arg
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2195 rm -f conftest.err conftest.$ac_objext
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2202 case "x$ac_cv_prog_cc_stdc" in
2204 echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2207 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 # Some people use a C++ compiler to compile C. Since we use `exit',
2213 # in C++ we need to declare it. In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2225 grep -v '^ *+' conftest.er1 >conftest.err
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 for ac_declaration in \
2245 'extern "C" void std::exit (int) throw (); using std::exit;' \
2246 'extern "C" void std::exit (int); using std::exit;' \
2247 'extern "C" void exit (int) throw ();' \
2248 'extern "C" void exit (int);' \
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_c_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 if test -n "$ac_declaration"; then
2344 echo '#ifdef __cplusplus' >>confdefs.h
2345 echo $ac_declaration >>confdefs.h
2346 echo '#endif' >>confdefs.h
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2370 echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2404 if test -z "$ac_cv_prog_CC"; then
2406 # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_ac_ct_CC="gcc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2446 if test -z "$CC"; then
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}cc; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2452 if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465 ac_cv_prog_CC="${ac_tool_prefix}cc"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 if test -n "$CC"; then
2476 echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6
2479 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2484 if test -z "$ac_cv_prog_CC"; then
2486 # Extract the first word of "cc", so it can be a program name with args.
2487 set dummy cc; ac_word=$2
2488 echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$ac_ct_CC"; then
2494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 ac_cv_prog_ac_ct_CC="cc"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2515 echo "${ECHO_T}$ac_ct_CC" >&6
2517 echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test $ac_prog_rejected = yes; then
2558 # We found a bogon in the path, so make sure we never use it.
2559 set dummy $ac_cv_prog_CC
2561 if test $# != 0; then
2562 # We chose a different compiler from the bogus one.
2563 # However, it has the same basename, so the bogon will be chosen
2564 # first if we set CC to just the basename; use the full file name.
2566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 if test -n "$CC"; then
2573 echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2581 if test -z "$CC"; then
2582 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2587 echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 if test -n "$CC"; then
2613 echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2620 test -n "$CC" && break
2623 if test -z "$CC"; then
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_ac_ct_CC="$ac_prog"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6
2658 echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2662 test -n "$ac_ct_CC" && break
2671 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: no acceptable C compiler found in \$PATH
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2677 # Provide some information about the compiler.
2678 echo "$as_me:$LINENO:" \
2679 "checking for C compiler version" >&5
2680 ac_compiler=`set X $ac_compile; echo $2`
2681 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2682 (eval $ac_compiler --version </dev/null >&5) 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2687 (eval $ac_compiler -v </dev/null >&5) 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2692 (eval $ac_compiler -V </dev/null >&5) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2697 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2828 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_cv_prog_cc_stdc=no
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2858 s = g (p, va_arg (v,int));
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std1 is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std1. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 # Don't try gcc -ansi; that turns off useful extensions and
2887 # breaks some systems' header files.
2888 # AIX -qlanglvl=ansi
2889 # Ultrix and OSF/1 -std1
2890 # HP-UX 10.20 and later -Ae
2891 # HP-UX older versions -Aa -D_HPUX_SOURCE
2892 # SVR4 -Xc -D__EXTENSIONS__
2893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 ac_cv_prog_cc_stdc=$ac_arg
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext
2927 rm -f conftest.$ac_ext conftest.$ac_objext
2932 case "x$ac_cv_prog_cc_stdc" in
2934 echo "$as_me:$LINENO: result: none needed" >&5
2935 echo "${ECHO_T}none needed" >&6 ;;
2937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2939 CC="$CC $ac_cv_prog_cc_stdc" ;;
2942 # Some people use a C++ compiler to compile C. Since we use `exit',
2943 # in C++ we need to declare it. In case someone uses the same compiler
2944 # for both compiling C and C++ we need to have the C++ compiler decide
2945 # the declaration of exit, since it's the most demanding environment.
2946 cat >conftest.$ac_ext <<_ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 for ac_declaration in \
2975 'extern "C" void std::exit (int) throw (); using std::exit;' \
2976 'extern "C" void std::exit (int); using std::exit;' \
2977 'extern "C" void exit (int) throw ();' \
2978 'extern "C" void exit (int);' \
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 if test -n "$ac_declaration"; then
3074 echo '#ifdef __cplusplus' >>confdefs.h
3075 echo $ac_declaration >>confdefs.h
3076 echo '#endif' >>confdefs.h
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3095 # Check whether --with-optimization or --without-optimization was given.
3096 if test "${with_optimization+set}" = set; then
3097 withval="$with_optimization"
3098 unet_cv_optimization=$withval
3100 unet_cv_optimization='-O3'
3102 echo "$as_me:$LINENO: checking optimization level" >&5
3103 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
3104 if test "${unet_cv_optimization+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 unet_cv_optimization='-O3'
3109 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
3110 echo "${ECHO_T}$unet_cv_optimization" >&6
3111 if test "x$unet_cv_optimization" = "xno" ; then
3112 unet_cv_optimization=""
3114 if test x"$CFLAGS" != x; then
3115 CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
3117 if test x"$CFLAGS" != x; then
3118 unet_old_cflags=$CFLAGS
3119 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
3121 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3122 # If -g was already there, force symbols to be enabled
3123 unet_cv_enable_symbols=yes
3125 if test x"$CFLAGS" != x; then
3126 unet_old_cflags=$CFLAGS
3127 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
3129 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3130 # If -pg was already there, force profiling to be enabled
3131 unet_cv_enable_profile=yes
3133 if test x"$CFLAGS" != x; then
3134 unet_old_cflags=$CFLAGS
3135 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
3137 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3138 # If -Wall was already there, force warnings to be enabled
3139 unet_cv_enable_warnings=yes
3141 if test x"$CFLAGS" != x; then
3142 unet_old_cflags=$CFLAGS
3143 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
3145 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3146 # If -pedantic was already there, force pedatic to be enabled
3147 unet_cv_enable_pedantic=yes
3152 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3153 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3154 if test "${ac_cv_search_crypt+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_func_search_save_LIBS=$LIBS
3158 ac_cv_search_crypt=no
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3166 /* Override any gcc2 internal prototype to avoid an error. */
3170 /* We use char because int might match the return type of a gcc2
3171 builtin and then its argument prototype would still apply. */
3181 rm -f conftest.$ac_objext conftest$ac_exeext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag"
3191 || test ! -s conftest.err'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest$ac_exeext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 ac_cv_search_crypt="none required"
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f conftest.err conftest.$ac_objext \
3210 conftest$ac_exeext conftest.$ac_ext
3211 if test "$ac_cv_search_crypt" = no; then
3212 for ac_lib in descrypt crypt; do
3213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3221 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3236 rm -f conftest.$ac_objext conftest$ac_exeext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3238 (eval $ac_link) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_search_crypt="-l$ac_lib"
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3265 rm -f conftest.err conftest.$ac_objext \
3266 conftest$ac_exeext conftest.$ac_ext
3269 LIBS=$ac_func_search_save_LIBS
3271 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3272 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3273 if test "$ac_cv_search_crypt" != no; then
3274 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3277 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3278 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3279 { (exit 1); exit 1; }; }
3284 # Most operating systems have gethostbyname() in the default searched
3285 # libraries (i.e. libc):
3286 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3287 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3288 if test "${ac_cv_func_gethostbyname+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3299 #define gethostbyname innocuous_gethostbyname
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char gethostbyname (); below.
3303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 <limits.h> exists even on freestanding compilers. */
3307 # include <limits.h>
3309 # include <assert.h>
3312 #undef gethostbyname
3314 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3321 char gethostbyname ();
3322 /* The GNU C library defines this for functions which it implements
3323 to always fail with ENOSYS. Some functions are actually named
3324 something starting with __ and the normal name is an alias. */
3325 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3328 char (*f) () = gethostbyname;
3337 return f != gethostbyname;
3342 rm -f conftest.$ac_objext conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest$ac_exeext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_func_gethostbyname=yes
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 ac_cv_func_gethostbyname=no
3371 rm -f conftest.err conftest.$ac_objext \
3372 conftest$ac_exeext conftest.$ac_ext
3374 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3375 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3376 if test $ac_cv_func_gethostbyname = yes; then
3379 # Some OSes (eg. Solaris) place it in libnsl:
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3383 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_check_lib_save_LIBS=$LIBS
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname ();
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest$ac_exeext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_lib_nsl_gethostbyname=yes
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_cv_lib_nsl_gethostbyname=no
3439 rm -f conftest.err conftest.$ac_objext \
3440 conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3444 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3445 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define HAVE_LIBNSL 1
3453 # Some strange OSes (SINIX) have it in libsocket:
3455 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char gethostbyname ();
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest$ac_exeext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 ac_cv_lib_socket_gethostbyname=yes
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 ac_cv_lib_socket_gethostbyname=no
3513 rm -f conftest.err conftest.$ac_objext \
3514 conftest$ac_exeext conftest.$ac_ext
3515 LIBS=$ac_check_lib_save_LIBS
3517 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3518 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3519 if test $ac_cv_lib_socket_gethostbyname = yes; then
3520 cat >>confdefs.h <<_ACEOF
3521 #define HAVE_LIBSOCKET 1
3524 LIBS="-lsocket $LIBS"
3527 # Unfortunately libsocket sometimes depends on libnsl.
3528 # AC_CHECK_LIB's API is essentially broken so the following
3529 # ugliness is necessary:
3530 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3531 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3532 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 ac_check_lib_save_LIBS=$LIBS
3536 LIBS="-lsocket -lnsl $LIBS"
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3550 char gethostbyname ();
3559 rm -f conftest.$ac_objext conftest$ac_exeext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561 (eval $ac_link) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest$ac_exeext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_lib_socket_gethostbyname=yes
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 ac_cv_lib_socket_gethostbyname=no
3588 rm -f conftest.err conftest.$ac_objext \
3589 conftest$ac_exeext conftest.$ac_ext
3590 LIBS=$ac_check_lib_save_LIBS
3592 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3593 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3594 if test $ac_cv_lib_socket_gethostbyname = yes; then
3595 LIBS="-lsocket -lnsl $LIBS"
3598 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3599 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3600 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 ac_check_lib_save_LIBS=$LIBS
3604 LIBS="-lresolv $LIBS"
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3612 /* Override any gcc2 internal prototype to avoid an error. */
3616 /* We use char because int might match the return type of a gcc2
3617 builtin and then its argument prototype would still apply. */
3618 char gethostbyname ();
3627 rm -f conftest.$ac_objext conftest$ac_exeext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629 (eval $ac_link) 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest$ac_exeext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_lib_resolv_gethostbyname=yes
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_lib_resolv_gethostbyname=no
3656 rm -f conftest.err conftest.$ac_objext \
3657 conftest$ac_exeext conftest.$ac_ext
3658 LIBS=$ac_check_lib_save_LIBS
3660 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3661 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3662 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3663 cat >>confdefs.h <<_ACEOF
3664 #define HAVE_LIBRESOLV 1
3667 LIBS="-lresolv $LIBS"
3682 echo "$as_me:$LINENO: checking for socket" >&5
3683 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3684 if test "${ac_cv_func_socket+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3695 #define socket innocuous_socket
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char socket (); below.
3699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 <limits.h> exists even on freestanding compilers. */
3703 # include <limits.h>
3705 # include <assert.h>
3710 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3718 /* The GNU C library defines this for functions which it implements
3719 to always fail with ENOSYS. Some functions are actually named
3720 something starting with __ and the normal name is an alias. */
3721 #if defined (__stub_socket) || defined (__stub___socket)
3724 char (*f) () = socket;
3738 rm -f conftest.$ac_objext conftest$ac_exeext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_func_socket=yes
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 ac_cv_func_socket=no
3767 rm -f conftest.err conftest.$ac_objext \
3768 conftest$ac_exeext conftest.$ac_ext
3770 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3771 echo "${ECHO_T}$ac_cv_func_socket" >&6
3772 if test $ac_cv_func_socket = yes; then
3776 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3777 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3778 if test "${ac_cv_lib_socket_socket+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_check_lib_save_LIBS=$LIBS
3782 LIBS="-lsocket $LIBS"
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3790 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_lib_socket_socket=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_cv_lib_socket_socket=no
3834 rm -f conftest.err conftest.$ac_objext \
3835 conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3838 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3839 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3840 if test $ac_cv_lib_socket_socket = yes; then
3841 cat >>confdefs.h <<_ACEOF
3842 #define HAVE_LIBSOCKET 1
3845 LIBS="-lsocket $LIBS"
3848 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3849 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3850 if test "${ac_cv_lib_socket_socket+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 ac_check_lib_save_LIBS=$LIBS
3854 LIBS="-lsocket -lnsl $LIBS"
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3862 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3877 rm -f conftest.$ac_objext conftest$ac_exeext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879 (eval $ac_link) 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag"
3887 || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest$ac_exeext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_lib_socket_socket=yes
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 ac_cv_lib_socket_socket=no
3906 rm -f conftest.err conftest.$ac_objext \
3907 conftest$ac_exeext conftest.$ac_ext
3908 LIBS=$ac_check_lib_save_LIBS
3910 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3911 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3912 if test $ac_cv_lib_socket_socket = yes; then
3913 LIBS="-lsocket -lnsl $LIBS"
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3928 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3929 # On Suns, sometimes $CPP names a directory.
3930 if test -n "$CPP" && test -d "$CPP"; then
3933 if test -z "$CPP"; then
3934 if test "${ac_cv_prog_CPP+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 # Double quotes because CPP needs to be expanded
3938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3941 for ac_c_preproc_warn_flag in '' yes
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3956 # include <limits.h>
3958 # include <assert.h>
3962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev/null; then
3970 if test -s conftest.err; then
3971 ac_cpp_err=$ac_c_preproc_warn_flag
3972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3979 if test -z "$ac_cpp_err"; then
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 # Broken: fails on valid input.
3988 rm -f conftest.err conftest.$ac_ext
3990 # OK, works on sane cases. Now check whether non-existent headers
3991 # can be detected and how.
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <ac_nonexistent.h>
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null; then
4008 if test -s conftest.err; then
4009 ac_cpp_err=$ac_c_preproc_warn_flag
4010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017 if test -z "$ac_cpp_err"; then
4018 # Broken: success on invalid input.
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 # Passes both tests.
4028 rm -f conftest.err conftest.$ac_ext
4031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032 rm -f conftest.err conftest.$ac_ext
4033 if $ac_preproc_ok; then
4045 echo "$as_me:$LINENO: result: $CPP" >&5
4046 echo "${ECHO_T}$CPP" >&6
4048 for ac_c_preproc_warn_flag in '' yes
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4063 # include <limits.h>
4065 # include <assert.h>
4069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev/null; then
4077 if test -s conftest.err; then
4078 ac_cpp_err=$ac_c_preproc_warn_flag
4079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4086 if test -z "$ac_cpp_err"; then
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 # Broken: fails on valid input.
4095 rm -f conftest.err conftest.$ac_ext
4097 # OK, works on sane cases. Now check whether non-existent headers
4098 # can be detected and how.
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <ac_nonexistent.h>
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4124 if test -z "$ac_cpp_err"; then
4125 # Broken: success on invalid input.
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 # Passes both tests.
4135 rm -f conftest.err conftest.$ac_ext
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then
4143 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4144 See \`config.log' for more details." >&5
4145 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4146 See \`config.log' for more details." >&2;}
4147 { (exit 1); exit 1; }; }
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 echo "$as_me:$LINENO: checking for egrep" >&5
4158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4159 if test "${ac_cv_prog_egrep+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4163 then ac_cv_prog_egrep='grep -E'
4164 else ac_cv_prog_egrep='egrep'
4167 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4168 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4169 EGREP=$ac_cv_prog_egrep
4172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4174 if test "${ac_cv_header_stdc+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4196 rm -f conftest.$ac_objext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198 (eval $ac_compile) 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -z "$ac_c_werror_flag"
4206 || test ! -s conftest.err'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_header_stdc=yes
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ac_cv_header_stdc=no
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227 if test $ac_cv_header_stdc = yes; then
4228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "memchr" >/dev/null 2>&1; then
4242 ac_cv_header_stdc=no
4248 if test $ac_cv_header_stdc = yes; then
4249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "free" >/dev/null 2>&1; then
4263 ac_cv_header_stdc=no
4269 if test $ac_cv_header_stdc = yes; then
4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271 if test "$cross_compiling" = yes; then
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 # define ISLOWER(c) \
4286 (('a' <= (c) && (c) <= 'i') \
4287 || ('j' <= (c) && (c) <= 'r') \
4288 || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 for (i = 0; i < 256; i++)
4298 if (XOR (islower (i), ISLOWER (i))
4299 || toupper (i) != TOUPPER (i))
4304 rm -f conftest$ac_exeext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306 (eval $ac_link) 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4317 echo "$as_me: program exited with status $ac_status" >&5
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_cv_header_stdc=no
4324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4329 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4330 if test $ac_cv_header_stdc = yes; then
4332 cat >>confdefs.h <<\_ACEOF
4333 #define STDC_HEADERS 1
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4349 inttypes.h stdint.h unistd.h
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4365 #include <$ac_header>
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4371 grep -v '^ *+' conftest.er1 >conftest.err
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -z "$ac_c_werror_flag"
4377 || test ! -s conftest.err'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; } &&
4383 { ac_try='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 eval "$as_ac_Header=yes"
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 eval "$as_ac_Header=no"
4396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 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
4422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432 # Is the header compilable?
4433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4442 #include <$ac_header>
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1 >conftest.err
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_header_compiler=yes
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_header_compiler=no
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <$ac_header>
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4505 if test -z "$ac_cpp_err"; then
4506 ac_header_preproc=yes
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_header_preproc=no
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4517 # So? What about this header?
4518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4524 ac_header_preproc=yes
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4541 ## ------------------------------------------ ##
4542 ## Report this to the AC_PACKAGE_NAME lists. ##
4543 ## ------------------------------------------ ##
4546 sed "s/^/$as_me: WARNING: /" >&2
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 eval "$as_ac_Header=\$ac_header_preproc"
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4571 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4572 if test "${ac_cv_c_bigendian+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 # See if sys/param.h defines the BYTE_ORDER macro.
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <sys/types.h>
4583 #include <sys/param.h>
4588 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 # It does; now see whether it defined to BIG_ENDIAN or not.
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #include <sys/types.h>
4626 #include <sys/param.h>
4631 #if BYTE_ORDER != BIG_ENDIAN
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_c_bigendian=yes
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_cv_c_bigendian=no
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 # It does not; compile a test program.
4674 if test "$cross_compiling" = yes; then
4675 # try to guess the endianness by grepping values into an object file
4676 ac_cv_c_bigendian=unknown
4677 cat >conftest.$ac_ext <<_ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4684 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4685 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4686 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4687 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4688 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4692 _ascii (); _ebcdic ();
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4720 ac_cv_c_bigendian=yes
4722 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4723 if test "$ac_cv_c_bigendian" = unknown; then
4724 ac_cv_c_bigendian=no
4726 # finding both strings is unlikely to happen, but who knows?
4727 ac_cv_c_bigendian=unknown
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4746 /* Are we little or big endian? From Harbison&Steele. */
4750 char c[sizeof (long)];
4753 exit (u.c[sizeof (long) - 1] == 1);
4756 rm -f conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_c_bigendian=no
4769 echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4774 ac_cv_c_bigendian=yes
4776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4782 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4783 case $ac_cv_c_bigendian in
4786 cat >>confdefs.h <<\_ACEOF
4787 #define WORDS_BIGENDIAN 1
4793 { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797 { (exit 1); exit 1; }; } ;;
4800 echo "$as_me:$LINENO: checking for size_t" >&5
4801 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4802 if test "${ac_cv_type_size_t+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_includes_default
4817 if (sizeof (size_t))
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_cv_type_size_t=yes
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_cv_type_size_t=no
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4855 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4856 if test $ac_cv_type_size_t = yes; then
4860 cat >>confdefs.h <<_ACEOF
4861 #define size_t unsigned
4866 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4867 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4868 if test "${ac_cv_header_time+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <sys/types.h>
4878 #include <sys/time.h>
4884 if ((struct tm *) 0)
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_header_time=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_cv_header_time=no
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4922 echo "${ECHO_T}$ac_cv_header_time" >&6
4923 if test $ac_cv_header_time = yes; then
4925 cat >>confdefs.h <<\_ACEOF
4926 #define TIME_WITH_SYS_TIME 1
4931 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4933 if test "${ac_cv_struct_tm+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4948 struct tm *tp; tp->tm_sec;
4953 rm -f conftest.$ac_objext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_struct_tm=time.h
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 ac_cv_struct_tm=sys/time.h
4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4986 if test $ac_cv_struct_tm = sys/time.h; then
4988 cat >>confdefs.h <<\_ACEOF
4989 #define TM_IN_SYS_TIME 1
4994 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4995 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4996 if test "${ac_cv_type_uid_t+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <sys/types.h>
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "uid_t" >/dev/null 2>&1; then
5010 ac_cv_type_uid_t=yes
5017 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5018 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5019 if test $ac_cv_type_uid_t = no; then
5021 cat >>confdefs.h <<\_ACEOF
5026 cat >>confdefs.h <<\_ACEOF
5032 echo "$as_me:$LINENO: checking for short" >&5
5033 echo $ECHO_N "checking for short... $ECHO_C" >&6
5034 if test "${ac_cv_type_short+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag"
5065 || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_type_short=yes
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5087 echo "${ECHO_T}$ac_cv_type_short" >&6
5089 echo "$as_me:$LINENO: checking size of short" >&5
5090 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5091 if test "${ac_cv_sizeof_short+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 if test "$ac_cv_type_short" = yes; then
5095 # The cast to unsigned long works around a bug in the HP C Compiler
5096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5098 # This bug is HP SR number 8606223364.
5099 if test "$cross_compiling" = yes; then
5100 # Depending upon the size, compute the lo and hi bounds.
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5111 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5142 cat >conftest.$ac_ext <<_ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5152 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_hi=$ac_mid; break
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_lo=`expr $ac_mid + 1`
5187 if test $ac_lo -le $ac_mid; then
5191 ac_mid=`expr 2 '*' $ac_mid + 1`
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5209 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 $ac_includes_default
5250 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_lo=$ac_mid; break
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_hi=`expr '(' $ac_mid ')' - 1`
5285 if test $ac_mid -le $ac_hi; then
5289 ac_mid=`expr 2 '*' $ac_mid`
5291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 # Binary search between lo and hi bounds.
5303 while test "x$ac_lo" != "x$ac_hi"; do
5304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5315 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_lo=`expr '(' $ac_mid ')' + 1`
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ?*) ac_cv_sizeof_short=$ac_lo;;
5355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: cannot compute sizeof (short), 77
5358 See \`config.log' for more details." >&2;}
5359 { (exit 1); exit 1; }; } ;;
5362 if test "$cross_compiling" = yes; then
5363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5364 See \`config.log' for more details." >&5
5365 echo "$as_me: error: cannot run test program while cross compiling
5366 See \`config.log' for more details." >&2;}
5367 { (exit 1); exit 1; }; }
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5376 long longval () { return (long) (sizeof (short)); }
5377 unsigned long ulongval () { return (long) (sizeof (short)); }
5384 FILE *f = fopen ("conftest.val", "w");
5387 if (((long) (sizeof (short))) < 0)
5389 long i = longval ();
5390 if (i != ((long) (sizeof (short))))
5392 fprintf (f, "%ld\n", i);
5396 unsigned long i = ulongval ();
5397 if (i != ((long) (sizeof (short))))
5399 fprintf (f, "%lu\n", i);
5401 exit (ferror (f) || fclose (f) != 0);
5407 rm -f conftest$ac_exeext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5409 (eval $ac_link) 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_sizeof_short=`cat conftest.val`
5420 echo "$as_me: program exited with status $ac_status" >&5
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5426 See \`config.log' for more details." >&5
5427 echo "$as_me: error: cannot compute sizeof (short), 77
5428 See \`config.log' for more details." >&2;}
5429 { (exit 1); exit 1; }; }
5431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5436 ac_cv_sizeof_short=0
5439 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5440 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5441 cat >>confdefs.h <<_ACEOF
5442 #define SIZEOF_SHORT $ac_cv_sizeof_short
5446 echo "$as_me:$LINENO: checking for int" >&5
5447 echo $ECHO_N "checking for int... $ECHO_C" >&6
5448 if test "${ac_cv_type_int+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5501 echo "${ECHO_T}$ac_cv_type_int" >&6
5503 echo "$as_me:$LINENO: checking size of int" >&5
5504 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5505 if test "${ac_cv_sizeof_int+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 if test "$ac_cv_type_int" = yes; then
5509 # The cast to unsigned long works around a bug in the HP C Compiler
5510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5512 # This bug is HP SR number 8606223364.
5513 if test "$cross_compiling" = yes; then
5514 # Depending upon the size, compute the lo and hi bounds.
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))) >= 0)];
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"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest.$ac_objext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5566 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5573 rm -f conftest.$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_hi=$ac_mid; break
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 ac_lo=`expr $ac_mid + 1`
5601 if test $ac_lo -le $ac_mid; then
5605 ac_mid=`expr 2 '*' $ac_mid + 1`
5607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 $ac_includes_default
5623 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5664 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag"
5681 || test ! -s conftest.err'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest.$ac_objext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_lo=$ac_mid; break
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_hi=`expr '(' $ac_mid ')' - 1`
5699 if test $ac_mid -le $ac_hi; then
5703 ac_mid=`expr 2 '*' $ac_mid`
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716 # Binary search between lo and hi bounds.
5717 while test "x$ac_lo" != "x$ac_hi"; do
5718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5719 cat >conftest.$ac_ext <<_ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 $ac_includes_default
5729 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ac_lo=`expr '(' $ac_mid ')' + 1`
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768 ?*) ac_cv_sizeof_int=$ac_lo;;
5769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5770 See \`config.log' for more details." >&5
5771 echo "$as_me: error: cannot compute sizeof (int), 77
5772 See \`config.log' for more details." >&2;}
5773 { (exit 1); exit 1; }; } ;;
5776 if test "$cross_compiling" = yes; then
5777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: cannot run test program while cross compiling
5780 See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5790 long longval () { return (long) (sizeof (int)); }
5791 unsigned long ulongval () { return (long) (sizeof (int)); }
5798 FILE *f = fopen ("conftest.val", "w");
5801 if (((long) (sizeof (int))) < 0)
5803 long i = longval ();
5804 if (i != ((long) (sizeof (int))))
5806 fprintf (f, "%ld\n", i);
5810 unsigned long i = ulongval ();
5811 if (i != ((long) (sizeof (int))))
5813 fprintf (f, "%lu\n", i);
5815 exit (ferror (f) || fclose (f) != 0);
5821 rm -f conftest$ac_exeext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5823 (eval $ac_link) 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_sizeof_int=`cat conftest.val`
5834 echo "$as_me: program exited with status $ac_status" >&5
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5840 See \`config.log' for more details." >&5
5841 echo "$as_me: error: cannot compute sizeof (int), 77
5842 See \`config.log' for more details." >&2;}
5843 { (exit 1); exit 1; }; }
5845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5854 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_INT $ac_cv_sizeof_int
5860 echo "$as_me:$LINENO: checking for long" >&5
5861 echo $ECHO_N "checking for long... $ECHO_C" >&6
5862 if test "${ac_cv_type_long+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 $ac_includes_default
5883 rm -f conftest.$ac_objext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5915 echo "${ECHO_T}$ac_cv_type_long" >&6
5917 echo "$as_me:$LINENO: checking size of long" >&5
5918 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5919 if test "${ac_cv_sizeof_long+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 if test "$ac_cv_type_long" = yes; then
5923 # The cast to unsigned long works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 if test "$cross_compiling" = yes; then
5928 # Depending upon the size, compute the lo and hi bounds.
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5939 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5980 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_hi=$ac_mid; break
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_lo=`expr $ac_mid + 1`
6015 if test $ac_lo -le $ac_mid; then
6019 ac_mid=`expr 2 '*' $ac_mid + 1`
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 cat >conftest.$ac_ext <<_ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 $ac_includes_default
6037 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6078 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6085 rm -f conftest.$ac_objext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087 (eval $ac_compile) 2>conftest.er1
6089 grep -v '^ *+' conftest.er1 >conftest.err
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -z "$ac_c_werror_flag"
6095 || test ! -s conftest.err'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 ac_lo=$ac_mid; break
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_hi=`expr '(' $ac_mid ')' - 1`
6113 if test $ac_mid -le $ac_hi; then
6117 ac_mid=`expr 2 '*' $ac_mid`
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6130 # Binary search between lo and hi bounds.
6131 while test "x$ac_lo" != "x$ac_hi"; do
6132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6143 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152 (eval $ac_compile) 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try='test -s conftest.$ac_objext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_lo=`expr '(' $ac_mid ')' + 1`
6179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 ?*) ac_cv_sizeof_long=$ac_lo;;
6183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6184 See \`config.log' for more details." >&5
6185 echo "$as_me: error: cannot compute sizeof (long), 77
6186 See \`config.log' for more details." >&2;}
6187 { (exit 1); exit 1; }; } ;;
6190 if test "$cross_compiling" = yes; then
6191 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6192 See \`config.log' for more details." >&5
6193 echo "$as_me: error: cannot run test program while cross compiling
6194 See \`config.log' for more details." >&2;}
6195 { (exit 1); exit 1; }; }
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 $ac_includes_default
6204 long longval () { return (long) (sizeof (long)); }
6205 unsigned long ulongval () { return (long) (sizeof (long)); }
6212 FILE *f = fopen ("conftest.val", "w");
6215 if (((long) (sizeof (long))) < 0)
6217 long i = longval ();
6218 if (i != ((long) (sizeof (long))))
6220 fprintf (f, "%ld\n", i);
6224 unsigned long i = ulongval ();
6225 if (i != ((long) (sizeof (long))))
6227 fprintf (f, "%lu\n", i);
6229 exit (ferror (f) || fclose (f) != 0);
6235 rm -f conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_cv_sizeof_long=`cat conftest.val`
6248 echo "$as_me: program exited with status $ac_status" >&5
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6254 See \`config.log' for more details." >&5
6255 echo "$as_me: error: cannot compute sizeof (long), 77
6256 See \`config.log' for more details." >&2;}
6257 { (exit 1); exit 1; }; }
6259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6268 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6269 cat >>confdefs.h <<_ACEOF
6270 #define SIZEOF_LONG $ac_cv_sizeof_long
6274 echo "$as_me:$LINENO: checking for void *" >&5
6275 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6276 if test "${ac_cv_type_void_p+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6291 if (sizeof (void *))
6297 rm -f conftest.$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_type_void_p=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_cv_type_void_p=no
6326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6329 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6331 echo "$as_me:$LINENO: checking size of void *" >&5
6332 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6333 if test "${ac_cv_sizeof_void_p+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 if test "$ac_cv_type_void_p" = yes; then
6337 # The cast to unsigned long works around a bug in the HP C Compiler
6338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6340 # This bug is HP SR number 8606223364.
6341 if test "$cross_compiling" = yes; then
6342 # Depending upon the size, compute the lo and hi bounds.
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6353 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362 (eval $ac_compile) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 $ac_includes_default
6394 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_hi=$ac_mid; break
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 ac_lo=`expr $ac_mid + 1`
6429 if test $ac_lo -le $ac_mid; then
6433 ac_mid=`expr 2 '*' $ac_mid + 1`
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 $ac_includes_default
6451 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 $ac_includes_default
6492 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag"
6509 || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_lo=$ac_mid; break
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_hi=`expr '(' $ac_mid ')' - 1`
6527 if test $ac_mid -le $ac_hi; then
6531 ac_mid=`expr 2 '*' $ac_mid`
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544 # Binary search between lo and hi bounds.
6545 while test "x$ac_lo" != "x$ac_hi"; do
6546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6557 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_lo=`expr '(' $ac_mid ')' + 1`
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6598 See \`config.log' for more details." >&5
6599 echo "$as_me: error: cannot compute sizeof (void *), 77
6600 See \`config.log' for more details." >&2;}
6601 { (exit 1); exit 1; }; } ;;
6604 if test "$cross_compiling" = yes; then
6605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6606 See \`config.log' for more details." >&5
6607 echo "$as_me: error: cannot run test program while cross compiling
6608 See \`config.log' for more details." >&2;}
6609 { (exit 1); exit 1; }; }
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 $ac_includes_default
6618 long longval () { return (long) (sizeof (void *)); }
6619 unsigned long ulongval () { return (long) (sizeof (void *)); }
6626 FILE *f = fopen ("conftest.val", "w");
6629 if (((long) (sizeof (void *))) < 0)
6631 long i = longval ();
6632 if (i != ((long) (sizeof (void *))))
6634 fprintf (f, "%ld\n", i);
6638 unsigned long i = ulongval ();
6639 if (i != ((long) (sizeof (void *))))
6641 fprintf (f, "%lu\n", i);
6643 exit (ferror (f) || fclose (f) != 0);
6649 rm -f conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_sizeof_void_p=`cat conftest.val`
6662 echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6668 See \`config.log' for more details." >&5
6669 echo "$as_me: error: cannot compute sizeof (void *), 77
6670 See \`config.log' for more details." >&2;}
6671 { (exit 1); exit 1; }; }
6673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6678 ac_cv_sizeof_void_p=0
6681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6682 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6683 cat >>confdefs.h <<_ACEOF
6684 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6688 echo "$as_me:$LINENO: checking for int64_t" >&5
6689 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6690 if test "${ac_cv_type_int64_t+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
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
6705 if (sizeof (int64_t))
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6715 grep -v '^ *+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_type_int64_t=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_type_int64_t=no
6740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6742 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6743 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6745 echo "$as_me:$LINENO: checking size of int64_t" >&5
6746 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6747 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 if test "$ac_cv_type_int64_t" = yes; then
6751 # The cast to unsigned long works around a bug in the HP C Compiler
6752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754 # This bug is HP SR number 8606223364.
6755 if test "$cross_compiling" = yes; then
6756 # Depending upon the size, compute the lo and hi bounds.
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6767 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6774 rm -f conftest.$ac_objext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6776 (eval $ac_compile) 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -z "$ac_c_werror_flag"
6784 || test ! -s conftest.err'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 $ac_includes_default
6808 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag"
6825 || test ! -s conftest.err'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_hi=$ac_mid; break
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_lo=`expr $ac_mid + 1`
6843 if test $ac_lo -le $ac_mid; then
6847 ac_mid=`expr 2 '*' $ac_mid + 1`
6849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6865 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6906 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6913 rm -f conftest.$ac_objext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915 (eval $ac_compile) 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -z "$ac_c_werror_flag"
6923 || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_lo=$ac_mid; break
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ac_hi=`expr '(' $ac_mid ')' - 1`
6941 if test $ac_mid -le $ac_hi; then
6945 ac_mid=`expr 2 '*' $ac_mid`
6947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6958 # Binary search between lo and hi bounds.
6959 while test "x$ac_lo" != "x$ac_hi"; do
6960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6961 cat >conftest.$ac_ext <<_ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 $ac_includes_default
6971 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>conftest.er1
6982 grep -v '^ *+' conftest.er1 >conftest.err
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag"
6988 || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_lo=`expr '(' $ac_mid ')' + 1`
7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7012 See \`config.log' for more details." >&5
7013 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7014 See \`config.log' for more details." >&2;}
7015 { (exit 1); exit 1; }; } ;;
7018 if test "$cross_compiling" = yes; then
7019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7020 See \`config.log' for more details." >&5
7021 echo "$as_me: error: cannot run test program while cross compiling
7022 See \`config.log' for more details." >&2;}
7023 { (exit 1); exit 1; }; }
7025 cat >conftest.$ac_ext <<_ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 long longval () { return (long) (sizeof (int64_t)); }
7033 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
7040 FILE *f = fopen ("conftest.val", "w");
7043 if (((long) (sizeof (int64_t))) < 0)
7045 long i = longval ();
7046 if (i != ((long) (sizeof (int64_t))))
7048 fprintf (f, "%ld\n", i);
7052 unsigned long i = ulongval ();
7053 if (i != ((long) (sizeof (int64_t))))
7055 fprintf (f, "%lu\n", i);
7057 exit (ferror (f) || fclose (f) != 0);
7063 rm -f conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_sizeof_int64_t=`cat conftest.val`
7076 echo "$as_me: program exited with status $ac_status" >&5
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7082 See \`config.log' for more details." >&5
7083 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7084 See \`config.log' for more details." >&2;}
7085 { (exit 1); exit 1; }; }
7087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7092 ac_cv_sizeof_int64_t=0
7095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7096 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7097 cat >>confdefs.h <<_ACEOF
7098 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7102 echo "$as_me:$LINENO: checking for long long" >&5
7103 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7104 if test "${ac_cv_type_long_long+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7117 if ((long long *) 0)
7119 if (sizeof (long long))
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_type_long_long=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_type_long_long=no
7154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7157 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7159 echo "$as_me:$LINENO: checking size of long long" >&5
7160 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7161 if test "${ac_cv_sizeof_long_long+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test "$ac_cv_type_long_long" = yes; then
7165 # The cast to unsigned long works around a bug in the HP C Compiler
7166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7168 # This bug is HP SR number 8606223364.
7169 if test "$cross_compiling" = yes; then
7170 # Depending upon the size, compute the lo and hi bounds.
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1 >conftest.err
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7212 cat >conftest.$ac_ext <<_ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 $ac_includes_default
7222 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_c_werror_flag"
7239 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_hi=$ac_mid; break
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7256 ac_lo=`expr $ac_mid + 1`
7257 if test $ac_lo -le $ac_mid; then
7261 ac_mid=`expr 2 '*' $ac_mid + 1`
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 $ac_includes_default
7279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_lo=$ac_mid; break
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_hi=`expr '(' $ac_mid ')' - 1`
7355 if test $ac_mid -le $ac_hi; then
7359 ac_mid=`expr 2 '*' $ac_mid`
7361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 # Binary search between lo and hi bounds.
7373 while test "x$ac_lo" != "x$ac_hi"; do
7374 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7375 cat >conftest.$ac_ext <<_ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 $ac_includes_default
7385 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_lo=`expr '(' $ac_mid ')' + 1`
7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7425 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7426 See \`config.log' for more details." >&5
7427 echo "$as_me: error: cannot compute sizeof (long long), 77
7428 See \`config.log' for more details." >&2;}
7429 { (exit 1); exit 1; }; } ;;
7432 if test "$cross_compiling" = yes; then
7433 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7434 See \`config.log' for more details." >&5
7435 echo "$as_me: error: cannot run test program while cross compiling
7436 See \`config.log' for more details." >&2;}
7437 { (exit 1); exit 1; }; }
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 $ac_includes_default
7446 long longval () { return (long) (sizeof (long long)); }
7447 unsigned long ulongval () { return (long) (sizeof (long long)); }
7454 FILE *f = fopen ("conftest.val", "w");
7457 if (((long) (sizeof (long long))) < 0)
7459 long i = longval ();
7460 if (i != ((long) (sizeof (long long))))
7462 fprintf (f, "%ld\n", i);
7466 unsigned long i = ulongval ();
7467 if (i != ((long) (sizeof (long long))))
7469 fprintf (f, "%lu\n", i);
7471 exit (ferror (f) || fclose (f) != 0);
7477 rm -f conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_sizeof_long_long=`cat conftest.val`
7490 echo "$as_me: program exited with status $ac_status" >&5
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7496 See \`config.log' for more details." >&5
7497 echo "$as_me: error: cannot compute sizeof (long long), 77
7498 See \`config.log' for more details." >&2;}
7499 { (exit 1); exit 1; }; }
7501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7506 ac_cv_sizeof_long_long=0
7509 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7510 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7511 cat >>confdefs.h <<_ACEOF
7512 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7516 if test "$ac_cv_sizeof_int" = 2 ; then
7517 echo "$as_me:$LINENO: checking for int16_t" >&5
7518 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7519 if test "${ac_cv_type_int16_t+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7534 if (sizeof (int16_t))
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_type_int16_t=yes
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_type_int16_t=no
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7571 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7572 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7573 if test $ac_cv_type_int16_t = yes; then
7577 cat >>confdefs.h <<_ACEOF
7583 echo "$as_me:$LINENO: checking for uint16_t" >&5
7584 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7585 if test "${ac_cv_type_uint16_t+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7600 if (sizeof (uint16_t))
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_type_uint16_t=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_type_uint16_t=no
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7638 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7639 if test $ac_cv_type_uint16_t = yes; then
7643 cat >>confdefs.h <<_ACEOF
7644 #define uint16_t unsigned int
7649 elif test "$ac_cv_sizeof_short" = 2 ; then
7650 echo "$as_me:$LINENO: checking for int16_t" >&5
7651 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7652 if test "${ac_cv_type_int16_t+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 cat >conftest.$ac_ext <<_ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 $ac_includes_default
7667 if (sizeof (int16_t))
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675 (eval $ac_compile) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest.$ac_objext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_cv_type_int16_t=yes
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_cv_type_int16_t=no
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7705 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7706 if test $ac_cv_type_int16_t = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define int16_t short
7716 echo "$as_me:$LINENO: checking for uint16_t" >&5
7717 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7718 if test "${ac_cv_type_uint16_t+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7733 if (sizeof (uint16_t))
7739 rm -f conftest.$ac_objext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest.$ac_objext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_type_uint16_t=yes
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_type_uint16_t=no
7768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7770 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7771 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7772 if test $ac_cv_type_uint16_t = yes; then
7776 cat >>confdefs.h <<_ACEOF
7777 #define uint16_t unsigned short
7783 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7784 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7785 { (exit 1); exit 1; }; }
7787 if test "$ac_cv_sizeof_int" = 4 ; then
7788 echo "$as_me:$LINENO: checking for int32_t" >&5
7789 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7790 if test "${ac_cv_type_int32_t+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7805 if (sizeof (int32_t))
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_type_int32_t=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_type_int32_t=no
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7843 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7844 if test $ac_cv_type_int32_t = yes; then
7848 cat >>confdefs.h <<_ACEOF
7854 echo "$as_me:$LINENO: checking for uint32_t" >&5
7855 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7856 if test "${ac_cv_type_uint32_t+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 cat >conftest.$ac_ext <<_ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 $ac_includes_default
7871 if (sizeof (uint32_t))
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest.$ac_objext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_type_uint32_t=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_cv_type_uint32_t=no
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7909 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7910 if test $ac_cv_type_uint32_t = yes; then
7914 cat >>confdefs.h <<_ACEOF
7915 #define uint32_t unsigned int
7920 elif test "$ac_cv_sizeof_short" = 4 ; then
7921 echo "$as_me:$LINENO: checking for int32_t" >&5
7922 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7923 if test "${ac_cv_type_int32_t+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 $ac_includes_default
7938 if (sizeof (int32_t))
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_type_int32_t=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_type_int32_t=no
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7976 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7977 if test $ac_cv_type_int32_t = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define int32_t short
7987 echo "$as_me:$LINENO: checking for uint32_t" >&5
7988 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7989 if test "${ac_cv_type_uint32_t+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
8004 if (sizeof (uint32_t))
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_type_uint32_t=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_type_uint32_t=no
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8042 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8043 if test $ac_cv_type_uint32_t = yes; then
8047 cat >>confdefs.h <<_ACEOF
8048 #define uint32_t unsigned short
8053 elif test "$ac_cv_sizeof_long" = 4 ; then
8054 echo "$as_me:$LINENO: checking for int32_t" >&5
8055 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8056 if test "${ac_cv_type_int32_t+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 $ac_includes_default
8071 if (sizeof (int32_t))
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_type_int32_t=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_type_int32_t=no
8106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8109 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8110 if test $ac_cv_type_int32_t = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define int32_t long
8120 echo "$as_me:$LINENO: checking for uint32_t" >&5
8121 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8122 if test "${ac_cv_type_uint32_t+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8137 if (sizeof (uint32_t))
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145 (eval $ac_compile) 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag"
8153 || test ! -s conftest.err'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try='test -s conftest.$ac_objext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_type_uint32_t=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 ac_cv_type_uint32_t=no
8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8175 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8176 if test $ac_cv_type_uint32_t = yes; then
8180 cat >>confdefs.h <<_ACEOF
8181 #define uint32_t unsigned long
8187 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8188 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8189 { (exit 1); exit 1; }; }
8191 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8192 echo "$as_me:$LINENO: checking for int64_t" >&5
8193 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8194 if test "${ac_cv_type_int64_t+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 $ac_includes_default
8209 if (sizeof (int64_t))
8215 rm -f conftest.$ac_objext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8217 (eval $ac_compile) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_cv_type_int64_t=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_type_int64_t=no
8244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8246 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8247 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8249 echo "$as_me:$LINENO: checking for uint64_t" >&5
8250 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8251 if test "${ac_cv_type_uint64_t+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8266 if (sizeof (uint64_t))
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_type_uint64_t=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_cv_type_uint64_t=no
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8304 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8306 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8307 echo "$as_me:$LINENO: checking for int64_t" >&5
8308 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8309 if test "${ac_cv_type_int64_t+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8324 if (sizeof (int64_t))
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -z "$ac_c_werror_flag"
8340 || test ! -s conftest.err'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try='test -s conftest.$ac_objext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_type_int64_t=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_type_int64_t=no
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8362 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8363 if test $ac_cv_type_int64_t = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define int64_t long long
8373 echo "$as_me:$LINENO: checking for uint64_t" >&5
8374 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8375 if test "${ac_cv_type_uint64_t+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8390 if (sizeof (uint64_t))
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_type_uint64_t=yes
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 ac_cv_type_uint64_t=no
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8428 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8429 if test $ac_cv_type_uint64_t = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define uint64_t unsigned long long
8440 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8441 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8442 { (exit 1); exit 1; }; }
8444 echo "$as_me:$LINENO: checking for socklen_t" >&5
8445 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8446 if test "${ac_cv_type_socklen_t+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8459 if ((socklen_t *) 0)
8461 if (sizeof (socklen_t))
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag"
8477 || test ! -s conftest.err'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; } &&
8483 { ac_try='test -s conftest.$ac_objext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_type_socklen_t=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_type_socklen_t=no
8496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8499 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8500 if test $ac_cv_type_socklen_t = yes; then
8504 cat >>confdefs.h <<_ACEOF
8505 #define socklen_t unsigned int
8510 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8511 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8512 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <netinet/in.h>
8527 if ((struct sockaddr_in6 *) 0)
8529 if (sizeof (struct sockaddr_in6))
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_type_struct_sockaddr_in6=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_type_struct_sockaddr_in6=no
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8567 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8568 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8569 unet_have_sockaddr_in6="yes"
8571 unet_have_sockaddr_in6="no"
8579 for ac_func in kqueue setrlimit getrusage times
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:$LINENO: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8595 #define $ac_func innocuous_$ac_func
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char $ac_func (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8603 # include <limits.h>
8605 # include <assert.h>
8610 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8624 char (*f) () = $ac_func;
8633 return f != $ac_func;
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 eval "$as_ac_var=yes"
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 eval "$as_ac_var=no"
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8672 if test `eval echo '${'$as_ac_var'}'` = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8681 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8682 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8683 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 #include <sys/types.h>
8693 #include <sys/wait.h>
8695 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8698 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8706 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_header_sys_wait_h=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_header_sys_wait_h=no
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8743 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8744 if test $ac_cv_header_sys_wait_h = yes; then
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_SYS_WAIT_H 1
8753 for ac_header in unistd.h
8755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #include <$ac_header>
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_header_compiler=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_header_compiler=no
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <$ac_header>
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } >/dev/null; then
8829 if test -s conftest.err; then
8830 ac_cpp_err=$ac_c_preproc_warn_flag
8831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8838 if test -z "$ac_cpp_err"; then
8839 ac_header_preproc=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_header_preproc=no
8846 rm -f conftest.err conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8850 # So? What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857 ac_header_preproc=yes
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists. ##
8876 ## ------------------------------------------ ##
8879 sed "s/^/$as_me: WARNING: /" >&2
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 eval "$as_ac_Header=\$ac_header_preproc"
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8903 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8904 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 if test "$cross_compiling" = yes; then
8908 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8909 See \`config.log' for more details." >&5
8910 echo "$as_me: error: cannot run test program while cross compiling
8911 See \`config.log' for more details." >&2;}
8912 { (exit 1); exit 1; }; }
8914 cat >conftest.$ac_ext <<_ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 /* Exit 0 (true) if wait returns something other than -1,
8921 i.e. the pid of the child, which means that wait was restarted
8922 after getting the signal. */
8924 #include <sys/types.h>
8927 # include <unistd.h>
8930 # include <sys/wait.h>
8933 /* Some platforms explicitly require an extern "C" signal handler
8936 extern "C" void ucatch (int dummy) { }
8938 void ucatch (dummy) int dummy; { }
8944 int i = fork (), status;
8949 kill (getppid (), SIGINT);
8954 signal (SIGINT, ucatch);
8960 exit (status == -1);
8963 rm -f conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_sys_restartable_syscalls=yes
8976 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_sys_restartable_syscalls=no
8983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8987 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8988 if test $ac_cv_sys_restartable_syscalls = yes; then
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_RESTARTABLE_SYSCALLS 1
8997 echo "$as_me:$LINENO: checking for donuts" >&5
8998 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8999 echo "$as_me:$LINENO: result: yes" >&5
9000 echo "${ECHO_T}yes" >&6
9002 for ac_prog in gawk mawk nawk awk
9004 # Extract the first word of "$ac_prog", so it can be a program name with args.
9005 set dummy $ac_prog; ac_word=$2
9006 echo "$as_me:$LINENO: checking for $ac_word" >&5
9007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008 if test "${ac_cv_prog_AWK+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 if test -n "$AWK"; then
9012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021 ac_cv_prog_AWK="$ac_prog"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 if test -n "$AWK"; then
9032 echo "$as_me:$LINENO: result: $AWK" >&5
9033 echo "${ECHO_T}$AWK" >&6
9035 echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9039 test -n "$AWK" && break
9042 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9043 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9044 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9045 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 cat >conftest.make <<\_ACEOF
9050 @echo 'ac_maketemp="$(MAKE)"'
9052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9053 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9054 if test -n "$ac_maketemp"; then
9055 eval ac_cv_prog_make_${ac_make}_set=yes
9057 eval ac_cv_prog_make_${ac_make}_set=no
9061 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9062 echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6
9066 echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068 SET_MAKE="MAKE=${MAKE-make}"
9071 # Find a good install program. We prefer a C program (faster),
9072 # so one script is as good as another. But avoid the broken or
9073 # incompatible versions:
9074 # SysV /etc/install, /usr/sbin/install
9075 # SunOS /usr/etc/install
9076 # IRIX /sbin/install
9078 # AmigaOS /C/install, which installs bootblocks on floppy discs
9079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9082 # OS/2's system install, which has a completely different semantic
9083 # ./install, which can be erroneously created by make from ./install.sh.
9084 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9085 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9086 if test -z "$INSTALL"; then
9087 if test "${ac_cv_path_install+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 test -z "$as_dir" && as_dir=.
9095 # Account for people who put trailing slashes in PATH elements.
9097 ./ | .// | /cC/* | \
9098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9099 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9102 # OSF1 and SCO ODT 3.0 have their own names for install.
9103 # Don't use installbsd from OSF since it installs stuff as root
9105 for ac_prog in ginstall scoinst install; do
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9108 if test $ac_prog = install &&
9109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9110 # AIX install. It has an incompatible calling convention.
9112 elif test $ac_prog = install &&
9113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9114 # program-specific install script used by HP pwplus--don't use.
9117 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9129 if test "${ac_cv_path_install+set}" = set; then
9130 INSTALL=$ac_cv_path_install
9132 # As a last resort, use the slow shell script. We don't cache a
9133 # path for INSTALL within a source directory, because that will
9134 # break other packages using the cache if that directory is
9135 # removed, or if the path is relative.
9136 INSTALL=$ac_install_sh
9139 echo "$as_me:$LINENO: result: $INSTALL" >&5
9140 echo "${ECHO_T}$INSTALL" >&6
9142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9143 # It thinks the first close brace ends the variable substitution.
9144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9150 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9151 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9153 if test "$LN_S" = "ln -s"; then
9154 echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6
9157 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9158 echo "${ECHO_T}no, using $LN_S" >&6
9163 # Extract the first word of "$ac_prog", so it can be a program name with args.
9164 set dummy $ac_prog; ac_word=$2
9165 echo "$as_me:$LINENO: checking for $ac_word" >&5
9166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167 if test "${ac_cv_path_RMPROG+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 RMPROG=$ac_cv_path_RMPROG
9194 if test -n "$RMPROG"; then
9195 echo "$as_me:$LINENO: result: $RMPROG" >&5
9196 echo "${ECHO_T}$RMPROG" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9202 test -n "$RMPROG" && break
9204 test -n "$RMPROG" || RMPROG="/bin/rm"
9208 # Extract the first word of "$ac_prog", so it can be a program name with args.
9209 set dummy $ac_prog; ac_word=$2
9210 echo "$as_me:$LINENO: checking for $ac_word" >&5
9211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212 if test "${ac_cv_path_SHPROG+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 SHPROG=$ac_cv_path_SHPROG
9239 if test -n "$SHPROG"; then
9240 echo "$as_me:$LINENO: result: $SHPROG" >&5
9241 echo "${ECHO_T}$SHPROG" >&6
9243 echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9247 test -n "$SHPROG" && break
9249 test -n "$SHPROG" || SHPROG="/bin/sh"
9252 for ac_prog in flex lex
9254 # Extract the first word of "$ac_prog", so it can be a program name with args.
9255 set dummy $ac_prog; ac_word=$2
9256 echo "$as_me:$LINENO: checking for $ac_word" >&5
9257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9258 if test "${ac_cv_prog_LEX+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 if test -n "$LEX"; then
9262 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271 ac_cv_prog_LEX="$ac_prog"
9272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 if test -n "$LEX"; then
9282 echo "$as_me:$LINENO: result: $LEX" >&5
9283 echo "${ECHO_T}$LEX" >&6
9285 echo "$as_me:$LINENO: result: no" >&5
9286 echo "${ECHO_T}no" >&6
9289 test -n "$LEX" && break
9291 test -n "$LEX" || LEX=":"
9293 if test -z "$LEXLIB"
9295 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9296 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9297 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 ac_check_lib_save_LIBS=$LIBS
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9309 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9328 grep -v '^ *+' conftest.er1 >conftest.err
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag"
9334 || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_fl_yywrap=yes
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_cv_lib_fl_yywrap=no
9353 rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9358 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9359 if test $ac_cv_lib_fl_yywrap = yes; then
9362 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9363 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9364 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 ac_check_lib_save_LIBS=$LIBS
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9376 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_lib_l_yywrap=yes
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_lib_l_yywrap=no
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9425 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9426 if test $ac_cv_lib_l_yywrap = yes; then
9434 if test "x$LEX" != "x:"; then
9435 echo "$as_me:$LINENO: checking lex output file root" >&5
9436 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9437 if test "${ac_cv_prog_lex_root+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 # The minimal lex program is just a single line: %%. But some broken lexes
9441 # (Solaris, I think it was) want two %% lines, so accommodate them.
9442 cat >conftest.l <<_ACEOF
9446 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9447 (eval $LEX conftest.l) 2>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }
9451 if test -f lex.yy.c; then
9452 ac_cv_prog_lex_root=lex.yy
9453 elif test -f lexyy.c; then
9454 ac_cv_prog_lex_root=lexyy
9456 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9457 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9458 { (exit 1); exit 1; }; }
9461 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9462 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9464 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9466 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9467 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9468 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 # POSIX says lex can declare yytext either as a pointer or an array; the
9472 # default is implementation-dependent. Figure out which it is, since
9473 # not all implementations provide the %pointer and %array declarations.
9474 ac_cv_prog_lex_yytext_pointer=no
9475 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9477 LIBS="$LIBS $LEXLIB"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 `cat $LEX_OUTPUT_ROOT.c`
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>conftest.er1
9485 grep -v '^ *+' conftest.er1 >conftest.err
9487 cat conftest.err >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } &&
9490 { ac_try='test -z "$ac_c_werror_flag"
9491 || test ! -s conftest.err'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_prog_lex_yytext_pointer=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9509 rm -f conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9512 rm -f "${LEX_OUTPUT_ROOT}.c"
9515 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9516 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9517 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9519 cat >>confdefs.h <<\_ACEOF
9520 #define YYTEXT_POINTER 1
9526 if test "$LEX" = ":" ; then
9527 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9528 echo "$as_me: error: Cannot find flex." >&2;}
9529 { (exit 1); exit 1; }; }
9530 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9533 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9534 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9535 { (exit 1); exit 1; }; }
9538 if test -z "$LEXLIB" ; then
9539 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9540 It's possible the compiler you're using ($CC) is incompatible with the
9542 See \`config.log' for more details." >&5
9543 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9544 It's possible the compiler you're using ($CC) is incompatible with the
9546 See \`config.log' for more details." >&2;}
9547 { (exit 1); exit 1; }; }
9550 LIBS="$LEXLIB $LIBS"
9552 for ac_prog in 'bison -y' byacc
9554 # Extract the first word of "$ac_prog", so it can be a program name with args.
9555 set dummy $ac_prog; ac_word=$2
9556 echo "$as_me:$LINENO: checking for $ac_word" >&5
9557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9558 if test "${ac_cv_prog_YACC+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 if test -n "$YACC"; then
9562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_YACC="$ac_prog"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 YACC=$ac_cv_prog_YACC
9581 if test -n "$YACC"; then
9582 echo "$as_me:$LINENO: result: $YACC" >&5
9583 echo "${ECHO_T}$YACC" >&6
9585 echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9589 test -n "$YACC" && break
9591 test -n "$YACC" || YACC="yacc"
9593 if test "$YACC" = ":" ; then
9594 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9595 echo "$as_me: error: Cannot find yacc." >&2;}
9596 { (exit 1); exit 1; }; }
9597 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9600 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9601 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9604 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9605 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9606 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test "$cross_compiling" = yes; then
9610 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9611 See \`config.log' for more details." >&5
9612 echo "$as_me: error: cannot run test program while cross compiling
9613 See \`config.log' for more details." >&2;}
9614 { (exit 1); exit 1; }; }
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 #include <sys/types.h>
9623 #include <sys/socket.h>
9625 #include <sys/ioctl.h>
9626 #include <sys/file.h>
9628 $ac_cv_type_signal alarmed() { exit(1); }
9633 size_t l = sizeof(x);
9634 int f = socket(AF_INET, SOCK_DGRAM, 0);
9635 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9637 signal(SIGALRM, alarmed);
9639 recvfrom(f, b, 12, 0, &x, &l);
9646 rm -f conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 unet_cv_sys_nonblocking_posix=yes
9659 echo "$as_me: program exited with status $ac_status" >&5
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9664 unet_cv_sys_nonblocking_posix=no
9666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9670 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9671 if test $unet_cv_sys_nonblocking_posix = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define NBLOCK_POSIX
9678 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9679 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9680 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 if test "$cross_compiling" = yes; then
9684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9685 See \`config.log' for more details." >&5
9686 echo "$as_me: error: cannot run test program while cross compiling
9687 See \`config.log' for more details." >&2;}
9688 { (exit 1); exit 1; }; }
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <sys/types.h>
9697 #include <sys/socket.h>
9699 #include <sys/ioctl.h>
9700 #include <sys/file.h>
9702 $ac_cv_type_signal alarmed() { exit(1); }
9707 size_t l = sizeof(x);
9708 int f = socket(AF_INET, SOCK_DGRAM, 0);
9709 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9711 signal(SIGALRM, alarmed);
9713 recvfrom(f, b, 12, 0, &x, &l);
9720 rm -f conftest$ac_exeext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 unet_cv_sys_nonblocking_bsd=yes
9733 echo "$as_me: program exited with status $ac_status" >&5
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9738 unet_cv_sys_nonblocking_bsd=no
9740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9744 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9745 if test $unet_cv_sys_nonblocking_bsd = yes; then
9747 cat >>confdefs.h <<\_ACEOF
9753 cat >>confdefs.h <<\_ACEOF
9759 echo "$as_me:$LINENO: checking for posix signals" >&5
9760 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9761 if test "${unet_cv_sys_signal_posix+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9774 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 unet_cv_sys_signal_posix=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 unet_cv_sys_signal_posix=no
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9811 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9812 if test $unet_cv_sys_signal_posix = yes; then
9814 cat >>confdefs.h <<\_ACEOF
9815 #define POSIX_SIGNALS
9819 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9820 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9821 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 if test "$cross_compiling" = yes; then
9825 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9826 See \`config.log' for more details." >&5
9827 echo "$as_me: error: cannot run test program while cross compiling
9828 See \`config.log' for more details." >&2;}
9829 { (exit 1); exit 1; }; }
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9839 $ac_cv_type_signal handler()
9843 kill(getpid(), SIGTERM);
9848 signal(SIGTERM, handler);
9849 kill(getpid(), SIGTERM);
9853 rm -f conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 unet_cv_sys_signal_bsd=yes
9866 echo "$as_me: program exited with status $ac_status" >&5
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9871 unet_cv_sys_signal_bsd=no
9873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9877 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9878 if test $unet_cv_sys_signal_bsd = yes; then
9880 cat >>confdefs.h <<\_ACEOF
9881 #define BSD_RELIABLE_SIGNALS
9886 cat >>confdefs.h <<\_ACEOF
9887 #define SYSV_UNRELIABLE_SIGNALS
9893 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9894 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9897 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9898 echo "${ECHO_T}Linux ($host) found." >&6
9899 unet_poll_syscall=yes
9903 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9904 echo "${ECHO_T}Solaris ($host) found." >&6
9905 if test x"$ac_cv_header_poll_h" = xyes; then
9906 unet_poll_syscall=yes
9908 unet_poll_syscall=no
9913 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9914 echo "${ECHO_T}Solaris ($host) found." >&6
9915 unet_poll_syscall=no
9919 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9920 echo "${ECHO_T}OpenBSD ($host) found." >&6
9921 if test x"$ac_cv_header_poll_h" = xyes; then
9922 unet_poll_syscall=yes
9924 unet_poll_syscall=no
9929 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9930 echo "${ECHO_T}Generic BSD ($host) found." >&6
9931 if test x"$ac_cv_header_poll_h" = xyes; then
9932 unet_poll_syscall=yes
9934 unet_poll_syscall=no
9939 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9940 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9941 unet_poll_syscall=no
9945 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9946 echo "${ECHO_T}Unknown system type $host found." >&6
9947 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9948 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9949 unet_poll_syscall=no
9953 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9954 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9955 # Check whether --enable-poll or --disable-poll was given.
9956 if test "${enable_poll+set}" = set; then
9957 enableval="$enable_poll"
9958 unet_cv_enable_poll=$enable_poll
9960 if test "${unet_cv_enable_poll+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 unet_cv_enable_poll=$unet_poll_syscall
9968 # Force poll to be disabled if there is no poll.h
9969 if test x"$ac_cv_header_poll_h" != xyes; then
9970 unet_cv_enable_poll=no
9973 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9974 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9976 if test x"$unet_cv_enable_poll" = xyes; then
9978 cat >>confdefs.h <<\_ACEOF
9982 ENGINE_C=engine_poll.c
9984 ENGINE_C=engine_select.c
9988 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9989 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9990 # Check whether --enable-debug or --disable-debug was given.
9991 if test "${enable_debug+set}" = set; then
9992 enableval="$enable_debug"
9993 unet_cv_enable_debug=$enable_debug
9995 if test "${unet_cv_enable_debug+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 unet_cv_enable_debug=no
10002 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10003 echo "${ECHO_T}$unet_cv_enable_debug" >&6
10005 if test x"$unet_cv_enable_debug" = xyes; then
10007 cat >>confdefs.h <<\_ACEOF
10008 #define DEBUGMODE 1
10013 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10014 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
10016 # Check whether --with-leak-detect or --without-leak-detect was given.
10017 if test "${with_leak_detect+set}" = set; then
10018 withval="$with_leak_detect"
10019 unet_cv_with_leak_detect=$with_leak_detect
10021 if test "${unet_cv_with_leak_detect+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 unet_cv_with_leak_detect=no
10028 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10029 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
10031 if test x"$unet_cv_with_leak_detect" != xno; then
10033 CFLAGS="-DMDEBUG $CFLAGS"
10034 if test x"$unet_cv_with_leak_detect" != xyes; then
10035 LIBS="-L$unet_cv_with_leak_detect $LIBS"
10040 # Check whether --with-ipv6 or --without-ipv6 was given.
10041 if test "${with_ipv6+set}" = set; then
10042 withval="$with_ipv6"
10043 ac_cv_use_ipv6=$withval
10045 ac_cv_use_ipv6=$unet_have_sockaddr_in6
10047 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10048 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
10049 if test "${ac_cv_use_ipv6+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10055 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
10056 if test x"$ac_cv_use_ipv6" != "xno" ; then
10058 cat >>confdefs.h <<\_ACEOF
10064 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10065 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
10066 # Check whether --enable-asserts or --disable-asserts was given.
10067 if test "${enable_asserts+set}" = set; then
10068 enableval="$enable_asserts"
10069 unet_cv_enable_asserts=$enable_asserts
10071 if test "${unet_cv_enable_asserts+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 unet_cv_enable_asserts=yes
10078 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10079 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
10081 if test x"$unet_cv_enable_asserts" = xno; then
10083 cat >>confdefs.h <<\_ACEOF
10089 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
10090 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
10091 # Check whether --enable-symbols or --disable-symbols was given.
10092 if test "${enable_symbols+set}" = set; then
10093 enableval="$enable_symbols"
10094 unet_cv_enable_symbols=$enable_symbols
10096 if test "${unet_cv_enable_symbols+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 unet_cv_enable_symbols=yes
10103 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
10104 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
10106 if test x"$unet_cv_enable_symbols" = xyes; then
10107 CFLAGS="-g $CFLAGS"
10110 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10111 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10112 # Check whether --enable-profile or --disable-profile was given.
10113 if test "${enable_profile+set}" = set; then
10114 enableval="$enable_profile"
10115 unet_cv_enable_profile=$enable_profile
10117 if test "${unet_cv_enable_profile+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 unet_cv_enable_profile=no
10124 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10125 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10127 if test x"$unet_cv_enable_profile" = xyes; then
10128 CFLAGS="-pg $CFLAGS"
10131 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10132 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10133 # Check whether --enable-pedantic or --disable-pedantic was given.
10134 if test "${enable_pedantic+set}" = set; then
10135 enableval="$enable_pedantic"
10136 unet_cv_enable_pedantic=$enable_pedantic
10138 if test "${unet_cv_enable_pedantic+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 unet_cv_enable_pedantic=no
10145 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10146 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10148 if test x"$unet_cv_enable_pedantic" = xyes; then
10149 CFLAGS="-pedantic $CFLAGS"
10152 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10153 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10154 # Check whether --enable-warnings or --disable-warnings was given.
10155 if test "${enable_warnings+set}" = set; then
10156 enableval="$enable_warnings"
10157 unet_cv_enable_warnings=$enable_warnings
10159 if test "${unet_cv_enable_warnings+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 unet_cv_enable_warnings=no
10166 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10167 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10169 if test x"$unet_cv_enable_warnings" = xyes; then
10170 CFLAGS="-Wall $CFLAGS"
10173 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10174 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10175 # Check whether --enable-inlines or --disable-inlines was given.
10176 if test "${enable_inlines+set}" = set; then
10177 enableval="$enable_inlines"
10178 unet_cv_enable_inlines=$enable_inlines
10180 if test "${unet_cv_enable_inlines+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 unet_cv_enable_inlines=yes
10187 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10188 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10190 if test x"$unet_cv_enable_inlines" = xyes; then
10192 cat >>confdefs.h <<\_ACEOF
10193 #define FORCEINLINE 1
10198 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10199 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10200 # Check whether --enable-devpoll or --disable-devpoll was given.
10201 if test "${enable_devpoll+set}" = set; then
10202 enableval="$enable_devpoll"
10203 unet_cv_enable_devpoll=$enable_devpoll
10205 if test "${unet_cv_enable_devpoll+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 unet_cv_enable_devpoll=yes
10213 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10214 unet_cv_enable_devpoll=no
10217 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10218 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10220 if test x"$unet_cv_enable_devpoll" != xno; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define USE_DEVPOLL 1
10226 ENGINE_C="engine_devpoll.c $ENGINE_C"
10229 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10230 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10231 # Check whether --enable-kqueue or --disable-kqueue was given.
10232 if test "${enable_kqueue+set}" = set; then
10233 enableval="$enable_kqueue"
10234 unet_cv_enable_kqueue=$enable_kqueue
10236 if test "${unet_cv_enable_kqueue+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 unet_cv_enable_kqueue=yes
10244 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10245 unet_cv_enable_kqueue=no
10248 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10249 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10251 if test x"$unet_cv_enable_kqueue" != xno; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define USE_KQUEUE 1
10257 ENGINE_C="engine_kqueue.c $ENGINE_C"
10260 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10261 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10262 # Check whether --enable-epoll or --disable-epoll was given.
10263 if test "${enable_epoll+set}" = set; then
10264 enableval="$enable_epoll"
10265 unet_cv_enable_epoll=$enable_epoll
10267 if test "${unet_cv_enable_epoll+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 unet_cv_enable_epoll=yes
10275 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10276 unet_cv_enable_epoll=no
10279 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10280 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10282 if test x"$unet_cv_enable_epoll" != xno; then
10283 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10284 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10291 #include <sys/epoll.h>
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302 (eval $ac_link) 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 echo "$as_me:$LINENO: result: yes" >&5
10323 echo "${ECHO_T}yes" >&6
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10328 echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6
10331 cat >>confdefs.h <<\_ACEOF
10332 #define EPOLL_NEED_BODY 1
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10339 cat >>confdefs.h <<\_ACEOF
10340 #define USE_EPOLL 1
10343 ENGINE_C="engine_epoll.c $ENGINE_C"
10346 echo "$as_me:$LINENO: checking for va_copy" >&5
10347 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10348 if test "${unet_cv_c_va_copy+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <stdarg.h>
10361 va_list ap1, ap2; va_copy(ap1, ap2);
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag"
10376 || test ! -s conftest.err'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try='test -s conftest$ac_exeext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 unet_cv_c_va_copy="yes"
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 unet_cv_c_va_copy="no"
10396 rm -f conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10400 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10401 if test "$unet_cv_c_va_copy" = "yes" ; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define HAVE_VA_COPY 1
10409 echo "$as_me:$LINENO: checking for __va_copy" >&5
10410 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10411 if test "${unet_cv_c___va_copy+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <stdarg.h>
10424 va_list ap1, ap2; __va_copy(ap1, ap2);
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>conftest.er1
10433 grep -v '^ *+' conftest.er1 >conftest.err
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest$ac_exeext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 unet_cv_c___va_copy="yes"
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 unet_cv_c___va_copy="no"
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10463 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10464 if test "$unet_cv_c___va_copy" = "yes" ; then
10466 cat >>confdefs.h <<\_ACEOF
10467 #define HAVE___VA_COPY 1
10472 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10473 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10475 # Check whether --with-symlink or --without-symlink was given.
10476 if test "${with_symlink+set}" = set; then
10477 withval="$with_symlink"
10478 unet_cv_with_symlink=$with_symlink
10480 if test "${unet_cv_with_symlink+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 unet_cv_with_symlink="ircd"
10488 if test x"$unet_cv_with_symlink" = xyes; then
10489 unet_cv_with_symlink="ircd"
10492 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10493 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10495 if test x"$unet_cv_with_symlink" = xno; then
10496 INSTALL_RULE=install-no-symlink
10499 INSTALL_RULE=install-with-symlink
10500 SYMLINK=$unet_cv_with_symlink
10505 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10506 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10508 # Check whether --with-mode or --without-mode was given.
10509 if test "${with_mode+set}" = set; then
10510 withval="$with_mode"
10511 unet_cv_with_mode=$with_mode
10513 if test "${unet_cv_with_mode+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 unet_cv_with_mode=711
10521 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10522 unet_cv_with_mode=711
10525 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10526 echo "${ECHO_T}$unet_cv_with_mode" >&6
10528 IRCDMODE=$unet_cv_with_mode
10531 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10532 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10533 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10535 # Check whether --with-owner or --without-owner was given.
10536 if test "${with_owner+set}" = set; then
10537 withval="$with_owner"
10538 unet_cv_with_owner=$with_owner
10540 if test "${unet_cv_with_owner+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 unet_cv_with_owner=$unet_uid
10548 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10549 unet_cv_with_owner=$unet_uid
10552 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10553 echo "${ECHO_T}$unet_cv_with_owner" >&6
10555 IRCDOWN=$unet_cv_with_owner
10558 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10559 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10560 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10562 # Check whether --with-group or --without-group was given.
10563 if test "${with_group+set}" = set; then
10564 withval="$with_group"
10565 unet_cv_with_group=$with_group
10567 if test "${unet_cv_with_group+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 unet_cv_with_group=$unet_gid
10575 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10576 unet_cv_with_group=$unet_gid
10579 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10580 echo "${ECHO_T}$unet_cv_with_group" >&6
10582 IRCDGRP=$unet_cv_with_group
10586 if test -f /etc/resolv.conf; then
10587 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10588 if test x"$unet_domain" = x; then
10589 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10592 echo "$as_me:$LINENO: checking for site domain name" >&5
10593 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10595 # Check whether --with-domain or --without-domain was given.
10596 if test "${with_domain+set}" = set; then
10597 withval="$with_domain"
10598 unet_cv_with_domain=$with_domain
10600 if test "${unet_cv_with_domain+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 unet_cv_with_domain=$unet_domain
10608 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10609 unet_cv_with_domain=$unet_domain
10611 if test x"$unet_cv_with_domain" = xno; then
10612 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10613 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10614 { (exit 1); exit 1; }; }
10617 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10618 echo "${ECHO_T}$unet_cv_with_domain" >&6
10621 cat >>confdefs.h <<_ACEOF
10622 #define DOMAINNAME "*$unet_cv_with_domain"
10626 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10627 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10629 # Check whether --with-chroot or --without-chroot was given.
10630 if test "${with_chroot+set}" = set; then
10631 withval="$with_chroot"
10632 unet_cv_with_chroot=$with_chroot
10634 if test "${unet_cv_with_chroot+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 unet_cv_with_chroot=no
10642 if test x"$unet_cv_with_chroot" = xyes; then
10643 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10644 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10645 { (exit 1); exit 1; }; }
10648 # Ensure there are no trailing /'s to mess us up
10649 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10651 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10652 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10654 # Deal with the annoying value "NONE" here
10655 unet_save_prefix=$prefix
10656 if test x"$prefix" = xNONE; then
10657 prefix=$ac_default_prefix
10662 unet_save_exec_prefix=$exec_prefix
10663 if test x"$exec_prefix" = xNONE; then
10664 exec_prefix=$prefix
10666 exec_prefix=$exec_prefix
10669 # Obtain the actual interesting directories
10670 unet_bindir=`eval echo "$bindir"`
10671 unet_libdir=`eval echo "$libdir"`
10673 # Restore the original settings of $prefix and $exec_prefix
10674 prefix=$unet_save_prefix
10675 exec_prefix=$unet_save_exec_prefix
10677 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10678 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10679 if test x"$unet_cv_with_symlink" = xno; then
10680 unet_spath="$unet_bindir/ircd"
10682 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10684 echo "$as_me:$LINENO: result: $unet_spath" >&5
10685 echo "${ECHO_T}$unet_spath" >&6
10687 if test x"$unet_cv_with_chroot" != xno; then
10688 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10689 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10691 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10692 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10697 cat >>confdefs.h <<_ACEOF
10698 #define SPATH "$unet_spath"
10702 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10703 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10705 # Check whether --with-dpath or --without-dpath was given.
10706 if test "${with_dpath+set}" = set; then
10707 withval="$with_dpath"
10708 unet_cv_with_dpath=$with_dpath
10710 if test "${unet_cv_with_dpath+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 unet_cv_with_dpath=$unet_libdir
10718 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10719 unet_cv_with_dpath=$unet_libdir
10722 # Ensure there are no trailing /'s to mess us up
10723 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10725 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10726 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10728 if test x"$unet_cv_with_chroot" != xno; then
10729 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10730 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10732 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10733 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10734 { (exit 1); exit 1; }; }
10737 unet_dpath=$unet_cv_with_dpath
10741 cat >>confdefs.h <<_ACEOF
10742 #define DPATH "$unet_dpath"
10746 DPATH=$unet_cv_with_dpath
10749 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10750 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10752 # Check whether --with-cpath or --without-cpath was given.
10753 if test "${with_cpath+set}" = set; then
10754 withval="$with_cpath"
10755 unet_cv_with_cpath=$with_cpath
10757 if test "${unet_cv_with_cpath+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 unet_cv_with_cpath="ircd.conf"
10765 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10766 unet_cv_with_cpath="ircd.conf"
10769 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10770 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10772 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10773 # Absolute path; check against chroot stuff
10774 if test x"$unet_cv_with_chroot" != xno; then
10775 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10776 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10778 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10779 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10780 { (exit 1); exit 1; }; }
10783 unet_cpath=$unet_cv_with_cpath
10786 unet_cpath=$unet_cv_with_cpath
10790 cat >>confdefs.h <<_ACEOF
10791 #define CPATH "$unet_cpath"
10795 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10796 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10798 # Check whether --with-lpath or --without-lpath was given.
10799 if test "${with_lpath+set}" = set; then
10800 withval="$with_lpath"
10801 unet_cv_with_lpath=$with_lpath
10803 if test "${unet_cv_with_lpath+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 unet_cv_with_lpath="ircd.log"
10811 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10812 unet_cv_with_lpath="ircd.log"
10815 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10816 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10818 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10819 # Absolute path; check against chroot stuff
10820 if test x"$unet_cv_with_chroot" != xno; then
10821 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10822 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10824 { 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
10825 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;}
10826 unet_cv_with_lpath="ircd.log"
10827 unet_lpath="ircd.log"
10830 unet_lpath=$unet_cv_with_lpath
10833 unet_lpath=$unet_cv_with_lpath
10837 cat >>confdefs.h <<_ACEOF
10838 #define LPATH "$unet_lpath"
10842 unet_maxcon=`ulimit -Hn`
10843 if test x"$unet_maxcon" = xunlimited; then
10844 unet_maxcon=`ulimit -Sn`
10846 unet_maxcon=`expr $unet_maxcon - 4`
10847 echo "$as_me:$LINENO: checking max connections" >&5
10848 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10850 # Check whether --with-maxcon or --without-maxcon was given.
10851 if test "${with_maxcon+set}" = set; then
10852 withval="$with_maxcon"
10853 unet_cv_with_maxcon=$with_maxcon
10855 if test "${unet_cv_with_maxcon+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 unet_cv_with_maxcon=$unet_maxcon
10863 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10864 unet_cv_with_maxcon=$unet_maxcon
10867 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10868 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10871 cat >>confdefs.h <<_ACEOF
10872 #define MAXCONNECTIONS $unet_cv_with_maxcon
10876 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10877 ac_config_commands="$ac_config_commands default"
10878 cat >confcache <<\_ACEOF
10879 # This file is a shell script that caches the results of configure
10880 # tests run on this system so they can be shared between configure
10881 # scripts and configure runs, see configure's option --config-cache.
10882 # It is not useful on other systems. If it contains results you don't
10883 # want to keep, you may remove or edit it.
10885 # config.status only pays attention to the cache file if you give it
10886 # the --recheck option to rerun configure.
10888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10890 # following values.
10894 # The following way of writing the cache mishandles newlines in values,
10895 # but we know of no workaround that is simple, portable, and efficient.
10896 # So, don't put newlines in cache variables' values.
10897 # Ultrix sh set writes to stderr and can't be redirected directly,
10898 # and sets the high bit in the cache file unless we assign to the vars.
10901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10903 # `set' does not quote correctly, so add quotes (double-quote
10904 # substitution turns \\\\ into \\, and sed turns \\ into \).
10907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10910 # `set' quotes correctly as required by POSIX, so do not add quotes.
10912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10923 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10924 if test -w $cache_file; then
10925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10926 cat confcache >$cache_file
10928 echo "not updating unwritable cache $cache_file"
10933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10934 # Let make expand exec_prefix.
10935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10939 # trailing colons and then remove the whole line if VPATH becomes empty
10940 # (actually we leave an empty line to preserve line numbers).
10941 if test "x$srcdir" = x.; then
10942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10943 s/:*\$(srcdir):*/:/;
10944 s/:*\${srcdir}:*/:/;
10946 s/^\([^=]*=[ ]*\):*/\1/;
10952 DEFS=-DHAVE_CONFIG_H
10956 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10957 # 1. Remove the extension, and $U if already installed.
10958 ac_i=`echo "$ac_i" |
10959 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10961 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10962 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10964 LIBOBJS=$ac_libobjs
10966 LTLIBOBJS=$ac_ltlibobjs
10970 : ${CONFIG_STATUS=./config.status}
10971 ac_clean_files_save=$ac_clean_files
10972 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10973 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10974 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10975 cat >$CONFIG_STATUS <<_ACEOF
10977 # Generated by $as_me.
10978 # Run this file to recreate the current configuration.
10979 # Compiler output produced by configure, useful for debugging
10980 # configure, is in config.log if it exists.
10983 ac_cs_recheck=false
10985 SHELL=\${CONFIG_SHELL-$SHELL}
10988 cat >>$CONFIG_STATUS <<\_ACEOF
10989 ## --------------------- ##
10990 ## M4sh Initialization. ##
10991 ## --------------------- ##
10993 # Be Bourne compatible
10994 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10997 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10998 # is contrary to our usage. Disable this feature.
10999 alias -g '${1+"$@"}'='"$@"'
11000 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11003 DUALCASE=1; export DUALCASE # for MKS sh
11005 # Support unset when possible.
11006 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11013 # Work around bugs in pre-3.0 UWIN ksh.
11014 $as_unset ENV MAIL MAILPATH
11021 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11022 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11023 LC_TELEPHONE LC_TIME
11025 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11026 eval $as_var=C; export $as_var
11032 # Required to use basename.
11033 if expr a : '\(a\)' >/dev/null 2>&1; then
11039 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11040 as_basename=basename
11046 # Name of the executable.
11047 as_me=`$as_basename "$0" ||
11048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11049 X"$0" : 'X\(//\)$' \| \
11050 X"$0" : 'X\(/\)$' \| \
11051 . : '\(.\)' 2>/dev/null ||
11053 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11054 /^X\/\(\/\/\)$/{ s//\1/; q; }
11055 /^X\/\(\/\).*/{ s//\1/; q; }
11059 # PATH needs CR, and LINENO needs CR and PATH.
11060 # Avoid depending upon Character Ranges.
11061 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11062 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11063 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11064 as_cr_digits='0123456789'
11065 as_cr_alnum=$as_cr_Letters$as_cr_digits
11067 # The user is always right.
11068 if test "${PATH_SEPARATOR+set}" != set; then
11069 echo "#! /bin/sh" >conf$$.sh
11070 echo "exit 0" >>conf$$.sh
11072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11081 as_lineno_1=$LINENO
11082 as_lineno_2=$LINENO
11083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11084 test "x$as_lineno_1" != "x$as_lineno_2" &&
11085 test "x$as_lineno_3" = "x$as_lineno_2" || {
11086 # Find who we are. Look in the path if we contain no path at all
11089 *[\\/]* ) as_myself=$0 ;;
11090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11094 test -z "$as_dir" && as_dir=.
11095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11100 # We did not find ourselves, most probably we were run as `sh COMMAND'
11101 # in which case we are not to be found in the path.
11102 if test "x$as_myself" = x; then
11105 if test ! -f "$as_myself"; then
11106 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11107 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11108 { (exit 1); exit 1; }; }
11110 case $CONFIG_SHELL in
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11116 test -z "$as_dir" && as_dir=.
11117 for as_base in sh bash ksh sh5; do
11120 if ("$as_dir/$as_base" -c '
11121 as_lineno_1=$LINENO
11122 as_lineno_2=$LINENO
11123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11124 test "x$as_lineno_1" != "x$as_lineno_2" &&
11125 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11126 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11127 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11128 CONFIG_SHELL=$as_dir/$as_base
11129 export CONFIG_SHELL
11130 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11139 # uniformly replaced by the line number. The first 'sed' inserts a
11140 # line-number line before each line; the second 'sed' does the real
11141 # work. The second script uses 'N' to pair each line-number line
11142 # with the numbered line, and appends trailing '-' during
11143 # substitution so that $LINENO is not a special case at line end.
11144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11145 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11146 sed '=' <$as_myself |
11151 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11154 s,^['$as_cr_digits']*\n,,
11155 ' >$as_me.lineno &&
11156 chmod +x $as_me.lineno ||
11157 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11158 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11159 { (exit 1); exit 1; }; }
11161 # Don't try to exec as it changes $[0], causing all sort of problems
11162 # (the dirname of $[0] is not the place where we might find the
11163 # original and so on. Autoconf is especially sensible to this).
11165 # Exit status is that of the last command.
11170 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11171 *c*,-n*) ECHO_N= ECHO_C='
11173 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11174 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11177 if expr a : '\(a\)' >/dev/null 2>&1; then
11183 rm -f conf$$ conf$$.exe conf$$.file
11185 if ln -s conf$$.file conf$$ 2>/dev/null; then
11186 # We could just check for DJGPP; but this test a) works b) is more generic
11187 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11188 if test -f conf$$.exe; then
11189 # Don't use ln at all; we don't have any links
11194 elif ln conf$$.file conf$$ 2>/dev/null; then
11199 rm -f conf$$ conf$$.exe conf$$.file
11201 if mkdir -p . 2>/dev/null; then
11204 test -d ./-p && rmdir ./-p
11208 as_executable_p="test -f"
11210 # Sed expression to map a string onto a valid CPP name.
11211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11213 # Sed expression to map a string onto a valid variable name.
11214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11218 # We need space, tab and new line, in precisely that order.
11228 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11229 # report actual input values of CONFIG_FILES etc. instead of their
11230 # values after options handling. Logging --version etc. is OK.
11234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11235 ## Running $as_me. ##
11240 This file was extended by $as_me, which was
11241 generated by GNU Autoconf 2.59. Invocation command line was
11243 CONFIG_FILES = $CONFIG_FILES
11244 CONFIG_HEADERS = $CONFIG_HEADERS
11245 CONFIG_LINKS = $CONFIG_LINKS
11246 CONFIG_COMMANDS = $CONFIG_COMMANDS
11250 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11254 # Files that config.status was made for.
11255 if test -n "$ac_config_files"; then
11256 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11259 if test -n "$ac_config_headers"; then
11260 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11263 if test -n "$ac_config_links"; then
11264 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11267 if test -n "$ac_config_commands"; then
11268 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11271 cat >>$CONFIG_STATUS <<\_ACEOF
11274 \`$as_me' instantiates files from templates according to the
11275 current configuration.
11277 Usage: $0 [OPTIONS] [FILE]...
11279 -h, --help print this help, then exit
11280 -V, --version print version number, then exit
11281 -q, --quiet do not print progress messages
11282 -d, --debug don't remove temporary files
11283 --recheck update $as_me by reconfiguring in the same conditions
11284 --file=FILE[:TEMPLATE]
11285 instantiate the configuration file FILE
11286 --header=FILE[:TEMPLATE]
11287 instantiate the configuration header FILE
11289 Configuration files:
11292 Configuration headers:
11295 Configuration commands:
11298 Report bugs to <bug-autoconf@gnu.org>."
11301 cat >>$CONFIG_STATUS <<_ACEOF
11304 configured by $0, generated by GNU Autoconf 2.59,
11305 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11307 Copyright (C) 2003 Free Software Foundation, Inc.
11308 This config.status script is free software; the Free Software Foundation
11309 gives unlimited permission to copy, distribute and modify it."
11314 cat >>$CONFIG_STATUS <<\_ACEOF
11315 # If no file are specified by the user, then we need to provide default
11316 # value. By we need to know if files were specified by the user.
11322 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11323 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11331 *) # This is not an option, so the user has probably given explicit
11334 ac_need_defaults=false;;
11338 # Handling of the options.
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11343 --version | --vers* | -V )
11344 echo "$ac_cs_version"; exit 0 ;;
11346 # Conflict between --help and --header
11347 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11348 Try \`$0 --help' for more information." >&5
11349 echo "$as_me: error: ambiguous option: $1
11350 Try \`$0 --help' for more information." >&2;}
11351 { (exit 1); exit 1; }; };;
11352 --help | --hel | -h )
11353 echo "$ac_cs_usage"; exit 0 ;;
11354 --debug | --d* | -d )
11356 --file | --fil | --fi | --f )
11358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11359 ac_need_defaults=false;;
11360 --header | --heade | --head | --hea )
11362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11363 ac_need_defaults=false;;
11364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11368 # This is an error.
11369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11370 Try \`$0 --help' for more information." >&5
11371 echo "$as_me: error: unrecognized option: $1
11372 Try \`$0 --help' for more information." >&2;}
11373 { (exit 1); exit 1; }; } ;;
11375 *) ac_config_targets="$ac_config_targets $1" ;;
11381 ac_configure_extra_args=
11383 if $ac_cs_silent; then
11385 ac_configure_extra_args="$ac_configure_extra_args --silent"
11389 cat >>$CONFIG_STATUS <<_ACEOF
11390 if \$ac_cs_recheck; then
11391 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11392 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11401 cat >>$CONFIG_STATUS <<\_ACEOF
11402 for ac_config_target in $ac_config_targets
11404 case "$ac_config_target" in
11405 # Handling of arguments.
11406 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11407 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11408 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11409 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11411 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11414 { (exit 1); exit 1; }; };;
11418 # If the user did not use the arguments to specify the items to instantiate,
11419 # then the envvar interface is used. Set only those that are not.
11420 # We use the long form for the default assignment because of an extremely
11421 # bizarre bug on SunOS 4.1.3.
11422 if $ac_need_defaults; then
11423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11428 # Have a temporary directory for convenience. Make it in the build tree
11429 # simply because there is no reason to put it here, and in addition,
11430 # creating and moving files from /tmp can sometimes cause problems.
11431 # Create a temporary directory, and hook for its removal unless debugging.
11434 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11435 trap '{ (exit 1); exit 1; }' 1 2 13 15
11438 # Create a (secure) tmp directory for tmp files.
11441 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11442 test -n "$tmp" && test -d "$tmp"
11445 tmp=./confstat$$-$RANDOM
11446 (umask 077 && mkdir $tmp)
11449 echo "$me: cannot create a temporary directory in ." >&2
11450 { (exit 1); exit 1; }
11455 cat >>$CONFIG_STATUS <<_ACEOF
11458 # CONFIG_FILES section.
11461 # No need to generate the scripts if there are no CONFIG_FILES.
11462 # This happens for instance when ./config.status config.h
11463 if test -n "\$CONFIG_FILES"; then
11464 # Protect against being on the right side of a sed subst in config.status.
11465 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11466 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11467 s,@SHELL@,$SHELL,;t t
11468 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11469 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11470 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11471 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11472 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11473 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11474 s,@exec_prefix@,$exec_prefix,;t t
11475 s,@prefix@,$prefix,;t t
11476 s,@program_transform_name@,$program_transform_name,;t t
11477 s,@bindir@,$bindir,;t t
11478 s,@sbindir@,$sbindir,;t t
11479 s,@libexecdir@,$libexecdir,;t t
11480 s,@datadir@,$datadir,;t t
11481 s,@sysconfdir@,$sysconfdir,;t t
11482 s,@sharedstatedir@,$sharedstatedir,;t t
11483 s,@localstatedir@,$localstatedir,;t t
11484 s,@libdir@,$libdir,;t t
11485 s,@includedir@,$includedir,;t t
11486 s,@oldincludedir@,$oldincludedir,;t t
11487 s,@infodir@,$infodir,;t t
11488 s,@mandir@,$mandir,;t t
11489 s,@build_alias@,$build_alias,;t t
11490 s,@host_alias@,$host_alias,;t t
11491 s,@target_alias@,$target_alias,;t t
11492 s,@DEFS@,$DEFS,;t t
11493 s,@ECHO_C@,$ECHO_C,;t t
11494 s,@ECHO_N@,$ECHO_N,;t t
11495 s,@ECHO_T@,$ECHO_T,;t t
11496 s,@LIBS@,$LIBS,;t t
11497 s,@build@,$build,;t t
11498 s,@build_cpu@,$build_cpu,;t t
11499 s,@build_vendor@,$build_vendor,;t t
11500 s,@build_os@,$build_os,;t t
11501 s,@host@,$host,;t t
11502 s,@host_cpu@,$host_cpu,;t t
11503 s,@host_vendor@,$host_vendor,;t t
11504 s,@host_os@,$host_os,;t t
11506 s,@CFLAGS@,$CFLAGS,;t t
11507 s,@LDFLAGS@,$LDFLAGS,;t t
11508 s,@CPPFLAGS@,$CPPFLAGS,;t t
11509 s,@ac_ct_CC@,$ac_ct_CC,;t t
11510 s,@EXEEXT@,$EXEEXT,;t t
11511 s,@OBJEXT@,$OBJEXT,;t t
11513 s,@EGREP@,$EGREP,;t t
11515 s,@SET_MAKE@,$SET_MAKE,;t t
11516 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11517 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11518 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11519 s,@LN_S@,$LN_S,;t t
11520 s,@RMPROG@,$RMPROG,;t t
11521 s,@SHPROG@,$SHPROG,;t t
11523 s,@LEXLIB@,$LEXLIB,;t t
11524 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11525 s,@YACC@,$YACC,;t t
11526 s,@ENGINE_C@,$ENGINE_C,;t t
11527 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11528 s,@SYMLINK@,$SYMLINK,;t t
11529 s,@IRCDMODE@,$IRCDMODE,;t t
11530 s,@IRCDOWN@,$IRCDOWN,;t t
11531 s,@IRCDGRP@,$IRCDGRP,;t t
11532 s,@DPATH@,$DPATH,;t t
11533 s,@LIBOBJS@,$LIBOBJS,;t t
11534 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11539 cat >>$CONFIG_STATUS <<\_ACEOF
11540 # Split the substitutions into bite-sized pieces for seds with
11541 # small command number limits, like on Digital OSF/1 and HP-UX.
11542 ac_max_sed_lines=48
11543 ac_sed_frag=1 # Number of current file.
11544 ac_beg=1 # First line for current file.
11545 ac_end=$ac_max_sed_lines # Line after last line for current file.
11548 while $ac_more_lines; do
11549 if test $ac_beg -gt 1; then
11550 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11552 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11554 if test ! -s $tmp/subs.frag; then
11555 ac_more_lines=false
11557 # The purpose of the label and of the branching condition is to
11558 # speed up the sed processing (if there are no `@' at all, there
11559 # is no need to browse any of the substitutions).
11560 # These are the two extra sed commands mentioned above.
11562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11563 if test -z "$ac_sed_cmds"; then
11564 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11566 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11568 ac_sed_frag=`expr $ac_sed_frag + 1`
11570 ac_end=`expr $ac_end + $ac_max_sed_lines`
11573 if test -z "$ac_sed_cmds"; then
11576 fi # test -n "$CONFIG_FILES"
11579 cat >>$CONFIG_STATUS <<\_ACEOF
11580 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11583 - | *:- | *:-:* ) # input from stdin
11585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11589 * ) ac_file_in=$ac_file.in ;;
11592 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595 X"$ac_file" : 'X\(//\)[^/]' \| \
11596 X"$ac_file" : 'X\(//\)$' \| \
11597 X"$ac_file" : 'X\(/\)' \| \
11598 . : '\(.\)' 2>/dev/null ||
11600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11602 /^X\(\/\/\)$/{ s//\1/; q; }
11603 /^X\(\/\).*/{ s//\1/; q; }
11605 { if $as_mkdir_p; then
11610 while test ! -d "$as_dir"; do
11611 as_dirs="$as_dir $as_dirs"
11612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614 X"$as_dir" : 'X\(//\)[^/]' \| \
11615 X"$as_dir" : 'X\(//\)$' \| \
11616 X"$as_dir" : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11625 test ! -n "$as_dirs" || mkdir $as_dirs
11626 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11628 { (exit 1); exit 1; }; }; }
11632 if test "$ac_dir" != .; then
11633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634 # A "../" for each directory in $ac_dir_suffix.
11635 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11637 ac_dir_suffix= ac_top_builddir=
11641 .) # No --srcdir option. We are building in place.
11643 if test -z "$ac_top_builddir"; then
11646 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11648 [\\/]* | ?:[\\/]* ) # Absolute path.
11649 ac_srcdir=$srcdir$ac_dir_suffix;
11650 ac_top_srcdir=$srcdir ;;
11651 *) # Relative path.
11652 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11653 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11656 # Do not use `cd foo && pwd` to compute absolute paths, because
11657 # the directories may not exist.
11659 .) ac_abs_builddir="$ac_dir";;
11662 .) ac_abs_builddir=`pwd`;;
11663 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11664 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11667 case $ac_abs_builddir in
11668 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11670 case ${ac_top_builddir}. in
11671 .) ac_abs_top_builddir=$ac_abs_builddir;;
11672 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11673 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11676 case $ac_abs_builddir in
11677 .) ac_abs_srcdir=$ac_srcdir;;
11680 .) ac_abs_srcdir=$ac_abs_builddir;;
11681 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11682 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11685 case $ac_abs_builddir in
11686 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11688 case $ac_top_srcdir in
11689 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11690 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11691 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11698 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11701 if test x"$ac_file" != x-; then
11702 { echo "$as_me:$LINENO: creating $ac_file" >&5
11703 echo "$as_me: creating $ac_file" >&6;}
11706 # Let's still pretend it is `configure' which instantiates (i.e., don't
11707 # use $as_me), people would be surprised to read:
11708 # /* config.h. Generated by config.status. */
11709 if test x"$ac_file" = x-; then
11712 configure_input="$ac_file. "
11714 configure_input=$configure_input"Generated from `echo $ac_file_in |
11715 sed 's,.*/,,'` by configure."
11717 # First look for the input files in the build tree, otherwise in the
11719 ac_file_inputs=`IFS=:
11720 for f in $ac_file_in; do
11722 -) echo $tmp/stdin ;;
11724 # Absolute (can't be DOS-style, as IFS=:)
11725 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11726 echo "$as_me: error: cannot find input file: $f" >&2;}
11727 { (exit 1); exit 1; }; }
11730 if test -f "$f"; then
11733 elif test -f "$srcdir/$f"; then
11738 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11739 echo "$as_me: error: cannot find input file: $f" >&2;}
11740 { (exit 1); exit 1; }; }
11743 done` || { (exit 1); exit 1; }
11745 cat >>$CONFIG_STATUS <<_ACEOF
11749 cat >>$CONFIG_STATUS <<\_ACEOF
11751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11752 s,@configure_input@,$configure_input,;t t
11753 s,@srcdir@,$ac_srcdir,;t t
11754 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11755 s,@top_srcdir@,$ac_top_srcdir,;t t
11756 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11757 s,@builddir@,$ac_builddir,;t t
11758 s,@abs_builddir@,$ac_abs_builddir,;t t
11759 s,@top_builddir@,$ac_top_builddir,;t t
11760 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11761 s,@INSTALL@,$ac_INSTALL,;t t
11762 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11764 if test x"$ac_file" != x-; then
11765 mv $tmp/out $ac_file
11773 cat >>$CONFIG_STATUS <<\_ACEOF
11776 # CONFIG_HEADER section.
11779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11782 # ac_d sets the value in "#define NAME VALUE" lines.
11783 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11784 ac_dB='[ ].*$,\1#\2'
11787 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11788 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11789 ac_uB='$,\1#\2define\3'
11793 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11796 - | *:- | *:-:* ) # input from stdin
11798 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11800 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11802 * ) ac_file_in=$ac_file.in ;;
11805 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11806 echo "$as_me: creating $ac_file" >&6;}
11808 # First look for the input files in the build tree, otherwise in the
11810 ac_file_inputs=`IFS=:
11811 for f in $ac_file_in; do
11813 -) echo $tmp/stdin ;;
11815 # Absolute (can't be DOS-style, as IFS=:)
11816 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11817 echo "$as_me: error: cannot find input file: $f" >&2;}
11818 { (exit 1); exit 1; }; }
11819 # Do quote $f, to prevent DOS paths from being IFS'd.
11822 if test -f "$f"; then
11825 elif test -f "$srcdir/$f"; then
11830 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11831 echo "$as_me: error: cannot find input file: $f" >&2;}
11832 { (exit 1); exit 1; }; }
11835 done` || { (exit 1); exit 1; }
11836 # Remove the trailing spaces.
11837 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11841 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11842 # `conftest.undefs', that substitutes the proper values into
11843 # config.h.in to produce config.h. The first handles `#define'
11844 # templates, and the second `#undef' templates.
11845 # And first: Protect against being on the right side of a sed subst in
11846 # config.status. Protect against being in an unquoted here document
11847 # in config.status.
11848 rm -f conftest.defines conftest.undefs
11849 # Using a here document instead of a string reduces the quoting nightmare.
11850 # Putting comments in sed scripts is not portable.
11852 # `end' is used to avoid that the second main sed command (meant for
11853 # 0-ary CPP macros) applies to n-ary macro definitions.
11854 # See the Autoconf documentation for `clear'.
11855 cat >confdef2sed.sed <<\_ACEOF
11860 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11862 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11865 # If some macros were called several times there might be several times
11866 # the same #defines, which is useless. Nevertheless, we may not want to
11867 # sort them, since we want the *last* AC-DEFINE to be honored.
11868 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11869 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11870 rm -f confdef2sed.sed
11872 # This sed command replaces #undef with comments. This is necessary, for
11873 # example, in the case of _POSIX_SOURCE, which is predefined and required
11874 # on some systems where configure will not decide to define it.
11875 cat >>conftest.undefs <<\_ACEOF
11876 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11879 # Break up conftest.defines because some shells have a limit on the size
11880 # of here documents, and old seds have small limits too (100 cmds).
11881 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11882 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11883 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11884 echo ' :' >>$CONFIG_STATUS
11885 rm -f conftest.tail
11886 while grep . conftest.defines >/dev/null
11888 # Write a limited-size here document to $tmp/defines.sed.
11889 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11890 # Speed up: don't consider the non `#define' lines.
11891 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11892 # Work around the forget-to-reset-the-flag bug.
11893 echo 't clr' >>$CONFIG_STATUS
11894 echo ': clr' >>$CONFIG_STATUS
11895 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11897 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11899 mv $tmp/out $tmp/in
11901 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11902 rm -f conftest.defines
11903 mv conftest.tail conftest.defines
11905 rm -f conftest.defines
11906 echo ' fi # grep' >>$CONFIG_STATUS
11907 echo >>$CONFIG_STATUS
11909 # Break up conftest.undefs because some shells have a limit on the size
11910 # of here documents, and old seds have small limits too (100 cmds).
11911 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11912 rm -f conftest.tail
11913 while grep . conftest.undefs >/dev/null
11915 # Write a limited-size here document to $tmp/undefs.sed.
11916 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11917 # Speed up: don't consider the non `#undef'
11918 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11919 # Work around the forget-to-reset-the-flag bug.
11920 echo 't clr' >>$CONFIG_STATUS
11921 echo ': clr' >>$CONFIG_STATUS
11922 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11924 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11926 mv $tmp/out $tmp/in
11928 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11929 rm -f conftest.undefs
11930 mv conftest.tail conftest.undefs
11932 rm -f conftest.undefs
11934 cat >>$CONFIG_STATUS <<\_ACEOF
11935 # Let's still pretend it is `configure' which instantiates (i.e., don't
11936 # use $as_me), people would be surprised to read:
11937 # /* config.h. Generated by config.status. */
11938 if test x"$ac_file" = x-; then
11939 echo "/* Generated by configure. */" >$tmp/config.h
11941 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11943 cat $tmp/in >>$tmp/config.h
11945 if test x"$ac_file" != x-; then
11946 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11947 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11948 echo "$as_me: $ac_file is unchanged" >&6;}
11950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11952 X"$ac_file" : 'X\(//\)[^/]' \| \
11953 X"$ac_file" : 'X\(//\)$' \| \
11954 X"$ac_file" : 'X\(/\)' \| \
11955 . : '\(.\)' 2>/dev/null ||
11957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11959 /^X\(\/\/\)$/{ s//\1/; q; }
11960 /^X\(\/\).*/{ s//\1/; q; }
11962 { if $as_mkdir_p; then
11967 while test ! -d "$as_dir"; do
11968 as_dirs="$as_dir $as_dirs"
11969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971 X"$as_dir" : 'X\(//\)[^/]' \| \
11972 X"$as_dir" : 'X\(//\)$' \| \
11973 X"$as_dir" : 'X\(/\)' \| \
11974 . : '\(.\)' 2>/dev/null ||
11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11978 /^X\(\/\/\)$/{ s//\1/; q; }
11979 /^X\(\/\).*/{ s//\1/; q; }
11982 test ! -n "$as_dirs" || mkdir $as_dirs
11983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11985 { (exit 1); exit 1; }; }; }
11988 mv $tmp/config.h $ac_file
11992 rm -f $tmp/config.h
11996 cat >>$CONFIG_STATUS <<\_ACEOF
11999 # CONFIG_COMMANDS section.
12001 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12002 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12003 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12004 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12005 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$ac_dest" : 'X\(//\)[^/]' \| \
12007 X"$ac_dest" : 'X\(//\)$' \| \
12008 X"$ac_dest" : 'X\(/\)' \| \
12009 . : '\(.\)' 2>/dev/null ||
12011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12013 /^X\(\/\/\)$/{ s//\1/; q; }
12014 /^X\(\/\).*/{ s//\1/; q; }
12016 { if $as_mkdir_p; then
12021 while test ! -d "$as_dir"; do
12022 as_dirs="$as_dir $as_dirs"
12023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$as_dir" : 'X\(//\)[^/]' \| \
12026 X"$as_dir" : 'X\(//\)$' \| \
12027 X"$as_dir" : 'X\(/\)' \| \
12028 . : '\(.\)' 2>/dev/null ||
12030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12032 /^X\(\/\/\)$/{ s//\1/; q; }
12033 /^X\(\/\).*/{ s//\1/; q; }
12036 test ! -n "$as_dirs" || mkdir $as_dirs
12037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12039 { (exit 1); exit 1; }; }; }
12043 if test "$ac_dir" != .; then
12044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12045 # A "../" for each directory in $ac_dir_suffix.
12046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12048 ac_dir_suffix= ac_top_builddir=
12052 .) # No --srcdir option. We are building in place.
12054 if test -z "$ac_top_builddir"; then
12057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12059 [\\/]* | ?:[\\/]* ) # Absolute path.
12060 ac_srcdir=$srcdir$ac_dir_suffix;
12061 ac_top_srcdir=$srcdir ;;
12062 *) # Relative path.
12063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12067 # Do not use `cd foo && pwd` to compute absolute paths, because
12068 # the directories may not exist.
12070 .) ac_abs_builddir="$ac_dir";;
12073 .) ac_abs_builddir=`pwd`;;
12074 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12075 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12078 case $ac_abs_builddir in
12079 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12081 case ${ac_top_builddir}. in
12082 .) ac_abs_top_builddir=$ac_abs_builddir;;
12083 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12084 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12087 case $ac_abs_builddir in
12088 .) ac_abs_srcdir=$ac_srcdir;;
12091 .) ac_abs_srcdir=$ac_abs_builddir;;
12092 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12093 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12096 case $ac_abs_builddir in
12097 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12099 case $ac_top_srcdir in
12100 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12101 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12102 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12107 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12108 echo "$as_me: executing $ac_dest commands" >&6;}
12110 default ) echo timestamp > stamp-h ;;
12115 cat >>$CONFIG_STATUS <<\_ACEOF
12117 { (exit 0); exit 0; }
12119 chmod +x $CONFIG_STATUS
12120 ac_clean_files=$ac_clean_files_save
12123 # configure is writing to config.log, and then calls config.status.
12124 # config.status does its own redirection, appending to config.log.
12125 # Unfortunately, on DOS this fails, as config.log is still kept open
12126 # by configure, so config.status won't be able to write to it; its
12127 # output is simply discarded. So we exec the FD to /dev/null,
12128 # effectively closing config.log, so it can be properly (re)opened and
12129 # appended to by config.status. When coming back to configure, we
12130 # need to make the FD available again.
12131 if test "$no_create" != yes; then
12133 ac_config_status_args=
12134 test "$silent" = yes &&
12135 ac_config_status_args="$ac_config_status_args --quiet"
12137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12140 # would make configure fail if this is the last instruction.
12141 $ac_cs_success || { (exit 1); exit 1; }
12145 ac_config_commands="$ac_config_commands default-1"