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 -Aa -D_HPUX_SOURCE
2370 # SVR4 -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 CC="$ac_save_CC $ac_arg"
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2398 s = g (p, va_arg (v,int));
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 am_cv_prog_cc_stdc="$ac_arg"; break
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 if test -z "$am_cv_prog_cc_stdc"; then
2453 echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6
2456 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2459 case "x$am_cv_prog_cc_stdc" in
2461 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2464 if test x"$CFLAGS" != x; then
2465 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2467 if test x"$CFLAGS" != x; then
2468 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2470 if test x"$CFLAGS" != x; then
2471 unet_old_cflags=$CFLAGS
2472 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2474 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2475 # If -g was already there, force symbols to be enabled
2476 unet_cv_enable_symbols=yes
2478 if test x"$CFLAGS" != x; then
2479 unet_old_cflags=$CFLAGS
2480 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2482 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2483 # If -pg was already there, force profiling to be enabled
2484 unet_cv_enable_profile=yes
2486 if test x"$CFLAGS" != x; then
2487 unet_old_cflags=$CFLAGS
2488 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2490 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2491 # If -Wall was already there, force warnings to be enabled
2492 unet_cv_enable_warnings=yes
2494 if test x"$CFLAGS" != x; then
2495 unet_old_cflags=$CFLAGS
2496 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2498 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2499 # If -pedantic was already there, force pedatic to be enabled
2500 unet_cv_enable_pedantic=yes
2504 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2505 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2506 if test "${ac_cv_search_crypt+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 ac_func_search_save_LIBS=$LIBS
2510 ac_cv_search_crypt=no
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2518 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2533 rm -f conftest.$ac_objext conftest$ac_exeext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2535 (eval $ac_link) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try='test -s conftest$ac_exeext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 ac_cv_search_crypt="none required"
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 rm -f conftest.err conftest.$ac_objext \
2561 conftest$ac_exeext conftest.$ac_ext
2562 if test "$ac_cv_search_crypt" = no; then
2563 for ac_lib in descrypt crypt; do
2564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2572 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2587 rm -f conftest.$ac_objext conftest$ac_exeext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2589 (eval $ac_link) 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest$ac_exeext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 ac_cv_search_crypt="-l$ac_lib"
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f conftest.err conftest.$ac_objext \
2616 conftest$ac_exeext conftest.$ac_ext
2619 LIBS=$ac_func_search_save_LIBS
2621 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2622 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2623 if test "$ac_cv_search_crypt" != no; then
2624 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2627 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2628 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2629 { (exit 1); exit 1; }; }
2634 # Most operating systems have gethostbyname() in the default searched
2635 # libraries (i.e. libc):
2636 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2637 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2638 if test "${ac_cv_func_gethostbyname+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2649 #define gethostbyname innocuous_gethostbyname
2651 /* System header to define __stub macros and hopefully few prototypes,
2652 which can conflict with char gethostbyname (); below.
2653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 <limits.h> exists even on freestanding compilers. */
2657 # include <limits.h>
2659 # include <assert.h>
2662 #undef gethostbyname
2664 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671 char gethostbyname ();
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2678 char (*f) () = gethostbyname;
2687 return f != gethostbyname;
2692 rm -f conftest.$ac_objext conftest$ac_exeext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2694 (eval $ac_link) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest$ac_exeext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_func_gethostbyname=yes
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_cv_func_gethostbyname=no
2720 rm -f conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2724 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2725 if test $ac_cv_func_gethostbyname = yes; then
2728 # Some OSes (eg. Solaris) place it in libnsl:
2730 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 ac_check_lib_save_LIBS=$LIBS
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2744 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2750 char gethostbyname ();
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761 (eval $ac_link) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; } &&
2774 { ac_try='test -s conftest$ac_exeext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_lib_nsl_gethostbyname=yes
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 ac_cv_lib_nsl_gethostbyname=no
2787 rm -f conftest.err conftest.$ac_objext \
2788 conftest$ac_exeext conftest.$ac_ext
2789 LIBS=$ac_check_lib_save_LIBS
2791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2792 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2793 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2794 cat >>confdefs.h <<_ACEOF
2795 #define HAVE_LIBNSL 1
2801 # Some strange OSes (SINIX) have it in libsocket:
2803 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2804 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2805 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 ac_check_lib_save_LIBS=$LIBS
2809 LIBS="-lsocket $LIBS"
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2817 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2823 char gethostbyname ();
2832 rm -f conftest.$ac_objext conftest$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_lib_socket_gethostbyname=yes
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 ac_cv_lib_socket_gethostbyname=no
2860 rm -f conftest.err conftest.$ac_objext \
2861 conftest$ac_exeext conftest.$ac_ext
2862 LIBS=$ac_check_lib_save_LIBS
2864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2866 if test $ac_cv_lib_socket_gethostbyname = yes; then
2867 cat >>confdefs.h <<_ACEOF
2868 #define HAVE_LIBSOCKET 1
2871 LIBS="-lsocket $LIBS"
2874 # Unfortunately libsocket sometimes depends on libnsl.
2875 # AC_CHECK_LIB's API is essentially broken so the following
2876 # ugliness is necessary:
2877 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 ac_check_lib_save_LIBS=$LIBS
2883 LIBS="-lsocket -lnsl $LIBS"
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2891 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2897 char gethostbyname ();
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest$ac_exeext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_lib_socket_gethostbyname=yes
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 ac_cv_lib_socket_gethostbyname=no
2934 rm -f conftest.err conftest.$ac_objext \
2935 conftest$ac_exeext conftest.$ac_ext
2936 LIBS=$ac_check_lib_save_LIBS
2938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2940 if test $ac_cv_lib_socket_gethostbyname = yes; then
2941 LIBS="-lsocket -lnsl $LIBS"
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2946 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lresolv $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2958 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2964 char gethostbyname ();
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest$ac_exeext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 ac_cv_lib_resolv_gethostbyname=yes
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 ac_cv_lib_resolv_gethostbyname=no
3001 rm -f conftest.err conftest.$ac_objext \
3002 conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3007 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3008 cat >>confdefs.h <<_ACEOF
3009 #define HAVE_LIBRESOLV 1
3012 LIBS="-lresolv $LIBS"
3027 echo "$as_me:$LINENO: checking for socket" >&5
3028 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3029 if test "${ac_cv_func_socket+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3040 #define socket innocuous_socket
3042 /* System header to define __stub macros and hopefully few prototypes,
3043 which can conflict with char socket (); below.
3044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 <limits.h> exists even on freestanding compilers. */
3048 # include <limits.h>
3050 # include <assert.h>
3055 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3063 /* The GNU C library defines this for functions which it implements
3064 to always fail with ENOSYS. Some functions are actually named
3065 something starting with __ and the normal name is an alias. */
3066 #if defined (__stub_socket) || defined (__stub___socket)
3069 char (*f) () = socket;
3083 rm -f conftest.$ac_objext conftest$ac_exeext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_func_socket=yes
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cv_func_socket=no
3111 rm -f conftest.err conftest.$ac_objext \
3112 conftest$ac_exeext conftest.$ac_ext
3114 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3115 echo "${ECHO_T}$ac_cv_func_socket" >&6
3116 if test $ac_cv_func_socket = yes; then
3120 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3122 if test "${ac_cv_lib_socket_socket+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lsocket $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151 (eval $ac_link) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1 >conftest.err
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest$ac_exeext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_lib_socket_socket=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 ac_cv_lib_socket_socket=no
3177 rm -f conftest.err conftest.$ac_objext \
3178 conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3182 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3183 if test $ac_cv_lib_socket_socket = yes; then
3184 cat >>confdefs.h <<_ACEOF
3185 #define HAVE_LIBSOCKET 1
3188 LIBS="-lsocket $LIBS"
3191 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3192 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3193 if test "${ac_cv_lib_socket_socket+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 ac_check_lib_save_LIBS=$LIBS
3197 LIBS="-lsocket -lnsl $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3205 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest$ac_exeext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_lib_socket_socket=yes
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_lib_socket_socket=no
3248 rm -f conftest.err conftest.$ac_objext \
3249 conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3253 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3254 if test $ac_cv_lib_socket_socket = yes; then
3255 LIBS="-lsocket -lnsl $LIBS"
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3275 if test -z "$CPP"; then
3276 if test "${ac_cv_prog_CPP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 # Double quotes because CPP needs to be expanded
3280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3283 for ac_c_preproc_warn_flag in '' yes
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 # <limits.h> exists even on freestanding compilers.
3289 # On the NeXT, cc -E runs the code through the compiler's parser,
3290 # not just through cpp. "Syntax error" is here to catch this case.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3298 # include <limits.h>
3300 # include <assert.h>
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321 if test -z "$ac_cpp_err"; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 # Broken: fails on valid input.
3330 rm -f conftest.err conftest.$ac_ext
3332 # OK, works on sane cases. Now check whether non-existent headers
3333 # can be detected and how.
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <ac_nonexistent.h>
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null; then
3350 if test -s conftest.err; then
3351 ac_cpp_err=$ac_c_preproc_warn_flag
3352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3359 if test -z "$ac_cpp_err"; then
3360 # Broken: success on invalid input.
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Passes both tests.
3370 rm -f conftest.err conftest.$ac_ext
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3387 echo "$as_me:$LINENO: result: $CPP" >&5
3388 echo "${ECHO_T}$CPP" >&6
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3477 rm -f conftest.err conftest.$ac_ext
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&5
3487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3488 See \`config.log' for more details." >&2;}
3489 { (exit 1); exit 1; }; }
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 echo "$as_me:$LINENO: checking for egrep" >&5
3500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3501 if test "${ac_cv_prog_egrep+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3505 then ac_cv_prog_egrep='grep -E'
3506 else ac_cv_prog_egrep='egrep'
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3511 EGREP=$ac_cv_prog_egrep
3514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3516 if test "${ac_cv_header_stdc+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_header_stdc=yes
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_cv_header_stdc=no
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568 if test $ac_cv_header_stdc = yes; then
3569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 $EGREP "memchr" >/dev/null 2>&1; then
3583 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "free" >/dev/null 2>&1; then
3604 ac_cv_header_stdc=no
3610 if test $ac_cv_header_stdc = yes; then
3611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612 if test "$cross_compiling" = yes; then
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3622 #if ((' ' & 0x0FF) == 0x020)
3623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 # define ISLOWER(c) \
3627 (('a' <= (c) && (c) <= 'i') \
3628 || ('j' <= (c) && (c) <= 'r') \
3629 || ('s' <= (c) && (c) <= 'z'))
3630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3638 for (i = 0; i < 256; i++)
3639 if (XOR (islower (i), ISLOWER (i))
3640 || toupper (i) != TOUPPER (i))
3645 rm -f conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3658 echo "$as_me: program exited with status $ac_status" >&5
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3663 ac_cv_header_stdc=no
3665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3671 if test $ac_cv_header_stdc = yes; then
3673 cat >>confdefs.h <<\_ACEOF
3674 #define STDC_HEADERS 1
3679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690 inttypes.h stdint.h unistd.h
3692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 echo "$as_me:$LINENO: checking for $ac_header" >&5
3694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3706 #include <$ac_header>
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 eval "$as_ac_Header=yes"
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 eval "$as_ac_Header=no"
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741 cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3780 #include <$ac_header>
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_header_compiler=yes
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 ac_header_compiler=no
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6
3814 # Is the header present?
3815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <$ac_header>
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3842 if test -z "$ac_cpp_err"; then
3843 ac_header_preproc=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_header_preproc=no
3850 rm -f conftest.err conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3852 echo "${ECHO_T}$ac_header_preproc" >&6
3854 # So? What about this header?
3855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3861 ac_header_preproc=yes
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3878 ## ------------------------------------------ ##
3879 ## Report this to the AC_PACKAGE_NAME lists. ##
3880 ## ------------------------------------------ ##
3883 sed "s/^/$as_me: WARNING: /" >&2
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 eval "$as_ac_Header=\$ac_header_preproc"
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3908 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3909 if test "${ac_cv_c_bigendian+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 # See if sys/param.h defines the BYTE_ORDER macro.
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <sys/types.h>
3920 #include <sys/param.h>
3925 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3933 rm -f conftest.$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935 (eval $ac_compile) 2>conftest.er1
3937 grep -v '^ *+' conftest.er1 >conftest.err
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 # It does; now see whether it defined to BIG_ENDIAN or not.
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #include <sys/types.h>
3962 #include <sys/param.h>
3967 #if BYTE_ORDER != BIG_ENDIAN
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_c_bigendian=yes
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_c_bigendian=no
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 # It does not; compile a test program.
4009 if test "$cross_compiling" = yes; then
4010 # try to guess the endianness by grepping values into an object file
4011 ac_cv_c_bigendian=unknown
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4019 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4020 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4021 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4022 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4023 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4027 _ascii (); _ebcdic ();
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4054 ac_cv_c_bigendian=yes
4056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4057 if test "$ac_cv_c_bigendian" = unknown; then
4058 ac_cv_c_bigendian=no
4060 # finding both strings is unlikely to happen, but who knows?
4061 ac_cv_c_bigendian=unknown
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 /* Are we little or big endian? From Harbison&Steele. */
4084 char c[sizeof (long)];
4087 exit (u.c[sizeof (long) - 1] == 1);
4090 rm -f conftest$ac_exeext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092 (eval $ac_link) 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_c_bigendian=no
4103 echo "$as_me: program exited with status $ac_status" >&5
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_c_bigendian=yes
4110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4116 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4117 case $ac_cv_c_bigendian in
4120 cat >>confdefs.h <<\_ACEOF
4121 #define WORDS_BIGENDIAN 1
4127 { { echo "$as_me:$LINENO: error: unknown endianness
4128 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4129 echo "$as_me: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4131 { (exit 1); exit 1; }; } ;;
4134 echo "$as_me:$LINENO: checking for size_t" >&5
4135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4136 if test "${ac_cv_type_size_t+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 $ac_includes_default
4151 if (sizeof (size_t))
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_type_size_t=yes
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_type_size_t=no
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4188 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4189 if test $ac_cv_type_size_t = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194 #define size_t unsigned
4199 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 #include <sys/time.h>
4217 if ((struct tm *) 0)
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_header_time=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_header_time=no
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4254 echo "${ECHO_T}$ac_cv_header_time" >&6
4255 if test $ac_cv_header_time = yes; then
4257 cat >>confdefs.h <<\_ACEOF
4258 #define TIME_WITH_SYS_TIME 1
4263 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4265 if test "${ac_cv_struct_tm+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4280 struct tm *tp; tp->tm_sec;
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_struct_tm=time.h
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_struct_tm=sys/time.h
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4316 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4317 if test $ac_cv_struct_tm = sys/time.h; then
4319 cat >>confdefs.h <<\_ACEOF
4320 #define TM_IN_SYS_TIME 1
4325 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4327 if test "${ac_cv_type_uid_t+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <sys/types.h>
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "uid_t" >/dev/null 2>&1; then
4341 ac_cv_type_uid_t=yes
4348 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4350 if test $ac_cv_type_uid_t = no; then
4352 cat >>confdefs.h <<\_ACEOF
4357 cat >>confdefs.h <<\_ACEOF
4363 echo "$as_me:$LINENO: checking for short" >&5
4364 echo $ECHO_N "checking for short... $ECHO_C" >&6
4365 if test "${ac_cv_type_short+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_type_short=yes
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4417 echo "${ECHO_T}$ac_cv_type_short" >&6
4419 echo "$as_me:$LINENO: checking size of short" >&5
4420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4421 if test "${ac_cv_sizeof_short+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test "$ac_cv_type_short" = yes; then
4425 # The cast to unsigned long works around a bug in the HP C Compiler
4426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4428 # This bug is HP SR number 8606223364.
4429 if test "$cross_compiling" = yes; then
4430 # Depending upon the size, compute the lo and hi bounds.
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4441 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4481 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_hi=$ac_mid; break
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_lo=`expr $ac_mid + 1`
4515 if test $ac_lo -le $ac_mid; then
4519 ac_mid=`expr 2 '*' $ac_mid + 1`
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4588 grep -v '^ *+' conftest.er1 >conftest.err
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_lo=$ac_mid; break
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_hi=`expr '(' $ac_mid ')' - 1`
4611 if test $ac_mid -le $ac_hi; then
4615 ac_mid=`expr 2 '*' $ac_mid`
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4641 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 ac_lo=`expr '(' $ac_mid ')' + 1`
4676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ?*) ac_cv_sizeof_short=$ac_lo;;
4680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; } ;;
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4689 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4690 { (exit 1); exit 1; }; }
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4699 long longval () { return (long) (sizeof (short)); }
4700 unsigned long ulongval () { return (long) (sizeof (short)); }
4707 FILE *f = fopen ("conftest.val", "w");
4710 if (((long) (sizeof (short))) < 0)
4712 long i = longval ();
4713 if (i != ((long) (sizeof (short))))
4715 fprintf (f, "%ld\n", i);
4719 unsigned long i = ulongval ();
4720 if (i != ((long) (sizeof (short))))
4722 fprintf (f, "%lu\n", i);
4724 exit (ferror (f) || fclose (f) != 0);
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_sizeof_short=`cat conftest.val`
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&2;}
4752 { (exit 1); exit 1; }; }
4754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_sizeof_short=0
4762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4763 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4764 cat >>confdefs.h <<_ACEOF
4765 #define SIZEOF_SHORT $ac_cv_sizeof_short
4769 echo "$as_me:$LINENO: checking for int" >&5
4770 echo $ECHO_N "checking for int... $ECHO_C" >&6
4771 if test "${ac_cv_type_int+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4823 echo "${ECHO_T}$ac_cv_type_int" >&6
4825 echo "$as_me:$LINENO: checking size of int" >&5
4826 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4827 if test "${ac_cv_sizeof_int+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test "$ac_cv_type_int" = yes; then
4831 # The cast to unsigned long works around a bug in the HP C Compiler
4832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834 # This bug is HP SR number 8606223364.
4835 if test "$cross_compiling" = yes; then
4836 # Depending upon the size, compute the lo and hi bounds.
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 $ac_includes_default
4887 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_hi=$ac_mid; break
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_lo=`expr $ac_mid + 1`
4921 if test $ac_lo -le $ac_mid; then
4925 ac_mid=`expr 2 '*' $ac_mid + 1`
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4983 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_lo=$ac_mid; break
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_hi=`expr '(' $ac_mid ')' - 1`
5017 if test $ac_mid -le $ac_hi; then
5021 ac_mid=`expr 2 '*' $ac_mid`
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 # Binary search between lo and hi bounds.
5035 while test "x$ac_lo" != "x$ac_hi"; do
5036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_lo=`expr '(' $ac_mid ')' + 1`
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 ?*) ac_cv_sizeof_int=$ac_lo;;
5086 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5087 See \`config.log' for more details." >&5
5088 echo "$as_me: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&2;}
5090 { (exit 1); exit 1; }; } ;;
5093 if test "$cross_compiling" = yes; then
5094 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5095 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5096 { (exit 1); exit 1; }; }
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 $ac_includes_default
5105 long longval () { return (long) (sizeof (int)); }
5106 unsigned long ulongval () { return (long) (sizeof (int)); }
5113 FILE *f = fopen ("conftest.val", "w");
5116 if (((long) (sizeof (int))) < 0)
5118 long i = longval ();
5119 if (i != ((long) (sizeof (int))))
5121 fprintf (f, "%ld\n", i);
5125 unsigned long i = ulongval ();
5126 if (i != ((long) (sizeof (int))))
5128 fprintf (f, "%lu\n", i);
5130 exit (ferror (f) || fclose (f) != 0);
5136 rm -f conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_sizeof_int=`cat conftest.val`
5149 echo "$as_me: program exited with status $ac_status" >&5
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&2;}
5158 { (exit 1); exit 1; }; }
5160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5169 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5170 cat >>confdefs.h <<_ACEOF
5171 #define SIZEOF_INT $ac_cv_sizeof_int
5175 echo "$as_me:$LINENO: checking for long" >&5
5176 echo $ECHO_N "checking for long... $ECHO_C" >&6
5177 if test "${ac_cv_type_long+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest.$ac_objext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5229 echo "${ECHO_T}$ac_cv_type_long" >&6
5231 echo "$as_me:$LINENO: checking size of long" >&5
5232 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5233 if test "${ac_cv_sizeof_long+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test "$ac_cv_type_long" = yes; then
5237 # The cast to unsigned long works around a bug in the HP C Compiler
5238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5240 # This bug is HP SR number 8606223364.
5241 if test "$cross_compiling" = yes; then
5242 # Depending upon the size, compute the lo and hi bounds.
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 $ac_includes_default
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_hi=$ac_mid; break
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_lo=`expr $ac_mid + 1`
5327 if test $ac_lo -le $ac_mid; then
5331 ac_mid=`expr 2 '*' $ac_mid + 1`
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_lo=$ac_mid; break
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_hi=`expr '(' $ac_mid ')' - 1`
5423 if test $ac_mid -le $ac_hi; then
5427 ac_mid=`expr 2 '*' $ac_mid`
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; } &&
5475 { ac_try='test -s conftest.$ac_objext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_lo=`expr '(' $ac_mid ')' + 1`
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ?*) ac_cv_sizeof_long=$ac_lo;;
5492 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5493 See \`config.log' for more details." >&5
5494 echo "$as_me: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&2;}
5496 { (exit 1); exit 1; }; } ;;
5499 if test "$cross_compiling" = yes; then
5500 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5501 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5502 { (exit 1); exit 1; }; }
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 long longval () { return (long) (sizeof (long)); }
5512 unsigned long ulongval () { return (long) (sizeof (long)); }
5519 FILE *f = fopen ("conftest.val", "w");
5522 if (((long) (sizeof (long))) < 0)
5524 long i = longval ();
5525 if (i != ((long) (sizeof (long))))
5527 fprintf (f, "%ld\n", i);
5531 unsigned long i = ulongval ();
5532 if (i != ((long) (sizeof (long))))
5534 fprintf (f, "%lu\n", i);
5536 exit (ferror (f) || fclose (f) != 0);
5542 rm -f conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_sizeof_long=`cat conftest.val`
5555 echo "$as_me: program exited with status $ac_status" >&5
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5561 See \`config.log' for more details." >&5
5562 echo "$as_me: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&2;}
5564 { (exit 1); exit 1; }; }
5566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_LONG $ac_cv_sizeof_long
5581 echo "$as_me:$LINENO: checking for void *" >&5
5582 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5583 if test "${ac_cv_type_void_p+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5598 if (sizeof (void *))
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_type_void_p=yes
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 ac_cv_type_void_p=no
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5635 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5637 echo "$as_me:$LINENO: checking size of void *" >&5
5638 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5639 if test "${ac_cv_sizeof_void_p+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 if test "$ac_cv_type_void_p" = yes; then
5643 # The cast to unsigned long works around a bug in the HP C Compiler
5644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646 # This bug is HP SR number 8606223364.
5647 if test "$cross_compiling" = yes; then
5648 # Depending upon the size, compute the lo and hi bounds.
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 $ac_includes_default
5659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 $ac_includes_default
5699 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_hi=$ac_mid; break
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_lo=`expr $ac_mid + 1`
5733 if test $ac_lo -le $ac_mid; then
5737 ac_mid=`expr 2 '*' $ac_mid + 1`
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 $ac_includes_default
5755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5795 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_lo=$ac_mid; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829 if test $ac_mid -le $ac_hi; then
5833 ac_mid=`expr 2 '*' $ac_mid`
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_lo=`expr '(' $ac_mid ')' + 1`
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&2;}
5902 { (exit 1); exit 1; }; } ;;
5905 if test "$cross_compiling" = yes; then
5906 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5907 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5908 { (exit 1); exit 1; }; }
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5917 long longval () { return (long) (sizeof (void *)); }
5918 unsigned long ulongval () { return (long) (sizeof (void *)); }
5925 FILE *f = fopen ("conftest.val", "w");
5928 if (((long) (sizeof (void *))) < 0)
5930 long i = longval ();
5931 if (i != ((long) (sizeof (void *))))
5933 fprintf (f, "%ld\n", i);
5937 unsigned long i = ulongval ();
5938 if (i != ((long) (sizeof (void *))))
5940 fprintf (f, "%lu\n", i);
5942 exit (ferror (f) || fclose (f) != 0);
5948 rm -f conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_sizeof_void_p=`cat conftest.val`
5961 echo "$as_me: program exited with status $ac_status" >&5
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&2;}
5970 { (exit 1); exit 1; }; }
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5977 ac_cv_sizeof_void_p=0
5980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5981 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5982 cat >>confdefs.h <<_ACEOF
5983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5987 if test "$ac_cv_sizeof_int" = 2 ; then
5988 echo "$as_me:$LINENO: checking for int16_t" >&5
5989 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5990 if test "${ac_cv_type_int16_t+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6005 if (sizeof (int16_t))
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_type_int16_t=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_type_int16_t=no
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6043 if test $ac_cv_type_int16_t = yes; then
6047 cat >>confdefs.h <<_ACEOF
6053 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6054 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6055 if test "${ac_cv_type_u_int16_t+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6068 if ((u_int16_t *) 0)
6070 if (sizeof (u_int16_t))
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_type_u_int16_t=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_type_u_int16_t=no
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6107 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6108 if test $ac_cv_type_u_int16_t = yes; then
6112 cat >>confdefs.h <<_ACEOF
6113 #define u_int16_t unsigned int
6118 elif test "$ac_cv_sizeof_short" = 2 ; then
6119 echo "$as_me:$LINENO: checking for int16_t" >&5
6120 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_int16_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6136 if (sizeof (int16_t))
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_type_int16_t=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_cv_type_int16_t=no
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6174 if test $ac_cv_type_int16_t = yes; then
6178 cat >>confdefs.h <<_ACEOF
6179 #define int16_t short
6184 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6185 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6186 if test "${ac_cv_type_u_int16_t+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6199 if ((u_int16_t *) 0)
6201 if (sizeof (u_int16_t))
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_type_u_int16_t=yes
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_type_u_int16_t=no
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6238 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6239 if test $ac_cv_type_u_int16_t = yes; then
6243 cat >>confdefs.h <<_ACEOF
6244 #define u_int16_t unsigned short
6250 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6251 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6252 { (exit 1); exit 1; }; }
6254 if test "$ac_cv_sizeof_int" = 4 ; then
6255 echo "$as_me:$LINENO: checking for int32_t" >&5
6256 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6257 if test "${ac_cv_type_int32_t+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6272 if (sizeof (int32_t))
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_type_int32_t=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_type_int32_t=no
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6309 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6310 if test $ac_cv_type_int32_t = yes; then
6314 cat >>confdefs.h <<_ACEOF
6320 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6321 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6322 if test "${ac_cv_type_u_int32_t+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 if ((u_int32_t *) 0)
6337 if (sizeof (u_int32_t))
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_type_u_int32_t=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_type_u_int32_t=no
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6374 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6375 if test $ac_cv_type_u_int32_t = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380 #define u_int32_t unsigned int
6385 elif test "$ac_cv_sizeof_short" = 4 ; then
6386 echo "$as_me:$LINENO: checking for int32_t" >&5
6387 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_int32_t+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6403 if (sizeof (int32_t))
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_type_int32_t=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_type_int32_t=no
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6440 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6441 if test $ac_cv_type_int32_t = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define int32_t short
6451 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6452 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6453 if test "${ac_cv_type_u_int32_t+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6466 if ((u_int32_t *) 0)
6468 if (sizeof (u_int32_t))
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_type_u_int32_t=yes
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_cv_type_u_int32_t=no
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6505 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6506 if test $ac_cv_type_u_int32_t = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define u_int32_t unsigned short
6516 elif test "$ac_cv_sizeof_long" = 4 ; then
6517 echo "$as_me:$LINENO: checking for int32_t" >&5
6518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6519 if test "${ac_cv_type_int32_t+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6534 if (sizeof (int32_t))
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_type_int32_t=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_type_int32_t=no
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6571 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6572 if test $ac_cv_type_int32_t = yes; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define int32_t long
6582 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6583 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6584 if test "${ac_cv_type_u_int32_t+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6597 if ((u_int32_t *) 0)
6599 if (sizeof (u_int32_t))
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type_u_int32_t=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type_u_int32_t=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6637 if test $ac_cv_type_u_int32_t = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define u_int32_t unsigned long
6648 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6649 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6650 { (exit 1); exit 1; }; }
6652 echo "$as_me:$LINENO: checking for socklen_t" >&5
6653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6654 if test "${ac_cv_type_socklen_t+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6667 if ((socklen_t *) 0)
6669 if (sizeof (socklen_t))
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677 (eval $ac_compile) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest.$ac_objext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_type_socklen_t=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_type_socklen_t=no
6703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6706 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6707 if test $ac_cv_type_socklen_t = yes; then
6711 cat >>confdefs.h <<_ACEOF
6712 #define socklen_t unsigned int
6717 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6718 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6719 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 #include <netinet/in.h>
6734 if ((struct sockaddr_in6 *) 0)
6736 if (sizeof (struct sockaddr_in6))
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_type_struct_sockaddr_in6=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_type_struct_sockaddr_in6=no
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6773 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6774 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6775 unet_have_sockaddr_in6="yes"
6777 unet_have_sockaddr_in6="no"
6785 for ac_func in kqueue setrlimit getrusage times
6787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 echo "$as_me:$LINENO: checking for $ac_func" >&5
6789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6790 if eval "test \"\${$as_ac_var+set}\" = set"; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6801 #define $ac_func innocuous_$ac_func
6803 /* System header to define __stub macros and hopefully few prototypes,
6804 which can conflict with char $ac_func (); below.
6805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806 <limits.h> exists even on freestanding compilers. */
6809 # include <limits.h>
6811 # include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6824 /* The GNU C library defines this for functions which it implements
6825 to always fail with ENOSYS. Some functions are actually named
6826 something starting with __ and the normal name is an alias. */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 char (*f) () = $ac_func;
6839 return f != $ac_func;
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest$ac_exeext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 eval "$as_ac_var=yes"
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 eval "$as_ac_var=no"
6872 rm -f conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6877 if test `eval echo '${'$as_ac_var'}'` = yes; then
6878 cat >>confdefs.h <<_ACEOF
6879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/wait.h>
6900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_header_sys_wait_h=yes
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_cv_header_sys_wait_h=no
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6948 if test $ac_cv_header_sys_wait_h = yes; then
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_SYS_WAIT_H 1
6957 for ac_header in unistd.h
6959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 # Is the header compilable?
6970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979 #include <$ac_header>
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_header_compiler=yes
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_header_compiler=no
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7011 echo "${ECHO_T}$ac_header_compiler" >&6
7013 # Is the header present?
7014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <$ac_header>
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } >/dev/null; then
7032 if test -s conftest.err; then
7033 ac_cpp_err=$ac_c_preproc_warn_flag
7034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7041 if test -z "$ac_cpp_err"; then
7042 ac_header_preproc=yes
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_header_preproc=no
7049 rm -f conftest.err conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 echo "${ECHO_T}$ac_header_preproc" >&6
7053 # So? What about this header?
7054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7060 ac_header_preproc=yes
7063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7077 ## ------------------------------------------ ##
7078 ## Report this to the AC_PACKAGE_NAME lists. ##
7079 ## ------------------------------------------ ##
7082 sed "s/^/$as_me: WARNING: /" >&2
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 eval "$as_ac_Header=\$ac_header_preproc"
7092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7105 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7106 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7107 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test "$cross_compiling" = yes; then
7111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: cannot run test program while cross compiling
7114 See \`config.log' for more details." >&2;}
7115 { (exit 1); exit 1; }; }
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Exit 0 (true) if wait returns something other than -1,
7124 i.e. the pid of the child, which means that wait was restarted
7125 after getting the signal. */
7127 #include <sys/types.h>
7130 # include <unistd.h>
7133 # include <sys/wait.h>
7136 /* Some platforms explicitly require an extern "C" signal handler
7139 extern "C" void ucatch (int dummy) { }
7141 void ucatch (dummy) int dummy; { }
7147 int i = fork (), status;
7152 kill (getppid (), SIGINT);
7157 signal (SIGINT, ucatch);
7163 exit (status == -1);
7166 rm -f conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_sys_restartable_syscalls=yes
7179 echo "$as_me: program exited with status $ac_status" >&5
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_sys_restartable_syscalls=no
7186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7190 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7191 if test $ac_cv_sys_restartable_syscalls = yes; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_RESTARTABLE_SYSCALLS 1
7200 echo "$as_me:$LINENO: checking for donuts" >&5
7201 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7202 echo "$as_me:$LINENO: result: yes" >&5
7203 echo "${ECHO_T}yes" >&6
7205 for ac_prog in gawk mawk nawk awk
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211 if test "${ac_cv_prog_AWK+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 if test -n "$AWK"; then
7215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_AWK="$ac_prog"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 if test -n "$AWK"; then
7235 echo "$as_me:$LINENO: result: $AWK" >&5
7236 echo "${ECHO_T}$AWK" >&6
7238 echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7242 test -n "$AWK" && break
7245 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7248 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 cat >conftest.make <<\_ACEOF
7253 @echo 'ac_maketemp="$(MAKE)"'
7255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7256 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7257 if test -n "$ac_maketemp"; then
7258 eval ac_cv_prog_make_${ac_make}_set=yes
7260 eval ac_cv_prog_make_${ac_make}_set=no
7264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7269 echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271 SET_MAKE="MAKE=${MAKE-make}"
7274 # Find a good install program. We prefer a C program (faster),
7275 # so one script is as good as another. But avoid the broken or
7276 # incompatible versions:
7277 # SysV /etc/install, /usr/sbin/install
7278 # SunOS /usr/etc/install
7279 # IRIX /sbin/install
7281 # AmigaOS /C/install, which installs bootblocks on floppy discs
7282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7285 # OS/2's system install, which has a completely different semantic
7286 # ./install, which can be erroneously created by make from ./install.sh.
7287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7289 if test -z "$INSTALL"; then
7290 if test "${ac_cv_path_install+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 # Account for people who put trailing slashes in PATH elements.
7300 ./ | .// | /cC/* | \
7301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305 # OSF1 and SCO ODT 3.0 have their own names for install.
7306 # Don't use installbsd from OSF since it installs stuff as root
7308 for ac_prog in ginstall scoinst install; do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7311 if test $ac_prog = install &&
7312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7313 # AIX install. It has an incompatible calling convention.
7315 elif test $ac_prog = install &&
7316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317 # program-specific install script used by HP pwplus--don't use.
7320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7332 if test "${ac_cv_path_install+set}" = set; then
7333 INSTALL=$ac_cv_path_install
7335 # As a last resort, use the slow shell script. We don't cache a
7336 # path for INSTALL within a source directory, because that will
7337 # break other packages using the cache if that directory is
7338 # removed, or if the path is relative.
7339 INSTALL=$ac_install_sh
7342 echo "$as_me:$LINENO: result: $INSTALL" >&5
7343 echo "${ECHO_T}$INSTALL" >&6
7345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7346 # It thinks the first close brace ends the variable substitution.
7347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7353 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7354 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7356 if test "$LN_S" = "ln -s"; then
7357 echo "$as_me:$LINENO: result: yes" >&5
7358 echo "${ECHO_T}yes" >&6
7360 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7361 echo "${ECHO_T}no, using $LN_S" >&6
7366 # Extract the first word of "$ac_prog", so it can be a program name with args.
7367 set dummy $ac_prog; ac_word=$2
7368 echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370 if test "${ac_cv_path_RMPROG+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 RMPROG=$ac_cv_path_RMPROG
7397 if test -n "$RMPROG"; then
7398 echo "$as_me:$LINENO: result: $RMPROG" >&5
7399 echo "${ECHO_T}$RMPROG" >&6
7401 echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6
7405 test -n "$RMPROG" && break
7407 test -n "$RMPROG" || RMPROG="/bin/rm"
7411 # Extract the first word of "$ac_prog", so it can be a program name with args.
7412 set dummy $ac_prog; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_path_SHPROG+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 SHPROG=$ac_cv_path_SHPROG
7442 if test -n "$SHPROG"; then
7443 echo "$as_me:$LINENO: result: $SHPROG" >&5
7444 echo "${ECHO_T}$SHPROG" >&6
7446 echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7450 test -n "$SHPROG" && break
7452 test -n "$SHPROG" || SHPROG="/bin/sh"
7455 for ac_prog in flex lex
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461 if test "${ac_cv_prog_LEX+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 if test -n "$LEX"; then
7465 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_LEX="$ac_prog"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 if test -n "$LEX"; then
7485 echo "$as_me:$LINENO: result: $LEX" >&5
7486 echo "${ECHO_T}$LEX" >&6
7488 echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6
7492 test -n "$LEX" && break
7494 test -n "$LEX" || LEX=":"
7496 if test -z "$LEXLIB"
7498 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7499 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7500 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_check_lib_save_LIBS=$LIBS
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7512 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>conftest.er1
7531 grep -v '^ *+' conftest.er1 >conftest.err
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_lib_fl_yywrap=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_cv_lib_fl_yywrap=no
7555 rm -f conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7559 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7560 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7561 if test $ac_cv_lib_fl_yywrap = yes; then
7564 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7565 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7566 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 ac_check_lib_save_LIBS=$LIBS
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7578 /* Override any gcc2 internal prototype to avoid an error. */
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_l_yywrap=yes
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_cv_lib_l_yywrap=no
7621 rm -f conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 LIBS=$ac_check_lib_save_LIBS
7625 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7626 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7627 if test $ac_cv_lib_l_yywrap = yes; then
7635 if test "x$LEX" != "x:"; then
7636 echo "$as_me:$LINENO: checking lex output file root" >&5
7637 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7638 if test "${ac_cv_prog_lex_root+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 # The minimal lex program is just a single line: %%. But some broken lexes
7642 # (Solaris, I think it was) want two %% lines, so accommodate them.
7643 cat >conftest.l <<_ACEOF
7647 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7648 (eval $LEX conftest.l) 2>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }
7652 if test -f lex.yy.c; then
7653 ac_cv_prog_lex_root=lex.yy
7654 elif test -f lexyy.c; then
7655 ac_cv_prog_lex_root=lexyy
7657 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7658 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7659 { (exit 1); exit 1; }; }
7662 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7663 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7665 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7667 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7668 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7669 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 # POSIX says lex can declare yytext either as a pointer or an array; the
7673 # default is implementation-dependent. Figure out which it is, since
7674 # not all implementations provide the %pointer and %array declarations.
7675 ac_cv_prog_lex_yytext_pointer=no
7676 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7678 LIBS="$LIBS $LEXLIB"
7679 cat >conftest.$ac_ext <<_ACEOF
7680 `cat $LEX_OUTPUT_ROOT.c`
7682 rm -f conftest.$ac_objext conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_prog_lex_yytext_pointer=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7712 rm -f "${LEX_OUTPUT_ROOT}.c"
7715 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7716 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7717 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define YYTEXT_POINTER 1
7728 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
7729 echo "$as_me: error: Cannot find flex." >&2;}
7730 { (exit 1); exit 1; }; }
7733 if test -z "$LEXLIB"
7735 { { echo "$as_me:$LINENO: error:
7736 Cannot find a library with yywrap() in, but flex was found.
7737 It's possible the compiler you're using ($CC) is incompatible with the
7739 See \`config.log' for more details." >&5
7740 echo "$as_me: error:
7741 Cannot find a library with yywrap() in, but flex was found.
7742 It's possible the compiler you're using ($CC) is incompatible with the
7744 See \`config.log' for more details." >&2;}
7745 { (exit 1); exit 1; }; }
7748 LIBS="$LEXLIB $LIBS"
7750 for ac_prog in 'bison -y' byacc
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756 if test "${ac_cv_prog_YACC+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 if test -n "$YACC"; then
7760 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_YACC="$ac_prog"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 YACC=$ac_cv_prog_YACC
7779 if test -n "$YACC"; then
7780 echo "$as_me:$LINENO: result: $YACC" >&5
7781 echo "${ECHO_T}$YACC" >&6
7783 echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7787 test -n "$YACC" && break
7789 test -n "$YACC" || YACC="yacc"
7793 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
7794 echo "$as_me: error: Cannot find yacc." >&2;}
7795 { (exit 1); exit 1; }; }
7799 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7800 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7801 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 if test "$cross_compiling" = yes; then
7805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7806 See \`config.log' for more details." >&5
7807 echo "$as_me: error: cannot run test program while cross compiling
7808 See \`config.log' for more details." >&2;}
7809 { (exit 1); exit 1; }; }
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <sys/socket.h>
7820 #include <sys/ioctl.h>
7821 #include <sys/file.h>
7823 $ac_cv_type_signal alarmed() { exit(1); }
7828 size_t l = sizeof(x);
7829 int f = socket(AF_INET, SOCK_DGRAM, 0);
7830 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7832 signal(SIGALRM, alarmed);
7834 recvfrom(f, b, 12, 0, &x, &l);
7841 rm -f conftest$ac_exeext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7843 (eval $ac_link) 2>&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 unet_cv_sys_nonblocking_posix=yes
7854 echo "$as_me: program exited with status $ac_status" >&5
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7859 unet_cv_sys_nonblocking_posix=no
7861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7865 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7866 if test $unet_cv_sys_nonblocking_posix = yes; then
7867 cat >>confdefs.h <<\_ACEOF
7868 #define NBLOCK_POSIX 1
7872 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7873 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7874 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 if test "$cross_compiling" = yes; then
7878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7879 See \`config.log' for more details." >&5
7880 echo "$as_me: error: cannot run test program while cross compiling
7881 See \`config.log' for more details." >&2;}
7882 { (exit 1); exit 1; }; }
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <sys/types.h>
7891 #include <sys/socket.h>
7893 #include <sys/ioctl.h>
7894 #include <sys/file.h>
7896 $ac_cv_type_signal alarmed() { exit(1); }
7901 size_t l = sizeof(x);
7902 int f = socket(AF_INET, SOCK_DGRAM, 0);
7903 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7905 signal(SIGALRM, alarmed);
7907 recvfrom(f, b, 12, 0, &x, &l);
7914 rm -f conftest$ac_exeext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7916 (eval $ac_link) 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 unet_cv_sys_nonblocking_bsd=yes
7927 echo "$as_me: program exited with status $ac_status" >&5
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7932 unet_cv_sys_nonblocking_bsd=no
7934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7938 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7939 if test $unet_cv_sys_nonblocking_bsd = yes; then
7940 cat >>confdefs.h <<\_ACEOF
7941 #define NBLOCK_BSD 1
7945 cat >>confdefs.h <<\_ACEOF
7946 #define NBLOCK_SYSV 1
7951 echo "$as_me:$LINENO: checking for posix signals" >&5
7952 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7953 if test "${unet_cv_sys_signal_posix+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7966 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 unet_cv_sys_signal_posix=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 unet_cv_sys_signal_posix=no
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
8002 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
8003 if test $unet_cv_sys_signal_posix = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define POSIX_SIGNALS 1
8009 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
8010 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
8011 if test "${unet_cv_sys_signal_bsd+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 if test "$cross_compiling" = yes; then
8015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8016 See \`config.log' for more details." >&5
8017 echo "$as_me: error: cannot run test program while cross compiling
8018 See \`config.log' for more details." >&2;}
8019 { (exit 1); exit 1; }; }
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8029 $ac_cv_type_signal handler()
8033 kill(getpid(), SIGTERM);
8038 signal(SIGTERM, handler);
8039 kill(getpid(), SIGTERM);
8043 rm -f conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 unet_cv_sys_signal_bsd=yes
8056 echo "$as_me: program exited with status $ac_status" >&5
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8061 unet_cv_sys_signal_bsd=no
8063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8067 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8068 if test $unet_cv_sys_signal_bsd = yes; then
8069 cat >>confdefs.h <<\_ACEOF
8070 #define BSD_RELIABLE_SIGNALS 1
8074 cat >>confdefs.h <<\_ACEOF
8075 #define SYSV_UNRELIABLE_SIGNALS 1
8081 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8082 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8083 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8084 if test "$ac_cv_c_compiler_gnu" = no; then
8086 CFLAGS="$CFLAGS -pipe"
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8102 rm -f conftest.$ac_objext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104 (eval $ac_compile) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 unet_cv_pipe_flags=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8133 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8134 if test "$unet_cv_pipe_flags" = yes ; then
8135 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8136 if test "$x" = "" ; then
8137 CFLAGS="$CFLAGS -pipe"
8142 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8143 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8146 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8147 echo "${ECHO_T}Linux ($host) found." >&6
8148 unet_poll_syscall=yes
8152 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8153 echo "${ECHO_T}Solaris ($host) found." >&6
8154 if test x"$ac_cv_header_poll_h" = xyes; then
8155 unet_poll_syscall=yes
8157 unet_poll_syscall=no
8162 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8163 echo "${ECHO_T}Solaris ($host) found." >&6
8164 unet_poll_syscall=no
8168 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8169 echo "${ECHO_T}OpenBSD ($host) found." >&6
8170 if test x"$ac_cv_header_poll_h" = xyes; then
8171 unet_poll_syscall=yes
8173 unet_poll_syscall=no
8178 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8179 echo "${ECHO_T}Generic BSD ($host) found." >&6
8180 if test x"$ac_cv_header_poll_h" = xyes; then
8181 unet_poll_syscall=yes
8183 unet_poll_syscall=no
8188 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8189 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8190 unet_poll_syscall=no
8194 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8195 echo "${ECHO_T}Unknown system type $host found." >&6
8196 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8197 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8198 unet_poll_syscall=no
8202 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8203 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8204 # Check whether --enable-poll or --disable-poll was given.
8205 if test "${enable_poll+set}" = set; then
8206 enableval="$enable_poll"
8207 unet_cv_enable_poll=$enable_poll
8209 if test "${unet_cv_enable_poll+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 unet_cv_enable_poll=$unet_poll_syscall
8217 # Force poll to be disabled if there is no poll.h
8218 if test x"$ac_cv_header_poll_h" != xyes; then
8219 unet_cv_enable_poll=no
8222 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8223 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8225 if test x"$unet_cv_enable_poll" = xyes; then
8227 cat >>confdefs.h <<\_ACEOF
8231 ENGINE_C=engine_poll.c
8233 ENGINE_C=engine_select.c
8237 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8238 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8239 # Check whether --enable-debug or --disable-debug was given.
8240 if test "${enable_debug+set}" = set; then
8241 enableval="$enable_debug"
8242 unet_cv_enable_debug=$enable_debug
8244 if test "${unet_cv_enable_debug+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 unet_cv_enable_debug=no
8251 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8252 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8254 if test x"$unet_cv_enable_debug" = xyes; then
8256 cat >>confdefs.h <<\_ACEOF
8262 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8263 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8265 # Check whether --with-leak-detect or --without-leak-detect was given.
8266 if test "${with_leak_detect+set}" = set; then
8267 withval="$with_leak_detect"
8268 unet_cv_with_leak_detect=$with_leak_detect
8270 if test "${unet_cv_with_leak_detect+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 unet_cv_with_leak_detect=no
8277 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8278 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8280 if test x"$unet_cv_with_leak_detect" != xno; then
8282 CFLAGS="-DMDEBUG $CFLAGS"
8283 if test x"$unet_cv_with_leak_detect" != xyes; then
8284 LIBS="-L$unet_cv_with_leak_detect $LIBS"
8289 # Check whether --with-ipv6 or --without-ipv6 was given.
8290 if test "${with_ipv6+set}" = set; then
8291 withval="$with_ipv6"
8292 ac_cv_use_ipv6=$withval
8294 ac_cv_use_ipv6=$unet_have_sockaddr_in6
8296 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8297 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8298 if test "${ac_cv_use_ipv6+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8304 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8305 if test x"$ac_cv_use_ipv6" != "xno" ; then
8307 cat >>confdefs.h <<\_ACEOF
8313 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8314 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8315 # Check whether --enable-asserts or --disable-asserts was given.
8316 if test "${enable_asserts+set}" = set; then
8317 enableval="$enable_asserts"
8318 unet_cv_enable_asserts=$enable_asserts
8320 if test "${unet_cv_enable_asserts+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 unet_cv_enable_asserts=yes
8327 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8328 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8330 if test x"$unet_cv_enable_asserts" = xno; then
8332 cat >>confdefs.h <<\_ACEOF
8338 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8339 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8340 # Check whether --enable-symbols or --disable-symbols was given.
8341 if test "${enable_symbols+set}" = set; then
8342 enableval="$enable_symbols"
8343 unet_cv_enable_symbols=$enable_symbols
8345 if test "${unet_cv_enable_symbols+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 unet_cv_enable_symbols=yes
8352 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8353 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8355 if test x"$unet_cv_enable_symbols" = xyes; then
8359 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8360 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8361 # Check whether --enable-profile or --disable-profile was given.
8362 if test "${enable_profile+set}" = set; then
8363 enableval="$enable_profile"
8364 unet_cv_enable_profile=$enable_profile
8366 if test "${unet_cv_enable_profile+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 unet_cv_enable_profile=no
8373 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8374 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8376 if test x"$unet_cv_enable_profile" = xyes; then
8377 CFLAGS="-pg $CFLAGS"
8380 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8381 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8382 # Check whether --enable-pedantic or --disable-pedantic was given.
8383 if test "${enable_pedantic+set}" = set; then
8384 enableval="$enable_pedantic"
8385 unet_cv_enable_pedantic=$enable_pedantic
8387 if test "${unet_cv_enable_pedantic+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 unet_cv_enable_pedantic=no
8394 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8395 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8397 if test x"$unet_cv_enable_pedantic" = xyes; then
8398 CFLAGS="-pedantic $CFLAGS"
8401 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8402 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8403 # Check whether --enable-warnings or --disable-warnings was given.
8404 if test "${enable_warnings+set}" = set; then
8405 enableval="$enable_warnings"
8406 unet_cv_enable_warnings=$enable_warnings
8408 if test "${unet_cv_enable_warnings+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 unet_cv_enable_warnings=no
8415 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8416 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8418 if test x"$unet_cv_enable_warnings" = xyes; then
8419 CFLAGS="-Wall $CFLAGS"
8422 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8423 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8424 # Check whether --enable-inlines or --disable-inlines was given.
8425 if test "${enable_inlines+set}" = set; then
8426 enableval="$enable_inlines"
8427 unet_cv_enable_inlines=$enable_inlines
8429 if test "${unet_cv_enable_inlines+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 unet_cv_enable_inlines=yes
8436 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8437 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8439 if test x"$unet_cv_enable_inlines" = xyes; then
8441 cat >>confdefs.h <<\_ACEOF
8447 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8448 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8449 # Check whether --enable-devpoll or --disable-devpoll was given.
8450 if test "${enable_devpoll+set}" = set; then
8451 enableval="$enable_devpoll"
8452 unet_cv_enable_devpoll=$enable_devpoll
8454 if test "${unet_cv_enable_devpoll+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 unet_cv_enable_devpoll=yes
8462 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8463 unet_cv_enable_devpoll=no
8466 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8467 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8469 if test x"$unet_cv_enable_devpoll" != xno; then
8471 cat >>confdefs.h <<\_ACEOF
8475 ENGINE_C="engine_devpoll.c $ENGINE_C"
8478 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8479 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8480 # Check whether --enable-kqueue or --disable-kqueue was given.
8481 if test "${enable_kqueue+set}" = set; then
8482 enableval="$enable_kqueue"
8483 unet_cv_enable_kqueue=$enable_kqueue
8485 if test "${unet_cv_enable_kqueue+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 unet_cv_enable_kqueue=yes
8493 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8494 unet_cv_enable_kqueue=no
8497 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8498 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8500 if test x"$unet_cv_enable_kqueue" != xno; then
8502 cat >>confdefs.h <<\_ACEOF
8506 ENGINE_C="engine_kqueue.c $ENGINE_C"
8509 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8510 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8511 # Check whether --enable-epoll or --disable-epoll was given.
8512 if test "${enable_epoll+set}" = set; then
8513 enableval="$enable_epoll"
8514 unet_cv_enable_epoll=$enable_epoll
8516 if test "${unet_cv_enable_epoll+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 unet_cv_enable_epoll=yes
8524 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8525 unet_cv_enable_epoll=no
8528 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8529 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8531 if test x"$unet_cv_enable_epoll" != xno; then
8532 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8533 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <sys/epoll.h>
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 echo "$as_me:$LINENO: result: yes" >&5
8571 echo "${ECHO_T}yes" >&6
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8579 cat >>confdefs.h <<\_ACEOF
8580 #define EPOLL_NEED_BODY
8584 rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8587 cat >>confdefs.h <<\_ACEOF
8591 ENGINE_C="engine_epoll.c $ENGINE_C"
8594 echo "$as_me:$LINENO: checking for va_copy" >&5
8595 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8596 if test "${unet_cv_c_va_copy+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8609 va_list ap1, ap2; va_copy(ap1, ap2);
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 unet_cv_c_va_copy="yes"
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 unet_cv_c_va_copy="no"
8643 rm -f conftest.err conftest.$ac_objext \
8644 conftest$ac_exeext conftest.$ac_ext
8646 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8647 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8648 if test "$unet_cv_c_va_copy" = "yes" ; then
8650 cat >>confdefs.h <<\_ACEOF
8651 #define HAVE_VA_COPY 1
8656 echo "$as_me:$LINENO: checking for __va_copy" >&5
8657 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8658 if test "${unet_cv_c___va_copy+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8671 va_list ap1, ap2; __va_copy(ap1, ap2);
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 unet_cv_c___va_copy="yes"
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 unet_cv_c___va_copy="no"
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8709 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8710 if test "$unet_cv_c___va_copy" = "yes" ; then
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE___VA_COPY 1
8718 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8719 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8721 # Check whether --with-symlink or --without-symlink was given.
8722 if test "${with_symlink+set}" = set; then
8723 withval="$with_symlink"
8724 unet_cv_with_symlink=$with_symlink
8726 if test "${unet_cv_with_symlink+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 unet_cv_with_symlink="ircd"
8734 if test x"$unet_cv_with_symlink" = xyes; then
8735 unet_cv_with_symlink="ircd"
8738 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8739 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8741 if test x"$unet_cv_with_symlink" = xno; then
8742 INSTALL_RULE=install-no-symlink
8745 INSTALL_RULE=install-with-symlink
8746 SYMLINK=$unet_cv_with_symlink
8751 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8752 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8754 # Check whether --with-mode or --without-mode was given.
8755 if test "${with_mode+set}" = set; then
8756 withval="$with_mode"
8757 unet_cv_with_mode=$with_mode
8759 if test "${unet_cv_with_mode+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 unet_cv_with_mode=711
8767 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8768 unet_cv_with_mode=711
8771 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8772 echo "${ECHO_T}$unet_cv_with_mode" >&6
8774 IRCDMODE=$unet_cv_with_mode
8777 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8778 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8779 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8781 # Check whether --with-owner or --without-owner was given.
8782 if test "${with_owner+set}" = set; then
8783 withval="$with_owner"
8784 unet_cv_with_owner=$with_owner
8786 if test "${unet_cv_with_owner+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 unet_cv_with_owner=$unet_uid
8794 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8795 unet_cv_with_owner=$unet_uid
8798 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8799 echo "${ECHO_T}$unet_cv_with_owner" >&6
8801 IRCDOWN=$unet_cv_with_owner
8804 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8805 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8806 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8808 # Check whether --with-group or --without-group was given.
8809 if test "${with_group+set}" = set; then
8810 withval="$with_group"
8811 unet_cv_with_group=$with_group
8813 if test "${unet_cv_with_group+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 unet_cv_with_group=$unet_gid
8821 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8822 unet_cv_with_group=$unet_gid
8825 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8826 echo "${ECHO_T}$unet_cv_with_group" >&6
8828 IRCDGRP=$unet_cv_with_group
8832 if test -f /etc/resolv.conf; then
8833 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8834 if test x"$unet_domain" = x; then
8835 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8838 echo "$as_me:$LINENO: checking for site domain name" >&5
8839 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8841 # Check whether --with-domain or --without-domain was given.
8842 if test "${with_domain+set}" = set; then
8843 withval="$with_domain"
8844 unet_cv_with_domain=$with_domain
8846 if test "${unet_cv_with_domain+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 unet_cv_with_domain=$unet_domain
8854 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8855 unet_cv_with_domain=$unet_domain
8857 if test x"$unet_cv_with_domain" = xno; then
8858 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8859 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8860 { (exit 1); exit 1; }; }
8863 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8864 echo "${ECHO_T}$unet_cv_with_domain" >&6
8867 cat >>confdefs.h <<_ACEOF
8868 #define DOMAINNAME "*$unet_cv_with_domain"
8872 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8873 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8875 # Check whether --with-chroot or --without-chroot was given.
8876 if test "${with_chroot+set}" = set; then
8877 withval="$with_chroot"
8878 unet_cv_with_chroot=$with_chroot
8880 if test "${unet_cv_with_chroot+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 unet_cv_with_chroot=no
8888 if test x"$unet_cv_with_chroot" = xyes; then
8889 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
8890 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
8891 { (exit 1); exit 1; }; }
8894 # Ensure there are no trailing /'s to mess us up
8895 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8897 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8898 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8900 # Deal with the annoying value "NONE" here
8901 unet_save_prefix=$prefix
8902 if test x"$prefix" = xNONE; then
8903 prefix=$ac_default_prefix
8908 unet_save_exec_prefix=$exec_prefix
8909 if test x"$exec_prefix" = xNONE; then
8912 exec_prefix=$exec_prefix
8915 # Obtain the actual interesting directories
8916 unet_bindir=`eval echo "$bindir"`
8917 unet_libdir=`eval echo "$libdir"`
8919 # Restore the original settings of $prefix and $exec_prefix
8920 prefix=$unet_save_prefix
8921 exec_prefix=$unet_save_exec_prefix
8923 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8924 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8925 if test x"$unet_cv_with_symlink" = xno; then
8926 unet_spath="$unet_bindir/ircd"
8928 unet_spath="$unet_bindir/$unet_cv_with_symlink"
8930 echo "$as_me:$LINENO: result: $unet_spath" >&5
8931 echo "${ECHO_T}$unet_spath" >&6
8933 if test x"$unet_cv_with_chroot" != xno; then
8934 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8935 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8937 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8938 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8943 cat >>confdefs.h <<_ACEOF
8944 #define SPATH "$unet_spath"
8948 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8949 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8951 # Check whether --with-dpath or --without-dpath was given.
8952 if test "${with_dpath+set}" = set; then
8953 withval="$with_dpath"
8954 unet_cv_with_dpath=$with_dpath
8956 if test "${unet_cv_with_dpath+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 unet_cv_with_dpath=$unet_libdir
8964 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8965 unet_cv_with_dpath=$unet_libdir
8968 # Ensure there are no trailing /'s to mess us up
8969 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8971 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8972 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8974 if test x"$unet_cv_with_chroot" != xno; then
8975 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8976 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8978 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8979 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8980 { (exit 1); exit 1; }; }
8983 unet_dpath=$unet_cv_with_dpath
8987 cat >>confdefs.h <<_ACEOF
8988 #define DPATH "$unet_dpath"
8992 DPATH=$unet_cv_with_dpath
8995 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8996 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8998 # Check whether --with-cpath or --without-cpath was given.
8999 if test "${with_cpath+set}" = set; then
9000 withval="$with_cpath"
9001 unet_cv_with_cpath=$with_cpath
9003 if test "${unet_cv_with_cpath+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 unet_cv_with_cpath="ircd.conf"
9011 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
9012 unet_cv_with_cpath="ircd.conf"
9015 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
9016 echo "${ECHO_T}$unet_cv_with_cpath" >&6
9018 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
9019 # Absolute path; check against chroot stuff
9020 if test x"$unet_cv_with_chroot" != xno; then
9021 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9022 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
9024 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
9025 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
9026 { (exit 1); exit 1; }; }
9029 unet_cpath=$unet_cv_with_cpath
9032 unet_cpath=$unet_cv_with_cpath
9036 cat >>confdefs.h <<_ACEOF
9037 #define CPATH "$unet_cpath"
9041 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9042 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9044 # Check whether --with-lpath or --without-lpath was given.
9045 if test "${with_lpath+set}" = set; then
9046 withval="$with_lpath"
9047 unet_cv_with_lpath=$with_lpath
9049 if test "${unet_cv_with_lpath+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 unet_cv_with_lpath="ircd.log"
9057 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9058 unet_cv_with_lpath="ircd.log"
9061 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9062 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9064 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9065 # Absolute path; check against chroot stuff
9066 if test x"$unet_cv_with_chroot" != xno; then
9067 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9068 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9070 { 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
9071 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;}
9072 unet_cv_with_lpath="ircd.log"
9073 unet_lpath="ircd.log"
9076 unet_lpath=$unet_cv_with_lpath
9079 unet_lpath=$unet_cv_with_lpath
9083 cat >>confdefs.h <<_ACEOF
9084 #define LPATH "$unet_lpath"
9088 unet_maxcon=`ulimit -Hn`
9089 if test x"$unet_maxcon" = xunlimited; then
9090 unet_maxcon=`ulimit -Sn`
9092 unet_maxcon=`expr $unet_maxcon - 4`
9093 echo "$as_me:$LINENO: checking max connections" >&5
9094 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9096 # Check whether --with-maxcon or --without-maxcon was given.
9097 if test "${with_maxcon+set}" = set; then
9098 withval="$with_maxcon"
9099 unet_cv_with_maxcon=$with_maxcon
9101 if test "${unet_cv_with_maxcon+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 unet_cv_with_maxcon=$unet_maxcon
9109 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9110 unet_cv_with_maxcon=$unet_maxcon
9113 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9114 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9117 cat >>confdefs.h <<_ACEOF
9118 #define MAXCONNECTIONS $unet_cv_with_maxcon
9122 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9123 ac_config_commands="$ac_config_commands default"
9124 cat >confcache <<\_ACEOF
9125 # This file is a shell script that caches the results of configure
9126 # tests run on this system so they can be shared between configure
9127 # scripts and configure runs, see configure's option --config-cache.
9128 # It is not useful on other systems. If it contains results you don't
9129 # want to keep, you may remove or edit it.
9131 # config.status only pays attention to the cache file if you give it
9132 # the --recheck option to rerun configure.
9134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9140 # The following way of writing the cache mishandles newlines in values,
9141 # but we know of no workaround that is simple, portable, and efficient.
9142 # So, don't put newlines in cache variables' values.
9143 # Ultrix sh set writes to stderr and can't be redirected directly,
9144 # and sets the high bit in the cache file unless we assign to the vars.
9147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9149 # `set' does not quote correctly, so add quotes (double-quote
9150 # substitution turns \\\\ into \\, and sed turns \\ into \).
9153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9156 # `set' quotes correctly as required by POSIX, so do not add quotes.
9158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9170 if test -w $cache_file; then
9171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9172 cat confcache >$cache_file
9174 echo "not updating unwritable cache $cache_file"
9179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9180 # Let make expand exec_prefix.
9181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9185 # trailing colons and then remove the whole line if VPATH becomes empty
9186 # (actually we leave an empty line to preserve line numbers).
9187 if test "x$srcdir" = x.; then
9188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9189 s/:*\$(srcdir):*/:/;
9190 s/:*\${srcdir}:*/:/;
9192 s/^\([^=]*=[ ]*\):*/\1/;
9198 DEFS=-DHAVE_CONFIG_H
9202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9203 # 1. Remove the extension, and $U if already installed.
9204 ac_i=`echo "$ac_i" |
9205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9212 LTLIBOBJS=$ac_ltlibobjs
9216 : ${CONFIG_STATUS=./config.status}
9217 ac_clean_files_save=$ac_clean_files
9218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9221 cat >$CONFIG_STATUS <<_ACEOF
9223 # Generated by $as_me.
9224 # Run this file to recreate the current configuration.
9225 # Compiler output produced by configure, useful for debugging
9226 # configure, is in config.log if it exists.
9231 SHELL=\${CONFIG_SHELL-$SHELL}
9234 cat >>$CONFIG_STATUS <<\_ACEOF
9235 ## --------------------- ##
9236 ## M4sh Initialization. ##
9237 ## --------------------- ##
9239 # Be Bourne compatible
9240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9244 # is contrary to our usage. Disable this feature.
9245 alias -g '${1+"$@"}'='"$@"'
9246 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9249 DUALCASE=1; export DUALCASE # for MKS sh
9251 # Support unset when possible.
9252 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9259 # Work around bugs in pre-3.0 UWIN ksh.
9260 $as_unset ENV MAIL MAILPATH
9267 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9268 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9269 LC_TELEPHONE LC_TIME
9271 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9272 eval $as_var=C; export $as_var
9278 # Required to use basename.
9279 if expr a : '\(a\)' >/dev/null 2>&1; then
9285 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9286 as_basename=basename
9292 # Name of the executable.
9293 as_me=`$as_basename "$0" ||
9294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9295 X"$0" : 'X\(//\)$' \| \
9296 X"$0" : 'X\(/\)$' \| \
9297 . : '\(.\)' 2>/dev/null ||
9299 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9300 /^X\/\(\/\/\)$/{ s//\1/; q; }
9301 /^X\/\(\/\).*/{ s//\1/; q; }
9305 # PATH needs CR, and LINENO needs CR and PATH.
9306 # Avoid depending upon Character Ranges.
9307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9310 as_cr_digits='0123456789'
9311 as_cr_alnum=$as_cr_Letters$as_cr_digits
9313 # The user is always right.
9314 if test "${PATH_SEPARATOR+set}" != set; then
9315 echo "#! /bin/sh" >conf$$.sh
9316 echo "exit 0" >>conf$$.sh
9318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9329 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9330 test "x$as_lineno_1" != "x$as_lineno_2" &&
9331 test "x$as_lineno_3" = "x$as_lineno_2" || {
9332 # Find who we are. Look in the path if we contain no path at all
9335 *[\\/]* ) as_myself=$0 ;;
9336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 test -z "$as_dir" && as_dir=.
9341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9346 # We did not find ourselves, most probably we were run as `sh COMMAND'
9347 # in which case we are not to be found in the path.
9348 if test "x$as_myself" = x; then
9351 if test ! -f "$as_myself"; then
9352 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9353 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9354 { (exit 1); exit 1; }; }
9356 case $CONFIG_SHELL in
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9362 test -z "$as_dir" && as_dir=.
9363 for as_base in sh bash ksh sh5; do
9366 if ("$as_dir/$as_base" -c '
9369 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9370 test "x$as_lineno_1" != "x$as_lineno_2" &&
9371 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9372 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9373 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9374 CONFIG_SHELL=$as_dir/$as_base
9376 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9384 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9385 # uniformly replaced by the line number. The first 'sed' inserts a
9386 # line-number line before each line; the second 'sed' does the real
9387 # work. The second script uses 'N' to pair each line-number line
9388 # with the numbered line, and appends trailing '-' during
9389 # substitution so that $LINENO is not a special case at line end.
9390 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9391 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9392 sed '=' <$as_myself |
9397 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9400 s,^['$as_cr_digits']*\n,,
9402 chmod +x $as_me.lineno ||
9403 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9404 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9405 { (exit 1); exit 1; }; }
9407 # Don't try to exec as it changes $[0], causing all sort of problems
9408 # (the dirname of $[0] is not the place where we might find the
9409 # original and so on. Autoconf is especially sensible to this).
9411 # Exit status is that of the last command.
9416 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9417 *c*,-n*) ECHO_N= ECHO_C='
9419 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9420 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9423 if expr a : '\(a\)' >/dev/null 2>&1; then
9429 rm -f conf$$ conf$$.exe conf$$.file
9431 if ln -s conf$$.file conf$$ 2>/dev/null; then
9432 # We could just check for DJGPP; but this test a) works b) is more generic
9433 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9434 if test -f conf$$.exe; then
9435 # Don't use ln at all; we don't have any links
9440 elif ln conf$$.file conf$$ 2>/dev/null; then
9445 rm -f conf$$ conf$$.exe conf$$.file
9447 if mkdir -p . 2>/dev/null; then
9450 test -d ./-p && rmdir ./-p
9454 as_executable_p="test -f"
9456 # Sed expression to map a string onto a valid CPP name.
9457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9459 # Sed expression to map a string onto a valid variable name.
9460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9464 # We need space, tab and new line, in precisely that order.
9474 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9475 # report actual input values of CONFIG_FILES etc. instead of their
9476 # values after options handling. Logging --version etc. is OK.
9480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9481 ## Running $as_me. ##
9486 This file was extended by $as_me, which was
9487 generated by GNU Autoconf 2.59. Invocation command line was
9489 CONFIG_FILES = $CONFIG_FILES
9490 CONFIG_HEADERS = $CONFIG_HEADERS
9491 CONFIG_LINKS = $CONFIG_LINKS
9492 CONFIG_COMMANDS = $CONFIG_COMMANDS
9496 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9500 # Files that config.status was made for.
9501 if test -n "$ac_config_files"; then
9502 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9505 if test -n "$ac_config_headers"; then
9506 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9509 if test -n "$ac_config_links"; then
9510 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9513 if test -n "$ac_config_commands"; then
9514 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9517 cat >>$CONFIG_STATUS <<\_ACEOF
9520 \`$as_me' instantiates files from templates according to the
9521 current configuration.
9523 Usage: $0 [OPTIONS] [FILE]...
9525 -h, --help print this help, then exit
9526 -V, --version print version number, then exit
9527 -q, --quiet do not print progress messages
9528 -d, --debug don't remove temporary files
9529 --recheck update $as_me by reconfiguring in the same conditions
9530 --file=FILE[:TEMPLATE]
9531 instantiate the configuration file FILE
9532 --header=FILE[:TEMPLATE]
9533 instantiate the configuration header FILE
9535 Configuration files:
9538 Configuration headers:
9541 Configuration commands:
9544 Report bugs to <bug-autoconf@gnu.org>."
9547 cat >>$CONFIG_STATUS <<_ACEOF
9550 configured by $0, generated by GNU Autoconf 2.59,
9551 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9553 Copyright (C) 2003 Free Software Foundation, Inc.
9554 This config.status script is free software; the Free Software Foundation
9555 gives unlimited permission to copy, distribute and modify it."
9560 cat >>$CONFIG_STATUS <<\_ACEOF
9561 # If no file are specified by the user, then we need to provide default
9562 # value. By we need to know if files were specified by the user.
9568 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9569 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9577 *) # This is not an option, so the user has probably given explicit
9580 ac_need_defaults=false;;
9584 # Handling of the options.
9586 cat >>$CONFIG_STATUS <<\_ACEOF
9587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9589 --version | --vers* | -V )
9590 echo "$ac_cs_version"; exit 0 ;;
9592 # Conflict between --help and --header
9593 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9594 Try \`$0 --help' for more information." >&5
9595 echo "$as_me: error: ambiguous option: $1
9596 Try \`$0 --help' for more information." >&2;}
9597 { (exit 1); exit 1; }; };;
9598 --help | --hel | -h )
9599 echo "$ac_cs_usage"; exit 0 ;;
9600 --debug | --d* | -d )
9602 --file | --fil | --fi | --f )
9604 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9605 ac_need_defaults=false;;
9606 --header | --heade | --head | --hea )
9608 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9609 ac_need_defaults=false;;
9610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9615 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9616 Try \`$0 --help' for more information." >&5
9617 echo "$as_me: error: unrecognized option: $1
9618 Try \`$0 --help' for more information." >&2;}
9619 { (exit 1); exit 1; }; } ;;
9621 *) ac_config_targets="$ac_config_targets $1" ;;
9627 ac_configure_extra_args=
9629 if $ac_cs_silent; then
9631 ac_configure_extra_args="$ac_configure_extra_args --silent"
9635 cat >>$CONFIG_STATUS <<_ACEOF
9636 if \$ac_cs_recheck; then
9637 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9638 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9647 cat >>$CONFIG_STATUS <<\_ACEOF
9648 for ac_config_target in $ac_config_targets
9650 case "$ac_config_target" in
9651 # Handling of arguments.
9652 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9653 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9654 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9655 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9656 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9657 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9658 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9659 { (exit 1); exit 1; }; };;
9663 # If the user did not use the arguments to specify the items to instantiate,
9664 # then the envvar interface is used. Set only those that are not.
9665 # We use the long form for the default assignment because of an extremely
9666 # bizarre bug on SunOS 4.1.3.
9667 if $ac_need_defaults; then
9668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9673 # Have a temporary directory for convenience. Make it in the build tree
9674 # simply because there is no reason to put it here, and in addition,
9675 # creating and moving files from /tmp can sometimes cause problems.
9676 # Create a temporary directory, and hook for its removal unless debugging.
9679 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9680 trap '{ (exit 1); exit 1; }' 1 2 13 15
9683 # Create a (secure) tmp directory for tmp files.
9686 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9687 test -n "$tmp" && test -d "$tmp"
9690 tmp=./confstat$$-$RANDOM
9691 (umask 077 && mkdir $tmp)
9694 echo "$me: cannot create a temporary directory in ." >&2
9695 { (exit 1); exit 1; }
9700 cat >>$CONFIG_STATUS <<_ACEOF
9703 # CONFIG_FILES section.
9706 # No need to generate the scripts if there are no CONFIG_FILES.
9707 # This happens for instance when ./config.status config.h
9708 if test -n "\$CONFIG_FILES"; then
9709 # Protect against being on the right side of a sed subst in config.status.
9710 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9711 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9712 s,@SHELL@,$SHELL,;t t
9713 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9714 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9715 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9716 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9717 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9718 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9719 s,@exec_prefix@,$exec_prefix,;t t
9720 s,@prefix@,$prefix,;t t
9721 s,@program_transform_name@,$program_transform_name,;t t
9722 s,@bindir@,$bindir,;t t
9723 s,@sbindir@,$sbindir,;t t
9724 s,@libexecdir@,$libexecdir,;t t
9725 s,@datadir@,$datadir,;t t
9726 s,@sysconfdir@,$sysconfdir,;t t
9727 s,@sharedstatedir@,$sharedstatedir,;t t
9728 s,@localstatedir@,$localstatedir,;t t
9729 s,@libdir@,$libdir,;t t
9730 s,@includedir@,$includedir,;t t
9731 s,@oldincludedir@,$oldincludedir,;t t
9732 s,@infodir@,$infodir,;t t
9733 s,@mandir@,$mandir,;t t
9734 s,@build_alias@,$build_alias,;t t
9735 s,@host_alias@,$host_alias,;t t
9736 s,@target_alias@,$target_alias,;t t
9738 s,@ECHO_C@,$ECHO_C,;t t
9739 s,@ECHO_N@,$ECHO_N,;t t
9740 s,@ECHO_T@,$ECHO_T,;t t
9742 s,@build@,$build,;t t
9743 s,@build_cpu@,$build_cpu,;t t
9744 s,@build_vendor@,$build_vendor,;t t
9745 s,@build_os@,$build_os,;t t
9747 s,@host_cpu@,$host_cpu,;t t
9748 s,@host_vendor@,$host_vendor,;t t
9749 s,@host_os@,$host_os,;t t
9751 s,@CFLAGS@,$CFLAGS,;t t
9752 s,@LDFLAGS@,$LDFLAGS,;t t
9753 s,@CPPFLAGS@,$CPPFLAGS,;t t
9754 s,@ac_ct_CC@,$ac_ct_CC,;t t
9755 s,@EXEEXT@,$EXEEXT,;t t
9756 s,@OBJEXT@,$OBJEXT,;t t
9758 s,@EGREP@,$EGREP,;t t
9760 s,@SET_MAKE@,$SET_MAKE,;t t
9761 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9762 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9763 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9765 s,@RMPROG@,$RMPROG,;t t
9766 s,@SHPROG@,$SHPROG,;t t
9768 s,@LEXLIB@,$LEXLIB,;t t
9769 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9771 s,@ENGINE_C@,$ENGINE_C,;t t
9772 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9773 s,@SYMLINK@,$SYMLINK,;t t
9774 s,@IRCDMODE@,$IRCDMODE,;t t
9775 s,@IRCDOWN@,$IRCDOWN,;t t
9776 s,@IRCDGRP@,$IRCDGRP,;t t
9777 s,@DPATH@,$DPATH,;t t
9778 s,@LIBOBJS@,$LIBOBJS,;t t
9779 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9784 cat >>$CONFIG_STATUS <<\_ACEOF
9785 # Split the substitutions into bite-sized pieces for seds with
9786 # small command number limits, like on Digital OSF/1 and HP-UX.
9788 ac_sed_frag=1 # Number of current file.
9789 ac_beg=1 # First line for current file.
9790 ac_end=$ac_max_sed_lines # Line after last line for current file.
9793 while $ac_more_lines; do
9794 if test $ac_beg -gt 1; then
9795 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9797 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9799 if test ! -s $tmp/subs.frag; then
9802 # The purpose of the label and of the branching condition is to
9803 # speed up the sed processing (if there are no `@' at all, there
9804 # is no need to browse any of the substitutions).
9805 # These are the two extra sed commands mentioned above.
9807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9808 if test -z "$ac_sed_cmds"; then
9809 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9811 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9813 ac_sed_frag=`expr $ac_sed_frag + 1`
9815 ac_end=`expr $ac_end + $ac_max_sed_lines`
9818 if test -z "$ac_sed_cmds"; then
9821 fi # test -n "$CONFIG_FILES"
9824 cat >>$CONFIG_STATUS <<\_ACEOF
9825 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9828 - | *:- | *:-:* ) # input from stdin
9830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9834 * ) ac_file_in=$ac_file.in ;;
9837 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9840 X"$ac_file" : 'X\(//\)[^/]' \| \
9841 X"$ac_file" : 'X\(//\)$' \| \
9842 X"$ac_file" : 'X\(/\)' \| \
9843 . : '\(.\)' 2>/dev/null ||
9845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9847 /^X\(\/\/\)$/{ s//\1/; q; }
9848 /^X\(\/\).*/{ s//\1/; q; }
9850 { if $as_mkdir_p; then
9855 while test ! -d "$as_dir"; do
9856 as_dirs="$as_dir $as_dirs"
9857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9859 X"$as_dir" : 'X\(//\)[^/]' \| \
9860 X"$as_dir" : 'X\(//\)$' \| \
9861 X"$as_dir" : 'X\(/\)' \| \
9862 . : '\(.\)' 2>/dev/null ||
9864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9866 /^X\(\/\/\)$/{ s//\1/; q; }
9867 /^X\(\/\).*/{ s//\1/; q; }
9870 test ! -n "$as_dirs" || mkdir $as_dirs
9871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9873 { (exit 1); exit 1; }; }; }
9877 if test "$ac_dir" != .; then
9878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9879 # A "../" for each directory in $ac_dir_suffix.
9880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9882 ac_dir_suffix= ac_top_builddir=
9886 .) # No --srcdir option. We are building in place.
9888 if test -z "$ac_top_builddir"; then
9891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9893 [\\/]* | ?:[\\/]* ) # Absolute path.
9894 ac_srcdir=$srcdir$ac_dir_suffix;
9895 ac_top_srcdir=$srcdir ;;
9897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9901 # Do not use `cd foo && pwd` to compute absolute paths, because
9902 # the directories may not exist.
9904 .) ac_abs_builddir="$ac_dir";;
9907 .) ac_abs_builddir=`pwd`;;
9908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9912 case $ac_abs_builddir in
9913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9915 case ${ac_top_builddir}. in
9916 .) ac_abs_top_builddir=$ac_abs_builddir;;
9917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9921 case $ac_abs_builddir in
9922 .) ac_abs_srcdir=$ac_srcdir;;
9925 .) ac_abs_srcdir=$ac_abs_builddir;;
9926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9930 case $ac_abs_builddir in
9931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9933 case $ac_top_srcdir in
9934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9943 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9946 # Let's still pretend it is `configure' which instantiates (i.e., don't
9947 # use $as_me), people would be surprised to read:
9948 # /* config.h. Generated by config.status. */
9949 if test x"$ac_file" = x-; then
9952 configure_input="$ac_file. "
9954 configure_input=$configure_input"Generated from `echo $ac_file_in |
9955 sed 's,.*/,,'` by configure."
9957 # First look for the input files in the build tree, otherwise in the
9959 ac_file_inputs=`IFS=:
9960 for f in $ac_file_in; do
9962 -) echo $tmp/stdin ;;
9964 # Absolute (can't be DOS-style, as IFS=:)
9965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9966 echo "$as_me: error: cannot find input file: $f" >&2;}
9967 { (exit 1); exit 1; }; }
9970 if test -f "$f"; then
9973 elif test -f "$srcdir/$f"; then
9978 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9979 echo "$as_me: error: cannot find input file: $f" >&2;}
9980 { (exit 1); exit 1; }; }
9983 done` || { (exit 1); exit 1; }
9985 if test x"$ac_file" != x-; then
9986 { echo "$as_me:$LINENO: creating $ac_file" >&5
9987 echo "$as_me: creating $ac_file" >&6;}
9991 cat >>$CONFIG_STATUS <<_ACEOF
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9998 s,@configure_input@,$configure_input,;t t
9999 s,@srcdir@,$ac_srcdir,;t t
10000 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10001 s,@top_srcdir@,$ac_top_srcdir,;t t
10002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10003 s,@builddir@,$ac_builddir,;t t
10004 s,@abs_builddir@,$ac_abs_builddir,;t t
10005 s,@top_builddir@,$ac_top_builddir,;t t
10006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10007 s,@INSTALL@,$ac_INSTALL,;t t
10008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10010 if test x"$ac_file" != x-; then
10011 mv $tmp/out $ac_file
10019 cat >>$CONFIG_STATUS <<\_ACEOF
10022 # CONFIG_HEADER section.
10025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10028 # ac_d sets the value in "#define NAME VALUE" lines.
10029 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10030 ac_dB='[ ].*$,\1#\2'
10033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10034 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10035 ac_uB='$,\1#\2define\3'
10039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10042 - | *:- | *:-:* ) # input from stdin
10044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10048 * ) ac_file_in=$ac_file.in ;;
10051 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10052 echo "$as_me: creating $ac_file" >&6;}
10054 # First look for the input files in the build tree, otherwise in the
10056 ac_file_inputs=`IFS=:
10057 for f in $ac_file_in; do
10059 -) echo $tmp/stdin ;;
10061 # Absolute (can't be DOS-style, as IFS=:)
10062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10063 echo "$as_me: error: cannot find input file: $f" >&2;}
10064 { (exit 1); exit 1; }; }
10065 # Do quote $f, to prevent DOS paths from being IFS'd.
10068 if test -f "$f"; then
10071 elif test -f "$srcdir/$f"; then
10076 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10077 echo "$as_me: error: cannot find input file: $f" >&2;}
10078 { (exit 1); exit 1; }; }
10081 done` || { (exit 1); exit 1; }
10082 # Remove the trailing spaces.
10083 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10087 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10088 # `conftest.undefs', that substitutes the proper values into
10089 # config.h.in to produce config.h. The first handles `#define'
10090 # templates, and the second `#undef' templates.
10091 # And first: Protect against being on the right side of a sed subst in
10092 # config.status. Protect against being in an unquoted here document
10093 # in config.status.
10094 rm -f conftest.defines conftest.undefs
10095 # Using a here document instead of a string reduces the quoting nightmare.
10096 # Putting comments in sed scripts is not portable.
10098 # `end' is used to avoid that the second main sed command (meant for
10099 # 0-ary CPP macros) applies to n-ary macro definitions.
10100 # See the Autoconf documentation for `clear'.
10101 cat >confdef2sed.sed <<\_ACEOF
10106 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10108 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10111 # If some macros were called several times there might be several times
10112 # the same #defines, which is useless. Nevertheless, we may not want to
10113 # sort them, since we want the *last* AC-DEFINE to be honored.
10114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10116 rm -f confdef2sed.sed
10118 # This sed command replaces #undef with comments. This is necessary, for
10119 # example, in the case of _POSIX_SOURCE, which is predefined and required
10120 # on some systems where configure will not decide to define it.
10121 cat >>conftest.undefs <<\_ACEOF
10122 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10125 # Break up conftest.defines because some shells have a limit on the size
10126 # of here documents, and old seds have small limits too (100 cmds).
10127 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10128 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10129 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10130 echo ' :' >>$CONFIG_STATUS
10131 rm -f conftest.tail
10132 while grep . conftest.defines >/dev/null
10134 # Write a limited-size here document to $tmp/defines.sed.
10135 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10136 # Speed up: don't consider the non `#define' lines.
10137 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10138 # Work around the forget-to-reset-the-flag bug.
10139 echo 't clr' >>$CONFIG_STATUS
10140 echo ': clr' >>$CONFIG_STATUS
10141 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10143 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10145 mv $tmp/out $tmp/in
10147 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10148 rm -f conftest.defines
10149 mv conftest.tail conftest.defines
10151 rm -f conftest.defines
10152 echo ' fi # grep' >>$CONFIG_STATUS
10153 echo >>$CONFIG_STATUS
10155 # Break up conftest.undefs because some shells have a limit on the size
10156 # of here documents, and old seds have small limits too (100 cmds).
10157 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10158 rm -f conftest.tail
10159 while grep . conftest.undefs >/dev/null
10161 # Write a limited-size here document to $tmp/undefs.sed.
10162 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10163 # Speed up: don't consider the non `#undef'
10164 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10165 # Work around the forget-to-reset-the-flag bug.
10166 echo 't clr' >>$CONFIG_STATUS
10167 echo ': clr' >>$CONFIG_STATUS
10168 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10170 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10172 mv $tmp/out $tmp/in
10174 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10175 rm -f conftest.undefs
10176 mv conftest.tail conftest.undefs
10178 rm -f conftest.undefs
10180 cat >>$CONFIG_STATUS <<\_ACEOF
10181 # Let's still pretend it is `configure' which instantiates (i.e., don't
10182 # use $as_me), people would be surprised to read:
10183 # /* config.h. Generated by config.status. */
10184 if test x"$ac_file" = x-; then
10185 echo "/* Generated by configure. */" >$tmp/config.h
10187 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10189 cat $tmp/in >>$tmp/config.h
10191 if test x"$ac_file" != x-; then
10192 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10193 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10194 echo "$as_me: $ac_file is unchanged" >&6;}
10196 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10198 X"$ac_file" : 'X\(//\)[^/]' \| \
10199 X"$ac_file" : 'X\(//\)$' \| \
10200 X"$ac_file" : 'X\(/\)' \| \
10201 . : '\(.\)' 2>/dev/null ||
10203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10205 /^X\(\/\/\)$/{ s//\1/; q; }
10206 /^X\(\/\).*/{ s//\1/; q; }
10208 { if $as_mkdir_p; then
10213 while test ! -d "$as_dir"; do
10214 as_dirs="$as_dir $as_dirs"
10215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10217 X"$as_dir" : 'X\(//\)[^/]' \| \
10218 X"$as_dir" : 'X\(//\)$' \| \
10219 X"$as_dir" : 'X\(/\)' \| \
10220 . : '\(.\)' 2>/dev/null ||
10222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10224 /^X\(\/\/\)$/{ s//\1/; q; }
10225 /^X\(\/\).*/{ s//\1/; q; }
10228 test ! -n "$as_dirs" || mkdir $as_dirs
10229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10231 { (exit 1); exit 1; }; }; }
10234 mv $tmp/config.h $ac_file
10238 rm -f $tmp/config.h
10242 cat >>$CONFIG_STATUS <<\_ACEOF
10245 # CONFIG_COMMANDS section.
10247 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10248 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10249 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10250 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10251 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10252 X"$ac_dest" : 'X\(//\)[^/]' \| \
10253 X"$ac_dest" : 'X\(//\)$' \| \
10254 X"$ac_dest" : 'X\(/\)' \| \
10255 . : '\(.\)' 2>/dev/null ||
10257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10259 /^X\(\/\/\)$/{ s//\1/; q; }
10260 /^X\(\/\).*/{ s//\1/; q; }
10262 { if $as_mkdir_p; then
10267 while test ! -d "$as_dir"; do
10268 as_dirs="$as_dir $as_dirs"
10269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10271 X"$as_dir" : 'X\(//\)[^/]' \| \
10272 X"$as_dir" : 'X\(//\)$' \| \
10273 X"$as_dir" : 'X\(/\)' \| \
10274 . : '\(.\)' 2>/dev/null ||
10276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10278 /^X\(\/\/\)$/{ s//\1/; q; }
10279 /^X\(\/\).*/{ s//\1/; q; }
10282 test ! -n "$as_dirs" || mkdir $as_dirs
10283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10285 { (exit 1); exit 1; }; }; }
10289 if test "$ac_dir" != .; then
10290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10291 # A "../" for each directory in $ac_dir_suffix.
10292 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10294 ac_dir_suffix= ac_top_builddir=
10298 .) # No --srcdir option. We are building in place.
10300 if test -z "$ac_top_builddir"; then
10303 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10305 [\\/]* | ?:[\\/]* ) # Absolute path.
10306 ac_srcdir=$srcdir$ac_dir_suffix;
10307 ac_top_srcdir=$srcdir ;;
10308 *) # Relative path.
10309 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10310 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10313 # Do not use `cd foo && pwd` to compute absolute paths, because
10314 # the directories may not exist.
10316 .) ac_abs_builddir="$ac_dir";;
10319 .) ac_abs_builddir=`pwd`;;
10320 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10321 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10324 case $ac_abs_builddir in
10325 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10327 case ${ac_top_builddir}. in
10328 .) ac_abs_top_builddir=$ac_abs_builddir;;
10329 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10330 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10333 case $ac_abs_builddir in
10334 .) ac_abs_srcdir=$ac_srcdir;;
10337 .) ac_abs_srcdir=$ac_abs_builddir;;
10338 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10339 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10342 case $ac_abs_builddir in
10343 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10345 case $ac_top_srcdir in
10346 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10347 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10348 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10353 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10354 echo "$as_me: executing $ac_dest commands" >&6;}
10356 default ) echo timestamp > stamp-h ;;
10361 cat >>$CONFIG_STATUS <<\_ACEOF
10363 { (exit 0); exit 0; }
10365 chmod +x $CONFIG_STATUS
10366 ac_clean_files=$ac_clean_files_save
10369 # configure is writing to config.log, and then calls config.status.
10370 # config.status does its own redirection, appending to config.log.
10371 # Unfortunately, on DOS this fails, as config.log is still kept open
10372 # by configure, so config.status won't be able to write to it; its
10373 # output is simply discarded. So we exec the FD to /dev/null,
10374 # effectively closing config.log, so it can be properly (re)opened and
10375 # appended to by config.status. When coming back to configure, we
10376 # need to make the FD available again.
10377 if test "$no_create" != yes; then
10379 ac_config_status_args=
10380 test "$silent" = yes &&
10381 ac_config_status_args="$ac_config_status_args --quiet"
10383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10386 # would make configure fail if this is the last instruction.
10387 $ac_cs_success || { (exit 1); exit 1; }
10391 ac_config_commands="$ac_config_commands default-1"