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-leak-detect Turn on the leak detector(requires patched boehm)
865 --without-ipv6 disable IPv6 support (default is autodetect)
866 --with-symlink=name Name to give the symlink; if name is "no," no
867 symlink will be created.
868 --with-mode=mode Permissions (in octal) to give the binary
869 --with-owner=owner Specify owner of the installed binary
870 --with-group=group Specify group owner of the installed binary
871 --with-domain=domain Domain name to use in local statistics gathering
872 --with-chroot=dir Specify that the server will be operated under
873 a different root directory given by dir. See
874 doc/readme.chroot for more information.
875 --with-dpath=dir Directory for all server data files
876 --with-cpath=file Set server configuration file
877 --with-lpath=file Set the debugging log file
878 --with-maxcon=maxcon Maximum number of connections server will accept
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 ac_dir_suffix= ac_top_builddir=
911 .) # No --srcdir option. We are building in place.
913 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
929 .) ac_abs_builddir="$ac_dir";;
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_must_keep_next=false
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 -* ) ac_must_keep_next=true ;;
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1117 # The following way of writing the cache mishandles newlines in values,
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -n "$ac_subst_files"; then
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -s confdefs.h; then
1169 sed "/^$/d" confdefs.h | sort
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1252 # Check that the precious variables saved in the cache have kept the same
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 echo "$as_me:$LINENO: checking for installation prefix" >&5
1330 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1331 if test "${unet_cv_prefix+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 unet_cv_prefix=$HOME
1337 if test x"$prefix" != xNONE; then
1338 unet_cv_prefix=$prefix
1340 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1341 echo "${ECHO_T}$unet_cv_prefix" >&6
1342 ac_default_prefix=$unet_cv_prefix
1344 ac_config_headers="$ac_config_headers config.h"
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387 ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391 { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413 ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1690 if test -z "$CC"; then
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 # This is the source file.
1810 # We found the default executable, but exeext='' is most
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1854 if test "$cross_compiling" = maybe; then
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.$ac_ext <<_ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2050 grep -v '^ *+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2087 if test "$GCC" = yes; then
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2124 s = g (p, va_arg (v,int));
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2166 grep -v '^ *+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2359 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2360 if test "${am_cv_prog_cc_stdc+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 am_cv_prog_cc_stdc=no
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX -qlanglvl=ansi
2368 # Ultrix and OSF/1 -std1
2369 # HP-UX 10.20 and later -Ae
2370 # HP-UX older versions -Aa -D_HPUX_SOURCE
2371 # SVR4 -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2374 CC="$ac_save_CC $ac_arg"
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2383 #include <sys/types.h>
2384 #include <sys/stat.h>
2385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2386 struct buf { int x; };
2387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (p, i)
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2399 s = g (p, va_arg (v,int));
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 am_cv_prog_cc_stdc="$ac_arg"; break
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -z "$am_cv_prog_cc_stdc"; then
2454 echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6
2457 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2460 case "x$am_cv_prog_cc_stdc" in
2462 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2465 if test x"$CFLAGS" != x; then
2466 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2468 if test x"$CFLAGS" != x; then
2469 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2471 if test x"$CFLAGS" != x; then
2472 unet_old_cflags=$CFLAGS
2473 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2475 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2476 # If -g was already there, force symbols to be enabled
2477 unet_cv_enable_symbols=yes
2479 if test x"$CFLAGS" != x; then
2480 unet_old_cflags=$CFLAGS
2481 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2483 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2484 # If -pg was already there, force profiling to be enabled
2485 unet_cv_enable_profile=yes
2487 if test x"$CFLAGS" != x; then
2488 unet_old_cflags=$CFLAGS
2489 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2491 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2492 # If -Wall was already there, force warnings to be enabled
2493 unet_cv_enable_warnings=yes
2495 if test x"$CFLAGS" != x; then
2496 unet_old_cflags=$CFLAGS
2497 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2499 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2500 # If -pedantic was already there, force pedatic to be enabled
2501 unet_cv_enable_pedantic=yes
2505 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2506 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2507 if test "${ac_cv_search_crypt+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_func_search_save_LIBS=$LIBS
2511 ac_cv_search_crypt=no
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2536 (eval $ac_link) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest$ac_exeext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_search_crypt="none required"
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2563 if test "$ac_cv_search_crypt" = no; then
2564 for ac_lib in descrypt crypt; do
2565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2573 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest$ac_exeext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_cv_search_crypt="-l$ac_lib"
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2620 LIBS=$ac_func_search_save_LIBS
2622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2624 if test "$ac_cv_search_crypt" != no; then
2625 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2628 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2629 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2630 { (exit 1); exit 1; }; }
2635 # Most operating systems have gethostbyname() in the default searched
2636 # libraries (i.e. libc):
2637 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2638 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2639 if test "${ac_cv_func_gethostbyname+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define gethostbyname innocuous_gethostbyname
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char gethostbyname (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2658 # include <limits.h>
2660 # include <assert.h>
2663 #undef gethostbyname
2665 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672 char gethostbyname ();
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2679 char (*f) () = gethostbyname;
2688 return f != gethostbyname;
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695 (eval $ac_link) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_func_gethostbyname=yes
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_cv_func_gethostbyname=no
2721 rm -f conftest.err conftest.$ac_objext \
2722 conftest$ac_exeext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2726 if test $ac_cv_func_gethostbyname = yes; then
2729 # Some OSes (eg. Solaris) place it in libnsl:
2731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_check_lib_save_LIBS=$LIBS
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2745 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2751 char gethostbyname ();
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest$ac_exeext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_lib_nsl_gethostbyname=yes
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_cv_lib_nsl_gethostbyname=no
2788 rm -f conftest.err conftest.$ac_objext \
2789 conftest$ac_exeext conftest.$ac_ext
2790 LIBS=$ac_check_lib_save_LIBS
2792 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2793 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2794 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2795 cat >>confdefs.h <<_ACEOF
2796 #define HAVE_LIBNSL 1
2802 # Some strange OSes (SINIX) have it in libsocket:
2804 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 ac_check_lib_save_LIBS=$LIBS
2810 LIBS="-lsocket $LIBS"
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2824 char gethostbyname ();
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest$ac_exeext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_lib_socket_gethostbyname=yes
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 ac_cv_lib_socket_gethostbyname=no
2861 rm -f conftest.err conftest.$ac_objext \
2862 conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2866 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2867 if test $ac_cv_lib_socket_gethostbyname = yes; then
2868 cat >>confdefs.h <<_ACEOF
2869 #define HAVE_LIBSOCKET 1
2872 LIBS="-lsocket $LIBS"
2875 # Unfortunately libsocket sometimes depends on libnsl.
2876 # AC_CHECK_LIB's API is essentially broken so the following
2877 # ugliness is necessary:
2878 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2879 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2880 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lsocket -lnsl $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2892 /* Override any gcc2 internal prototype to avoid an error. */
2896 /* We use char because int might match the return type of a gcc2
2897 builtin and then its argument prototype would still apply. */
2898 char gethostbyname ();
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909 (eval $ac_link) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1 >conftest.err
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_cv_lib_socket_gethostbyname=yes
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 ac_cv_lib_socket_gethostbyname=no
2935 rm -f conftest.err conftest.$ac_objext \
2936 conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2940 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2941 if test $ac_cv_lib_socket_gethostbyname = yes; then
2942 LIBS="-lsocket -lnsl $LIBS"
2945 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2946 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2947 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 ac_check_lib_save_LIBS=$LIBS
2951 LIBS="-lresolv $LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 /* Override any gcc2 internal prototype to avoid an error. */
2963 /* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2965 char gethostbyname ();
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest$ac_exeext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_lib_resolv_gethostbyname=yes
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 ac_cv_lib_resolv_gethostbyname=no
3002 rm -f conftest.err conftest.$ac_objext \
3003 conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3008 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3009 cat >>confdefs.h <<_ACEOF
3010 #define HAVE_LIBRESOLV 1
3013 LIBS="-lresolv $LIBS"
3028 echo "$as_me:$LINENO: checking for socket" >&5
3029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3030 if test "${ac_cv_func_socket+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3041 #define socket innocuous_socket
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char socket (); below.
3045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 <limits.h> exists even on freestanding compilers. */
3049 # include <limits.h>
3051 # include <assert.h>
3056 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_socket) || defined (__stub___socket)
3070 char (*f) () = socket;
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest$ac_exeext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 ac_cv_func_socket=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cv_func_socket=no
3112 rm -f conftest.err conftest.$ac_objext \
3113 conftest$ac_exeext conftest.$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3116 echo "${ECHO_T}$ac_cv_func_socket" >&6
3117 if test $ac_cv_func_socket = yes; then
3121 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3122 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3123 if test "${ac_cv_lib_socket_socket+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 ac_check_lib_save_LIBS=$LIBS
3127 LIBS="-lsocket $LIBS"
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3150 rm -f conftest.$ac_objext conftest$ac_exeext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152 (eval $ac_link) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest$ac_exeext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_lib_socket_socket=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_cv_lib_socket_socket=no
3178 rm -f conftest.err conftest.$ac_objext \
3179 conftest$ac_exeext conftest.$ac_ext
3180 LIBS=$ac_check_lib_save_LIBS
3182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3184 if test $ac_cv_lib_socket_socket = yes; then
3185 cat >>confdefs.h <<_ACEOF
3186 #define HAVE_LIBSOCKET 1
3189 LIBS="-lsocket $LIBS"
3192 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3194 if test "${ac_cv_lib_socket_socket+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lsocket -lnsl $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_socket_socket=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_lib_socket_socket=no
3249 rm -f conftest.err conftest.$ac_objext \
3250 conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3255 if test $ac_cv_lib_socket_socket = yes; then
3256 LIBS="-lsocket -lnsl $LIBS"
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3276 if test -z "$CPP"; then
3277 if test "${ac_cv_prog_CPP+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 # Double quotes because CPP needs to be expanded
3281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3284 for ac_c_preproc_warn_flag in '' yes
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322 if test -z "$ac_cpp_err"; then
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Broken: fails on valid input.
3331 rm -f conftest.err conftest.$ac_ext
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <ac_nonexistent.h>
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360 if test -z "$ac_cpp_err"; then
3361 # Broken: success on invalid input.
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 # Passes both tests.
3371 rm -f conftest.err conftest.$ac_ext
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3388 echo "$as_me:$LINENO: result: $CPP" >&5
3389 echo "${ECHO_T}$CPP" >&6
3391 for ac_c_preproc_warn_flag in '' yes
3393 # Use a header file that comes with gcc, so configuring glibc
3394 # with a fresh cross-compiler works.
3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396 # <limits.h> exists even on freestanding compilers.
3397 # On the NeXT, cc -E runs the code through the compiler's parser,
3398 # not just through cpp. "Syntax error" is here to catch this case.
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3406 # include <limits.h>
3408 # include <assert.h>
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 if test -z "$ac_cpp_err"; then
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Broken: fails on valid input.
3438 rm -f conftest.err conftest.$ac_ext
3440 # OK, works on sane cases. Now check whether non-existent headers
3441 # can be detected and how.
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3502 if test "${ac_cv_prog_egrep+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3506 then ac_cv_prog_egrep='grep -E'
3507 else ac_cv_prog_egrep='egrep'
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3512 EGREP=$ac_cv_prog_egrep
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_header_stdc=yes
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 ac_cv_header_stdc=no
3567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569 if test $ac_cv_header_stdc = yes; then
3570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 $EGREP "memchr" >/dev/null 2>&1; then
3584 ac_cv_header_stdc=no
3590 if test $ac_cv_header_stdc = yes; then
3591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602 $EGREP "free" >/dev/null 2>&1; then
3605 ac_cv_header_stdc=no
3611 if test $ac_cv_header_stdc = yes; then
3612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3613 if test "$cross_compiling" = yes; then
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627 # define ISLOWER(c) \
3628 (('a' <= (c) && (c) <= 'i') \
3629 || ('j' <= (c) && (c) <= 'r') \
3630 || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3639 for (i = 0; i < 256; i++)
3640 if (XOR (islower (i), ISLOWER (i))
3641 || toupper (i) != TOUPPER (i))
3646 rm -f conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648 (eval $ac_link) 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_cv_header_stdc=no
3666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672 if test $ac_cv_header_stdc = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define STDC_HEADERS 1
3680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691 inttypes.h stdint.h unistd.h
3693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 $ac_includes_default
3707 #include <$ac_header>
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 eval "$as_ac_Header=yes"
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 eval "$as_ac_Header=no"
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3760 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/socket.h
3762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo "$as_me:$LINENO: checking for $ac_header" >&5
3765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3772 # Is the header compilable?
3773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3782 #include <$ac_header>
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_header_compiler=yes
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3810 ac_header_compiler=no
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3814 echo "${ECHO_T}$ac_header_compiler" >&6
3816 # Is the header present?
3817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <$ac_header>
3827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null; then
3835 if test -s conftest.err; then
3836 ac_cpp_err=$ac_c_preproc_warn_flag
3837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 if test -z "$ac_cpp_err"; then
3845 ac_header_preproc=yes
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_header_preproc=no
3852 rm -f conftest.err conftest.$ac_ext
3853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3854 echo "${ECHO_T}$ac_header_preproc" >&6
3856 # So? What about this header?
3857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3863 ac_header_preproc=yes
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3880 ## ------------------------------------------ ##
3881 ## Report this to the AC_PACKAGE_NAME lists. ##
3882 ## ------------------------------------------ ##
3885 sed "s/^/$as_me: WARNING: /" >&2
3888 echo "$as_me:$LINENO: checking for $ac_header" >&5
3889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 eval "$as_ac_Header=\$ac_header_preproc"
3895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3900 cat >>confdefs.h <<_ACEOF
3901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3910 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3911 if test "${ac_cv_c_bigendian+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 # See if sys/param.h defines the BYTE_ORDER macro.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <sys/types.h>
3922 #include <sys/param.h>
3927 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>conftest.er1
3939 grep -v '^ *+' conftest.er1 >conftest.err
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 # It does; now see whether it defined to BIG_ENDIAN or not.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <sys/types.h>
3964 #include <sys/param.h>
3969 #if BYTE_ORDER != BIG_ENDIAN
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_c_bigendian=yes
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 ac_cv_c_bigendian=no
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # It does not; compile a test program.
4011 if test "$cross_compiling" = yes; then
4012 # try to guess the endianness by grepping values into an object file
4013 ac_cv_c_bigendian=unknown
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4021 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4022 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4023 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4024 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4025 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4029 _ascii (); _ebcdic ();
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4056 ac_cv_c_bigendian=yes
4058 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4059 if test "$ac_cv_c_bigendian" = unknown; then
4060 ac_cv_c_bigendian=no
4062 # finding both strings is unlikely to happen, but who knows?
4063 ac_cv_c_bigendian=unknown
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4082 /* Are we little or big endian? From Harbison&Steele. */
4086 char c[sizeof (long)];
4089 exit (u.c[sizeof (long) - 1] == 1);
4092 rm -f conftest$ac_exeext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4094 (eval $ac_link) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_c_bigendian=no
4105 echo "$as_me: program exited with status $ac_status" >&5
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_c_bigendian=yes
4112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4118 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4119 case $ac_cv_c_bigendian in
4122 cat >>confdefs.h <<\_ACEOF
4123 #define WORDS_BIGENDIAN 1
4129 { { echo "$as_me:$LINENO: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4131 echo "$as_me: error: unknown endianness
4132 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4133 { (exit 1); exit 1; }; } ;;
4136 echo "$as_me:$LINENO: checking for size_t" >&5
4137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4138 if test "${ac_cv_type_size_t+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 $ac_includes_default
4153 if (sizeof (size_t))
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_type_size_t=yes
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_cv_type_size_t=no
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4190 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4191 if test $ac_cv_type_size_t = yes; then
4195 cat >>confdefs.h <<_ACEOF
4196 #define size_t unsigned
4201 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4202 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4203 if test "${ac_cv_header_time+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <sys/types.h>
4213 #include <sys/time.h>
4219 if ((struct tm *) 0)
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_header_time=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_cv_header_time=no
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4256 echo "${ECHO_T}$ac_cv_header_time" >&6
4257 if test $ac_cv_header_time = yes; then
4259 cat >>confdefs.h <<\_ACEOF
4260 #define TIME_WITH_SYS_TIME 1
4265 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4266 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4267 if test "${ac_cv_struct_tm+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <sys/types.h>
4282 struct tm *tp; tp->tm_sec;
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 ac_cv_struct_tm=time.h
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 ac_cv_struct_tm=sys/time.h
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4318 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4319 if test $ac_cv_struct_tm = sys/time.h; then
4321 cat >>confdefs.h <<\_ACEOF
4322 #define TM_IN_SYS_TIME 1
4327 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4328 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4329 if test "${ac_cv_type_uid_t+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "uid_t" >/dev/null 2>&1; then
4343 ac_cv_type_uid_t=yes
4350 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4351 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4352 if test $ac_cv_type_uid_t = no; then
4354 cat >>confdefs.h <<\_ACEOF
4359 cat >>confdefs.h <<\_ACEOF
4365 echo "$as_me:$LINENO: checking for short" >&5
4366 echo $ECHO_N "checking for short... $ECHO_C" >&6
4367 if test "${ac_cv_type_short+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 ac_cv_type_short=yes
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4419 echo "${ECHO_T}$ac_cv_type_short" >&6
4421 echo "$as_me:$LINENO: checking size of short" >&5
4422 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4423 if test "${ac_cv_sizeof_short+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test "$ac_cv_type_short" = yes; then
4427 # The cast to unsigned long works around a bug in the HP C Compiler
4428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4430 # This bug is HP SR number 8606223364.
4431 if test "$cross_compiling" = yes; then
4432 # Depending upon the size, compute the lo and hi bounds.
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4443 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 $ac_includes_default
4483 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_hi=$ac_mid; break
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_lo=`expr $ac_mid + 1`
4517 if test $ac_lo -le $ac_mid; then
4521 ac_mid=`expr 2 '*' $ac_mid + 1`
4523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 $ac_includes_default
4539 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4579 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_lo=$ac_mid; break
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_hi=`expr '(' $ac_mid ')' - 1`
4613 if test $ac_mid -le $ac_hi; then
4617 ac_mid=`expr 2 '*' $ac_mid`
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 # Binary search between lo and hi bounds.
4631 while test "x$ac_lo" != "x$ac_hi"; do
4632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 $ac_includes_default
4643 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_lo=`expr '(' $ac_mid ')' + 1`
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ?*) ac_cv_sizeof_short=$ac_lo;;
4682 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&5
4684 echo "$as_me: error: cannot compute sizeof (short), 77
4685 See \`config.log' for more details." >&2;}
4686 { (exit 1); exit 1; }; } ;;
4689 if test "$cross_compiling" = yes; then
4690 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4691 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4692 { (exit 1); exit 1; }; }
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 long longval () { return (long) (sizeof (short)); }
4702 unsigned long ulongval () { return (long) (sizeof (short)); }
4709 FILE *f = fopen ("conftest.val", "w");
4712 if (((long) (sizeof (short))) < 0)
4714 long i = longval ();
4715 if (i != ((long) (sizeof (short))))
4717 fprintf (f, "%ld\n", i);
4721 unsigned long i = ulongval ();
4722 if (i != ((long) (sizeof (short))))
4724 fprintf (f, "%lu\n", i);
4726 exit (ferror (f) || fclose (f) != 0);
4732 rm -f conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_sizeof_short=`cat conftest.val`
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&5
4752 echo "$as_me: error: cannot compute sizeof (short), 77
4753 See \`config.log' for more details." >&2;}
4754 { (exit 1); exit 1; }; }
4756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4761 ac_cv_sizeof_short=0
4764 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4765 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4766 cat >>confdefs.h <<_ACEOF
4767 #define SIZEOF_SHORT $ac_cv_sizeof_short
4771 echo "$as_me:$LINENO: checking for int" >&5
4772 echo $ECHO_N "checking for int... $ECHO_C" >&6
4773 if test "${ac_cv_type_int+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4825 echo "${ECHO_T}$ac_cv_type_int" >&6
4827 echo "$as_me:$LINENO: checking size of int" >&5
4828 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4829 if test "${ac_cv_sizeof_int+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test "$ac_cv_type_int" = yes; then
4833 # The cast to unsigned long works around a bug in the HP C Compiler
4834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4836 # This bug is HP SR number 8606223364.
4837 if test "$cross_compiling" = yes; then
4838 # Depending upon the size, compute the lo and hi bounds.
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 $ac_includes_default
4849 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4889 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_hi=$ac_mid; break
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_lo=`expr $ac_mid + 1`
4923 if test $ac_lo -le $ac_mid; then
4927 ac_mid=`expr 2 '*' $ac_mid + 1`
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4945 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4985 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_lo=$ac_mid; break
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 ac_hi=`expr '(' $ac_mid ')' - 1`
5019 if test $ac_mid -le $ac_hi; then
5023 ac_mid=`expr 2 '*' $ac_mid`
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 # Binary search between lo and hi bounds.
5037 while test "x$ac_lo" != "x$ac_hi"; do
5038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 $ac_includes_default
5049 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag" || 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
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_lo=`expr '(' $ac_mid ')' + 1`
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ?*) ac_cv_sizeof_int=$ac_lo;;
5088 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot compute sizeof (int), 77
5091 See \`config.log' for more details." >&2;}
5092 { (exit 1); exit 1; }; } ;;
5095 if test "$cross_compiling" = yes; then
5096 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5097 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5098 { (exit 1); exit 1; }; }
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 $ac_includes_default
5107 long longval () { return (long) (sizeof (int)); }
5108 unsigned long ulongval () { return (long) (sizeof (int)); }
5115 FILE *f = fopen ("conftest.val", "w");
5118 if (((long) (sizeof (int))) < 0)
5120 long i = longval ();
5121 if (i != ((long) (sizeof (int))))
5123 fprintf (f, "%ld\n", i);
5127 unsigned long i = ulongval ();
5128 if (i != ((long) (sizeof (int))))
5130 fprintf (f, "%lu\n", i);
5132 exit (ferror (f) || fclose (f) != 0);
5138 rm -f conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140 (eval $ac_link) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sizeof_int=`cat conftest.val`
5151 echo "$as_me: program exited with status $ac_status" >&5
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5156 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&5
5158 echo "$as_me: error: cannot compute sizeof (int), 77
5159 See \`config.log' for more details." >&2;}
5160 { (exit 1); exit 1; }; }
5162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5171 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5172 cat >>confdefs.h <<_ACEOF
5173 #define SIZEOF_INT $ac_cv_sizeof_int
5177 echo "$as_me:$LINENO: checking for long" >&5
5178 echo $ECHO_N "checking for long... $ECHO_C" >&6
5179 if test "${ac_cv_type_long+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5231 echo "${ECHO_T}$ac_cv_type_long" >&6
5233 echo "$as_me:$LINENO: checking size of long" >&5
5234 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5235 if test "${ac_cv_sizeof_long+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 if test "$ac_cv_type_long" = yes; then
5239 # The cast to unsigned long works around a bug in the HP C Compiler
5240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242 # This bug is HP SR number 8606223364.
5243 if test "$cross_compiling" = yes; then
5244 # Depending upon the size, compute the lo and hi bounds.
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 $ac_includes_default
5255 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5262 rm -f conftest.$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5295 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>conftest.er1
5306 grep -v '^ *+' conftest.er1 >conftest.err
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi=$ac_mid; break
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_lo=`expr $ac_mid + 1`
5329 if test $ac_lo -le $ac_mid; then
5333 ac_mid=`expr 2 '*' $ac_mid + 1`
5335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5351 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5391 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_lo=$ac_mid; break
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_hi=`expr '(' $ac_mid ')' - 1`
5425 if test $ac_mid -le $ac_hi; then
5429 ac_mid=`expr 2 '*' $ac_mid`
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442 # Binary search between lo and hi bounds.
5443 while test "x$ac_lo" != "x$ac_hi"; do
5444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5455 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_lo=`expr '(' $ac_mid ')' + 1`
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ?*) ac_cv_sizeof_long=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (long), 77
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; } ;;
5501 if test "$cross_compiling" = yes; then
5502 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5503 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5504 { (exit 1); exit 1; }; }
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 $ac_includes_default
5513 long longval () { return (long) (sizeof (long)); }
5514 unsigned long ulongval () { return (long) (sizeof (long)); }
5521 FILE *f = fopen ("conftest.val", "w");
5524 if (((long) (sizeof (long))) < 0)
5526 long i = longval ();
5527 if (i != ((long) (sizeof (long))))
5529 fprintf (f, "%ld\n", i);
5533 unsigned long i = ulongval ();
5534 if (i != ((long) (sizeof (long))))
5536 fprintf (f, "%lu\n", i);
5538 exit (ferror (f) || fclose (f) != 0);
5544 rm -f conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546 (eval $ac_link) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_sizeof_long=`cat conftest.val`
5557 echo "$as_me: program exited with status $ac_status" >&5
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: cannot compute sizeof (long), 77
5565 See \`config.log' for more details." >&2;}
5566 { (exit 1); exit 1; }; }
5568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5577 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5578 cat >>confdefs.h <<_ACEOF
5579 #define SIZEOF_LONG $ac_cv_sizeof_long
5583 echo "$as_me:$LINENO: checking for void *" >&5
5584 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5585 if test "${ac_cv_type_void_p+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5600 if (sizeof (void *))
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_type_void_p=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ac_cv_type_void_p=no
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5637 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5639 echo "$as_me:$LINENO: checking size of void *" >&5
5640 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5641 if test "${ac_cv_sizeof_void_p+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 if test "$ac_cv_type_void_p" = yes; then
5645 # The cast to unsigned long works around a bug in the HP C Compiler
5646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5648 # This bug is HP SR number 8606223364.
5649 if test "$cross_compiling" = yes; then
5650 # Depending upon the size, compute the lo and hi bounds.
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5661 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 $ac_includes_default
5701 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_hi=$ac_mid; break
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ac_lo=`expr $ac_mid + 1`
5735 if test $ac_lo -le $ac_mid; then
5739 ac_mid=`expr 2 '*' $ac_mid + 1`
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5757 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5797 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_lo=$ac_mid; break
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_hi=`expr '(' $ac_mid ')' - 1`
5831 if test $ac_mid -le $ac_hi; then
5835 ac_mid=`expr 2 '*' $ac_mid`
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 # Binary search between lo and hi bounds.
5849 while test "x$ac_lo" != "x$ac_hi"; do
5850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5861 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_lo=`expr '(' $ac_mid ')' + 1`
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (void *), 77
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; } ;;
5907 if test "$cross_compiling" = yes; then
5908 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5909 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5910 { (exit 1); exit 1; }; }
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 long longval () { return (long) (sizeof (void *)); }
5920 unsigned long ulongval () { return (long) (sizeof (void *)); }
5927 FILE *f = fopen ("conftest.val", "w");
5930 if (((long) (sizeof (void *))) < 0)
5932 long i = longval ();
5933 if (i != ((long) (sizeof (void *))))
5935 fprintf (f, "%ld\n", i);
5939 unsigned long i = ulongval ();
5940 if (i != ((long) (sizeof (void *))))
5942 fprintf (f, "%lu\n", i);
5944 exit (ferror (f) || fclose (f) != 0);
5950 rm -f conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952 (eval $ac_link) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_sizeof_void_p=`cat conftest.val`
5963 echo "$as_me: program exited with status $ac_status" >&5
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot compute sizeof (void *), 77
5971 See \`config.log' for more details." >&2;}
5972 { (exit 1); exit 1; }; }
5974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sizeof_void_p=0
5982 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5983 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5989 echo "$as_me:$LINENO: checking for int64_t" >&5
5990 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_int64_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6006 if (sizeof (int64_t))
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_int64_t=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_type_int64_t=no
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6043 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6045 echo "$as_me:$LINENO: checking size of int64_t" >&5
6046 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6047 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test "$ac_cv_type_int64_t" = yes; then
6051 # The cast to unsigned long works around a bug in the HP C Compiler
6052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6054 # This bug is HP SR number 8606223364.
6055 if test "$cross_compiling" = yes; then
6056 # Depending upon the size, compute the lo and hi bounds.
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6067 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6107 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_hi=$ac_mid; break
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_lo=`expr $ac_mid + 1`
6141 if test $ac_lo -le $ac_mid; then
6145 ac_mid=`expr 2 '*' $ac_mid + 1`
6147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6163 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 $ac_includes_default
6203 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_lo=$ac_mid; break
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_hi=`expr '(' $ac_mid ')' - 1`
6237 if test $ac_mid -le $ac_hi; then
6241 ac_mid=`expr 2 '*' $ac_mid`
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 # Binary search between lo and hi bounds.
6255 while test "x$ac_lo" != "x$ac_hi"; do
6256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6267 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_lo=`expr '(' $ac_mid ')' + 1`
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6307 See \`config.log' for more details." >&5
6308 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6309 See \`config.log' for more details." >&2;}
6310 { (exit 1); exit 1; }; } ;;
6313 if test "$cross_compiling" = yes; then
6314 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6315 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6316 { (exit 1); exit 1; }; }
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6325 long longval () { return (long) (sizeof (int64_t)); }
6326 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6333 FILE *f = fopen ("conftest.val", "w");
6336 if (((long) (sizeof (int64_t))) < 0)
6338 long i = longval ();
6339 if (i != ((long) (sizeof (int64_t))))
6341 fprintf (f, "%ld\n", i);
6345 unsigned long i = ulongval ();
6346 if (i != ((long) (sizeof (int64_t))))
6348 fprintf (f, "%lu\n", i);
6350 exit (ferror (f) || fclose (f) != 0);
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_sizeof_int64_t=`cat conftest.val`
6369 echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6375 See \`config.log' for more details." >&5
6376 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6377 See \`config.log' for more details." >&2;}
6378 { (exit 1); exit 1; }; }
6380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_sizeof_int64_t=0
6388 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6389 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6390 cat >>confdefs.h <<_ACEOF
6391 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6395 echo "$as_me:$LINENO: checking for long long" >&5
6396 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6397 if test "${ac_cv_type_long_long+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6410 if ((long long *) 0)
6412 if (sizeof (long long))
6418 rm -f conftest.$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_type_long_long=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_cv_type_long_long=no
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6449 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6451 echo "$as_me:$LINENO: checking size of long long" >&5
6452 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6453 if test "${ac_cv_sizeof_long_long+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 if test "$ac_cv_type_long_long" = yes; then
6457 # The cast to unsigned long works around a bug in the HP C Compiler
6458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6460 # This bug is HP SR number 8606223364.
6461 if test "$cross_compiling" = yes; then
6462 # Depending upon the size, compute the lo and hi bounds.
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6513 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_hi=$ac_mid; break
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_lo=`expr $ac_mid + 1`
6547 if test $ac_lo -le $ac_mid; then
6551 ac_mid=`expr 2 '*' $ac_mid + 1`
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6569 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6609 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_lo=$ac_mid; break
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_hi=`expr '(' $ac_mid ')' - 1`
6643 if test $ac_mid -le $ac_hi; then
6647 ac_mid=`expr 2 '*' $ac_mid`
6649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660 # Binary search between lo and hi bounds.
6661 while test "x$ac_lo" != "x$ac_hi"; do
6662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 $ac_includes_default
6673 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6680 rm -f conftest.$ac_objext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682 (eval $ac_compile) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_lo=`expr '(' $ac_mid ')' + 1`
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6712 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6713 See \`config.log' for more details." >&5
6714 echo "$as_me: error: cannot compute sizeof (long long), 77
6715 See \`config.log' for more details." >&2;}
6716 { (exit 1); exit 1; }; } ;;
6719 if test "$cross_compiling" = yes; then
6720 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6721 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6722 { (exit 1); exit 1; }; }
6724 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_includes_default
6731 long longval () { return (long) (sizeof (long long)); }
6732 unsigned long ulongval () { return (long) (sizeof (long long)); }
6739 FILE *f = fopen ("conftest.val", "w");
6742 if (((long) (sizeof (long long))) < 0)
6744 long i = longval ();
6745 if (i != ((long) (sizeof (long long))))
6747 fprintf (f, "%ld\n", i);
6751 unsigned long i = ulongval ();
6752 if (i != ((long) (sizeof (long long))))
6754 fprintf (f, "%lu\n", i);
6756 exit (ferror (f) || fclose (f) != 0);
6762 rm -f conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_cv_sizeof_long_long=`cat conftest.val`
6775 echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6781 See \`config.log' for more details." >&5
6782 echo "$as_me: error: cannot compute sizeof (long long), 77
6783 See \`config.log' for more details." >&2;}
6784 { (exit 1); exit 1; }; }
6786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 ac_cv_sizeof_long_long=0
6794 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6795 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6796 cat >>confdefs.h <<_ACEOF
6797 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6801 if test "$ac_cv_sizeof_int" = 2 ; then
6802 echo "$as_me:$LINENO: checking for int16_t" >&5
6803 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6804 if test "${ac_cv_type_int16_t+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 cat >conftest.$ac_ext <<_ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 $ac_includes_default
6819 if (sizeof (int16_t))
6825 rm -f conftest.$ac_objext
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>conftest.er1
6829 grep -v '^ *+' conftest.er1 >conftest.err
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest.$ac_objext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 ac_cv_type_int16_t=yes
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_cv_type_int16_t=no
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6856 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6857 if test $ac_cv_type_int16_t = yes; then
6861 cat >>confdefs.h <<_ACEOF
6867 echo "$as_me:$LINENO: checking for uint16_t" >&5
6868 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6869 if test "${ac_cv_type_uint16_t+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6884 if (sizeof (uint16_t))
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>conftest.er1
6894 grep -v '^ *+' conftest.er1 >conftest.err
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_type_uint16_t=yes
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_cv_type_uint16_t=no
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6922 if test $ac_cv_type_uint16_t = yes; then
6926 cat >>confdefs.h <<_ACEOF
6927 #define uint16_t unsigned int
6932 elif test "$ac_cv_sizeof_short" = 2 ; then
6933 echo "$as_me:$LINENO: checking for int16_t" >&5
6934 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6935 if test "${ac_cv_type_int16_t+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6950 if (sizeof (int16_t))
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; } &&
6971 { ac_try='test -s conftest.$ac_objext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_cv_type_int16_t=yes
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_cv_type_int16_t=no
6984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6986 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6987 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6988 if test $ac_cv_type_int16_t = yes; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define int16_t short
6998 echo "$as_me:$LINENO: checking for uint16_t" >&5
6999 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7000 if test "${ac_cv_type_uint16_t+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7015 if (sizeof (uint16_t))
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_type_uint16_t=yes
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_type_uint16_t=no
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7052 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7053 if test $ac_cv_type_uint16_t = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define uint16_t unsigned short
7064 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7065 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7066 { (exit 1); exit 1; }; }
7068 if test "$ac_cv_sizeof_int" = 4 ; then
7069 echo "$as_me:$LINENO: checking for int32_t" >&5
7070 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7071 if test "${ac_cv_type_int32_t+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 $ac_includes_default
7086 if (sizeof (int32_t))
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_cv_type_int32_t=yes
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_type_int32_t=no
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7122 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7123 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7124 if test $ac_cv_type_int32_t = yes; then
7128 cat >>confdefs.h <<_ACEOF
7134 echo "$as_me:$LINENO: checking for uint32_t" >&5
7135 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7136 if test "${ac_cv_type_uint32_t+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7151 if (sizeof (uint32_t))
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_type_uint32_t=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_type_uint32_t=no
7185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7188 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7189 if test $ac_cv_type_uint32_t = yes; then
7193 cat >>confdefs.h <<_ACEOF
7194 #define uint32_t unsigned int
7199 elif test "$ac_cv_sizeof_short" = 4 ; then
7200 echo "$as_me:$LINENO: checking for int32_t" >&5
7201 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7202 if test "${ac_cv_type_int32_t+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7217 if (sizeof (int32_t))
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>conftest.er1
7227 grep -v '^ *+' conftest.er1 >conftest.err
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_cv_type_int32_t=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_cv_type_int32_t=no
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7254 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7255 if test $ac_cv_type_int32_t = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260 #define int32_t short
7265 echo "$as_me:$LINENO: checking for uint32_t" >&5
7266 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7267 if test "${ac_cv_type_uint32_t+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7282 if (sizeof (uint32_t))
7288 rm -f conftest.$ac_objext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 ac_cv_type_uint32_t=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 ac_cv_type_uint32_t=no
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7319 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7320 if test $ac_cv_type_uint32_t = yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define uint32_t unsigned short
7330 elif test "$ac_cv_sizeof_long" = 4 ; then
7331 echo "$as_me:$LINENO: checking for int32_t" >&5
7332 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7333 if test "${ac_cv_type_int32_t+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7348 if (sizeof (int32_t))
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_type_int32_t=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_cv_type_int32_t=no
7382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7385 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7386 if test $ac_cv_type_int32_t = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define int32_t long
7396 echo "$as_me:$LINENO: checking for uint32_t" >&5
7397 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7398 if test "${ac_cv_type_uint32_t+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7413 if (sizeof (uint32_t))
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_type_uint32_t=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_cv_type_uint32_t=no
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7450 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7451 if test $ac_cv_type_uint32_t = yes; then
7455 cat >>confdefs.h <<_ACEOF
7456 #define uint32_t unsigned long
7462 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
7463 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
7464 { (exit 1); exit 1; }; }
7466 if test "$ac_cv_sizeof_int64_t" = 8 ; then
7467 echo "$as_me:$LINENO: checking for int64_t" >&5
7468 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7469 if test "${ac_cv_type_int64_t+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7484 if (sizeof (int64_t))
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest.$ac_objext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_type_int64_t=yes
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ac_cv_type_int64_t=no
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7523 echo "$as_me:$LINENO: checking for uint64_t" >&5
7524 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7525 if test "${ac_cv_type_uint64_t+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 $ac_includes_default
7540 if (sizeof (uint64_t))
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548 (eval $ac_compile) 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_type_uint64_t=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_type_uint64_t=no
7574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7577 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7579 elif test "$ac_cv_sizeof_long_long" = 8 ; then
7580 echo "$as_me:$LINENO: checking for int64_t" >&5
7581 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7582 if test "${ac_cv_type_int64_t+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7597 if (sizeof (int64_t))
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_type_int64_t=yes
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_type_int64_t=no
7631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7634 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7635 if test $ac_cv_type_int64_t = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define int64_t long long
7645 echo "$as_me:$LINENO: checking for uint64_t" >&5
7646 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7647 if test "${ac_cv_type_uint64_t+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 $ac_includes_default
7662 if (sizeof (uint64_t))
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_type_uint64_t=yes
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_type_uint64_t=no
7696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7700 if test $ac_cv_type_uint64_t = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define uint64_t unsigned long long
7711 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
7712 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
7713 { (exit 1); exit 1; }; }
7715 echo "$as_me:$LINENO: checking for socklen_t" >&5
7716 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7717 if test "${ac_cv_type_socklen_t+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7730 if ((socklen_t *) 0)
7732 if (sizeof (socklen_t))
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740 (eval $ac_compile) 2>conftest.er1
7742 grep -v '^ *+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest.$ac_objext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_type_socklen_t=yes
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_type_socklen_t=no
7766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7769 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7770 if test $ac_cv_type_socklen_t = yes; then
7774 cat >>confdefs.h <<_ACEOF
7775 #define socklen_t unsigned int
7780 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
7781 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
7782 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <sys/types.h>
7792 #include <netinet/in.h>
7797 if ((struct sockaddr_in6 *) 0)
7799 if (sizeof (struct sockaddr_in6))
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_type_struct_sockaddr_in6=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_cv_type_struct_sockaddr_in6=no
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
7836 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
7837 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
7838 unet_have_sockaddr_in6="yes"
7840 unet_have_sockaddr_in6="no"
7848 for ac_func in kqueue setrlimit getrusage times
7850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7851 echo "$as_me:$LINENO: checking for $ac_func" >&5
7852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_var+set}\" = set"; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7864 #define $ac_func innocuous_$ac_func
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func (); below.
7868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869 <limits.h> exists even on freestanding compilers. */
7872 # include <limits.h>
7874 # include <assert.h>
7879 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7893 char (*f) () = $ac_func;
7902 return f != $ac_func;
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 eval "$as_ac_var=yes"
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 eval "$as_ac_var=no"
7935 rm -f conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7940 if test `eval echo '${'$as_ac_var'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7949 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <sys/types.h>
7961 #include <sys/wait.h>
7963 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; } &&
7994 { ac_try='test -s conftest.$ac_objext'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 ac_cv_header_sys_wait_h=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 ac_cv_header_sys_wait_h=no
8007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8011 if test $ac_cv_header_sys_wait_h = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_SYS_WAIT_H 1
8020 for ac_header in unistd.h
8022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024 echo "$as_me:$LINENO: checking for $ac_header" >&5
8025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8032 # Is the header compilable?
8033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 #include <$ac_header>
8044 rm -f conftest.$ac_objext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_header_compiler=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_header_compiler=no
8072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074 echo "${ECHO_T}$ac_header_compiler" >&6
8076 # Is the header present?
8077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <$ac_header>
8087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } >/dev/null; then
8095 if test -s conftest.err; then
8096 ac_cpp_err=$ac_c_preproc_warn_flag
8097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8104 if test -z "$ac_cpp_err"; then
8105 ac_header_preproc=yes
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_header_preproc=no
8112 rm -f conftest.err conftest.$ac_ext
8113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8114 echo "${ECHO_T}$ac_header_preproc" >&6
8116 # So? What about this header?
8117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8123 ac_header_preproc=yes
8126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8140 ## ------------------------------------------ ##
8141 ## Report this to the AC_PACKAGE_NAME lists. ##
8142 ## ------------------------------------------ ##
8145 sed "s/^/$as_me: WARNING: /" >&2
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 eval "$as_ac_Header=\$ac_header_preproc"
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8168 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8169 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8170 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 if test "$cross_compiling" = yes; then
8174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8175 See \`config.log' for more details." >&5
8176 echo "$as_me: error: cannot run test program while cross compiling
8177 See \`config.log' for more details." >&2;}
8178 { (exit 1); exit 1; }; }
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 /* Exit 0 (true) if wait returns something other than -1,
8187 i.e. the pid of the child, which means that wait was restarted
8188 after getting the signal. */
8190 #include <sys/types.h>
8193 # include <unistd.h>
8196 # include <sys/wait.h>
8199 /* Some platforms explicitly require an extern "C" signal handler
8202 extern "C" void ucatch (int dummy) { }
8204 void ucatch (dummy) int dummy; { }
8210 int i = fork (), status;
8215 kill (getppid (), SIGINT);
8220 signal (SIGINT, ucatch);
8226 exit (status == -1);
8229 rm -f conftest$ac_exeext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_sys_restartable_syscalls=yes
8242 echo "$as_me: program exited with status $ac_status" >&5
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_sys_restartable_syscalls=no
8249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8253 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8254 if test $ac_cv_sys_restartable_syscalls = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_RESTARTABLE_SYSCALLS 1
8263 echo "$as_me:$LINENO: checking for donuts" >&5
8264 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: yes" >&5
8266 echo "${ECHO_T}yes" >&6
8268 for ac_prog in gawk mawk nawk awk
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_AWK+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 if test -n "$AWK"; then
8278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_AWK="$ac_prog"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 if test -n "$AWK"; then
8298 echo "$as_me:$LINENO: result: $AWK" >&5
8299 echo "${ECHO_T}$AWK" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8305 test -n "$AWK" && break
8308 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8309 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8311 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.make <<\_ACEOF
8316 @echo 'ac_maketemp="$(MAKE)"'
8318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8319 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8320 if test -n "$ac_maketemp"; then
8321 eval ac_cv_prog_make_${ac_make}_set=yes
8323 eval ac_cv_prog_make_${ac_make}_set=no
8327 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8328 echo "$as_me:$LINENO: result: yes" >&5
8329 echo "${ECHO_T}yes" >&6
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 SET_MAKE="MAKE=${MAKE-make}"
8337 # Find a good install program. We prefer a C program (faster),
8338 # so one script is as good as another. But avoid the broken or
8339 # incompatible versions:
8340 # SysV /etc/install, /usr/sbin/install
8341 # SunOS /usr/etc/install
8342 # IRIX /sbin/install
8344 # AmigaOS /C/install, which installs bootblocks on floppy discs
8345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8348 # OS/2's system install, which has a completely different semantic
8349 # ./install, which can be erroneously created by make from ./install.sh.
8350 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8352 if test -z "$INSTALL"; then
8353 if test "${ac_cv_path_install+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 # Account for people who put trailing slashes in PATH elements.
8363 ./ | .// | /cC/* | \
8364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8368 # OSF1 and SCO ODT 3.0 have their own names for install.
8369 # Don't use installbsd from OSF since it installs stuff as root
8371 for ac_prog in ginstall scoinst install; do
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8374 if test $ac_prog = install &&
8375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8376 # AIX install. It has an incompatible calling convention.
8378 elif test $ac_prog = install &&
8379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8380 # program-specific install script used by HP pwplus--don't use.
8383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8395 if test "${ac_cv_path_install+set}" = set; then
8396 INSTALL=$ac_cv_path_install
8398 # As a last resort, use the slow shell script. We don't cache a
8399 # path for INSTALL within a source directory, because that will
8400 # break other packages using the cache if that directory is
8401 # removed, or if the path is relative.
8402 INSTALL=$ac_install_sh
8405 echo "$as_me:$LINENO: result: $INSTALL" >&5
8406 echo "${ECHO_T}$INSTALL" >&6
8408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8409 # It thinks the first close brace ends the variable substitution.
8410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8416 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8417 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8419 if test "$LN_S" = "ln -s"; then
8420 echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8423 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8424 echo "${ECHO_T}no, using $LN_S" >&6
8429 # Extract the first word of "$ac_prog", so it can be a program name with args.
8430 set dummy $ac_prog; ac_word=$2
8431 echo "$as_me:$LINENO: checking for $ac_word" >&5
8432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8433 if test "${ac_cv_path_RMPROG+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 RMPROG=$ac_cv_path_RMPROG
8460 if test -n "$RMPROG"; then
8461 echo "$as_me:$LINENO: result: $RMPROG" >&5
8462 echo "${ECHO_T}$RMPROG" >&6
8464 echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8468 test -n "$RMPROG" && break
8470 test -n "$RMPROG" || RMPROG="/bin/rm"
8474 # Extract the first word of "$ac_prog", so it can be a program name with args.
8475 set dummy $ac_prog; ac_word=$2
8476 echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8478 if test "${ac_cv_path_SHPROG+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
8494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 SHPROG=$ac_cv_path_SHPROG
8505 if test -n "$SHPROG"; then
8506 echo "$as_me:$LINENO: result: $SHPROG" >&5
8507 echo "${ECHO_T}$SHPROG" >&6
8509 echo "$as_me:$LINENO: result: no" >&5
8510 echo "${ECHO_T}no" >&6
8513 test -n "$SHPROG" && break
8515 test -n "$SHPROG" || SHPROG="/bin/sh"
8518 for ac_prog in flex lex
8520 # Extract the first word of "$ac_prog", so it can be a program name with args.
8521 set dummy $ac_prog; ac_word=$2
8522 echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8524 if test "${ac_cv_prog_LEX+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 if test -n "$LEX"; then
8528 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_LEX="$ac_prog"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 if test -n "$LEX"; then
8548 echo "$as_me:$LINENO: result: $LEX" >&5
8549 echo "${ECHO_T}$LEX" >&6
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8555 test -n "$LEX" && break
8557 test -n "$LEX" || LEX=":"
8559 if test -z "$LEXLIB"
8561 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8562 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8563 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 ac_check_lib_save_LIBS=$LIBS
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 /* Override any gcc2 internal prototype to avoid an error. */
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>conftest.er1
8594 grep -v '^ *+' conftest.er1 >conftest.err
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_lib_fl_yywrap=yes
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_cv_lib_fl_yywrap=no
8618 rm -f conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8623 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8624 if test $ac_cv_lib_fl_yywrap = yes; then
8627 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8628 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8629 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_check_lib_save_LIBS=$LIBS
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_lib_l_yywrap=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_lib_l_yywrap=no
8684 rm -f conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8689 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8690 if test $ac_cv_lib_l_yywrap = yes; then
8698 if test "x$LEX" != "x:"; then
8699 echo "$as_me:$LINENO: checking lex output file root" >&5
8700 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8701 if test "${ac_cv_prog_lex_root+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 # The minimal lex program is just a single line: %%. But some broken lexes
8705 # (Solaris, I think it was) want two %% lines, so accommodate them.
8706 cat >conftest.l <<_ACEOF
8710 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8711 (eval $LEX conftest.l) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }
8715 if test -f lex.yy.c; then
8716 ac_cv_prog_lex_root=lex.yy
8717 elif test -f lexyy.c; then
8718 ac_cv_prog_lex_root=lexyy
8720 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8721 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8722 { (exit 1); exit 1; }; }
8725 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8726 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8728 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8730 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8731 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8732 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 # POSIX says lex can declare yytext either as a pointer or an array; the
8736 # default is implementation-dependent. Figure out which it is, since
8737 # not all implementations provide the %pointer and %array declarations.
8738 ac_cv_prog_lex_yytext_pointer=no
8739 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8741 LIBS="$LIBS $LEXLIB"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 `cat $LEX_OUTPUT_ROOT.c`
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_prog_lex_yytext_pointer=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8775 rm -f "${LEX_OUTPUT_ROOT}.c"
8778 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8779 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8780 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define YYTEXT_POINTER 1
8789 if test "$LEX" = ":" ; then
8790 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
8791 echo "$as_me: error: Cannot find flex." >&2;}
8792 { (exit 1); exit 1; }; }
8793 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
8796 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
8797 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
8798 { (exit 1); exit 1; }; }
8801 if test -z "$LEXLIB" ; then
8802 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
8803 It's possible the compiler you're using ($CC) is incompatible with the
8805 See \`config.log' for more details." >&5
8806 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
8807 It's possible the compiler you're using ($CC) is incompatible with the
8809 See \`config.log' for more details." >&2;}
8810 { (exit 1); exit 1; }; }
8813 LIBS="$LEXLIB $LIBS"
8815 for ac_prog in 'bison -y' byacc
8817 # Extract the first word of "$ac_prog", so it can be a program name with args.
8818 set dummy $ac_prog; ac_word=$2
8819 echo "$as_me:$LINENO: checking for $ac_word" >&5
8820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8821 if test "${ac_cv_prog_YACC+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 if test -n "$YACC"; then
8825 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_YACC="$ac_prog"
8835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 YACC=$ac_cv_prog_YACC
8844 if test -n "$YACC"; then
8845 echo "$as_me:$LINENO: result: $YACC" >&5
8846 echo "${ECHO_T}$YACC" >&6
8848 echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6
8852 test -n "$YACC" && break
8854 test -n "$YACC" || YACC="yacc"
8856 if test "$YACC" = ":" ; then
8857 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
8858 echo "$as_me: error: Cannot find yacc." >&2;}
8859 { (exit 1); exit 1; }; }
8860 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
8863 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
8864 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
8868 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
8869 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
8870 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 if test "$cross_compiling" = yes; then
8874 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8875 See \`config.log' for more details." >&5
8876 echo "$as_me: error: cannot run test program while cross compiling
8877 See \`config.log' for more details." >&2;}
8878 { (exit 1); exit 1; }; }
8880 cat >conftest.$ac_ext <<_ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #include <sys/socket.h>
8889 #include <sys/ioctl.h>
8890 #include <sys/file.h>
8892 $ac_cv_type_signal alarmed() { exit(1); }
8897 size_t l = sizeof(x);
8898 int f = socket(AF_INET, SOCK_DGRAM, 0);
8899 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
8901 signal(SIGALRM, alarmed);
8903 recvfrom(f, b, 12, 0, &x, &l);
8910 rm -f conftest$ac_exeext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 unet_cv_sys_nonblocking_posix=yes
8923 echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8928 unet_cv_sys_nonblocking_posix=no
8930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8933 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
8934 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
8935 if test $unet_cv_sys_nonblocking_posix = yes; then
8937 cat >>confdefs.h <<\_ACEOF
8938 #define NBLOCK_POSIX
8942 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
8943 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
8944 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 if test "$cross_compiling" = yes; then
8948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8949 See \`config.log' for more details." >&5
8950 echo "$as_me: error: cannot run test program while cross compiling
8951 See \`config.log' for more details." >&2;}
8952 { (exit 1); exit 1; }; }
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/socket.h>
8963 #include <sys/ioctl.h>
8964 #include <sys/file.h>
8966 $ac_cv_type_signal alarmed() { exit(1); }
8971 size_t l = sizeof(x);
8972 int f = socket(AF_INET, SOCK_DGRAM, 0);
8973 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
8975 signal(SIGALRM, alarmed);
8977 recvfrom(f, b, 12, 0, &x, &l);
8984 rm -f conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 unet_cv_sys_nonblocking_bsd=yes
8997 echo "$as_me: program exited with status $ac_status" >&5
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9002 unet_cv_sys_nonblocking_bsd=no
9004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9008 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9009 if test $unet_cv_sys_nonblocking_bsd = yes; then
9011 cat >>confdefs.h <<\_ACEOF
9017 cat >>confdefs.h <<\_ACEOF
9023 echo "$as_me:$LINENO: checking for posix signals" >&5
9024 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9025 if test "${unet_cv_sys_signal_posix+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9038 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9043 rm -f conftest.$ac_objext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9045 (eval $ac_compile) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest.$ac_objext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 unet_cv_sys_signal_posix=yes
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 unet_cv_sys_signal_posix=no
9071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9074 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9075 if test $unet_cv_sys_signal_posix = yes; then
9077 cat >>confdefs.h <<\_ACEOF
9078 #define POSIX_SIGNALS
9082 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9083 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9084 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 if test "$cross_compiling" = yes; then
9088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9089 See \`config.log' for more details." >&5
9090 echo "$as_me: error: cannot run test program while cross compiling
9091 See \`config.log' for more details." >&2;}
9092 { (exit 1); exit 1; }; }
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9102 $ac_cv_type_signal handler()
9106 kill(getpid(), SIGTERM);
9111 signal(SIGTERM, handler);
9112 kill(getpid(), SIGTERM);
9116 rm -f conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 unet_cv_sys_signal_bsd=yes
9129 echo "$as_me: program exited with status $ac_status" >&5
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9134 unet_cv_sys_signal_bsd=no
9136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9140 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9141 if test $unet_cv_sys_signal_bsd = yes; then
9143 cat >>confdefs.h <<\_ACEOF
9144 #define BSD_RELIABLE_SIGNALS
9149 cat >>confdefs.h <<\_ACEOF
9150 #define SYSV_UNRELIABLE_SIGNALS
9156 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
9157 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
9158 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
9159 if test "$ac_cv_c_compiler_gnu" = no; then
9161 CFLAGS="$CFLAGS -pipe"
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 unet_cv_pipe_flags=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
9208 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
9209 if test "$unet_cv_pipe_flags" = yes ; then
9210 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
9211 if test "$x" = "" ; then
9212 CFLAGS="$CFLAGS -pipe"
9217 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9218 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9221 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9222 echo "${ECHO_T}Linux ($host) found." >&6
9223 unet_poll_syscall=yes
9227 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9228 echo "${ECHO_T}Solaris ($host) found." >&6
9229 if test x"$ac_cv_header_poll_h" = xyes; then
9230 unet_poll_syscall=yes
9232 unet_poll_syscall=no
9237 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9238 echo "${ECHO_T}Solaris ($host) found." >&6
9239 unet_poll_syscall=no
9243 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9244 echo "${ECHO_T}OpenBSD ($host) found." >&6
9245 if test x"$ac_cv_header_poll_h" = xyes; then
9246 unet_poll_syscall=yes
9248 unet_poll_syscall=no
9253 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9254 echo "${ECHO_T}Generic BSD ($host) found." >&6
9255 if test x"$ac_cv_header_poll_h" = xyes; then
9256 unet_poll_syscall=yes
9258 unet_poll_syscall=no
9263 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9264 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9265 unet_poll_syscall=no
9269 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9270 echo "${ECHO_T}Unknown system type $host found." >&6
9271 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9272 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9273 unet_poll_syscall=no
9277 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9278 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9279 # Check whether --enable-poll or --disable-poll was given.
9280 if test "${enable_poll+set}" = set; then
9281 enableval="$enable_poll"
9282 unet_cv_enable_poll=$enable_poll
9284 if test "${unet_cv_enable_poll+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 unet_cv_enable_poll=$unet_poll_syscall
9292 # Force poll to be disabled if there is no poll.h
9293 if test x"$ac_cv_header_poll_h" != xyes; then
9294 unet_cv_enable_poll=no
9297 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9298 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9300 if test x"$unet_cv_enable_poll" = xyes; then
9302 cat >>confdefs.h <<\_ACEOF
9306 ENGINE_C=engine_poll.c
9308 ENGINE_C=engine_select.c
9312 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9313 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9314 # Check whether --enable-debug or --disable-debug was given.
9315 if test "${enable_debug+set}" = set; then
9316 enableval="$enable_debug"
9317 unet_cv_enable_debug=$enable_debug
9319 if test "${unet_cv_enable_debug+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 unet_cv_enable_debug=no
9326 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9327 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9329 if test x"$unet_cv_enable_debug" = xyes; then
9331 cat >>confdefs.h <<\_ACEOF
9337 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9338 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9340 # Check whether --with-leak-detect or --without-leak-detect was given.
9341 if test "${with_leak_detect+set}" = set; then
9342 withval="$with_leak_detect"
9343 unet_cv_with_leak_detect=$with_leak_detect
9345 if test "${unet_cv_with_leak_detect+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 unet_cv_with_leak_detect=no
9352 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9353 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9355 if test x"$unet_cv_with_leak_detect" != xno; then
9357 CFLAGS="-DMDEBUG $CFLAGS"
9358 if test x"$unet_cv_with_leak_detect" != xyes; then
9359 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9364 # Check whether --with-ipv6 or --without-ipv6 was given.
9365 if test "${with_ipv6+set}" = set; then
9366 withval="$with_ipv6"
9367 ac_cv_use_ipv6=$withval
9369 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9371 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9372 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9373 if test "${ac_cv_use_ipv6+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9379 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9380 if test x"$ac_cv_use_ipv6" != "xno" ; then
9382 cat >>confdefs.h <<\_ACEOF
9388 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9389 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9390 # Check whether --enable-asserts or --disable-asserts was given.
9391 if test "${enable_asserts+set}" = set; then
9392 enableval="$enable_asserts"
9393 unet_cv_enable_asserts=$enable_asserts
9395 if test "${unet_cv_enable_asserts+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 unet_cv_enable_asserts=yes
9402 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9403 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9405 if test x"$unet_cv_enable_asserts" = xno; then
9407 cat >>confdefs.h <<\_ACEOF
9413 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9414 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9415 # Check whether --enable-symbols or --disable-symbols was given.
9416 if test "${enable_symbols+set}" = set; then
9417 enableval="$enable_symbols"
9418 unet_cv_enable_symbols=$enable_symbols
9420 if test "${unet_cv_enable_symbols+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 unet_cv_enable_symbols=yes
9427 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
9428 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
9430 if test x"$unet_cv_enable_symbols" = xyes; then
9434 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9435 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9436 # Check whether --enable-profile or --disable-profile was given.
9437 if test "${enable_profile+set}" = set; then
9438 enableval="$enable_profile"
9439 unet_cv_enable_profile=$enable_profile
9441 if test "${unet_cv_enable_profile+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 unet_cv_enable_profile=no
9448 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9449 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9451 if test x"$unet_cv_enable_profile" = xyes; then
9452 CFLAGS="-pg $CFLAGS"
9455 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9456 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9457 # Check whether --enable-pedantic or --disable-pedantic was given.
9458 if test "${enable_pedantic+set}" = set; then
9459 enableval="$enable_pedantic"
9460 unet_cv_enable_pedantic=$enable_pedantic
9462 if test "${unet_cv_enable_pedantic+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 unet_cv_enable_pedantic=no
9469 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9470 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9472 if test x"$unet_cv_enable_pedantic" = xyes; then
9473 CFLAGS="-pedantic $CFLAGS"
9476 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9477 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9478 # Check whether --enable-warnings or --disable-warnings was given.
9479 if test "${enable_warnings+set}" = set; then
9480 enableval="$enable_warnings"
9481 unet_cv_enable_warnings=$enable_warnings
9483 if test "${unet_cv_enable_warnings+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 unet_cv_enable_warnings=no
9490 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9491 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9493 if test x"$unet_cv_enable_warnings" = xyes; then
9494 CFLAGS="-Wall $CFLAGS"
9497 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9498 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9499 # Check whether --enable-inlines or --disable-inlines was given.
9500 if test "${enable_inlines+set}" = set; then
9501 enableval="$enable_inlines"
9502 unet_cv_enable_inlines=$enable_inlines
9504 if test "${unet_cv_enable_inlines+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 unet_cv_enable_inlines=yes
9511 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
9512 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
9514 if test x"$unet_cv_enable_inlines" = xyes; then
9516 cat >>confdefs.h <<\_ACEOF
9522 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
9523 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
9524 # Check whether --enable-devpoll or --disable-devpoll was given.
9525 if test "${enable_devpoll+set}" = set; then
9526 enableval="$enable_devpoll"
9527 unet_cv_enable_devpoll=$enable_devpoll
9529 if test "${unet_cv_enable_devpoll+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 unet_cv_enable_devpoll=yes
9537 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
9538 unet_cv_enable_devpoll=no
9541 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
9542 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
9544 if test x"$unet_cv_enable_devpoll" != xno; then
9546 cat >>confdefs.h <<\_ACEOF
9550 ENGINE_C="engine_devpoll.c $ENGINE_C"
9553 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
9554 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
9555 # Check whether --enable-kqueue or --disable-kqueue was given.
9556 if test "${enable_kqueue+set}" = set; then
9557 enableval="$enable_kqueue"
9558 unet_cv_enable_kqueue=$enable_kqueue
9560 if test "${unet_cv_enable_kqueue+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 unet_cv_enable_kqueue=yes
9568 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
9569 unet_cv_enable_kqueue=no
9572 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
9573 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
9575 if test x"$unet_cv_enable_kqueue" != xno; then
9577 cat >>confdefs.h <<\_ACEOF
9581 ENGINE_C="engine_kqueue.c $ENGINE_C"
9584 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
9585 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
9586 # Check whether --enable-epoll or --disable-epoll was given.
9587 if test "${enable_epoll+set}" = set; then
9588 enableval="$enable_epoll"
9589 unet_cv_enable_epoll=$enable_epoll
9591 if test "${unet_cv_enable_epoll+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 unet_cv_enable_epoll=yes
9599 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
9600 unet_cv_enable_epoll=no
9603 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
9604 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
9606 if test x"$unet_cv_enable_epoll" != xno; then
9607 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
9608 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 #include <sys/epoll.h>
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 echo "$as_me:$LINENO: result: yes" >&5
9646 echo "${ECHO_T}yes" >&6
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 echo "$as_me:$LINENO: result: no" >&5
9652 echo "${ECHO_T}no" >&6
9654 cat >>confdefs.h <<\_ACEOF
9655 #define EPOLL_NEED_BODY
9659 rm -f conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9662 cat >>confdefs.h <<\_ACEOF
9666 ENGINE_C="engine_epoll.c $ENGINE_C"
9669 echo "$as_me:$LINENO: checking for va_copy" >&5
9670 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9671 if test "${unet_cv_c_va_copy+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9684 va_list ap1, ap2; va_copy(ap1, ap2);
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest$ac_exeext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 unet_cv_c_va_copy="yes"
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 unet_cv_c_va_copy="no"
9718 rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9721 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
9722 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
9723 if test "$unet_cv_c_va_copy" = "yes" ; then
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_VA_COPY 1
9731 echo "$as_me:$LINENO: checking for __va_copy" >&5
9732 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9733 if test "${unet_cv_c___va_copy+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9746 va_list ap1, ap2; __va_copy(ap1, ap2);
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 unet_cv_c___va_copy="yes"
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 unet_cv_c___va_copy="no"
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
9784 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
9785 if test "$unet_cv_c___va_copy" = "yes" ; then
9787 cat >>confdefs.h <<\_ACEOF
9788 #define HAVE___VA_COPY 1
9793 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
9794 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
9796 # Check whether --with-symlink or --without-symlink was given.
9797 if test "${with_symlink+set}" = set; then
9798 withval="$with_symlink"
9799 unet_cv_with_symlink=$with_symlink
9801 if test "${unet_cv_with_symlink+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 unet_cv_with_symlink="ircd"
9809 if test x"$unet_cv_with_symlink" = xyes; then
9810 unet_cv_with_symlink="ircd"
9813 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
9814 echo "${ECHO_T}$unet_cv_with_symlink" >&6
9816 if test x"$unet_cv_with_symlink" = xno; then
9817 INSTALL_RULE=install-no-symlink
9820 INSTALL_RULE=install-with-symlink
9821 SYMLINK=$unet_cv_with_symlink
9826 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
9827 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
9829 # Check whether --with-mode or --without-mode was given.
9830 if test "${with_mode+set}" = set; then
9831 withval="$with_mode"
9832 unet_cv_with_mode=$with_mode
9834 if test "${unet_cv_with_mode+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 unet_cv_with_mode=711
9842 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
9843 unet_cv_with_mode=711
9846 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
9847 echo "${ECHO_T}$unet_cv_with_mode" >&6
9849 IRCDMODE=$unet_cv_with_mode
9852 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9853 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
9854 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
9856 # Check whether --with-owner or --without-owner was given.
9857 if test "${with_owner+set}" = set; then
9858 withval="$with_owner"
9859 unet_cv_with_owner=$with_owner
9861 if test "${unet_cv_with_owner+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 unet_cv_with_owner=$unet_uid
9869 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
9870 unet_cv_with_owner=$unet_uid
9873 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
9874 echo "${ECHO_T}$unet_cv_with_owner" >&6
9876 IRCDOWN=$unet_cv_with_owner
9879 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9880 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
9881 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
9883 # Check whether --with-group or --without-group was given.
9884 if test "${with_group+set}" = set; then
9885 withval="$with_group"
9886 unet_cv_with_group=$with_group
9888 if test "${unet_cv_with_group+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 unet_cv_with_group=$unet_gid
9896 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
9897 unet_cv_with_group=$unet_gid
9900 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
9901 echo "${ECHO_T}$unet_cv_with_group" >&6
9903 IRCDGRP=$unet_cv_with_group
9907 if test -f /etc/resolv.conf; then
9908 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
9909 if test x"$unet_domain" = x; then
9910 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
9913 echo "$as_me:$LINENO: checking for site domain name" >&5
9914 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
9916 # Check whether --with-domain or --without-domain was given.
9917 if test "${with_domain+set}" = set; then
9918 withval="$with_domain"
9919 unet_cv_with_domain=$with_domain
9921 if test "${unet_cv_with_domain+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 unet_cv_with_domain=$unet_domain
9929 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
9930 unet_cv_with_domain=$unet_domain
9932 if test x"$unet_cv_with_domain" = xno; then
9933 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
9934 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
9935 { (exit 1); exit 1; }; }
9938 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
9939 echo "${ECHO_T}$unet_cv_with_domain" >&6
9942 cat >>confdefs.h <<_ACEOF
9943 #define DOMAINNAME "*$unet_cv_with_domain"
9947 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
9948 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
9950 # Check whether --with-chroot or --without-chroot was given.
9951 if test "${with_chroot+set}" = set; then
9952 withval="$with_chroot"
9953 unet_cv_with_chroot=$with_chroot
9955 if test "${unet_cv_with_chroot+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 unet_cv_with_chroot=no
9963 if test x"$unet_cv_with_chroot" = xyes; then
9964 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
9965 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
9966 { (exit 1); exit 1; }; }
9969 # Ensure there are no trailing /'s to mess us up
9970 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
9972 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
9973 echo "${ECHO_T}$unet_cv_with_chroot" >&6
9975 # Deal with the annoying value "NONE" here
9976 unet_save_prefix=$prefix
9977 if test x"$prefix" = xNONE; then
9978 prefix=$ac_default_prefix
9983 unet_save_exec_prefix=$exec_prefix
9984 if test x"$exec_prefix" = xNONE; then
9987 exec_prefix=$exec_prefix
9990 # Obtain the actual interesting directories
9991 unet_bindir=`eval echo "$bindir"`
9992 unet_libdir=`eval echo "$libdir"`
9994 # Restore the original settings of $prefix and $exec_prefix
9995 prefix=$unet_save_prefix
9996 exec_prefix=$unet_save_exec_prefix
9998 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
9999 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10000 if test x"$unet_cv_with_symlink" = xno; then
10001 unet_spath="$unet_bindir/ircd"
10003 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10005 echo "$as_me:$LINENO: result: $unet_spath" >&5
10006 echo "${ECHO_T}$unet_spath" >&6
10008 if test x"$unet_cv_with_chroot" != xno; then
10009 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10010 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10012 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10013 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10018 cat >>confdefs.h <<_ACEOF
10019 #define SPATH "$unet_spath"
10023 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10024 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10026 # Check whether --with-dpath or --without-dpath was given.
10027 if test "${with_dpath+set}" = set; then
10028 withval="$with_dpath"
10029 unet_cv_with_dpath=$with_dpath
10031 if test "${unet_cv_with_dpath+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 unet_cv_with_dpath=$unet_libdir
10039 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10040 unet_cv_with_dpath=$unet_libdir
10043 # Ensure there are no trailing /'s to mess us up
10044 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10046 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10047 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10049 if test x"$unet_cv_with_chroot" != xno; then
10050 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10051 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10053 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10054 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10055 { (exit 1); exit 1; }; }
10058 unet_dpath=$unet_cv_with_dpath
10062 cat >>confdefs.h <<_ACEOF
10063 #define DPATH "$unet_dpath"
10067 DPATH=$unet_cv_with_dpath
10070 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10071 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10073 # Check whether --with-cpath or --without-cpath was given.
10074 if test "${with_cpath+set}" = set; then
10075 withval="$with_cpath"
10076 unet_cv_with_cpath=$with_cpath
10078 if test "${unet_cv_with_cpath+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 unet_cv_with_cpath="ircd.conf"
10086 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10087 unet_cv_with_cpath="ircd.conf"
10090 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10091 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10093 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10094 # Absolute path; check against chroot stuff
10095 if test x"$unet_cv_with_chroot" != xno; then
10096 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10097 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10099 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10100 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10101 { (exit 1); exit 1; }; }
10104 unet_cpath=$unet_cv_with_cpath
10107 unet_cpath=$unet_cv_with_cpath
10111 cat >>confdefs.h <<_ACEOF
10112 #define CPATH "$unet_cpath"
10116 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10117 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10119 # Check whether --with-lpath or --without-lpath was given.
10120 if test "${with_lpath+set}" = set; then
10121 withval="$with_lpath"
10122 unet_cv_with_lpath=$with_lpath
10124 if test "${unet_cv_with_lpath+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 unet_cv_with_lpath="ircd.log"
10132 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10133 unet_cv_with_lpath="ircd.log"
10136 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10137 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10139 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10140 # Absolute path; check against chroot stuff
10141 if test x"$unet_cv_with_chroot" != xno; then
10142 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10143 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10145 { 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
10146 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;}
10147 unet_cv_with_lpath="ircd.log"
10148 unet_lpath="ircd.log"
10151 unet_lpath=$unet_cv_with_lpath
10154 unet_lpath=$unet_cv_with_lpath
10158 cat >>confdefs.h <<_ACEOF
10159 #define LPATH "$unet_lpath"
10163 unet_maxcon=`ulimit -Hn`
10164 if test x"$unet_maxcon" = xunlimited; then
10165 unet_maxcon=`ulimit -Sn`
10167 unet_maxcon=`expr $unet_maxcon - 4`
10168 echo "$as_me:$LINENO: checking max connections" >&5
10169 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10171 # Check whether --with-maxcon or --without-maxcon was given.
10172 if test "${with_maxcon+set}" = set; then
10173 withval="$with_maxcon"
10174 unet_cv_with_maxcon=$with_maxcon
10176 if test "${unet_cv_with_maxcon+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 unet_cv_with_maxcon=$unet_maxcon
10184 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10185 unet_cv_with_maxcon=$unet_maxcon
10188 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10189 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10192 cat >>confdefs.h <<_ACEOF
10193 #define MAXCONNECTIONS $unet_cv_with_maxcon
10197 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10198 ac_config_commands="$ac_config_commands default"
10199 cat >confcache <<\_ACEOF
10200 # This file is a shell script that caches the results of configure
10201 # tests run on this system so they can be shared between configure
10202 # scripts and configure runs, see configure's option --config-cache.
10203 # It is not useful on other systems. If it contains results you don't
10204 # want to keep, you may remove or edit it.
10206 # config.status only pays attention to the cache file if you give it
10207 # the --recheck option to rerun configure.
10209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10211 # following values.
10215 # The following way of writing the cache mishandles newlines in values,
10216 # but we know of no workaround that is simple, portable, and efficient.
10217 # So, don't put newlines in cache variables' values.
10218 # Ultrix sh set writes to stderr and can't be redirected directly,
10219 # and sets the high bit in the cache file unless we assign to the vars.
10222 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10224 # `set' does not quote correctly, so add quotes (double-quote
10225 # substitution turns \\\\ into \\, and sed turns \\ into \).
10228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10231 # `set' quotes correctly as required by POSIX, so do not add quotes.
10233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10242 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10244 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10245 if test -w $cache_file; then
10246 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10247 cat confcache >$cache_file
10249 echo "not updating unwritable cache $cache_file"
10254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10255 # Let make expand exec_prefix.
10256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10258 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10259 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10260 # trailing colons and then remove the whole line if VPATH becomes empty
10261 # (actually we leave an empty line to preserve line numbers).
10262 if test "x$srcdir" = x.; then
10263 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10264 s/:*\$(srcdir):*/:/;
10265 s/:*\${srcdir}:*/:/;
10267 s/^\([^=]*=[ ]*\):*/\1/;
10273 DEFS=-DHAVE_CONFIG_H
10277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10278 # 1. Remove the extension, and $U if already installed.
10279 ac_i=`echo "$ac_i" |
10280 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10282 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10283 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10285 LIBOBJS=$ac_libobjs
10287 LTLIBOBJS=$ac_ltlibobjs
10291 : ${CONFIG_STATUS=./config.status}
10292 ac_clean_files_save=$ac_clean_files
10293 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10294 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10295 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10296 cat >$CONFIG_STATUS <<_ACEOF
10298 # Generated by $as_me.
10299 # Run this file to recreate the current configuration.
10300 # Compiler output produced by configure, useful for debugging
10301 # configure, is in config.log if it exists.
10304 ac_cs_recheck=false
10306 SHELL=\${CONFIG_SHELL-$SHELL}
10309 cat >>$CONFIG_STATUS <<\_ACEOF
10310 ## --------------------- ##
10311 ## M4sh Initialization. ##
10312 ## --------------------- ##
10314 # Be Bourne compatible
10315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10318 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10319 # is contrary to our usage. Disable this feature.
10320 alias -g '${1+"$@"}'='"$@"'
10321 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10324 DUALCASE=1; export DUALCASE # for MKS sh
10326 # Support unset when possible.
10327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10334 # Work around bugs in pre-3.0 UWIN ksh.
10335 $as_unset ENV MAIL MAILPATH
10342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10344 LC_TELEPHONE LC_TIME
10346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10347 eval $as_var=C; export $as_var
10353 # Required to use basename.
10354 if expr a : '\(a\)' >/dev/null 2>&1; then
10360 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10361 as_basename=basename
10367 # Name of the executable.
10368 as_me=`$as_basename "$0" ||
10369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10370 X"$0" : 'X\(//\)$' \| \
10371 X"$0" : 'X\(/\)$' \| \
10372 . : '\(.\)' 2>/dev/null ||
10374 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10375 /^X\/\(\/\/\)$/{ s//\1/; q; }
10376 /^X\/\(\/\).*/{ s//\1/; q; }
10380 # PATH needs CR, and LINENO needs CR and PATH.
10381 # Avoid depending upon Character Ranges.
10382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10385 as_cr_digits='0123456789'
10386 as_cr_alnum=$as_cr_Letters$as_cr_digits
10388 # The user is always right.
10389 if test "${PATH_SEPARATOR+set}" != set; then
10390 echo "#! /bin/sh" >conf$$.sh
10391 echo "exit 0" >>conf$$.sh
10393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10402 as_lineno_1=$LINENO
10403 as_lineno_2=$LINENO
10404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10405 test "x$as_lineno_1" != "x$as_lineno_2" &&
10406 test "x$as_lineno_3" = "x$as_lineno_2" || {
10407 # Find who we are. Look in the path if we contain no path at all
10410 *[\\/]* ) as_myself=$0 ;;
10411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10415 test -z "$as_dir" && as_dir=.
10416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10421 # We did not find ourselves, most probably we were run as `sh COMMAND'
10422 # in which case we are not to be found in the path.
10423 if test "x$as_myself" = x; then
10426 if test ! -f "$as_myself"; then
10427 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10428 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10429 { (exit 1); exit 1; }; }
10431 case $CONFIG_SHELL in
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10437 test -z "$as_dir" && as_dir=.
10438 for as_base in sh bash ksh sh5; do
10441 if ("$as_dir/$as_base" -c '
10442 as_lineno_1=$LINENO
10443 as_lineno_2=$LINENO
10444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10445 test "x$as_lineno_1" != "x$as_lineno_2" &&
10446 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10447 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10448 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10449 CONFIG_SHELL=$as_dir/$as_base
10450 export CONFIG_SHELL
10451 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10460 # uniformly replaced by the line number. The first 'sed' inserts a
10461 # line-number line before each line; the second 'sed' does the real
10462 # work. The second script uses 'N' to pair each line-number line
10463 # with the numbered line, and appends trailing '-' during
10464 # substitution so that $LINENO is not a special case at line end.
10465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10466 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10467 sed '=' <$as_myself |
10472 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10475 s,^['$as_cr_digits']*\n,,
10476 ' >$as_me.lineno &&
10477 chmod +x $as_me.lineno ||
10478 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10479 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10480 { (exit 1); exit 1; }; }
10482 # Don't try to exec as it changes $[0], causing all sort of problems
10483 # (the dirname of $[0] is not the place where we might find the
10484 # original and so on. Autoconf is especially sensible to this).
10486 # Exit status is that of the last command.
10491 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10492 *c*,-n*) ECHO_N= ECHO_C='
10494 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10495 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10498 if expr a : '\(a\)' >/dev/null 2>&1; then
10504 rm -f conf$$ conf$$.exe conf$$.file
10506 if ln -s conf$$.file conf$$ 2>/dev/null; then
10507 # We could just check for DJGPP; but this test a) works b) is more generic
10508 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10509 if test -f conf$$.exe; then
10510 # Don't use ln at all; we don't have any links
10515 elif ln conf$$.file conf$$ 2>/dev/null; then
10520 rm -f conf$$ conf$$.exe conf$$.file
10522 if mkdir -p . 2>/dev/null; then
10525 test -d ./-p && rmdir ./-p
10529 as_executable_p="test -f"
10531 # Sed expression to map a string onto a valid CPP name.
10532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10534 # Sed expression to map a string onto a valid variable name.
10535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10539 # We need space, tab and new line, in precisely that order.
10549 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10550 # report actual input values of CONFIG_FILES etc. instead of their
10551 # values after options handling. Logging --version etc. is OK.
10555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10556 ## Running $as_me. ##
10561 This file was extended by $as_me, which was
10562 generated by GNU Autoconf 2.59. Invocation command line was
10564 CONFIG_FILES = $CONFIG_FILES
10565 CONFIG_HEADERS = $CONFIG_HEADERS
10566 CONFIG_LINKS = $CONFIG_LINKS
10567 CONFIG_COMMANDS = $CONFIG_COMMANDS
10571 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10575 # Files that config.status was made for.
10576 if test -n "$ac_config_files"; then
10577 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10580 if test -n "$ac_config_headers"; then
10581 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10584 if test -n "$ac_config_links"; then
10585 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10588 if test -n "$ac_config_commands"; then
10589 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10592 cat >>$CONFIG_STATUS <<\_ACEOF
10595 \`$as_me' instantiates files from templates according to the
10596 current configuration.
10598 Usage: $0 [OPTIONS] [FILE]...
10600 -h, --help print this help, then exit
10601 -V, --version print version number, then exit
10602 -q, --quiet do not print progress messages
10603 -d, --debug don't remove temporary files
10604 --recheck update $as_me by reconfiguring in the same conditions
10605 --file=FILE[:TEMPLATE]
10606 instantiate the configuration file FILE
10607 --header=FILE[:TEMPLATE]
10608 instantiate the configuration header FILE
10610 Configuration files:
10613 Configuration headers:
10616 Configuration commands:
10619 Report bugs to <bug-autoconf@gnu.org>."
10622 cat >>$CONFIG_STATUS <<_ACEOF
10625 configured by $0, generated by GNU Autoconf 2.59,
10626 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10628 Copyright (C) 2003 Free Software Foundation, Inc.
10629 This config.status script is free software; the Free Software Foundation
10630 gives unlimited permission to copy, distribute and modify it."
10635 cat >>$CONFIG_STATUS <<\_ACEOF
10636 # If no file are specified by the user, then we need to provide default
10637 # value. By we need to know if files were specified by the user.
10643 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10644 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10652 *) # This is not an option, so the user has probably given explicit
10655 ac_need_defaults=false;;
10659 # Handling of the options.
10661 cat >>$CONFIG_STATUS <<\_ACEOF
10662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10664 --version | --vers* | -V )
10665 echo "$ac_cs_version"; exit 0 ;;
10667 # Conflict between --help and --header
10668 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10669 Try \`$0 --help' for more information." >&5
10670 echo "$as_me: error: ambiguous option: $1
10671 Try \`$0 --help' for more information." >&2;}
10672 { (exit 1); exit 1; }; };;
10673 --help | --hel | -h )
10674 echo "$ac_cs_usage"; exit 0 ;;
10675 --debug | --d* | -d )
10677 --file | --fil | --fi | --f )
10679 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10680 ac_need_defaults=false;;
10681 --header | --heade | --head | --hea )
10683 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10684 ac_need_defaults=false;;
10685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10689 # This is an error.
10690 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10691 Try \`$0 --help' for more information." >&5
10692 echo "$as_me: error: unrecognized option: $1
10693 Try \`$0 --help' for more information." >&2;}
10694 { (exit 1); exit 1; }; } ;;
10696 *) ac_config_targets="$ac_config_targets $1" ;;
10702 ac_configure_extra_args=
10704 if $ac_cs_silent; then
10706 ac_configure_extra_args="$ac_configure_extra_args --silent"
10710 cat >>$CONFIG_STATUS <<_ACEOF
10711 if \$ac_cs_recheck; then
10712 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10713 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10722 cat >>$CONFIG_STATUS <<\_ACEOF
10723 for ac_config_target in $ac_config_targets
10725 case "$ac_config_target" in
10726 # Handling of arguments.
10727 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10728 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
10729 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
10730 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10731 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10732 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10733 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10735 { (exit 1); exit 1; }; };;
10739 # If the user did not use the arguments to specify the items to instantiate,
10740 # then the envvar interface is used. Set only those that are not.
10741 # We use the long form for the default assignment because of an extremely
10742 # bizarre bug on SunOS 4.1.3.
10743 if $ac_need_defaults; then
10744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10749 # Have a temporary directory for convenience. Make it in the build tree
10750 # simply because there is no reason to put it here, and in addition,
10751 # creating and moving files from /tmp can sometimes cause problems.
10752 # Create a temporary directory, and hook for its removal unless debugging.
10755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10756 trap '{ (exit 1); exit 1; }' 1 2 13 15
10759 # Create a (secure) tmp directory for tmp files.
10762 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10763 test -n "$tmp" && test -d "$tmp"
10766 tmp=./confstat$$-$RANDOM
10767 (umask 077 && mkdir $tmp)
10770 echo "$me: cannot create a temporary directory in ." >&2
10771 { (exit 1); exit 1; }
10776 cat >>$CONFIG_STATUS <<_ACEOF
10779 # CONFIG_FILES section.
10782 # No need to generate the scripts if there are no CONFIG_FILES.
10783 # This happens for instance when ./config.status config.h
10784 if test -n "\$CONFIG_FILES"; then
10785 # Protect against being on the right side of a sed subst in config.status.
10786 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10787 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10788 s,@SHELL@,$SHELL,;t t
10789 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10790 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10791 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10792 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10793 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10794 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10795 s,@exec_prefix@,$exec_prefix,;t t
10796 s,@prefix@,$prefix,;t t
10797 s,@program_transform_name@,$program_transform_name,;t t
10798 s,@bindir@,$bindir,;t t
10799 s,@sbindir@,$sbindir,;t t
10800 s,@libexecdir@,$libexecdir,;t t
10801 s,@datadir@,$datadir,;t t
10802 s,@sysconfdir@,$sysconfdir,;t t
10803 s,@sharedstatedir@,$sharedstatedir,;t t
10804 s,@localstatedir@,$localstatedir,;t t
10805 s,@libdir@,$libdir,;t t
10806 s,@includedir@,$includedir,;t t
10807 s,@oldincludedir@,$oldincludedir,;t t
10808 s,@infodir@,$infodir,;t t
10809 s,@mandir@,$mandir,;t t
10810 s,@build_alias@,$build_alias,;t t
10811 s,@host_alias@,$host_alias,;t t
10812 s,@target_alias@,$target_alias,;t t
10813 s,@DEFS@,$DEFS,;t t
10814 s,@ECHO_C@,$ECHO_C,;t t
10815 s,@ECHO_N@,$ECHO_N,;t t
10816 s,@ECHO_T@,$ECHO_T,;t t
10817 s,@LIBS@,$LIBS,;t t
10818 s,@build@,$build,;t t
10819 s,@build_cpu@,$build_cpu,;t t
10820 s,@build_vendor@,$build_vendor,;t t
10821 s,@build_os@,$build_os,;t t
10822 s,@host@,$host,;t t
10823 s,@host_cpu@,$host_cpu,;t t
10824 s,@host_vendor@,$host_vendor,;t t
10825 s,@host_os@,$host_os,;t t
10827 s,@CFLAGS@,$CFLAGS,;t t
10828 s,@LDFLAGS@,$LDFLAGS,;t t
10829 s,@CPPFLAGS@,$CPPFLAGS,;t t
10830 s,@ac_ct_CC@,$ac_ct_CC,;t t
10831 s,@EXEEXT@,$EXEEXT,;t t
10832 s,@OBJEXT@,$OBJEXT,;t t
10834 s,@EGREP@,$EGREP,;t t
10836 s,@SET_MAKE@,$SET_MAKE,;t t
10837 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10838 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10839 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10840 s,@LN_S@,$LN_S,;t t
10841 s,@RMPROG@,$RMPROG,;t t
10842 s,@SHPROG@,$SHPROG,;t t
10844 s,@LEXLIB@,$LEXLIB,;t t
10845 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10846 s,@YACC@,$YACC,;t t
10847 s,@ENGINE_C@,$ENGINE_C,;t t
10848 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
10849 s,@SYMLINK@,$SYMLINK,;t t
10850 s,@IRCDMODE@,$IRCDMODE,;t t
10851 s,@IRCDOWN@,$IRCDOWN,;t t
10852 s,@IRCDGRP@,$IRCDGRP,;t t
10853 s,@DPATH@,$DPATH,;t t
10854 s,@LIBOBJS@,$LIBOBJS,;t t
10855 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10860 cat >>$CONFIG_STATUS <<\_ACEOF
10861 # Split the substitutions into bite-sized pieces for seds with
10862 # small command number limits, like on Digital OSF/1 and HP-UX.
10863 ac_max_sed_lines=48
10864 ac_sed_frag=1 # Number of current file.
10865 ac_beg=1 # First line for current file.
10866 ac_end=$ac_max_sed_lines # Line after last line for current file.
10869 while $ac_more_lines; do
10870 if test $ac_beg -gt 1; then
10871 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10873 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10875 if test ! -s $tmp/subs.frag; then
10876 ac_more_lines=false
10878 # The purpose of the label and of the branching condition is to
10879 # speed up the sed processing (if there are no `@' at all, there
10880 # is no need to browse any of the substitutions).
10881 # These are the two extra sed commands mentioned above.
10883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10884 if test -z "$ac_sed_cmds"; then
10885 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10887 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10889 ac_sed_frag=`expr $ac_sed_frag + 1`
10891 ac_end=`expr $ac_end + $ac_max_sed_lines`
10894 if test -z "$ac_sed_cmds"; then
10897 fi # test -n "$CONFIG_FILES"
10900 cat >>$CONFIG_STATUS <<\_ACEOF
10901 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10904 - | *:- | *:-:* ) # input from stdin
10906 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10908 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10910 * ) ac_file_in=$ac_file.in ;;
10913 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10914 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10916 X"$ac_file" : 'X\(//\)[^/]' \| \
10917 X"$ac_file" : 'X\(//\)$' \| \
10918 X"$ac_file" : 'X\(/\)' \| \
10919 . : '\(.\)' 2>/dev/null ||
10921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10923 /^X\(\/\/\)$/{ s//\1/; q; }
10924 /^X\(\/\).*/{ s//\1/; q; }
10926 { if $as_mkdir_p; then
10931 while test ! -d "$as_dir"; do
10932 as_dirs="$as_dir $as_dirs"
10933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10935 X"$as_dir" : 'X\(//\)[^/]' \| \
10936 X"$as_dir" : 'X\(//\)$' \| \
10937 X"$as_dir" : 'X\(/\)' \| \
10938 . : '\(.\)' 2>/dev/null ||
10940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10942 /^X\(\/\/\)$/{ s//\1/; q; }
10943 /^X\(\/\).*/{ s//\1/; q; }
10946 test ! -n "$as_dirs" || mkdir $as_dirs
10947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10948 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10949 { (exit 1); exit 1; }; }; }
10953 if test "$ac_dir" != .; then
10954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10955 # A "../" for each directory in $ac_dir_suffix.
10956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10958 ac_dir_suffix= ac_top_builddir=
10962 .) # No --srcdir option. We are building in place.
10964 if test -z "$ac_top_builddir"; then
10967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10969 [\\/]* | ?:[\\/]* ) # Absolute path.
10970 ac_srcdir=$srcdir$ac_dir_suffix;
10971 ac_top_srcdir=$srcdir ;;
10972 *) # Relative path.
10973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10977 # Do not use `cd foo && pwd` to compute absolute paths, because
10978 # the directories may not exist.
10980 .) ac_abs_builddir="$ac_dir";;
10983 .) ac_abs_builddir=`pwd`;;
10984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10988 case $ac_abs_builddir in
10989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10991 case ${ac_top_builddir}. in
10992 .) ac_abs_top_builddir=$ac_abs_builddir;;
10993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10997 case $ac_abs_builddir in
10998 .) ac_abs_srcdir=$ac_srcdir;;
11001 .) ac_abs_srcdir=$ac_abs_builddir;;
11002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11006 case $ac_abs_builddir in
11007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11009 case $ac_top_srcdir in
11010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11019 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11022 # Let's still pretend it is `configure' which instantiates (i.e., don't
11023 # use $as_me), people would be surprised to read:
11024 # /* config.h. Generated by config.status. */
11025 if test x"$ac_file" = x-; then
11028 configure_input="$ac_file. "
11030 configure_input=$configure_input"Generated from `echo $ac_file_in |
11031 sed 's,.*/,,'` by configure."
11033 # First look for the input files in the build tree, otherwise in the
11035 ac_file_inputs=`IFS=:
11036 for f in $ac_file_in; do
11038 -) echo $tmp/stdin ;;
11040 # Absolute (can't be DOS-style, as IFS=:)
11041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11042 echo "$as_me: error: cannot find input file: $f" >&2;}
11043 { (exit 1); exit 1; }; }
11046 if test -f "$f"; then
11049 elif test -f "$srcdir/$f"; then
11054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11055 echo "$as_me: error: cannot find input file: $f" >&2;}
11056 { (exit 1); exit 1; }; }
11059 done` || { (exit 1); exit 1; }
11061 if test x"$ac_file" != x-; then
11062 { echo "$as_me:$LINENO: creating $ac_file" >&5
11063 echo "$as_me: creating $ac_file" >&6;}
11067 cat >>$CONFIG_STATUS <<_ACEOF
11071 cat >>$CONFIG_STATUS <<\_ACEOF
11073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11074 s,@configure_input@,$configure_input,;t t
11075 s,@srcdir@,$ac_srcdir,;t t
11076 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11077 s,@top_srcdir@,$ac_top_srcdir,;t t
11078 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11079 s,@builddir@,$ac_builddir,;t t
11080 s,@abs_builddir@,$ac_abs_builddir,;t t
11081 s,@top_builddir@,$ac_top_builddir,;t t
11082 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11083 s,@INSTALL@,$ac_INSTALL,;t t
11084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11086 if test x"$ac_file" != x-; then
11087 mv $tmp/out $ac_file
11095 cat >>$CONFIG_STATUS <<\_ACEOF
11098 # CONFIG_HEADER section.
11101 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11102 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11104 # ac_d sets the value in "#define NAME VALUE" lines.
11105 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11106 ac_dB='[ ].*$,\1#\2'
11109 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11110 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11111 ac_uB='$,\1#\2define\3'
11115 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11118 - | *:- | *:-:* ) # input from stdin
11120 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11122 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11124 * ) ac_file_in=$ac_file.in ;;
11127 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11128 echo "$as_me: creating $ac_file" >&6;}
11130 # First look for the input files in the build tree, otherwise in the
11132 ac_file_inputs=`IFS=:
11133 for f in $ac_file_in; do
11135 -) echo $tmp/stdin ;;
11137 # Absolute (can't be DOS-style, as IFS=:)
11138 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11139 echo "$as_me: error: cannot find input file: $f" >&2;}
11140 { (exit 1); exit 1; }; }
11141 # Do quote $f, to prevent DOS paths from being IFS'd.
11144 if test -f "$f"; then
11147 elif test -f "$srcdir/$f"; then
11152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11153 echo "$as_me: error: cannot find input file: $f" >&2;}
11154 { (exit 1); exit 1; }; }
11157 done` || { (exit 1); exit 1; }
11158 # Remove the trailing spaces.
11159 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11163 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11164 # `conftest.undefs', that substitutes the proper values into
11165 # config.h.in to produce config.h. The first handles `#define'
11166 # templates, and the second `#undef' templates.
11167 # And first: Protect against being on the right side of a sed subst in
11168 # config.status. Protect against being in an unquoted here document
11169 # in config.status.
11170 rm -f conftest.defines conftest.undefs
11171 # Using a here document instead of a string reduces the quoting nightmare.
11172 # Putting comments in sed scripts is not portable.
11174 # `end' is used to avoid that the second main sed command (meant for
11175 # 0-ary CPP macros) applies to n-ary macro definitions.
11176 # See the Autoconf documentation for `clear'.
11177 cat >confdef2sed.sed <<\_ACEOF
11182 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11184 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11187 # If some macros were called several times there might be several times
11188 # the same #defines, which is useless. Nevertheless, we may not want to
11189 # sort them, since we want the *last* AC-DEFINE to be honored.
11190 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11191 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11192 rm -f confdef2sed.sed
11194 # This sed command replaces #undef with comments. This is necessary, for
11195 # example, in the case of _POSIX_SOURCE, which is predefined and required
11196 # on some systems where configure will not decide to define it.
11197 cat >>conftest.undefs <<\_ACEOF
11198 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11201 # Break up conftest.defines because some shells have a limit on the size
11202 # of here documents, and old seds have small limits too (100 cmds).
11203 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11204 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11205 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11206 echo ' :' >>$CONFIG_STATUS
11207 rm -f conftest.tail
11208 while grep . conftest.defines >/dev/null
11210 # Write a limited-size here document to $tmp/defines.sed.
11211 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11212 # Speed up: don't consider the non `#define' lines.
11213 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11214 # Work around the forget-to-reset-the-flag bug.
11215 echo 't clr' >>$CONFIG_STATUS
11216 echo ': clr' >>$CONFIG_STATUS
11217 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11219 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11221 mv $tmp/out $tmp/in
11223 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11224 rm -f conftest.defines
11225 mv conftest.tail conftest.defines
11227 rm -f conftest.defines
11228 echo ' fi # grep' >>$CONFIG_STATUS
11229 echo >>$CONFIG_STATUS
11231 # Break up conftest.undefs because some shells have a limit on the size
11232 # of here documents, and old seds have small limits too (100 cmds).
11233 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11234 rm -f conftest.tail
11235 while grep . conftest.undefs >/dev/null
11237 # Write a limited-size here document to $tmp/undefs.sed.
11238 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11239 # Speed up: don't consider the non `#undef'
11240 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11241 # Work around the forget-to-reset-the-flag bug.
11242 echo 't clr' >>$CONFIG_STATUS
11243 echo ': clr' >>$CONFIG_STATUS
11244 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11246 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11248 mv $tmp/out $tmp/in
11250 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11251 rm -f conftest.undefs
11252 mv conftest.tail conftest.undefs
11254 rm -f conftest.undefs
11256 cat >>$CONFIG_STATUS <<\_ACEOF
11257 # Let's still pretend it is `configure' which instantiates (i.e., don't
11258 # use $as_me), people would be surprised to read:
11259 # /* config.h. Generated by config.status. */
11260 if test x"$ac_file" = x-; then
11261 echo "/* Generated by configure. */" >$tmp/config.h
11263 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11265 cat $tmp/in >>$tmp/config.h
11267 if test x"$ac_file" != x-; then
11268 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11269 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11270 echo "$as_me: $ac_file is unchanged" >&6;}
11272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11274 X"$ac_file" : 'X\(//\)[^/]' \| \
11275 X"$ac_file" : 'X\(//\)$' \| \
11276 X"$ac_file" : 'X\(/\)' \| \
11277 . : '\(.\)' 2>/dev/null ||
11279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11281 /^X\(\/\/\)$/{ s//\1/; q; }
11282 /^X\(\/\).*/{ s//\1/; q; }
11284 { if $as_mkdir_p; then
11289 while test ! -d "$as_dir"; do
11290 as_dirs="$as_dir $as_dirs"
11291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11293 X"$as_dir" : 'X\(//\)[^/]' \| \
11294 X"$as_dir" : 'X\(//\)$' \| \
11295 X"$as_dir" : 'X\(/\)' \| \
11296 . : '\(.\)' 2>/dev/null ||
11298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11300 /^X\(\/\/\)$/{ s//\1/; q; }
11301 /^X\(\/\).*/{ s//\1/; q; }
11304 test ! -n "$as_dirs" || mkdir $as_dirs
11305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11307 { (exit 1); exit 1; }; }; }
11310 mv $tmp/config.h $ac_file
11314 rm -f $tmp/config.h
11318 cat >>$CONFIG_STATUS <<\_ACEOF
11321 # CONFIG_COMMANDS section.
11323 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11324 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11325 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11326 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11327 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11328 X"$ac_dest" : 'X\(//\)[^/]' \| \
11329 X"$ac_dest" : 'X\(//\)$' \| \
11330 X"$ac_dest" : 'X\(/\)' \| \
11331 . : '\(.\)' 2>/dev/null ||
11333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11335 /^X\(\/\/\)$/{ s//\1/; q; }
11336 /^X\(\/\).*/{ s//\1/; q; }
11338 { if $as_mkdir_p; then
11343 while test ! -d "$as_dir"; do
11344 as_dirs="$as_dir $as_dirs"
11345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11347 X"$as_dir" : 'X\(//\)[^/]' \| \
11348 X"$as_dir" : 'X\(//\)$' \| \
11349 X"$as_dir" : 'X\(/\)' \| \
11350 . : '\(.\)' 2>/dev/null ||
11352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11354 /^X\(\/\/\)$/{ s//\1/; q; }
11355 /^X\(\/\).*/{ s//\1/; q; }
11358 test ! -n "$as_dirs" || mkdir $as_dirs
11359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11361 { (exit 1); exit 1; }; }; }
11365 if test "$ac_dir" != .; then
11366 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11367 # A "../" for each directory in $ac_dir_suffix.
11368 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11370 ac_dir_suffix= ac_top_builddir=
11374 .) # No --srcdir option. We are building in place.
11376 if test -z "$ac_top_builddir"; then
11379 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11381 [\\/]* | ?:[\\/]* ) # Absolute path.
11382 ac_srcdir=$srcdir$ac_dir_suffix;
11383 ac_top_srcdir=$srcdir ;;
11384 *) # Relative path.
11385 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11386 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11389 # Do not use `cd foo && pwd` to compute absolute paths, because
11390 # the directories may not exist.
11392 .) ac_abs_builddir="$ac_dir";;
11395 .) ac_abs_builddir=`pwd`;;
11396 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11397 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11400 case $ac_abs_builddir in
11401 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11403 case ${ac_top_builddir}. in
11404 .) ac_abs_top_builddir=$ac_abs_builddir;;
11405 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11406 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11409 case $ac_abs_builddir in
11410 .) ac_abs_srcdir=$ac_srcdir;;
11413 .) ac_abs_srcdir=$ac_abs_builddir;;
11414 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11415 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11418 case $ac_abs_builddir in
11419 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11421 case $ac_top_srcdir in
11422 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11423 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11424 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11429 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11430 echo "$as_me: executing $ac_dest commands" >&6;}
11432 default ) echo timestamp > stamp-h ;;
11437 cat >>$CONFIG_STATUS <<\_ACEOF
11439 { (exit 0); exit 0; }
11441 chmod +x $CONFIG_STATUS
11442 ac_clean_files=$ac_clean_files_save
11445 # configure is writing to config.log, and then calls config.status.
11446 # config.status does its own redirection, appending to config.log.
11447 # Unfortunately, on DOS this fails, as config.log is still kept open
11448 # by configure, so config.status won't be able to write to it; its
11449 # output is simply discarded. So we exec the FD to /dev/null,
11450 # effectively closing config.log, so it can be properly (re)opened and
11451 # appended to by config.status. When coming back to configure, we
11452 # need to make the FD available again.
11453 if test "$no_create" != yes; then
11455 ac_config_status_args=
11456 test "$silent" = yes &&
11457 ac_config_status_args="$ac_config_status_args --quiet"
11459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11462 # would make configure fail if this is the last instruction.
11463 $ac_cs_success || { (exit 1); exit 1; }
11467 ac_config_commands="$ac_config_commands default-1"