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 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
854 --enable-warnings Enable warnings (add -Wall to CFLAGS)
855 --disable-inlines Disable inlining for a few critical functions
856 --disable-devpoll Disable the /dev/poll-based engine
857 --disable-kqueue Disable the kqueue-based engine
858 --disable-epoll Disable the epoll-based engine
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-leak-detect Turn on the leak detector(requires patched boehm)
864 --without-ipv6 disable IPv6 support (default is autodetect)
865 --with-symlink=name Name to give the symlink; if name is "no," no
866 symlink will be created.
867 --with-mode=mode Permissions (in octal) to give the binary
868 --with-owner=owner Specify owner of the installed binary
869 --with-group=group Specify group owner of the installed binary
870 --with-domain=domain Domain name to use in local statistics gathering
871 --with-chroot=dir Specify that the server will be operated under
872 a different root directory given by dir. See
873 doc/readme.chroot for more information.
874 --with-dpath=dir Directory for all server data files
875 --with-cpath=file Set server configuration file
876 --with-lpath=file Set the debugging log file
877 --with-maxcon=maxcon Maximum number of connections server will accept
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
928 .) ac_abs_builddir="$ac_dir";;
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_must_keep_next=false
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 -* ) ac_must_keep_next=true ;;
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1116 # The following way of writing the cache mishandles newlines in values,
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1146 if test -n "$ac_subst_files"; then
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -s confdefs.h; then
1168 sed "/^$/d" confdefs.h | sort
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1251 # Check that the precious variables saved in the cache have kept the same
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 unet_cv_prefix=$HOME
1336 if test x"$prefix" != xNONE; then
1337 unet_cv_prefix=$prefix
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1343 ac_config_headers="$ac_config_headers config.h"
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350 if test -f $ac_dir/install-sh; then
1352 ac_install_sh="$ac_aux_dir/install-sh -c"
1354 elif test -f $ac_dir/install.sh; then
1356 ac_install_sh="$ac_aux_dir/install.sh -c"
1358 elif test -f $ac_dir/shtool; then
1360 ac_install_sh="$ac_aux_dir/shtool install -c"
1364 if test -z "$ac_aux_dir"; then
1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367 { (exit 1); exit 1; }; }
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386 ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390 { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$ac_cv_prog_CC"; then
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$CC" && break
1689 if test -z "$CC"; then
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1728 test -n "$ac_ct_CC" && break
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.$ac_ext <<_ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 test -f "$ac_file" || continue
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 # This is the source file.
1809 # We found the default executable, but exeext='' is most
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1853 if test "$cross_compiling" = maybe; then
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.$ac_ext <<_ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1991 grep -v '^ *+' conftest.er1 >conftest.err
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 cat >conftest.$ac_ext <<_ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2049 grep -v '^ *+' conftest.er1 >conftest.err
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_cv_prog_cc_stdc=no
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2123 s = g (p, va_arg (v,int));
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX -qlanglvl=ansi
2154 # Ultrix and OSF/1 -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions -Aa -D_HPUX_SOURCE
2157 # SVR4 -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 CC="$ac_save_CC $ac_arg"
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1 >conftest.err
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_cv_prog_cc_stdc=$ac_arg
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2189 rm -f conftest.err conftest.$ac_objext
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2196 case "x$ac_cv_prog_cc_stdc" in
2198 echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203 CC="$CC $ac_cv_prog_cc_stdc" ;;
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2219 grep -v '^ *+' conftest.er1 >conftest.err
2221 cat conftest.err >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2308 grep -v '^ *+' conftest.er1 >conftest.err
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test -n "$CC"; then
2387 echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2395 if test -z "$ac_cv_prog_CC"; then
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2437 if test -z "$CC"; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_CC="${ac_tool_prefix}cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2475 if test -z "$ac_cv_prog_CC"; then
2477 # Extract the first word of "cc", so it can be a program name with args.
2478 set dummy cc; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2518 if test -z "$CC"; then
2519 # Extract the first word of "cc", so it can be a program name with args.
2520 set dummy cc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563 if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test -n "$CC"; then
2604 echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6
2607 echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2611 test -n "$CC" && break
2614 if test -z "$CC"; then
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CC="$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647 echo "${ECHO_T}$ac_ct_CC" >&6
2649 echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2653 test -n "$ac_ct_CC" && break
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO:" \
2670 "checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2673 (eval $ac_compiler --version </dev/null >&5) 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2678 (eval $ac_compiler -v </dev/null >&5) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2683 (eval $ac_compiler -V </dev/null >&5) 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2688 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2689 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2690 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2749 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cc_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2773 grep -v '^ *+' conftest.er1 >conftest.err
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2810 if test "$GCC" = yes; then
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 ac_cv_prog_cc_stdc=no
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2847 s = g (p, va_arg (v,int));
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std1 is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std1. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX -qlanglvl=ansi
2878 # Ultrix and OSF/1 -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions -Aa -D_HPUX_SOURCE
2881 # SVR4 -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_prog_cc_stdc=$ac_arg
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext
2915 rm -f conftest.$ac_ext conftest.$ac_objext
2920 case "x$ac_cv_prog_cc_stdc" in
2922 echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6 ;;
2925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2927 CC="$CC $ac_cv_prog_cc_stdc" ;;
2930 # Some people use a C++ compiler to compile C. Since we use `exit',
2931 # in C++ we need to declare it. In case someone uses the same compiler
2932 # for both compiling C and C++ we need to have the C++ compiler decide
2933 # the declaration of exit, since it's the most demanding environment.
2934 cat >conftest.$ac_ext <<_ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 for ac_declaration in \
2962 'extern "C" void std::exit (int) throw (); using std::exit;' \
2963 'extern "C" void std::exit (int); using std::exit;' \
2964 'extern "C" void exit (int) throw ();' \
2965 'extern "C" void exit (int);' \
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 if test -n "$ac_declaration"; then
3059 echo '#ifdef __cplusplus' >>confdefs.h
3060 echo $ac_declaration >>confdefs.h
3061 echo '#endif' >>confdefs.h
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3082 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3083 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3084 if test "${ac_cv_search_crypt+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 ac_func_search_save_LIBS=$LIBS
3088 ac_cv_search_crypt=no
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3096 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3111 rm -f conftest.$ac_objext conftest$ac_exeext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113 (eval $ac_link) 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest$ac_exeext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_search_crypt="none required"
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3138 rm -f conftest.err conftest.$ac_objext \
3139 conftest$ac_exeext conftest.$ac_ext
3140 if test "$ac_cv_search_crypt" = no; then
3141 for ac_lib in descrypt crypt; do
3142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 /* Override any gcc2 internal prototype to avoid an error. */
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest$ac_exeext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_search_crypt="-l$ac_lib"
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3193 rm -f conftest.err conftest.$ac_objext \
3194 conftest$ac_exeext conftest.$ac_ext
3197 LIBS=$ac_func_search_save_LIBS
3199 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3200 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3201 if test "$ac_cv_search_crypt" != no; then
3202 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3205 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3206 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3207 { (exit 1); exit 1; }; }
3212 # Most operating systems have gethostbyname() in the default searched
3213 # libraries (i.e. libc):
3214 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3215 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3216 if test "${ac_cv_func_gethostbyname+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3227 #define gethostbyname innocuous_gethostbyname
3229 /* System header to define __stub macros and hopefully few prototypes,
3230 which can conflict with char gethostbyname (); below.
3231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 <limits.h> exists even on freestanding compilers. */
3235 # include <limits.h>
3237 # include <assert.h>
3240 #undef gethostbyname
3242 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3249 char gethostbyname ();
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3256 char (*f) () = gethostbyname;
3265 return f != gethostbyname;
3270 rm -f conftest.$ac_objext conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_func_gethostbyname=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_cv_func_gethostbyname=no
3298 rm -f conftest.err conftest.$ac_objext \
3299 conftest$ac_exeext conftest.$ac_ext
3301 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3303 if test $ac_cv_func_gethostbyname = yes; then
3306 # Some OSes (eg. Solaris) place it in libnsl:
3308 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3309 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3310 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_check_lib_save_LIBS=$LIBS
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char gethostbyname ();
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_lib_nsl_gethostbyname=yes
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_cv_lib_nsl_gethostbyname=no
3365 rm -f conftest.err conftest.$ac_objext \
3366 conftest$ac_exeext conftest.$ac_ext
3367 LIBS=$ac_check_lib_save_LIBS
3369 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3370 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3371 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3372 cat >>confdefs.h <<_ACEOF
3373 #define HAVE_LIBNSL 1
3379 # Some strange OSes (SINIX) have it in libsocket:
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3383 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lsocket $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname ();
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_lib_socket_gethostbyname=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_lib_socket_gethostbyname=no
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 LIBS=$ac_check_lib_save_LIBS
3442 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3443 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3444 if test $ac_cv_lib_socket_gethostbyname = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define HAVE_LIBSOCKET 1
3449 LIBS="-lsocket $LIBS"
3452 # Unfortunately libsocket sometimes depends on libnsl.
3453 # AC_CHECK_LIB's API is essentially broken so the following
3454 # ugliness is necessary:
3455 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket -lnsl $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char gethostbyname ();
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_lib_socket_gethostbyname=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_lib_socket_gethostbyname=no
3512 rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
3514 LIBS=$ac_check_lib_save_LIBS
3516 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3517 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3518 if test $ac_cv_lib_socket_gethostbyname = yes; then
3519 LIBS="-lsocket -lnsl $LIBS"
3522 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3523 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3524 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 ac_check_lib_save_LIBS=$LIBS
3528 LIBS="-lresolv $LIBS"
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3536 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char gethostbyname ();
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553 (eval $ac_link) 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest$ac_exeext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_lib_resolv_gethostbyname=yes
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 ac_cv_lib_resolv_gethostbyname=no
3579 rm -f conftest.err conftest.$ac_objext \
3580 conftest$ac_exeext conftest.$ac_ext
3581 LIBS=$ac_check_lib_save_LIBS
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3585 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3586 cat >>confdefs.h <<_ACEOF
3587 #define HAVE_LIBRESOLV 1
3590 LIBS="-lresolv $LIBS"
3605 echo "$as_me:$LINENO: checking for socket" >&5
3606 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3607 if test "${ac_cv_func_socket+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3618 #define socket innocuous_socket
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char socket (); below.
3622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623 <limits.h> exists even on freestanding compilers. */
3626 # include <limits.h>
3628 # include <assert.h>
3633 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3641 /* The GNU C library defines this for functions which it implements
3642 to always fail with ENOSYS. Some functions are actually named
3643 something starting with __ and the normal name is an alias. */
3644 #if defined (__stub_socket) || defined (__stub___socket)
3647 char (*f) () = socket;
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_func_socket=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_func_socket=no
3689 rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3692 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3693 echo "${ECHO_T}$ac_cv_func_socket" >&6
3694 if test $ac_cv_func_socket = yes; then
3698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3700 if test "${ac_cv_lib_socket_socket+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_check_lib_save_LIBS=$LIBS
3704 LIBS="-lsocket $LIBS"
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_lib_socket_socket=yes
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 ac_cv_lib_socket_socket=no
3755 rm -f conftest.err conftest.$ac_objext \
3756 conftest$ac_exeext conftest.$ac_ext
3757 LIBS=$ac_check_lib_save_LIBS
3759 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3760 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3761 if test $ac_cv_lib_socket_socket = yes; then
3762 cat >>confdefs.h <<_ACEOF
3763 #define HAVE_LIBSOCKET 1
3766 LIBS="-lsocket $LIBS"
3769 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3770 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3771 if test "${ac_cv_lib_socket_socket+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_check_lib_save_LIBS=$LIBS
3775 LIBS="-lsocket -lnsl $LIBS"
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3783 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_lib_socket_socket=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_cv_lib_socket_socket=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3832 if test $ac_cv_lib_socket_socket = yes; then
3833 LIBS="-lsocket -lnsl $LIBS"
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3853 if test -z "$CPP"; then
3854 if test "${ac_cv_prog_CPP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 # Double quotes because CPP needs to be expanded
3858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3861 for ac_c_preproc_warn_flag in '' yes
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3876 # include <limits.h>
3878 # include <assert.h>
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 if test -z "$ac_cpp_err"; then
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether non-existent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937 if test -z "$ac_cpp_err"; then
3938 # Broken: success on invalid input.
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Passes both tests.
3948 rm -f conftest.err conftest.$ac_ext
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 if test -z "$ac_cpp_err"; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 # Broken: fails on valid input.
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether non-existent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4044 if test -z "$ac_cpp_err"; then
4045 # Broken: success on invalid input.
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 # Passes both tests.
4055 rm -f conftest.err conftest.$ac_ext
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4063 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067 { (exit 1); exit 1; }; }
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083 then ac_cv_prog_egrep='grep -E'
4084 else ac_cv_prog_egrep='egrep'
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089 EGREP=$ac_cv_prog_egrep
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4182 ac_cv_header_stdc=no
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4284 #include <$ac_header>
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_Header=yes"
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 eval "$as_ac_Header=no"
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350 # Is the header compilable?
4351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4360 #include <$ac_header>
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_header_compiler=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_header_compiler=no
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4392 echo "${ECHO_T}$ac_header_compiler" >&6
4394 # Is the header present?
4395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <$ac_header>
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_c_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4422 if test -z "$ac_cpp_err"; then
4423 ac_header_preproc=yes
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 ac_header_preproc=no
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4434 # So? What about this header?
4435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4441 ac_header_preproc=yes
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458 ## ------------------------------------------ ##
4459 ## Report this to the AC_PACKAGE_NAME lists. ##
4460 ## ------------------------------------------ ##
4463 sed "s/^/$as_me: WARNING: /" >&2
4466 echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 eval "$as_ac_Header=\$ac_header_preproc"
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4478 cat >>confdefs.h <<_ACEOF
4479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4489 if test "${ac_cv_c_bigendian+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 # See if sys/param.h defines the BYTE_ORDER macro.
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <sys/types.h>
4500 #include <sys/param.h>
4505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 # It does; now see whether it defined to BIG_ENDIAN or not.
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 #include <sys/param.h>
4547 #if BYTE_ORDER != BIG_ENDIAN
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_cv_c_bigendian=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_c_bigendian=no
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 # It does not; compile a test program.
4589 if test "$cross_compiling" = yes; then
4590 # try to guess the endianness by grepping values into an object file
4591 ac_cv_c_bigendian=unknown
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4599 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4600 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4601 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4602 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4603 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4607 _ascii (); _ebcdic ();
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4634 ac_cv_c_bigendian=yes
4636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4637 if test "$ac_cv_c_bigendian" = unknown; then
4638 ac_cv_c_bigendian=no
4640 # finding both strings is unlikely to happen, but who knows?
4641 ac_cv_c_bigendian=unknown
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4660 /* Are we little or big endian? From Harbison&Steele. */
4664 char c[sizeof (long)];
4667 exit (u.c[sizeof (long) - 1] == 1);
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_c_bigendian=no
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_c_bigendian=yes
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4696 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4697 case $ac_cv_c_bigendian in
4700 cat >>confdefs.h <<\_ACEOF
4701 #define WORDS_BIGENDIAN 1
4707 { { echo "$as_me:$LINENO: error: unknown endianness
4708 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4709 echo "$as_me: error: unknown endianness
4710 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4711 { (exit 1); exit 1; }; } ;;
4714 echo "$as_me:$LINENO: checking for size_t" >&5
4715 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4716 if test "${ac_cv_type_size_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4731 if (sizeof (size_t))
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_type_size_t=yes
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_cv_type_size_t=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4768 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4769 if test $ac_cv_type_size_t = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define size_t unsigned
4779 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4780 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4781 if test "${ac_cv_header_time+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <sys/time.h>
4797 if ((struct tm *) 0)
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_header_time=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cv_header_time=no
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4834 echo "${ECHO_T}$ac_cv_header_time" >&6
4835 if test $ac_cv_header_time = yes; then
4837 cat >>confdefs.h <<\_ACEOF
4838 #define TIME_WITH_SYS_TIME 1
4843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4845 if test "${ac_cv_struct_tm+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <sys/types.h>
4860 struct tm *tp; tp->tm_sec;
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_struct_tm=time.h
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_struct_tm=sys/time.h
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4896 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4897 if test $ac_cv_struct_tm = sys/time.h; then
4899 cat >>confdefs.h <<\_ACEOF
4900 #define TM_IN_SYS_TIME 1
4905 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4907 if test "${ac_cv_type_uid_t+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "uid_t" >/dev/null 2>&1; then
4921 ac_cv_type_uid_t=yes
4928 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4930 if test $ac_cv_type_uid_t = no; then
4932 cat >>confdefs.h <<\_ACEOF
4937 cat >>confdefs.h <<\_ACEOF
4943 echo "$as_me:$LINENO: checking for short" >&5
4944 echo $ECHO_N "checking for short... $ECHO_C" >&6
4945 if test "${ac_cv_type_short+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_type_short=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4997 echo "${ECHO_T}$ac_cv_type_short" >&6
4999 echo "$as_me:$LINENO: checking size of short" >&5
5000 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5001 if test "${ac_cv_sizeof_short+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test "$ac_cv_type_short" = yes; then
5005 # The cast to unsigned long works around a bug in the HP C Compiler
5006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5008 # This bug is HP SR number 8606223364.
5009 if test "$cross_compiling" = yes; then
5010 # Depending upon the size, compute the lo and hi bounds.
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5021 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 $ac_includes_default
5061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_hi=$ac_mid; break
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_lo=`expr $ac_mid + 1`
5095 if test $ac_lo -le $ac_mid; then
5099 ac_mid=`expr 2 '*' $ac_mid + 1`
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5117 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5157 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_lo=$ac_mid; break
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_hi=`expr '(' $ac_mid ')' - 1`
5191 if test $ac_mid -le $ac_hi; then
5195 ac_mid=`expr 2 '*' $ac_mid`
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 # Binary search between lo and hi bounds.
5209 while test "x$ac_lo" != "x$ac_hi"; do
5210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5221 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 ac_lo=`expr '(' $ac_mid ')' + 1`
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ?*) ac_cv_sizeof_short=$ac_lo;;
5260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5261 See \`config.log' for more details." >&5
5262 echo "$as_me: error: cannot compute sizeof (short), 77
5263 See \`config.log' for more details." >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 if test "$cross_compiling" = yes; then
5268 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5269 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5270 { (exit 1); exit 1; }; }
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 long longval () { return (long) (sizeof (short)); }
5280 unsigned long ulongval () { return (long) (sizeof (short)); }
5287 FILE *f = fopen ("conftest.val", "w");
5290 if (((long) (sizeof (short))) < 0)
5292 long i = longval ();
5293 if (i != ((long) (sizeof (short))))
5295 fprintf (f, "%ld\n", i);
5299 unsigned long i = ulongval ();
5300 if (i != ((long) (sizeof (short))))
5302 fprintf (f, "%lu\n", i);
5304 exit (ferror (f) || fclose (f) != 0);
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_sizeof_short=`cat conftest.val`
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: cannot compute sizeof (short), 77
5331 See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5339 ac_cv_sizeof_short=0
5342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5343 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5344 cat >>confdefs.h <<_ACEOF
5345 #define SIZEOF_SHORT $ac_cv_sizeof_short
5349 echo "$as_me:$LINENO: checking for int" >&5
5350 echo $ECHO_N "checking for int... $ECHO_C" >&6
5351 if test "${ac_cv_type_int+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1 >conftest.err
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5403 echo "${ECHO_T}$ac_cv_type_int" >&6
5405 echo "$as_me:$LINENO: checking size of int" >&5
5406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5407 if test "${ac_cv_sizeof_int+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 if test "$ac_cv_type_int" = yes; then
5411 # The cast to unsigned long works around a bug in the HP C Compiler
5412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5414 # This bug is HP SR number 8606223364.
5415 if test "$cross_compiling" = yes; then
5416 # Depending upon the size, compute the lo and hi bounds.
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_hi=$ac_mid; break
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_lo=`expr $ac_mid + 1`
5501 if test $ac_lo -le $ac_mid; then
5505 ac_mid=`expr 2 '*' $ac_mid + 1`
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5563 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5570 rm -f conftest.$ac_objext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_lo=$ac_mid; break
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_hi=`expr '(' $ac_mid ')' - 1`
5597 if test $ac_mid -le $ac_hi; then
5601 ac_mid=`expr 2 '*' $ac_mid`
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 # Binary search between lo and hi bounds.
5615 while test "x$ac_lo" != "x$ac_hi"; do
5616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5627 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_lo=`expr '(' $ac_mid ')' + 1`
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5665 ?*) ac_cv_sizeof_int=$ac_lo;;
5666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5667 See \`config.log' for more details." >&5
5668 echo "$as_me: error: cannot compute sizeof (int), 77
5669 See \`config.log' for more details." >&2;}
5670 { (exit 1); exit 1; }; } ;;
5673 if test "$cross_compiling" = yes; then
5674 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5675 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5676 { (exit 1); exit 1; }; }
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 long longval () { return (long) (sizeof (int)); }
5686 unsigned long ulongval () { return (long) (sizeof (int)); }
5693 FILE *f = fopen ("conftest.val", "w");
5696 if (((long) (sizeof (int))) < 0)
5698 long i = longval ();
5699 if (i != ((long) (sizeof (int))))
5701 fprintf (f, "%ld\n", i);
5705 unsigned long i = ulongval ();
5706 if (i != ((long) (sizeof (int))))
5708 fprintf (f, "%lu\n", i);
5710 exit (ferror (f) || fclose (f) != 0);
5716 rm -f conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_sizeof_int=`cat conftest.val`
5729 echo "$as_me: program exited with status $ac_status" >&5
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5735 See \`config.log' for more details." >&5
5736 echo "$as_me: error: cannot compute sizeof (int), 77
5737 See \`config.log' for more details." >&2;}
5738 { (exit 1); exit 1; }; }
5740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5749 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_INT $ac_cv_sizeof_int
5755 echo "$as_me:$LINENO: checking for long" >&5
5756 echo $ECHO_N "checking for long... $ECHO_C" >&6
5757 if test "${ac_cv_type_long+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5809 echo "${ECHO_T}$ac_cv_type_long" >&6
5811 echo "$as_me:$LINENO: checking size of long" >&5
5812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5813 if test "${ac_cv_sizeof_long+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test "$ac_cv_type_long" = yes; then
5817 # The cast to unsigned long works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 if test "$cross_compiling" = yes; then
5822 # Depending upon the size, compute the lo and hi bounds.
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_hi=$ac_mid; break
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_lo=`expr $ac_mid + 1`
5907 if test $ac_lo -le $ac_mid; then
5911 ac_mid=`expr 2 '*' $ac_mid + 1`
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5929 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5969 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_lo=$ac_mid; break
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_hi=`expr '(' $ac_mid ')' - 1`
6003 if test $ac_mid -le $ac_hi; then
6007 ac_mid=`expr 2 '*' $ac_mid`
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 # Binary search between lo and hi bounds.
6021 while test "x$ac_lo" != "x$ac_hi"; do
6022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_lo=`expr '(' $ac_mid ')' + 1`
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ?*) ac_cv_sizeof_long=$ac_lo;;
6072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6073 See \`config.log' for more details." >&5
6074 echo "$as_me: error: cannot compute sizeof (long), 77
6075 See \`config.log' for more details." >&2;}
6076 { (exit 1); exit 1; }; } ;;
6079 if test "$cross_compiling" = yes; then
6080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6082 { (exit 1); exit 1; }; }
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6091 long longval () { return (long) (sizeof (long)); }
6092 unsigned long ulongval () { return (long) (sizeof (long)); }
6099 FILE *f = fopen ("conftest.val", "w");
6102 if (((long) (sizeof (long))) < 0)
6104 long i = longval ();
6105 if (i != ((long) (sizeof (long))))
6107 fprintf (f, "%ld\n", i);
6111 unsigned long i = ulongval ();
6112 if (i != ((long) (sizeof (long))))
6114 fprintf (f, "%lu\n", i);
6116 exit (ferror (f) || fclose (f) != 0);
6122 rm -f conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_sizeof_long=`cat conftest.val`
6135 echo "$as_me: program exited with status $ac_status" >&5
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6141 See \`config.log' for more details." >&5
6142 echo "$as_me: error: cannot compute sizeof (long), 77
6143 See \`config.log' for more details." >&2;}
6144 { (exit 1); exit 1; }; }
6146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6156 cat >>confdefs.h <<_ACEOF
6157 #define SIZEOF_LONG $ac_cv_sizeof_long
6161 echo "$as_me:$LINENO: checking for void *" >&5
6162 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6163 if test "${ac_cv_type_void_p+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6178 if (sizeof (void *))
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1 >conftest.err
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_type_void_p=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_type_void_p=no
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6215 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6217 echo "$as_me:$LINENO: checking size of void *" >&5
6218 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6219 if test "${ac_cv_sizeof_void_p+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 if test "$ac_cv_type_void_p" = yes; then
6223 # The cast to unsigned long works around a bug in the HP C Compiler
6224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6226 # This bug is HP SR number 8606223364.
6227 if test "$cross_compiling" = yes; then
6228 # Depending upon the size, compute the lo and hi bounds.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6239 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6279 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_hi=$ac_mid; break
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_lo=`expr $ac_mid + 1`
6313 if test $ac_lo -le $ac_mid; then
6317 ac_mid=`expr 2 '*' $ac_mid + 1`
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
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 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_lo=$ac_mid; break
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_hi=`expr '(' $ac_mid ')' - 1`
6409 if test $ac_mid -le $ac_hi; then
6413 ac_mid=`expr 2 '*' $ac_mid`
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 # Binary search between lo and hi bounds.
6427 while test "x$ac_lo" != "x$ac_hi"; do
6428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6439 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6450 grep -v '^ *+' conftest.er1 >conftest.err
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_lo=`expr '(' $ac_mid ')' + 1`
6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6479 See \`config.log' for more details." >&5
6480 echo "$as_me: error: cannot compute sizeof (void *), 77
6481 See \`config.log' for more details." >&2;}
6482 { (exit 1); exit 1; }; } ;;
6485 if test "$cross_compiling" = yes; then
6486 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6487 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6488 { (exit 1); exit 1; }; }
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 $ac_includes_default
6497 long longval () { return (long) (sizeof (void *)); }
6498 unsigned long ulongval () { return (long) (sizeof (void *)); }
6505 FILE *f = fopen ("conftest.val", "w");
6508 if (((long) (sizeof (void *))) < 0)
6510 long i = longval ();
6511 if (i != ((long) (sizeof (void *))))
6513 fprintf (f, "%ld\n", i);
6517 unsigned long i = ulongval ();
6518 if (i != ((long) (sizeof (void *))))
6520 fprintf (f, "%lu\n", i);
6522 exit (ferror (f) || fclose (f) != 0);
6528 rm -f conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_sizeof_void_p=`cat conftest.val`
6541 echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6547 See \`config.log' for more details." >&5
6548 echo "$as_me: error: cannot compute sizeof (void *), 77
6549 See \`config.log' for more details." >&2;}
6550 { (exit 1); exit 1; }; }
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6557 ac_cv_sizeof_void_p=0
6560 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6561 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6562 cat >>confdefs.h <<_ACEOF
6563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6567 echo "$as_me:$LINENO: checking for int64_t" >&5
6568 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6569 if test "${ac_cv_type_int64_t+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6584 if (sizeof (int64_t))
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_type_int64_t=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_cv_type_int64_t=no
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6623 echo "$as_me:$LINENO: checking size of int64_t" >&5
6624 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6625 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 if test "$ac_cv_type_int64_t" = yes; then
6629 # The cast to unsigned long works around a bug in the HP C Compiler
6630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6632 # This bug is HP SR number 8606223364.
6633 if test "$cross_compiling" = yes; then
6634 # Depending upon the size, compute the lo and hi bounds.
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6645 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6685 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=$ac_mid; break
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_lo=`expr $ac_mid + 1`
6719 if test $ac_lo -le $ac_mid; then
6723 ac_mid=`expr 2 '*' $ac_mid + 1`
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6741 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6771 cat >conftest.$ac_ext <<_ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 $ac_includes_default
6781 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_lo=$ac_mid; break
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815 if test $ac_mid -le $ac_hi; then
6819 ac_mid=`expr 2 '*' $ac_mid`
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 # Binary search between lo and hi bounds.
6833 while test "x$ac_lo" != "x$ac_hi"; do
6834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6845 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest.$ac_objext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_lo=`expr '(' $ac_mid ')' + 1`
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6883 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6885 See \`config.log' for more details." >&5
6886 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6887 See \`config.log' for more details." >&2;}
6888 { (exit 1); exit 1; }; } ;;
6891 if test "$cross_compiling" = yes; then
6892 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6893 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6894 { (exit 1); exit 1; }; }
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6903 long longval () { return (long) (sizeof (int64_t)); }
6904 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6911 FILE *f = fopen ("conftest.val", "w");
6914 if (((long) (sizeof (int64_t))) < 0)
6916 long i = longval ();
6917 if (i != ((long) (sizeof (int64_t))))
6919 fprintf (f, "%ld\n", i);
6923 unsigned long i = ulongval ();
6924 if (i != ((long) (sizeof (int64_t))))
6926 fprintf (f, "%lu\n", i);
6928 exit (ferror (f) || fclose (f) != 0);
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_sizeof_int64_t=`cat conftest.val`
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6953 See \`config.log' for more details." >&5
6954 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6955 See \`config.log' for more details." >&2;}
6956 { (exit 1); exit 1; }; }
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6963 ac_cv_sizeof_int64_t=0
6966 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6967 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6968 cat >>confdefs.h <<_ACEOF
6969 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6973 echo "$as_me:$LINENO: checking for long long" >&5
6974 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6975 if test "${ac_cv_type_long_long+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6988 if ((long long *) 0)
6990 if (sizeof (long long))
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_type_long_long=yes
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_cv_type_long_long=no
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7027 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7029 echo "$as_me:$LINENO: checking size of long long" >&5
7030 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7031 if test "${ac_cv_sizeof_long_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test "$ac_cv_type_long_long" = yes; then
7035 # The cast to unsigned long works around a bug in the HP C Compiler
7036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7038 # This bug is HP SR number 8606223364.
7039 if test "$cross_compiling" = yes; then
7040 # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>conftest.er1
7062 grep -v '^ *+' conftest.er1 >conftest.err
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7081 cat >conftest.$ac_ext <<_ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7102 grep -v '^ *+' conftest.er1 >conftest.err
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_hi=$ac_mid; break
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ac_lo=`expr $ac_mid + 1`
7125 if test $ac_lo -le $ac_mid; then
7129 ac_mid=`expr 2 '*' $ac_mid + 1`
7131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 $ac_includes_default
7147 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo=$ac_mid; break
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_hi=`expr '(' $ac_mid ')' - 1`
7221 if test $ac_mid -le $ac_hi; then
7225 ac_mid=`expr 2 '*' $ac_mid`
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 # Binary search between lo and hi bounds.
7239 while test "x$ac_lo" != "x$ac_hi"; do
7240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_lo=`expr '(' $ac_mid ')' + 1`
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7291 See \`config.log' for more details." >&5
7292 echo "$as_me: error: cannot compute sizeof (long long), 77
7293 See \`config.log' for more details." >&2;}
7294 { (exit 1); exit 1; }; } ;;
7297 if test "$cross_compiling" = yes; then
7298 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7299 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7300 { (exit 1); exit 1; }; }
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 long longval () { return (long) (sizeof (long long)); }
7310 unsigned long ulongval () { return (long) (sizeof (long long)); }
7317 FILE *f = fopen ("conftest.val", "w");
7320 if (((long) (sizeof (long long))) < 0)
7322 long i = longval ();
7323 if (i != ((long) (sizeof (long long))))
7325 fprintf (f, "%ld\n", i);
7329 unsigned long i = ulongval ();
7330 if (i != ((long) (sizeof (long long))))
7332 fprintf (f, "%lu\n", i);
7334 exit (ferror (f) || fclose (f) != 0);
7340 rm -f conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_sizeof_long_long=`cat conftest.val`
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7359 See \`config.log' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (long long), 77
7361 See \`config.log' for more details." >&2;}
7362 { (exit 1); exit 1; }; }
7364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 ac_cv_sizeof_long_long=0
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7379 if test "$ac_cv_sizeof_int" = 2 ; then
7380 echo "$as_me:$LINENO: checking for int16_t" >&5
7381 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7382 if test "${ac_cv_type_int16_t+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7397 if (sizeof (int16_t))
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_type_int16_t=yes
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_int16_t=no
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7434 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7435 if test $ac_cv_type_int16_t = yes; then
7439 cat >>confdefs.h <<_ACEOF
7445 echo "$as_me:$LINENO: checking for uint16_t" >&5
7446 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7447 if test "${ac_cv_type_uint16_t+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7462 if (sizeof (uint16_t))
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_type_uint16_t=yes
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_type_uint16_t=no
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7500 if test $ac_cv_type_uint16_t = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define uint16_t unsigned int
7510 elif test "$ac_cv_sizeof_short" = 2 ; then
7511 echo "$as_me:$LINENO: checking for int16_t" >&5
7512 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7513 if test "${ac_cv_type_int16_t+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7528 if (sizeof (int16_t))
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_type_int16_t=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_cv_type_int16_t=no
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7565 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7566 if test $ac_cv_type_int16_t = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 #define int16_t short
7576 echo "$as_me:$LINENO: checking for uint16_t" >&5
7577 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7578 if test "${ac_cv_type_uint16_t+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7593 if (sizeof (uint16_t))
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; } &&
7614 { ac_try='test -s conftest.$ac_objext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_type_uint16_t=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_cv_type_uint16_t=no
7627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7630 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7631 if test $ac_cv_type_uint16_t = yes; then
7635 cat >>confdefs.h <<_ACEOF
7636 #define uint16_t unsigned short
7642 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7643 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7644 { (exit 1); exit 1; }; }
7646 if test "$ac_cv_sizeof_int" = 4 ; then
7647 echo "$as_me:$LINENO: checking for int32_t" >&5
7648 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7649 if test "${ac_cv_type_int32_t+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7664 if (sizeof (int32_t))
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_type_int32_t=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_cv_type_int32_t=no
7698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7701 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7702 if test $ac_cv_type_int32_t = yes; then
7706 cat >>confdefs.h <<_ACEOF
7712 echo "$as_me:$LINENO: checking for uint32_t" >&5
7713 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7714 if test "${ac_cv_type_uint32_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7729 if (sizeof (uint32_t))
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_type_uint32_t=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_cv_type_uint32_t=no
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7766 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7767 if test $ac_cv_type_uint32_t = yes; then
7771 cat >>confdefs.h <<_ACEOF
7772 #define uint32_t unsigned int
7777 elif test "$ac_cv_sizeof_short" = 4 ; then
7778 echo "$as_me:$LINENO: checking for int32_t" >&5
7779 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7780 if test "${ac_cv_type_int32_t+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7795 if (sizeof (int32_t))
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_type_int32_t=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_cv_type_int32_t=no
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7831 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7832 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7833 if test $ac_cv_type_int32_t = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define int32_t short
7843 echo "$as_me:$LINENO: checking for uint32_t" >&5
7844 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7845 if test "${ac_cv_type_uint32_t+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7860 if (sizeof (uint32_t))
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest.$ac_objext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_type_uint32_t=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_type_uint32_t=no
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7897 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7898 if test $ac_cv_type_uint32_t = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define uint32_t unsigned short
7908 elif test "$ac_cv_sizeof_long" = 4 ; then
7909 echo "$as_me:$LINENO: checking for int32_t" >&5
7910 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7911 if test "${ac_cv_type_int32_t+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7926 if (sizeof (int32_t))
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>conftest.er1
7936 grep -v '^ *+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_type_int32_t=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_type_int32_t=no
7960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7963 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7964 if test $ac_cv_type_int32_t = yes; then
7968 cat >>confdefs.h <<_ACEOF
7969 #define int32_t long
7974 echo "$as_me:$LINENO: checking for uint32_t" >&5
7975 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7976 if test "${ac_cv_type_uint32_t+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7991 if (sizeof (uint32_t))
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_type_uint32_t=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_type_uint32_t=no
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8029 if test $ac_cv_type_uint32_t = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define uint32_t unsigned long
8040 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8041 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8042 { (exit 1); exit 1; }; }
8044 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8045 echo "$as_me:$LINENO: checking for int64_t" >&5
8046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_int64_t+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8062 if (sizeof (int64_t))
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_type_int64_t=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_type_int64_t=no
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8098 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8101 echo "$as_me:$LINENO: checking for uint64_t" >&5
8102 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_uint64_t+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8118 if (sizeof (uint64_t))
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_type_uint64_t=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_type_uint64_t=no
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8157 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8158 echo "$as_me:$LINENO: checking for int64_t" >&5
8159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8160 if test "${ac_cv_type_int64_t+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 $ac_includes_default
8175 if (sizeof (int64_t))
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_type_int64_t=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_type_int64_t=no
8209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8212 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8213 if test $ac_cv_type_int64_t = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define int64_t long long
8223 echo "$as_me:$LINENO: checking for uint64_t" >&5
8224 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8225 if test "${ac_cv_type_uint64_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8240 if (sizeof (uint64_t))
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_type_uint64_t=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_type_uint64_t=no
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8277 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8278 if test $ac_cv_type_uint64_t = yes; then
8282 cat >>confdefs.h <<_ACEOF
8283 #define uint64_t unsigned long long
8289 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8290 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8291 { (exit 1); exit 1; }; }
8293 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8294 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8295 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <netinet/in.h>
8310 if ((struct sockaddr_in6 *) 0)
8312 if (sizeof (struct sockaddr_in6))
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_type_struct_sockaddr_in6=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_type_struct_sockaddr_in6=no
8346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8349 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8350 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8351 unet_have_sockaddr_in6="yes"
8353 unet_have_sockaddr_in6="no"
8357 echo "$as_me:$LINENO: checking for socklen_t" >&5
8358 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8359 if test "${ac_cv_type_socklen_t+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 #include <sys/types.h>
8369 #include<sys/socket.h>
8374 if ((socklen_t *) 0)
8376 if (sizeof (socklen_t))
8382 rm -f conftest.$ac_objext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384 (eval $ac_compile) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_type_socklen_t=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_type_socklen_t=no
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8413 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8414 if test $ac_cv_type_socklen_t = yes; then
8418 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8419 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
8420 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 curl_cv_socklen_t_equiv=
8425 for arg2 in "struct sockaddr" void ; do
8426 for t in int size_t unsigned long "unsigned long" ; do
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/socket.h>
8435 int getpeername (int $arg2 *, $t *);
8440 getpeername(0, 0, &len);
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 curl_cv_socklen_t_equiv="$t"
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8480 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
8482 cat >>confdefs.h <<_ACEOF
8483 #define socklen_t $curl_cv_socklen_t_equiv
8493 for ac_func in kqueue setrlimit getrusage times
8495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8496 echo "$as_me:$LINENO: checking for $ac_func" >&5
8497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8498 if eval "test \"\${$as_ac_var+set}\" = set"; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8509 #define $ac_func innocuous_$ac_func
8511 /* System header to define __stub macros and hopefully few prototypes,
8512 which can conflict with char $ac_func (); below.
8513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514 <limits.h> exists even on freestanding compilers. */
8517 # include <limits.h>
8519 # include <assert.h>
8524 /* Override any gcc2 internal prototype to avoid an error. */
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8532 /* The GNU C library defines this for functions which it implements
8533 to always fail with ENOSYS. Some functions are actually named
8534 something starting with __ and the normal name is an alias. */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8538 char (*f) () = $ac_func;
8547 return f != $ac_func;
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 eval "$as_ac_var=yes"
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 eval "$as_ac_var=no"
8580 rm -f conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8585 if test `eval echo '${'$as_ac_var'}'` = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8594 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8595 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8596 if test "${ac_cv_header_sys_wait_h+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. */
8605 #include <sys/types.h>
8606 #include <sys/wait.h>
8608 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_header_sys_wait_h=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_cv_header_sys_wait_h=no
8652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8655 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8656 if test $ac_cv_header_sys_wait_h = yes; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define HAVE_SYS_WAIT_H 1
8665 for ac_header in unistd.h
8667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8669 echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8677 # Is the header compilable?
8678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #include <$ac_header>
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_header_compiler=no
8717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <$ac_header>
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_header_preproc=no
8757 rm -f conftest.err conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785 ## ------------------------------------------ ##
8786 ## Report this to the AC_PACKAGE_NAME lists. ##
8787 ## ------------------------------------------ ##
8790 sed "s/^/$as_me: WARNING: /" >&2
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 eval "$as_ac_Header=\$ac_header_preproc"
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805 cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8813 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8814 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8815 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 if test "$cross_compiling" = yes; then
8819 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8820 See \`config.log' for more details." >&5
8821 echo "$as_me: error: cannot run test program while cross compiling
8822 See \`config.log' for more details." >&2;}
8823 { (exit 1); exit 1; }; }
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 /* Exit 0 (true) if wait returns something other than -1,
8832 i.e. the pid of the child, which means that wait was restarted
8833 after getting the signal. */
8835 #include <sys/types.h>
8838 # include <unistd.h>
8841 # include <sys/wait.h>
8844 /* Some platforms explicitly require an extern "C" signal handler
8847 extern "C" void ucatch (int dummy) { }
8849 void ucatch (dummy) int dummy; { }
8855 int i = fork (), status;
8860 kill (getppid (), SIGINT);
8865 signal (SIGINT, ucatch);
8871 exit (status == -1);
8874 rm -f conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_sys_restartable_syscalls=yes
8887 echo "$as_me: program exited with status $ac_status" >&5
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_cv_sys_restartable_syscalls=no
8894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8898 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8899 if test $ac_cv_sys_restartable_syscalls = yes; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_RESTARTABLE_SYSCALLS 1
8908 echo "$as_me:$LINENO: checking for donuts" >&5
8909 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6
8913 for ac_prog in gawk mawk nawk awk
8915 # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8919 if test "${ac_cv_prog_AWK+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 if test -n "$AWK"; then
8923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932 ac_cv_prog_AWK="$ac_prog"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 if test -n "$AWK"; then
8943 echo "$as_me:$LINENO: result: $AWK" >&5
8944 echo "${ECHO_T}$AWK" >&6
8946 echo "$as_me:$LINENO: result: no" >&5
8947 echo "${ECHO_T}no" >&6
8950 test -n "$AWK" && break
8953 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8954 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8955 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8956 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.make <<\_ACEOF
8961 @echo 'ac_maketemp="$(MAKE)"'
8963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8964 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8965 if test -n "$ac_maketemp"; then
8966 eval ac_cv_prog_make_${ac_make}_set=yes
8968 eval ac_cv_prog_make_${ac_make}_set=no
8972 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8973 echo "$as_me:$LINENO: result: yes" >&5
8974 echo "${ECHO_T}yes" >&6
8977 echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979 SET_MAKE="MAKE=${MAKE-make}"
8982 # Find a good install program. We prefer a C program (faster),
8983 # so one script is as good as another. But avoid the broken or
8984 # incompatible versions:
8985 # SysV /etc/install, /usr/sbin/install
8986 # SunOS /usr/etc/install
8987 # IRIX /sbin/install
8989 # AmigaOS /C/install, which installs bootblocks on floppy discs
8990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8993 # OS/2's system install, which has a completely different semantic
8994 # ./install, which can be erroneously created by make from ./install.sh.
8995 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8997 if test -z "$INSTALL"; then
8998 if test "${ac_cv_path_install+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 test -z "$as_dir" && as_dir=.
9006 # Account for people who put trailing slashes in PATH elements.
9008 ./ | .// | /cC/* | \
9009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9013 # OSF1 and SCO ODT 3.0 have their own names for install.
9014 # Don't use installbsd from OSF since it installs stuff as root
9016 for ac_prog in ginstall scoinst install; do
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9019 if test $ac_prog = install &&
9020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9021 # AIX install. It has an incompatible calling convention.
9023 elif test $ac_prog = install &&
9024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9025 # program-specific install script used by HP pwplus--don't use.
9028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9040 if test "${ac_cv_path_install+set}" = set; then
9041 INSTALL=$ac_cv_path_install
9043 # As a last resort, use the slow shell script. We don't cache a
9044 # path for INSTALL within a source directory, because that will
9045 # break other packages using the cache if that directory is
9046 # removed, or if the path is relative.
9047 INSTALL=$ac_install_sh
9050 echo "$as_me:$LINENO: result: $INSTALL" >&5
9051 echo "${ECHO_T}$INSTALL" >&6
9053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9054 # It thinks the first close brace ends the variable substitution.
9055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9064 if test "$LN_S" = "ln -s"; then
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9068 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9069 echo "${ECHO_T}no, using $LN_S" >&6
9074 # Extract the first word of "$ac_prog", so it can be a program name with args.
9075 set dummy $ac_prog; ac_word=$2
9076 echo "$as_me:$LINENO: checking for $ac_word" >&5
9077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9078 if test "${ac_cv_path_RMPROG+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 RMPROG=$ac_cv_path_RMPROG
9105 if test -n "$RMPROG"; then
9106 echo "$as_me:$LINENO: result: $RMPROG" >&5
9107 echo "${ECHO_T}$RMPROG" >&6
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9113 test -n "$RMPROG" && break
9115 test -n "$RMPROG" || RMPROG="/bin/rm"
9119 # Extract the first word of "$ac_prog", so it can be a program name with args.
9120 set dummy $ac_prog; ac_word=$2
9121 echo "$as_me:$LINENO: checking for $ac_word" >&5
9122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123 if test "${ac_cv_path_SHPROG+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 SHPROG=$ac_cv_path_SHPROG
9150 if test -n "$SHPROG"; then
9151 echo "$as_me:$LINENO: result: $SHPROG" >&5
9152 echo "${ECHO_T}$SHPROG" >&6
9154 echo "$as_me:$LINENO: result: no" >&5
9155 echo "${ECHO_T}no" >&6
9158 test -n "$SHPROG" && break
9160 test -n "$SHPROG" || SHPROG="/bin/sh"
9163 for ac_prog in flex lex
9165 # Extract the first word of "$ac_prog", so it can be a program name with args.
9166 set dummy $ac_prog; ac_word=$2
9167 echo "$as_me:$LINENO: checking for $ac_word" >&5
9168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9169 if test "${ac_cv_prog_LEX+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 if test -n "$LEX"; then
9173 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_LEX="$ac_prog"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 if test -n "$LEX"; then
9193 echo "$as_me:$LINENO: result: $LEX" >&5
9194 echo "${ECHO_T}$LEX" >&6
9196 echo "$as_me:$LINENO: result: no" >&5
9197 echo "${ECHO_T}no" >&6
9200 test -n "$LEX" && break
9202 test -n "$LEX" || LEX=":"
9204 if test -z "$LEXLIB"
9206 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9207 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9208 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 ac_check_lib_save_LIBS=$LIBS
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9220 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_lib_fl_yywrap=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_cv_lib_fl_yywrap=no
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9267 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9268 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9269 if test $ac_cv_lib_fl_yywrap = yes; then
9272 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9273 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9274 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 ac_check_lib_save_LIBS=$LIBS
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_lib_l_yywrap=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_lib_l_yywrap=no
9329 rm -f conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9334 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9335 if test $ac_cv_lib_l_yywrap = yes; then
9343 if test "x$LEX" != "x:"; then
9344 echo "$as_me:$LINENO: checking lex output file root" >&5
9345 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9346 if test "${ac_cv_prog_lex_root+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 # The minimal lex program is just a single line: %%. But some broken lexes
9350 # (Solaris, I think it was) want two %% lines, so accommodate them.
9351 cat >conftest.l <<_ACEOF
9355 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9356 (eval $LEX conftest.l) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }
9360 if test -f lex.yy.c; then
9361 ac_cv_prog_lex_root=lex.yy
9362 elif test -f lexyy.c; then
9363 ac_cv_prog_lex_root=lexyy
9365 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9366 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9367 { (exit 1); exit 1; }; }
9370 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9371 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9373 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9375 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9376 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9377 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 # POSIX says lex can declare yytext either as a pointer or an array; the
9381 # default is implementation-dependent. Figure out which it is, since
9382 # not all implementations provide the %pointer and %array declarations.
9383 ac_cv_prog_lex_yytext_pointer=no
9384 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9386 LIBS="$LIBS $LEXLIB"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 `cat $LEX_OUTPUT_ROOT.c`
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_prog_lex_yytext_pointer=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9420 rm -f "${LEX_OUTPUT_ROOT}.c"
9423 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9424 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9425 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9427 cat >>confdefs.h <<\_ACEOF
9428 #define YYTEXT_POINTER 1
9434 if test "$LEX" = ":" ; then
9435 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9436 echo "$as_me: error: Cannot find flex." >&2;}
9437 { (exit 1); exit 1; }; }
9438 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9441 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9442 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9443 { (exit 1); exit 1; }; }
9446 if test -z "$LEXLIB" ; then
9447 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9448 It's possible the compiler you're using ($CC) is incompatible with the
9450 See \`config.log' for more details." >&5
9451 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9452 It's possible the compiler you're using ($CC) is incompatible with the
9454 See \`config.log' for more details." >&2;}
9455 { (exit 1); exit 1; }; }
9458 LIBS="$LEXLIB $LIBS"
9460 for ac_prog in 'bison -y' byacc
9462 # Extract the first word of "$ac_prog", so it can be a program name with args.
9463 set dummy $ac_prog; ac_word=$2
9464 echo "$as_me:$LINENO: checking for $ac_word" >&5
9465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9466 if test "${ac_cv_prog_YACC+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 if test -n "$YACC"; then
9470 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_YACC="$ac_prog"
9480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 YACC=$ac_cv_prog_YACC
9489 if test -n "$YACC"; then
9490 echo "$as_me:$LINENO: result: $YACC" >&5
9491 echo "${ECHO_T}$YACC" >&6
9493 echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9497 test -n "$YACC" && break
9499 test -n "$YACC" || YACC="yacc"
9501 if test "$YACC" = ":" ; then
9502 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9503 echo "$as_me: error: Cannot find yacc." >&2;}
9504 { (exit 1); exit 1; }; }
9505 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9508 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9509 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9512 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9513 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9514 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 if test "$cross_compiling" = yes; then
9518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9519 See \`config.log' for more details." >&5
9520 echo "$as_me: error: cannot run test program while cross compiling
9521 See \`config.log' for more details." >&2;}
9522 { (exit 1); exit 1; }; }
9524 cat >conftest.$ac_ext <<_ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #include <sys/types.h>
9531 #include <sys/socket.h>
9533 #include <sys/ioctl.h>
9534 #include <sys/file.h>
9536 $ac_cv_type_signal alarmed() { exit(1); }
9541 size_t l = sizeof(x);
9542 int f = socket(AF_INET, SOCK_DGRAM, 0);
9543 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9545 signal(SIGALRM, alarmed);
9547 recvfrom(f, b, 12, 0, &x, &l);
9554 rm -f conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 unet_cv_sys_nonblocking_posix=yes
9567 echo "$as_me: program exited with status $ac_status" >&5
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9572 unet_cv_sys_nonblocking_posix=no
9574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9578 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9579 if test $unet_cv_sys_nonblocking_posix = yes; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define NBLOCK_POSIX
9586 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9587 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9588 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 if test "$cross_compiling" = yes; then
9592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&5
9594 echo "$as_me: error: cannot run test program while cross compiling
9595 See \`config.log' for more details." >&2;}
9596 { (exit 1); exit 1; }; }
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/socket.h>
9607 #include <sys/ioctl.h>
9608 #include <sys/file.h>
9610 $ac_cv_type_signal alarmed() { exit(1); }
9615 size_t l = sizeof(x);
9616 int f = socket(AF_INET, SOCK_DGRAM, 0);
9617 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9619 signal(SIGALRM, alarmed);
9621 recvfrom(f, b, 12, 0, &x, &l);
9628 rm -f conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 unet_cv_sys_nonblocking_bsd=yes
9641 echo "$as_me: program exited with status $ac_status" >&5
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9646 unet_cv_sys_nonblocking_bsd=no
9648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9652 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9653 if test $unet_cv_sys_nonblocking_bsd = yes; then
9655 cat >>confdefs.h <<\_ACEOF
9661 cat >>confdefs.h <<\_ACEOF
9667 echo "$as_me:$LINENO: checking for posix signals" >&5
9668 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9669 if test "${unet_cv_sys_signal_posix+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9682 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1 >conftest.err
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 unet_cv_sys_signal_posix=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 unet_cv_sys_signal_posix=no
9715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9717 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9718 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9719 if test $unet_cv_sys_signal_posix = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define POSIX_SIGNALS
9726 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9727 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9728 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 if test "$cross_compiling" = yes; then
9732 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9733 See \`config.log' for more details." >&5
9734 echo "$as_me: error: cannot run test program while cross compiling
9735 See \`config.log' for more details." >&2;}
9736 { (exit 1); exit 1; }; }
9738 cat >conftest.$ac_ext <<_ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9746 $ac_cv_type_signal handler()
9750 kill(getpid(), SIGTERM);
9755 signal(SIGTERM, handler);
9756 kill(getpid(), SIGTERM);
9760 rm -f conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 unet_cv_sys_signal_bsd=yes
9773 echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 unet_cv_sys_signal_bsd=no
9780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9784 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9785 if test $unet_cv_sys_signal_bsd = yes; then
9787 cat >>confdefs.h <<\_ACEOF
9788 #define BSD_RELIABLE_SIGNALS
9793 cat >>confdefs.h <<\_ACEOF
9794 #define SYSV_UNRELIABLE_SIGNALS
9800 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9801 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9804 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9805 echo "${ECHO_T}Linux ($host) found." >&6
9806 unet_poll_syscall=yes
9810 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9811 echo "${ECHO_T}Solaris ($host) found." >&6
9812 if test x"$ac_cv_header_poll_h" = xyes; then
9813 unet_poll_syscall=yes
9815 unet_poll_syscall=no
9820 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9821 echo "${ECHO_T}Solaris ($host) found." >&6
9822 unet_poll_syscall=no
9826 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9827 echo "${ECHO_T}OpenBSD ($host) found." >&6
9828 if test x"$ac_cv_header_poll_h" = xyes; then
9829 unet_poll_syscall=yes
9831 unet_poll_syscall=no
9836 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9837 echo "${ECHO_T}Generic BSD ($host) found." >&6
9838 if test x"$ac_cv_header_poll_h" = xyes; then
9839 unet_poll_syscall=yes
9841 unet_poll_syscall=no
9846 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9847 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9848 unet_poll_syscall=no
9852 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9853 echo "${ECHO_T}Unknown system type $host found." >&6
9854 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9855 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9856 unet_poll_syscall=no
9860 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9861 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9862 # Check whether --enable-poll or --disable-poll was given.
9863 if test "${enable_poll+set}" = set; then
9864 enableval="$enable_poll"
9865 unet_cv_enable_poll=$enable_poll
9867 if test "${unet_cv_enable_poll+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 unet_cv_enable_poll=$unet_poll_syscall
9875 # Force poll to be disabled if there is no poll.h
9876 if test x"$ac_cv_header_poll_h" != xyes; then
9877 unet_cv_enable_poll=no
9880 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9881 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9883 if test x"$unet_cv_enable_poll" = xyes; then
9885 cat >>confdefs.h <<\_ACEOF
9889 ENGINE_C=engine_poll.c
9891 ENGINE_C=engine_select.c
9895 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9896 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9897 # Check whether --enable-debug or --disable-debug was given.
9898 if test "${enable_debug+set}" = set; then
9899 enableval="$enable_debug"
9900 unet_cv_enable_debug=$enable_debug
9902 if test "${unet_cv_enable_debug+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 unet_cv_enable_debug=no
9909 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9910 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9912 if test x"$unet_cv_enable_debug" = xyes; then
9914 cat >>confdefs.h <<\_ACEOF
9920 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9921 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9923 # Check whether --with-leak-detect or --without-leak-detect was given.
9924 if test "${with_leak_detect+set}" = set; then
9925 withval="$with_leak_detect"
9926 unet_cv_with_leak_detect=$with_leak_detect
9928 if test "${unet_cv_with_leak_detect+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 unet_cv_with_leak_detect=no
9935 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9936 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9938 if test x"$unet_cv_with_leak_detect" != xno; then
9940 CFLAGS="-DMDEBUG $CFLAGS"
9941 if test x"$unet_cv_with_leak_detect" != xyes; then
9942 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9947 # Check whether --with-ipv6 or --without-ipv6 was given.
9948 if test "${with_ipv6+set}" = set; then
9949 withval="$with_ipv6"
9950 ac_cv_use_ipv6=$withval
9952 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9954 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9955 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9956 if test "${ac_cv_use_ipv6+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9962 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9963 if test x"$ac_cv_use_ipv6" != "xno" ; then
9965 cat >>confdefs.h <<\_ACEOF
9971 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9972 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9973 # Check whether --enable-asserts or --disable-asserts was given.
9974 if test "${enable_asserts+set}" = set; then
9975 enableval="$enable_asserts"
9976 unet_cv_enable_asserts=$enable_asserts
9978 if test "${unet_cv_enable_asserts+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 unet_cv_enable_asserts=yes
9985 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9986 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9988 if test x"$unet_cv_enable_asserts" = xno; then
9990 cat >>confdefs.h <<\_ACEOF
9996 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9997 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9998 # Check whether --enable-profile or --disable-profile was given.
9999 if test "${enable_profile+set}" = set; then
10000 enableval="$enable_profile"
10001 unet_cv_enable_profile=$enable_profile
10003 if test "${unet_cv_enable_profile+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 unet_cv_enable_profile=no
10010 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10011 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10013 if test x"$unet_cv_enable_profile" = xyes; then
10014 CFLAGS="-pg $CFLAGS"
10015 LDFLAGS="-pg $LDFLAGS"
10018 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10019 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10020 # Check whether --enable-pedantic or --disable-pedantic was given.
10021 if test "${enable_pedantic+set}" = set; then
10022 enableval="$enable_pedantic"
10023 unet_cv_enable_pedantic=$enable_pedantic
10025 if test "${unet_cv_enable_pedantic+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 unet_cv_enable_pedantic=no
10032 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10033 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10035 if test x"$unet_cv_enable_pedantic" = xyes; then
10036 CFLAGS="-pedantic $CFLAGS"
10039 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10040 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10041 # Check whether --enable-warnings or --disable-warnings was given.
10042 if test "${enable_warnings+set}" = set; then
10043 enableval="$enable_warnings"
10044 unet_cv_enable_warnings=$enable_warnings
10046 if test "${unet_cv_enable_warnings+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 unet_cv_enable_warnings=no
10053 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10054 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10056 if test x"$unet_cv_enable_warnings" = xyes; then
10057 CFLAGS="-Wall $CFLAGS"
10060 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10061 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10062 # Check whether --enable-inlines or --disable-inlines was given.
10063 if test "${enable_inlines+set}" = set; then
10064 enableval="$enable_inlines"
10065 unet_cv_enable_inlines=$enable_inlines
10067 if test "${unet_cv_enable_inlines+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 unet_cv_enable_inlines=yes
10074 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10075 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10077 if test x"$unet_cv_enable_inlines" = xyes; then
10079 cat >>confdefs.h <<\_ACEOF
10080 #define FORCEINLINE 1
10085 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10086 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10087 # Check whether --enable-devpoll or --disable-devpoll was given.
10088 if test "${enable_devpoll+set}" = set; then
10089 enableval="$enable_devpoll"
10090 unet_cv_enable_devpoll=$enable_devpoll
10092 if test "${unet_cv_enable_devpoll+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 unet_cv_enable_devpoll=yes
10100 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10101 unet_cv_enable_devpoll=no
10104 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10105 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10107 if test x"$unet_cv_enable_devpoll" != xno; then
10109 cat >>confdefs.h <<\_ACEOF
10110 #define USE_DEVPOLL 1
10113 ENGINE_C="engine_devpoll.c $ENGINE_C"
10116 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10117 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10118 # Check whether --enable-kqueue or --disable-kqueue was given.
10119 if test "${enable_kqueue+set}" = set; then
10120 enableval="$enable_kqueue"
10121 unet_cv_enable_kqueue=$enable_kqueue
10123 if test "${unet_cv_enable_kqueue+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 unet_cv_enable_kqueue=yes
10131 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10132 unet_cv_enable_kqueue=no
10135 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10136 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10138 if test x"$unet_cv_enable_kqueue" != xno; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define USE_KQUEUE 1
10144 ENGINE_C="engine_kqueue.c $ENGINE_C"
10147 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10148 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10149 # Check whether --enable-epoll or --disable-epoll was given.
10150 if test "${enable_epoll+set}" = set; then
10151 enableval="$enable_epoll"
10152 unet_cv_enable_epoll=$enable_epoll
10154 if test "${unet_cv_enable_epoll+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 unet_cv_enable_epoll=yes
10162 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10163 unet_cv_enable_epoll=no
10166 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10167 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10169 if test x"$unet_cv_enable_epoll" != xno; then
10170 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10171 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include <sys/epoll.h>
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209 echo "${ECHO_T}yes" >&6
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 echo "$as_me:$LINENO: result: no" >&5
10215 echo "${ECHO_T}no" >&6
10217 cat >>confdefs.h <<\_ACEOF
10218 #define EPOLL_NEED_BODY 1
10222 rm -f conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10225 cat >>confdefs.h <<\_ACEOF
10226 #define USE_EPOLL 1
10229 ENGINE_C="engine_epoll.c $ENGINE_C"
10232 echo "$as_me:$LINENO: checking for va_copy" >&5
10233 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10234 if test "${unet_cv_c_va_copy+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <stdarg.h>
10247 va_list ap1, ap2; va_copy(ap1, ap2);
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 unet_cv_c_va_copy="yes"
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 unet_cv_c_va_copy="no"
10281 rm -f conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10285 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10286 if test "$unet_cv_c_va_copy" = "yes" ; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_VA_COPY 1
10294 echo "$as_me:$LINENO: checking for __va_copy" >&5
10295 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10296 if test "${unet_cv_c___va_copy+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <stdarg.h>
10309 va_list ap1, ap2; __va_copy(ap1, ap2);
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 unet_cv_c___va_copy="yes"
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 unet_cv_c___va_copy="no"
10343 rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10346 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10347 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10348 if test "$unet_cv_c___va_copy" = "yes" ; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE___VA_COPY 1
10356 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10357 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10359 # Check whether --with-symlink or --without-symlink was given.
10360 if test "${with_symlink+set}" = set; then
10361 withval="$with_symlink"
10362 unet_cv_with_symlink=$with_symlink
10364 if test "${unet_cv_with_symlink+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 unet_cv_with_symlink="ircd"
10372 if test x"$unet_cv_with_symlink" = xyes; then
10373 unet_cv_with_symlink="ircd"
10376 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10377 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10379 if test x"$unet_cv_with_symlink" = xno; then
10380 INSTALL_RULE=install-no-symlink
10383 INSTALL_RULE=install-with-symlink
10384 SYMLINK=$unet_cv_with_symlink
10389 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10390 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10392 # Check whether --with-mode or --without-mode was given.
10393 if test "${with_mode+set}" = set; then
10394 withval="$with_mode"
10395 unet_cv_with_mode=$with_mode
10397 if test "${unet_cv_with_mode+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 unet_cv_with_mode=711
10405 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10406 unet_cv_with_mode=711
10409 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10410 echo "${ECHO_T}$unet_cv_with_mode" >&6
10412 IRCDMODE=$unet_cv_with_mode
10415 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10416 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10417 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10419 # Check whether --with-owner or --without-owner was given.
10420 if test "${with_owner+set}" = set; then
10421 withval="$with_owner"
10422 unet_cv_with_owner=$with_owner
10424 if test "${unet_cv_with_owner+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 unet_cv_with_owner=$unet_uid
10432 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10433 unet_cv_with_owner=$unet_uid
10436 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10437 echo "${ECHO_T}$unet_cv_with_owner" >&6
10439 IRCDOWN=$unet_cv_with_owner
10442 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10443 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10444 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10446 # Check whether --with-group or --without-group was given.
10447 if test "${with_group+set}" = set; then
10448 withval="$with_group"
10449 unet_cv_with_group=$with_group
10451 if test "${unet_cv_with_group+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 unet_cv_with_group=$unet_gid
10459 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10460 unet_cv_with_group=$unet_gid
10463 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10464 echo "${ECHO_T}$unet_cv_with_group" >&6
10466 IRCDGRP=$unet_cv_with_group
10470 if test -f /etc/resolv.conf; then
10471 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10472 if test x"$unet_domain" = x; then
10473 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10476 echo "$as_me:$LINENO: checking for site domain name" >&5
10477 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10479 # Check whether --with-domain or --without-domain was given.
10480 if test "${with_domain+set}" = set; then
10481 withval="$with_domain"
10482 unet_cv_with_domain=$with_domain
10484 if test "${unet_cv_with_domain+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 unet_cv_with_domain=$unet_domain
10492 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10493 unet_cv_with_domain=$unet_domain
10495 if test x"$unet_cv_with_domain" = xno; then
10496 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10497 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10498 { (exit 1); exit 1; }; }
10501 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10502 echo "${ECHO_T}$unet_cv_with_domain" >&6
10505 cat >>confdefs.h <<_ACEOF
10506 #define DOMAINNAME "*$unet_cv_with_domain"
10510 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10511 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10513 # Check whether --with-chroot or --without-chroot was given.
10514 if test "${with_chroot+set}" = set; then
10515 withval="$with_chroot"
10516 unet_cv_with_chroot=$with_chroot
10518 if test "${unet_cv_with_chroot+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 unet_cv_with_chroot=no
10526 if test x"$unet_cv_with_chroot" = xyes; then
10527 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10528 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10529 { (exit 1); exit 1; }; }
10532 # Ensure there are no trailing /'s to mess us up
10533 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10535 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10536 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10538 # Deal with the annoying value "NONE" here
10539 unet_save_prefix=$prefix
10540 if test x"$prefix" = xNONE; then
10541 prefix=$ac_default_prefix
10546 unet_save_exec_prefix=$exec_prefix
10547 if test x"$exec_prefix" = xNONE; then
10548 exec_prefix=$prefix
10550 exec_prefix=$exec_prefix
10553 # Obtain the actual interesting directories
10554 unet_bindir=`eval echo "$bindir"`
10555 unet_libdir=`eval echo "$libdir"`
10557 # Restore the original settings of $prefix and $exec_prefix
10558 prefix=$unet_save_prefix
10559 exec_prefix=$unet_save_exec_prefix
10561 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10562 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10563 if test x"$unet_cv_with_symlink" = xno; then
10564 unet_spath="$unet_bindir/ircd"
10566 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10568 echo "$as_me:$LINENO: result: $unet_spath" >&5
10569 echo "${ECHO_T}$unet_spath" >&6
10571 if test x"$unet_cv_with_chroot" != xno; then
10572 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10573 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10575 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10576 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10581 cat >>confdefs.h <<_ACEOF
10582 #define SPATH "$unet_spath"
10586 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10587 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10589 # Check whether --with-dpath or --without-dpath was given.
10590 if test "${with_dpath+set}" = set; then
10591 withval="$with_dpath"
10592 unet_cv_with_dpath=$with_dpath
10594 if test "${unet_cv_with_dpath+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 unet_cv_with_dpath=$unet_libdir
10602 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10603 unet_cv_with_dpath=$unet_libdir
10606 # Ensure there are no trailing /'s to mess us up
10607 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10609 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10610 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10612 if test x"$unet_cv_with_chroot" != xno; then
10613 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10614 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10616 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10617 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10618 { (exit 1); exit 1; }; }
10621 unet_dpath=$unet_cv_with_dpath
10625 cat >>confdefs.h <<_ACEOF
10626 #define DPATH "$unet_dpath"
10630 DPATH=$unet_cv_with_dpath
10633 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10634 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10636 # Check whether --with-cpath or --without-cpath was given.
10637 if test "${with_cpath+set}" = set; then
10638 withval="$with_cpath"
10639 unet_cv_with_cpath=$with_cpath
10641 if test "${unet_cv_with_cpath+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 unet_cv_with_cpath="ircd.conf"
10649 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10650 unet_cv_with_cpath="ircd.conf"
10653 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10654 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10656 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10657 # Absolute path; check against chroot stuff
10658 if test x"$unet_cv_with_chroot" != xno; then
10659 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10660 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10662 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10663 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10664 { (exit 1); exit 1; }; }
10667 unet_cpath=$unet_cv_with_cpath
10670 unet_cpath=$unet_cv_with_cpath
10674 cat >>confdefs.h <<_ACEOF
10675 #define CPATH "$unet_cpath"
10679 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10680 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10682 # Check whether --with-lpath or --without-lpath was given.
10683 if test "${with_lpath+set}" = set; then
10684 withval="$with_lpath"
10685 unet_cv_with_lpath=$with_lpath
10687 if test "${unet_cv_with_lpath+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 unet_cv_with_lpath="ircd.log"
10695 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10696 unet_cv_with_lpath="ircd.log"
10699 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10700 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10702 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10703 # Absolute path; check against chroot stuff
10704 if test x"$unet_cv_with_chroot" != xno; then
10705 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10706 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10708 { 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
10709 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;}
10710 unet_cv_with_lpath="ircd.log"
10711 unet_lpath="ircd.log"
10714 unet_lpath=$unet_cv_with_lpath
10717 unet_lpath=$unet_cv_with_lpath
10721 cat >>confdefs.h <<_ACEOF
10722 #define LPATH "$unet_lpath"
10726 unet_maxcon=`ulimit -Hn`
10727 if test x"$unet_maxcon" = xunlimited; then
10728 unet_maxcon=`ulimit -Sn`
10730 unet_maxcon=`expr $unet_maxcon - 4`
10731 echo "$as_me:$LINENO: checking max connections" >&5
10732 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10734 # Check whether --with-maxcon or --without-maxcon was given.
10735 if test "${with_maxcon+set}" = set; then
10736 withval="$with_maxcon"
10737 unet_cv_with_maxcon=$with_maxcon
10739 if test "${unet_cv_with_maxcon+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 unet_cv_with_maxcon=$unet_maxcon
10747 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10748 unet_cv_with_maxcon=$unet_maxcon
10751 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10752 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10755 cat >>confdefs.h <<_ACEOF
10756 #define MAXCONNECTIONS $unet_cv_with_maxcon
10760 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10761 ac_config_commands="$ac_config_commands default"
10762 cat >confcache <<\_ACEOF
10763 # This file is a shell script that caches the results of configure
10764 # tests run on this system so they can be shared between configure
10765 # scripts and configure runs, see configure's option --config-cache.
10766 # It is not useful on other systems. If it contains results you don't
10767 # want to keep, you may remove or edit it.
10769 # config.status only pays attention to the cache file if you give it
10770 # the --recheck option to rerun configure.
10772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10774 # following values.
10778 # The following way of writing the cache mishandles newlines in values,
10779 # but we know of no workaround that is simple, portable, and efficient.
10780 # So, don't put newlines in cache variables' values.
10781 # Ultrix sh set writes to stderr and can't be redirected directly,
10782 # and sets the high bit in the cache file unless we assign to the vars.
10785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10787 # `set' does not quote correctly, so add quotes (double-quote
10788 # substitution turns \\\\ into \\, and sed turns \\ into \).
10791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10794 # `set' quotes correctly as required by POSIX, so do not add quotes.
10796 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10805 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10807 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10808 if test -w $cache_file; then
10809 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10810 cat confcache >$cache_file
10812 echo "not updating unwritable cache $cache_file"
10817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10818 # Let make expand exec_prefix.
10819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10823 # trailing colons and then remove the whole line if VPATH becomes empty
10824 # (actually we leave an empty line to preserve line numbers).
10825 if test "x$srcdir" = x.; then
10826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10827 s/:*\$(srcdir):*/:/;
10828 s/:*\${srcdir}:*/:/;
10830 s/^\([^=]*=[ ]*\):*/\1/;
10836 DEFS=-DHAVE_CONFIG_H
10840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10841 # 1. Remove the extension, and $U if already installed.
10842 ac_i=`echo "$ac_i" |
10843 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10845 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10846 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10848 LIBOBJS=$ac_libobjs
10850 LTLIBOBJS=$ac_ltlibobjs
10854 : ${CONFIG_STATUS=./config.status}
10855 ac_clean_files_save=$ac_clean_files
10856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10857 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10859 cat >$CONFIG_STATUS <<_ACEOF
10861 # Generated by $as_me.
10862 # Run this file to recreate the current configuration.
10863 # Compiler output produced by configure, useful for debugging
10864 # configure, is in config.log if it exists.
10867 ac_cs_recheck=false
10869 SHELL=\${CONFIG_SHELL-$SHELL}
10872 cat >>$CONFIG_STATUS <<\_ACEOF
10873 ## --------------------- ##
10874 ## M4sh Initialization. ##
10875 ## --------------------- ##
10877 # Be Bourne compatible
10878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10881 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10882 # is contrary to our usage. Disable this feature.
10883 alias -g '${1+"$@"}'='"$@"'
10884 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10887 DUALCASE=1; export DUALCASE # for MKS sh
10889 # Support unset when possible.
10890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10897 # Work around bugs in pre-3.0 UWIN ksh.
10898 $as_unset ENV MAIL MAILPATH
10905 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10906 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10907 LC_TELEPHONE LC_TIME
10909 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10910 eval $as_var=C; export $as_var
10916 # Required to use basename.
10917 if expr a : '\(a\)' >/dev/null 2>&1; then
10923 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10924 as_basename=basename
10930 # Name of the executable.
10931 as_me=`$as_basename "$0" ||
10932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10933 X"$0" : 'X\(//\)$' \| \
10934 X"$0" : 'X\(/\)$' \| \
10935 . : '\(.\)' 2>/dev/null ||
10937 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10938 /^X\/\(\/\/\)$/{ s//\1/; q; }
10939 /^X\/\(\/\).*/{ s//\1/; q; }
10943 # PATH needs CR, and LINENO needs CR and PATH.
10944 # Avoid depending upon Character Ranges.
10945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10948 as_cr_digits='0123456789'
10949 as_cr_alnum=$as_cr_Letters$as_cr_digits
10951 # The user is always right.
10952 if test "${PATH_SEPARATOR+set}" != set; then
10953 echo "#! /bin/sh" >conf$$.sh
10954 echo "exit 0" >>conf$$.sh
10956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10965 as_lineno_1=$LINENO
10966 as_lineno_2=$LINENO
10967 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10968 test "x$as_lineno_1" != "x$as_lineno_2" &&
10969 test "x$as_lineno_3" = "x$as_lineno_2" || {
10970 # Find who we are. Look in the path if we contain no path at all
10973 *[\\/]* ) as_myself=$0 ;;
10974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10984 # We did not find ourselves, most probably we were run as `sh COMMAND'
10985 # in which case we are not to be found in the path.
10986 if test "x$as_myself" = x; then
10989 if test ! -f "$as_myself"; then
10990 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10991 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10992 { (exit 1); exit 1; }; }
10994 case $CONFIG_SHELL in
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11000 test -z "$as_dir" && as_dir=.
11001 for as_base in sh bash ksh sh5; do
11004 if ("$as_dir/$as_base" -c '
11005 as_lineno_1=$LINENO
11006 as_lineno_2=$LINENO
11007 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11008 test "x$as_lineno_1" != "x$as_lineno_2" &&
11009 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11010 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11011 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11012 CONFIG_SHELL=$as_dir/$as_base
11013 export CONFIG_SHELL
11014 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11022 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11023 # uniformly replaced by the line number. The first 'sed' inserts a
11024 # line-number line before each line; the second 'sed' does the real
11025 # work. The second script uses 'N' to pair each line-number line
11026 # with the numbered line, and appends trailing '-' during
11027 # substitution so that $LINENO is not a special case at line end.
11028 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11029 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11030 sed '=' <$as_myself |
11035 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11038 s,^['$as_cr_digits']*\n,,
11039 ' >$as_me.lineno &&
11040 chmod +x $as_me.lineno ||
11041 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11042 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11043 { (exit 1); exit 1; }; }
11045 # Don't try to exec as it changes $[0], causing all sort of problems
11046 # (the dirname of $[0] is not the place where we might find the
11047 # original and so on. Autoconf is especially sensible to this).
11049 # Exit status is that of the last command.
11054 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11055 *c*,-n*) ECHO_N= ECHO_C='
11057 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11058 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11061 if expr a : '\(a\)' >/dev/null 2>&1; then
11067 rm -f conf$$ conf$$.exe conf$$.file
11069 if ln -s conf$$.file conf$$ 2>/dev/null; then
11070 # We could just check for DJGPP; but this test a) works b) is more generic
11071 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11072 if test -f conf$$.exe; then
11073 # Don't use ln at all; we don't have any links
11078 elif ln conf$$.file conf$$ 2>/dev/null; then
11083 rm -f conf$$ conf$$.exe conf$$.file
11085 if mkdir -p . 2>/dev/null; then
11088 test -d ./-p && rmdir ./-p
11092 as_executable_p="test -f"
11094 # Sed expression to map a string onto a valid CPP name.
11095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11097 # Sed expression to map a string onto a valid variable name.
11098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11102 # We need space, tab and new line, in precisely that order.
11112 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11113 # report actual input values of CONFIG_FILES etc. instead of their
11114 # values after options handling. Logging --version etc. is OK.
11118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11119 ## Running $as_me. ##
11124 This file was extended by $as_me, which was
11125 generated by GNU Autoconf 2.59. Invocation command line was
11127 CONFIG_FILES = $CONFIG_FILES
11128 CONFIG_HEADERS = $CONFIG_HEADERS
11129 CONFIG_LINKS = $CONFIG_LINKS
11130 CONFIG_COMMANDS = $CONFIG_COMMANDS
11134 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11138 # Files that config.status was made for.
11139 if test -n "$ac_config_files"; then
11140 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11143 if test -n "$ac_config_headers"; then
11144 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11147 if test -n "$ac_config_links"; then
11148 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11151 if test -n "$ac_config_commands"; then
11152 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11155 cat >>$CONFIG_STATUS <<\_ACEOF
11158 \`$as_me' instantiates files from templates according to the
11159 current configuration.
11161 Usage: $0 [OPTIONS] [FILE]...
11163 -h, --help print this help, then exit
11164 -V, --version print version number, then exit
11165 -q, --quiet do not print progress messages
11166 -d, --debug don't remove temporary files
11167 --recheck update $as_me by reconfiguring in the same conditions
11168 --file=FILE[:TEMPLATE]
11169 instantiate the configuration file FILE
11170 --header=FILE[:TEMPLATE]
11171 instantiate the configuration header FILE
11173 Configuration files:
11176 Configuration headers:
11179 Configuration commands:
11182 Report bugs to <bug-autoconf@gnu.org>."
11185 cat >>$CONFIG_STATUS <<_ACEOF
11188 configured by $0, generated by GNU Autoconf 2.59,
11189 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11191 Copyright (C) 2003 Free Software Foundation, Inc.
11192 This config.status script is free software; the Free Software Foundation
11193 gives unlimited permission to copy, distribute and modify it."
11198 cat >>$CONFIG_STATUS <<\_ACEOF
11199 # If no file are specified by the user, then we need to provide default
11200 # value. By we need to know if files were specified by the user.
11206 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11207 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11215 *) # This is not an option, so the user has probably given explicit
11218 ac_need_defaults=false;;
11222 # Handling of the options.
11224 cat >>$CONFIG_STATUS <<\_ACEOF
11225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11227 --version | --vers* | -V )
11228 echo "$ac_cs_version"; exit 0 ;;
11230 # Conflict between --help and --header
11231 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11232 Try \`$0 --help' for more information." >&5
11233 echo "$as_me: error: ambiguous option: $1
11234 Try \`$0 --help' for more information." >&2;}
11235 { (exit 1); exit 1; }; };;
11236 --help | --hel | -h )
11237 echo "$ac_cs_usage"; exit 0 ;;
11238 --debug | --d* | -d )
11240 --file | --fil | --fi | --f )
11242 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11243 ac_need_defaults=false;;
11244 --header | --heade | --head | --hea )
11246 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11247 ac_need_defaults=false;;
11248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11252 # This is an error.
11253 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11254 Try \`$0 --help' for more information." >&5
11255 echo "$as_me: error: unrecognized option: $1
11256 Try \`$0 --help' for more information." >&2;}
11257 { (exit 1); exit 1; }; } ;;
11259 *) ac_config_targets="$ac_config_targets $1" ;;
11265 ac_configure_extra_args=
11267 if $ac_cs_silent; then
11269 ac_configure_extra_args="$ac_configure_extra_args --silent"
11273 cat >>$CONFIG_STATUS <<_ACEOF
11274 if \$ac_cs_recheck; then
11275 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11276 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11285 cat >>$CONFIG_STATUS <<\_ACEOF
11286 for ac_config_target in $ac_config_targets
11288 case "$ac_config_target" in
11289 # Handling of arguments.
11290 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11291 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11292 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11293 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11294 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11295 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11296 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11297 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11298 { (exit 1); exit 1; }; };;
11302 # If the user did not use the arguments to specify the items to instantiate,
11303 # then the envvar interface is used. Set only those that are not.
11304 # We use the long form for the default assignment because of an extremely
11305 # bizarre bug on SunOS 4.1.3.
11306 if $ac_need_defaults; then
11307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11312 # Have a temporary directory for convenience. Make it in the build tree
11313 # simply because there is no reason to put it here, and in addition,
11314 # creating and moving files from /tmp can sometimes cause problems.
11315 # Create a temporary directory, and hook for its removal unless debugging.
11318 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11319 trap '{ (exit 1); exit 1; }' 1 2 13 15
11322 # Create a (secure) tmp directory for tmp files.
11325 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11326 test -n "$tmp" && test -d "$tmp"
11329 tmp=./confstat$$-$RANDOM
11330 (umask 077 && mkdir $tmp)
11333 echo "$me: cannot create a temporary directory in ." >&2
11334 { (exit 1); exit 1; }
11339 cat >>$CONFIG_STATUS <<_ACEOF
11342 # CONFIG_FILES section.
11345 # No need to generate the scripts if there are no CONFIG_FILES.
11346 # This happens for instance when ./config.status config.h
11347 if test -n "\$CONFIG_FILES"; then
11348 # Protect against being on the right side of a sed subst in config.status.
11349 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11350 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11351 s,@SHELL@,$SHELL,;t t
11352 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11353 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11354 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11355 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11356 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11357 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11358 s,@exec_prefix@,$exec_prefix,;t t
11359 s,@prefix@,$prefix,;t t
11360 s,@program_transform_name@,$program_transform_name,;t t
11361 s,@bindir@,$bindir,;t t
11362 s,@sbindir@,$sbindir,;t t
11363 s,@libexecdir@,$libexecdir,;t t
11364 s,@datadir@,$datadir,;t t
11365 s,@sysconfdir@,$sysconfdir,;t t
11366 s,@sharedstatedir@,$sharedstatedir,;t t
11367 s,@localstatedir@,$localstatedir,;t t
11368 s,@libdir@,$libdir,;t t
11369 s,@includedir@,$includedir,;t t
11370 s,@oldincludedir@,$oldincludedir,;t t
11371 s,@infodir@,$infodir,;t t
11372 s,@mandir@,$mandir,;t t
11373 s,@build_alias@,$build_alias,;t t
11374 s,@host_alias@,$host_alias,;t t
11375 s,@target_alias@,$target_alias,;t t
11376 s,@DEFS@,$DEFS,;t t
11377 s,@ECHO_C@,$ECHO_C,;t t
11378 s,@ECHO_N@,$ECHO_N,;t t
11379 s,@ECHO_T@,$ECHO_T,;t t
11380 s,@LIBS@,$LIBS,;t t
11381 s,@build@,$build,;t t
11382 s,@build_cpu@,$build_cpu,;t t
11383 s,@build_vendor@,$build_vendor,;t t
11384 s,@build_os@,$build_os,;t t
11385 s,@host@,$host,;t t
11386 s,@host_cpu@,$host_cpu,;t t
11387 s,@host_vendor@,$host_vendor,;t t
11388 s,@host_os@,$host_os,;t t
11390 s,@CFLAGS@,$CFLAGS,;t t
11391 s,@LDFLAGS@,$LDFLAGS,;t t
11392 s,@CPPFLAGS@,$CPPFLAGS,;t t
11393 s,@ac_ct_CC@,$ac_ct_CC,;t t
11394 s,@EXEEXT@,$EXEEXT,;t t
11395 s,@OBJEXT@,$OBJEXT,;t t
11397 s,@EGREP@,$EGREP,;t t
11399 s,@SET_MAKE@,$SET_MAKE,;t t
11400 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11401 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11402 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11403 s,@LN_S@,$LN_S,;t t
11404 s,@RMPROG@,$RMPROG,;t t
11405 s,@SHPROG@,$SHPROG,;t t
11407 s,@LEXLIB@,$LEXLIB,;t t
11408 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11409 s,@YACC@,$YACC,;t t
11410 s,@ENGINE_C@,$ENGINE_C,;t t
11411 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11412 s,@SYMLINK@,$SYMLINK,;t t
11413 s,@IRCDMODE@,$IRCDMODE,;t t
11414 s,@IRCDOWN@,$IRCDOWN,;t t
11415 s,@IRCDGRP@,$IRCDGRP,;t t
11416 s,@DPATH@,$DPATH,;t t
11417 s,@LIBOBJS@,$LIBOBJS,;t t
11418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11423 cat >>$CONFIG_STATUS <<\_ACEOF
11424 # Split the substitutions into bite-sized pieces for seds with
11425 # small command number limits, like on Digital OSF/1 and HP-UX.
11426 ac_max_sed_lines=48
11427 ac_sed_frag=1 # Number of current file.
11428 ac_beg=1 # First line for current file.
11429 ac_end=$ac_max_sed_lines # Line after last line for current file.
11432 while $ac_more_lines; do
11433 if test $ac_beg -gt 1; then
11434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11436 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11438 if test ! -s $tmp/subs.frag; then
11439 ac_more_lines=false
11441 # The purpose of the label and of the branching condition is to
11442 # speed up the sed processing (if there are no `@' at all, there
11443 # is no need to browse any of the substitutions).
11444 # These are the two extra sed commands mentioned above.
11446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11447 if test -z "$ac_sed_cmds"; then
11448 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11450 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11452 ac_sed_frag=`expr $ac_sed_frag + 1`
11454 ac_end=`expr $ac_end + $ac_max_sed_lines`
11457 if test -z "$ac_sed_cmds"; then
11460 fi # test -n "$CONFIG_FILES"
11463 cat >>$CONFIG_STATUS <<\_ACEOF
11464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11467 - | *:- | *:-:* ) # input from stdin
11469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11473 * ) ac_file_in=$ac_file.in ;;
11476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11479 X"$ac_file" : 'X\(//\)[^/]' \| \
11480 X"$ac_file" : 'X\(//\)$' \| \
11481 X"$ac_file" : 'X\(/\)' \| \
11482 . : '\(.\)' 2>/dev/null ||
11484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11486 /^X\(\/\/\)$/{ s//\1/; q; }
11487 /^X\(\/\).*/{ s//\1/; q; }
11489 { if $as_mkdir_p; then
11494 while test ! -d "$as_dir"; do
11495 as_dirs="$as_dir $as_dirs"
11496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11498 X"$as_dir" : 'X\(//\)[^/]' \| \
11499 X"$as_dir" : 'X\(//\)$' \| \
11500 X"$as_dir" : 'X\(/\)' \| \
11501 . : '\(.\)' 2>/dev/null ||
11503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11505 /^X\(\/\/\)$/{ s//\1/; q; }
11506 /^X\(\/\).*/{ s//\1/; q; }
11509 test ! -n "$as_dirs" || mkdir $as_dirs
11510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11512 { (exit 1); exit 1; }; }; }
11516 if test "$ac_dir" != .; then
11517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11518 # A "../" for each directory in $ac_dir_suffix.
11519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11521 ac_dir_suffix= ac_top_builddir=
11525 .) # No --srcdir option. We are building in place.
11527 if test -z "$ac_top_builddir"; then
11530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11532 [\\/]* | ?:[\\/]* ) # Absolute path.
11533 ac_srcdir=$srcdir$ac_dir_suffix;
11534 ac_top_srcdir=$srcdir ;;
11535 *) # Relative path.
11536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11540 # Do not use `cd foo && pwd` to compute absolute paths, because
11541 # the directories may not exist.
11543 .) ac_abs_builddir="$ac_dir";;
11546 .) ac_abs_builddir=`pwd`;;
11547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11551 case $ac_abs_builddir in
11552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11554 case ${ac_top_builddir}. in
11555 .) ac_abs_top_builddir=$ac_abs_builddir;;
11556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11560 case $ac_abs_builddir in
11561 .) ac_abs_srcdir=$ac_srcdir;;
11564 .) ac_abs_srcdir=$ac_abs_builddir;;
11565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11569 case $ac_abs_builddir in
11570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11572 case $ac_top_srcdir in
11573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11582 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11585 # Let's still pretend it is `configure' which instantiates (i.e., don't
11586 # use $as_me), people would be surprised to read:
11587 # /* config.h. Generated by config.status. */
11588 if test x"$ac_file" = x-; then
11591 configure_input="$ac_file. "
11593 configure_input=$configure_input"Generated from `echo $ac_file_in |
11594 sed 's,.*/,,'` by configure."
11596 # First look for the input files in the build tree, otherwise in the
11598 ac_file_inputs=`IFS=:
11599 for f in $ac_file_in; do
11601 -) echo $tmp/stdin ;;
11603 # Absolute (can't be DOS-style, as IFS=:)
11604 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11605 echo "$as_me: error: cannot find input file: $f" >&2;}
11606 { (exit 1); exit 1; }; }
11609 if test -f "$f"; then
11612 elif test -f "$srcdir/$f"; then
11617 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11618 echo "$as_me: error: cannot find input file: $f" >&2;}
11619 { (exit 1); exit 1; }; }
11622 done` || { (exit 1); exit 1; }
11624 if test x"$ac_file" != x-; then
11625 { echo "$as_me:$LINENO: creating $ac_file" >&5
11626 echo "$as_me: creating $ac_file" >&6;}
11630 cat >>$CONFIG_STATUS <<_ACEOF
11634 cat >>$CONFIG_STATUS <<\_ACEOF
11636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11637 s,@configure_input@,$configure_input,;t t
11638 s,@srcdir@,$ac_srcdir,;t t
11639 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11640 s,@top_srcdir@,$ac_top_srcdir,;t t
11641 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11642 s,@builddir@,$ac_builddir,;t t
11643 s,@abs_builddir@,$ac_abs_builddir,;t t
11644 s,@top_builddir@,$ac_top_builddir,;t t
11645 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11646 s,@INSTALL@,$ac_INSTALL,;t t
11647 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11649 if test x"$ac_file" != x-; then
11650 mv $tmp/out $ac_file
11658 cat >>$CONFIG_STATUS <<\_ACEOF
11661 # CONFIG_HEADER section.
11664 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11665 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11667 # ac_d sets the value in "#define NAME VALUE" lines.
11668 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11669 ac_dB='[ ].*$,\1#\2'
11672 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11673 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11674 ac_uB='$,\1#\2define\3'
11678 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11681 - | *:- | *:-:* ) # input from stdin
11683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11687 * ) ac_file_in=$ac_file.in ;;
11690 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11691 echo "$as_me: creating $ac_file" >&6;}
11693 # First look for the input files in the build tree, otherwise in the
11695 ac_file_inputs=`IFS=:
11696 for f in $ac_file_in; do
11698 -) echo $tmp/stdin ;;
11700 # Absolute (can't be DOS-style, as IFS=:)
11701 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11702 echo "$as_me: error: cannot find input file: $f" >&2;}
11703 { (exit 1); exit 1; }; }
11704 # Do quote $f, to prevent DOS paths from being IFS'd.
11707 if test -f "$f"; then
11710 elif test -f "$srcdir/$f"; then
11715 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11716 echo "$as_me: error: cannot find input file: $f" >&2;}
11717 { (exit 1); exit 1; }; }
11720 done` || { (exit 1); exit 1; }
11721 # Remove the trailing spaces.
11722 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11726 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11727 # `conftest.undefs', that substitutes the proper values into
11728 # config.h.in to produce config.h. The first handles `#define'
11729 # templates, and the second `#undef' templates.
11730 # And first: Protect against being on the right side of a sed subst in
11731 # config.status. Protect against being in an unquoted here document
11732 # in config.status.
11733 rm -f conftest.defines conftest.undefs
11734 # Using a here document instead of a string reduces the quoting nightmare.
11735 # Putting comments in sed scripts is not portable.
11737 # `end' is used to avoid that the second main sed command (meant for
11738 # 0-ary CPP macros) applies to n-ary macro definitions.
11739 # See the Autoconf documentation for `clear'.
11740 cat >confdef2sed.sed <<\_ACEOF
11745 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11747 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11750 # If some macros were called several times there might be several times
11751 # the same #defines, which is useless. Nevertheless, we may not want to
11752 # sort them, since we want the *last* AC-DEFINE to be honored.
11753 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11754 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11755 rm -f confdef2sed.sed
11757 # This sed command replaces #undef with comments. This is necessary, for
11758 # example, in the case of _POSIX_SOURCE, which is predefined and required
11759 # on some systems where configure will not decide to define it.
11760 cat >>conftest.undefs <<\_ACEOF
11761 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11764 # Break up conftest.defines because some shells have a limit on the size
11765 # of here documents, and old seds have small limits too (100 cmds).
11766 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11767 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11768 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11769 echo ' :' >>$CONFIG_STATUS
11770 rm -f conftest.tail
11771 while grep . conftest.defines >/dev/null
11773 # Write a limited-size here document to $tmp/defines.sed.
11774 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11775 # Speed up: don't consider the non `#define' lines.
11776 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11777 # Work around the forget-to-reset-the-flag bug.
11778 echo 't clr' >>$CONFIG_STATUS
11779 echo ': clr' >>$CONFIG_STATUS
11780 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11782 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11784 mv $tmp/out $tmp/in
11786 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11787 rm -f conftest.defines
11788 mv conftest.tail conftest.defines
11790 rm -f conftest.defines
11791 echo ' fi # grep' >>$CONFIG_STATUS
11792 echo >>$CONFIG_STATUS
11794 # Break up conftest.undefs because some shells have a limit on the size
11795 # of here documents, and old seds have small limits too (100 cmds).
11796 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11797 rm -f conftest.tail
11798 while grep . conftest.undefs >/dev/null
11800 # Write a limited-size here document to $tmp/undefs.sed.
11801 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11802 # Speed up: don't consider the non `#undef'
11803 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11804 # Work around the forget-to-reset-the-flag bug.
11805 echo 't clr' >>$CONFIG_STATUS
11806 echo ': clr' >>$CONFIG_STATUS
11807 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11809 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11811 mv $tmp/out $tmp/in
11813 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11814 rm -f conftest.undefs
11815 mv conftest.tail conftest.undefs
11817 rm -f conftest.undefs
11819 cat >>$CONFIG_STATUS <<\_ACEOF
11820 # Let's still pretend it is `configure' which instantiates (i.e., don't
11821 # use $as_me), people would be surprised to read:
11822 # /* config.h. Generated by config.status. */
11823 if test x"$ac_file" = x-; then
11824 echo "/* Generated by configure. */" >$tmp/config.h
11826 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11828 cat $tmp/in >>$tmp/config.h
11830 if test x"$ac_file" != x-; then
11831 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11832 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11833 echo "$as_me: $ac_file is unchanged" >&6;}
11835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11837 X"$ac_file" : 'X\(//\)[^/]' \| \
11838 X"$ac_file" : 'X\(//\)$' \| \
11839 X"$ac_file" : 'X\(/\)' \| \
11840 . : '\(.\)' 2>/dev/null ||
11842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11844 /^X\(\/\/\)$/{ s//\1/; q; }
11845 /^X\(\/\).*/{ s//\1/; q; }
11847 { if $as_mkdir_p; then
11852 while test ! -d "$as_dir"; do
11853 as_dirs="$as_dir $as_dirs"
11854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11856 X"$as_dir" : 'X\(//\)[^/]' \| \
11857 X"$as_dir" : 'X\(//\)$' \| \
11858 X"$as_dir" : 'X\(/\)' \| \
11859 . : '\(.\)' 2>/dev/null ||
11861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11863 /^X\(\/\/\)$/{ s//\1/; q; }
11864 /^X\(\/\).*/{ s//\1/; q; }
11867 test ! -n "$as_dirs" || mkdir $as_dirs
11868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11870 { (exit 1); exit 1; }; }; }
11873 mv $tmp/config.h $ac_file
11877 rm -f $tmp/config.h
11881 cat >>$CONFIG_STATUS <<\_ACEOF
11884 # CONFIG_COMMANDS section.
11886 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11887 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11888 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11889 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11890 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11891 X"$ac_dest" : 'X\(//\)[^/]' \| \
11892 X"$ac_dest" : 'X\(//\)$' \| \
11893 X"$ac_dest" : 'X\(/\)' \| \
11894 . : '\(.\)' 2>/dev/null ||
11896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11898 /^X\(\/\/\)$/{ s//\1/; q; }
11899 /^X\(\/\).*/{ s//\1/; q; }
11901 { if $as_mkdir_p; then
11906 while test ! -d "$as_dir"; do
11907 as_dirs="$as_dir $as_dirs"
11908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11910 X"$as_dir" : 'X\(//\)[^/]' \| \
11911 X"$as_dir" : 'X\(//\)$' \| \
11912 X"$as_dir" : 'X\(/\)' \| \
11913 . : '\(.\)' 2>/dev/null ||
11915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11917 /^X\(\/\/\)$/{ s//\1/; q; }
11918 /^X\(\/\).*/{ s//\1/; q; }
11921 test ! -n "$as_dirs" || mkdir $as_dirs
11922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11924 { (exit 1); exit 1; }; }; }
11928 if test "$ac_dir" != .; then
11929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11930 # A "../" for each directory in $ac_dir_suffix.
11931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11933 ac_dir_suffix= ac_top_builddir=
11937 .) # No --srcdir option. We are building in place.
11939 if test -z "$ac_top_builddir"; then
11942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11944 [\\/]* | ?:[\\/]* ) # Absolute path.
11945 ac_srcdir=$srcdir$ac_dir_suffix;
11946 ac_top_srcdir=$srcdir ;;
11947 *) # Relative path.
11948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11952 # Do not use `cd foo && pwd` to compute absolute paths, because
11953 # the directories may not exist.
11955 .) ac_abs_builddir="$ac_dir";;
11958 .) ac_abs_builddir=`pwd`;;
11959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11963 case $ac_abs_builddir in
11964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11966 case ${ac_top_builddir}. in
11967 .) ac_abs_top_builddir=$ac_abs_builddir;;
11968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11972 case $ac_abs_builddir in
11973 .) ac_abs_srcdir=$ac_srcdir;;
11976 .) ac_abs_srcdir=$ac_abs_builddir;;
11977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11981 case $ac_abs_builddir in
11982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11984 case $ac_top_srcdir in
11985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11992 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11993 echo "$as_me: executing $ac_dest commands" >&6;}
11995 default ) echo timestamp > stamp-h ;;
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12002 { (exit 0); exit 0; }
12004 chmod +x $CONFIG_STATUS
12005 ac_clean_files=$ac_clean_files_save
12008 # configure is writing to config.log, and then calls config.status.
12009 # config.status does its own redirection, appending to config.log.
12010 # Unfortunately, on DOS this fails, as config.log is still kept open
12011 # by configure, so config.status won't be able to write to it; its
12012 # output is simply discarded. So we exec the FD to /dev/null,
12013 # effectively closing config.log, so it can be properly (re)opened and
12014 # appended to by config.status. When coming back to configure, we
12015 # need to make the FD available again.
12016 if test "$no_create" != yes; then
12018 ac_config_status_args=
12019 test "$silent" = yes &&
12020 ac_config_status_args="$ac_config_status_args --quiet"
12022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12025 # would make configure fail if this is the last instruction.
12026 $ac_cs_success || { (exit 1); exit 1; }
12030 ac_config_commands="$ac_config_commands default-1"