2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ircd/ircd.c"
108 ac_default_prefix=$HOME
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 ac_subdirs_all="$ac_subdirs_all adns"
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -disable-* | --disable-*)
236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
237 # Reject names that are not valid shell variable names.
238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240 { (exit 1); exit 1; }; }
241 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242 eval "enable_$ac_feature=no" ;;
244 -enable-* | --enable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
255 eval "enable_$ac_feature='$ac_optarg'" ;;
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
264 exec_prefix=$ac_optarg ;;
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
270 -help | --help | --hel | --he | -h)
272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273 ac_init_help=recursive ;;
274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275 ac_init_help=short ;;
277 -host | --host | --hos | --ho)
278 ac_prev=host_alias ;;
279 -host=* | --host=* | --hos=* | --ho=*)
280 host_alias=$ac_optarg ;;
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir=$ac_optarg ;;
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir=$ac_optarg ;;
294 -libdir | --libdir | --libdi | --libd)
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir=$ac_optarg ;;
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir=$ac_optarg ;;
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321 # Obsolete; use --without-fp.
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir=$ac_optarg ;;
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix=$ac_optarg ;;
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix=$ac_optarg ;;
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name=$ac_optarg ;;
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 sbindir=$ac_optarg ;;
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 sharedstatedir=$ac_optarg ;;
398 -site | --site | --sit)
400 -site=* | --site=* | --sit=*)
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir=$ac_optarg ;;
415 -target | --target | --targe | --targ | --tar | --ta | --t)
416 ac_prev=target_alias ;;
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target_alias=$ac_optarg ;;
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 -version | --version | --versio | --versi | --vers | -V)
427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
437 eval "with_$ac_package='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
441 # Reject names that are not valid shell variable names.
442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443 { echo "$as_me: error: invalid package name: $ac_package" >&2
444 { (exit 1); exit 1; }; }
445 ac_package=`echo $ac_package | sed 's/-/_/g'`
446 eval "with_$ac_package=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes=$ac_optarg ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries=$ac_optarg ;;
466 -*) { echo "$as_me: error: unrecognized option: $ac_option
467 Try \`$0 --help' for more information." >&2
468 { (exit 1); exit 1; }; }
472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473 # Reject names that are not valid shell variable names.
474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476 { (exit 1); exit 1; }; }
477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478 eval "$ac_envvar='$ac_optarg'"
482 # FIXME: should be removed in autoconf 3.0.
483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
492 if test -n "$ac_prev"; then
493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494 { echo "$as_me: error: missing argument to $ac_option" >&2
495 { (exit 1); exit 1; }; }
498 # Be sure to have absolute paths.
499 for ac_var in exec_prefix prefix
501 eval ac_val=$`echo $ac_var`
503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505 { (exit 1); exit 1; }; };;
509 # Be sure to have absolute paths.
510 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511 localstatedir libdir includedir oldincludedir infodir mandir
513 eval ac_val=$`echo $ac_var`
515 [\\/$]* | ?:[\\/]* ) ;;
516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517 { (exit 1); exit 1; }; };;
521 # There might be people who depend on the old broken behavior: `$host'
522 # used to hold the argument of --host etc.
527 # FIXME: should be removed in autoconf 3.0.
528 if test "x$host_alias" != x; then
529 if test "x$build_alias" = x; then
530 cross_compiling=maybe
531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532 If a cross compiler is detected then cross compile mode will be used." >&2
533 elif test "x$build_alias" != "x$host_alias"; then
539 test -n "$host_alias" && ac_tool_prefix=$host_alias-
541 test "$silent" = yes && exec 6>/dev/null
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560 { (exit 1); exit 1; }; }
562 { echo "$as_me: error: cannot find sources in $srcdir" >&2
563 { (exit 1); exit 1; }; }
566 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567 ac_env_build_alias_set=${build_alias+set}
568 ac_env_build_alias_value=$build_alias
569 ac_cv_env_build_alias_set=${build_alias+set}
570 ac_cv_env_build_alias_value=$build_alias
571 ac_env_host_alias_set=${host_alias+set}
572 ac_env_host_alias_value=$host_alias
573 ac_cv_env_host_alias_set=${host_alias+set}
574 ac_cv_env_host_alias_value=$host_alias
575 ac_env_target_alias_set=${target_alias+set}
576 ac_env_target_alias_value=$target_alias
577 ac_cv_env_target_alias_set=${target_alias+set}
578 ac_cv_env_target_alias_value=$target_alias
579 ac_env_CC_set=${CC+set}
581 ac_cv_env_CC_set=${CC+set}
582 ac_cv_env_CC_value=$CC
583 ac_env_CFLAGS_set=${CFLAGS+set}
584 ac_env_CFLAGS_value=$CFLAGS
585 ac_cv_env_CFLAGS_set=${CFLAGS+set}
586 ac_cv_env_CFLAGS_value=$CFLAGS
587 ac_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_env_LDFLAGS_value=$LDFLAGS
589 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590 ac_cv_env_LDFLAGS_value=$LDFLAGS
591 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_env_CPPFLAGS_value=$CPPFLAGS
593 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595 ac_env_CPP_set=${CPP+set}
596 ac_env_CPP_value=$CPP
597 ac_cv_env_CPP_set=${CPP+set}
598 ac_cv_env_CPP_value=$CPP
601 # Report the --help message.
603 if test "$ac_init_help" = "long"; then
604 # Omit some internal or obsolete options to make the list less imposing.
605 # This message is too long to be a string in the A/UX 3.1 sh.
607 \`configure' configures this package to adapt to many kinds of systems.
609 Usage: $0 [OPTION]... [VAR=VALUE]...
611 To assign environment variables (e.g., CC, CFLAGS...), specify them as
612 VAR=VALUE. See below for descriptions of some of the useful variables.
614 Defaults for the options are specified in brackets.
617 -h, --help display this help and exit
618 --help=short display options specific to this package
619 --help=recursive display the short help of all the included packages
620 -V, --version display version information and exit
621 -q, --quiet, --silent do not print \`checking...' messages
622 --cache-file=FILE cache test results in FILE [disabled]
623 -C, --config-cache alias for \`--cache-file=config.cache'
624 -n, --no-create do not create output files
625 --srcdir=DIR find the sources in DIR [configure dir or \`..']
630 Installation directories:
631 --prefix=PREFIX install architecture-independent files in PREFIX
633 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
636 By default, \`make install' will install all the files in
637 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
638 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
639 for instance \`--prefix=\$HOME'.
641 For better control, use the options below.
643 Fine tuning of the installation directories:
644 --bindir=DIR user executables [EPREFIX/bin]
645 --sbindir=DIR system admin executables [EPREFIX/sbin]
646 --libexecdir=DIR program executables [EPREFIX/libexec]
647 --datadir=DIR read-only architecture-independent data [PREFIX/share]
648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
651 --libdir=DIR object code libraries [EPREFIX/lib]
652 --includedir=DIR C header files [PREFIX/include]
653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
654 --infodir=DIR info documentation [PREFIX/info]
655 --mandir=DIR man documentation [PREFIX/man]
661 --build=BUILD configure for building on BUILD [guessed]
662 --host=HOST build programs to run on HOST [BUILD]
666 if test -n "$ac_init_help"; then
671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
673 --enable-poll Force poll to be used regardless of whether or not
675 --enable-debug Turn on debugging mode
676 --disable-asserts Disable assertion checking
677 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
678 --disable-headinsand Disable head in sand (-DNO_HEAD_IN_SAND)
679 --enable-profile Enable profiling support (add -pg to CFLAGS)
680 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
681 --enable-warnings Enable warnings (add -Wall to CFLAGS)
682 --disable-inlines Disable inlining for a few critical functions
683 --disable-devpoll Enable the /dev/poll-based engine
684 --disable-kqueue Enable the kqueue-based engine
685 --disable-adns Disable adns resolver
688 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
689 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
690 --with-leak-detect Turn on the leak detector(requires patched boehm)
691 --with-symlink=name Name to give the symlink; if name is "no," no
692 symlink will be created.
693 --with-mode=mode Permissions (in octal) to give the binary
694 --with-owner=owner Specify owner of the installed binary
695 --with-group=group Specify group owner of the installed binary
696 --with-domain=domain Domain name to use in local statistics gathering
697 --with-chroot=dir Specify that the server will be operated under
698 a different root directory given by dir. See
699 doc/readme.chroot for more information.
700 --with-dpath=dir Directory for all server data files
701 --with-cpath=file Set server configuration file
702 --with-lpath=file Set the debugging log file
703 --with-maxcon=maxcon Maximum number of connections server will accept
705 Some influential environment variables:
706 CC C compiler command
707 CFLAGS C compiler flags
708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
709 nonstandard directory <lib dir>
710 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
711 headers in a nonstandard directory <include dir>
714 Use these variables to override the choices made by `configure' or to help
715 it to find libraries and programs with nonstandard names/locations.
720 if test "$ac_init_help" = "recursive"; then
721 # If there are subdirs, report their specific --help.
723 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
725 # A "../" for each directory in /$ac_subdir.
726 ac_dots=`echo $ac_subdir |
727 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
730 .) # No --srcdir option. We are building in place.
731 ac_sub_srcdir=$srcdir ;;
732 [\\/]* | ?:[\\/]* ) # Absolute path.
733 ac_sub_srcdir=$srcdir/$ac_subdir ;;
735 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
738 # Check for guested configure; otherwise get Cygnus style configure.
739 if test -f $ac_sub_srcdir/configure.gnu; then
741 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
742 elif test -f $ac_sub_srcdir/configure; then
744 $SHELL $ac_sub_srcdir/configure --help=recursive
745 elif test -f $ac_sub_srcdir/configure.ac ||
746 test -f $ac_sub_srcdir/configure.in; then
750 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
756 test -n "$ac_init_help" && exit 0
757 if $ac_init_version; then
760 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
761 Free Software Foundation, Inc.
762 This configure script is free software; the Free Software Foundation
763 gives unlimited permission to copy, distribute and modify it.
769 This file contains any messages produced by compilers while
770 running configure, to aid debugging if configure makes a mistake.
772 It was created by $as_me, which was
773 generated by GNU Autoconf 2.52. Invocation command line was
784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
791 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
793 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
794 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
796 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
797 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
798 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
799 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
813 # Keep a trace of the command line.
814 # Strip out --no-create and --no-recursion so they do not pile up.
815 # Also quote any args containing shell meta-characters.
821 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
822 | --no-cr | --no-c) ;;
823 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
824 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
825 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
826 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
827 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
829 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
832 # Get rid of the leading space.
835 # When interrupted or exit'd, cleanup temporary files, and complete
836 # config.log. We remove comments because anyway the quotes in there
837 # would cause problems or look ugly.
839 # Save into config.log some information that might help in debugging.
841 echo "## ----------------- ##" >&5
842 echo "## Cache variables. ##" >&5
843 echo "## ----------------- ##" >&5
845 # The following way of writing the cache mishandles newlines in values,
848 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
851 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
860 sed "/^$/d" confdefs.h >conftest.log
861 if test -s conftest.log; then
863 echo "## ------------ ##" >&5
864 echo "## confdefs.h. ##" >&5
865 echo "## ------------ ##" >&5
870 test "$ac_signal" != 0 &&
871 echo "$as_me: caught signal $ac_signal" >&5
872 echo "$as_me: exit $exit_status" >&5
873 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
876 for ac_signal in 1 2 13 15; do
877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
882 rm -rf conftest* confdefs.h
883 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
886 # Let the site file select an alternate cache file if it wants to.
887 # Prefer explicitly selected file to automatically selected ones.
888 if test -z "$CONFIG_SITE"; then
889 if test "x$prefix" != xNONE; then
890 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
892 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
895 for ac_site_file in $CONFIG_SITE; do
896 if test -r "$ac_site_file"; then
897 { echo "$as_me:897: loading site script $ac_site_file" >&5
898 echo "$as_me: loading site script $ac_site_file" >&6;}
899 cat "$ac_site_file" >&5
904 if test -r "$cache_file"; then
905 # Some versions of bash will fail to source /dev/null (special
906 # files actually), so we avoid doing that.
907 if test -f "$cache_file"; then
908 { echo "$as_me:908: loading cache $cache_file" >&5
909 echo "$as_me: loading cache $cache_file" >&6;}
911 [\\/]* | ?:[\\/]* ) . $cache_file;;
916 { echo "$as_me:916: creating cache $cache_file" >&5
917 echo "$as_me: creating cache $cache_file" >&6;}
921 # Check that the precious variables saved in the cache have kept the same
923 ac_cache_corrupted=false
924 for ac_var in `(set) 2>&1 |
925 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
927 eval ac_new_set=\$ac_env_${ac_var}_set
928 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
929 eval ac_new_val="\$ac_env_${ac_var}_value"
930 case $ac_old_set,$ac_new_set in
932 { echo "$as_me:932: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
934 ac_cache_corrupted=: ;;
936 { echo "$as_me:936: error: \`$ac_var' was not set in the previous run" >&5
937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
938 ac_cache_corrupted=: ;;
941 if test "x$ac_old_val" != "x$ac_new_val"; then
942 { echo "$as_me:942: error: \`$ac_var' has changed since the previous run:" >&5
943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
944 { echo "$as_me:944: former value: $ac_old_val" >&5
945 echo "$as_me: former value: $ac_old_val" >&2;}
946 { echo "$as_me:946: current value: $ac_new_val" >&5
947 echo "$as_me: current value: $ac_new_val" >&2;}
951 # Pass precious variables to config.status. It doesn't matter if
952 # we pass some twice (in addition to the command line arguments).
953 if test "$ac_new_set" = set; then
955 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
956 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
957 ac_configure_args="$ac_configure_args '$ac_arg'"
959 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
964 if $ac_cache_corrupted; then
965 { echo "$as_me:965: error: changes in the environment can compromise the build" >&5
966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
967 { { echo "$as_me:967: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
969 { (exit 1); exit 1; }; }
973 ac_cpp='$CPP $CPPFLAGS'
974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
978 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
979 *c*,-n*) ECHO_N= ECHO_C='
981 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
982 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
984 echo "#! $SHELL" >conftest.sh
985 echo "exit 0" >>conftest.sh
987 if { (echo "$as_me:987: PATH=\".;.\"; conftest.sh") >&5
988 (PATH=".;."; conftest.sh) 2>&5
990 echo "$as_me:990: \$? = $ac_status" >&5
991 (exit $ac_status); }; then
992 ac_path_separator=';'
996 PATH_SEPARATOR="$ac_path_separator"
999 echo "$as_me:999: checking for installation prefix" >&5
1000 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1001 if test "${unet_cv_prefix+set}" = set; then
1002 echo $ECHO_N "(cached) $ECHO_C" >&6
1004 unet_cv_prefix=$HOME
1007 if test x"$prefix" != xNONE; then
1008 unet_cv_prefix=$prefix
1010 echo "$as_me:1010: result: $unet_cv_prefix" >&5
1011 echo "${ECHO_T}$unet_cv_prefix" >&6
1012 ac_default_prefix=$unet_cv_prefix
1014 ac_config_headers="$ac_config_headers config.h"
1017 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1018 if test -f $ac_dir/install-sh; then
1020 ac_install_sh="$ac_aux_dir/install-sh -c"
1022 elif test -f $ac_dir/install.sh; then
1024 ac_install_sh="$ac_aux_dir/install.sh -c"
1026 elif test -f $ac_dir/shtool; then
1028 ac_install_sh="$ac_aux_dir/shtool install -c"
1032 if test -z "$ac_aux_dir"; then
1033 { { echo "$as_me:1033: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1034 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1035 { (exit 1); exit 1; }; }
1037 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1038 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1039 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1041 # Make sure we can run config.sub.
1042 $ac_config_sub sun4 >/dev/null 2>&1 ||
1043 { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: checking build system type" >&5
1048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049 if test "${ac_cv_build+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_build_alias=$build_alias
1053 test -z "$ac_cv_build_alias" &&
1054 ac_cv_build_alias=`$ac_config_guess`
1055 test -z "$ac_cv_build_alias" &&
1056 { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058 { (exit 1); exit 1; }; }
1059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1060 { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: result: $ac_cv_build" >&5
1066 echo "${ECHO_T}$ac_cv_build" >&6
1068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 echo "$as_me:1072: checking host system type" >&5
1073 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074 if test "${ac_cv_host+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 ac_cv_host_alias=$host_alias
1078 test -z "$ac_cv_host_alias" &&
1079 ac_cv_host_alias=$ac_cv_build_alias
1080 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1081 { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083 { (exit 1); exit 1; }; }
1086 echo "$as_me:1086: result: $ac_cv_host" >&5
1087 echo "${ECHO_T}$ac_cv_host" >&6
1089 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1098 if test -n "$ac_tool_prefix"; then
1099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1101 echo "$as_me:1101: checking for $ac_word" >&5
1102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1103 if test "${ac_cv_prog_CC+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC="$CC" # Let the user override the test.
1109 ac_save_IFS=$IFS; IFS=$ac_path_separator
1111 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 $as_executable_p "$ac_dir/$ac_word" || continue
1115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1116 echo "$as_me:1116: found $ac_dir/$ac_word" >&5
1123 if test -n "$CC"; then
1124 echo "$as_me:1124: result: $CC" >&5
1125 echo "${ECHO_T}$CC" >&6
1127 echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1132 if test -z "$ac_cv_prog_CC"; then
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo "$as_me:1136: checking for $ac_word" >&5
1137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1139 echo $ECHO_N "(cached) $ECHO_C" >&6
1141 if test -n "$ac_ct_CC"; then
1142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1144 ac_save_IFS=$IFS; IFS=$ac_path_separator
1146 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 $as_executable_p "$ac_dir/$ac_word" || continue
1150 ac_cv_prog_ac_ct_CC="gcc"
1151 echo "$as_me:1151: found $ac_dir/$ac_word" >&5
1157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1158 if test -n "$ac_ct_CC"; then
1159 echo "$as_me:1159: result: $ac_ct_CC" >&5
1160 echo "${ECHO_T}$ac_ct_CC" >&6
1162 echo "$as_me:1162: result: no" >&5
1163 echo "${ECHO_T}no" >&6
1171 if test -z "$CC"; then
1172 if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1174 set dummy ${ac_tool_prefix}cc; ac_word=$2
1175 echo "$as_me:1175: checking for $ac_word" >&5
1176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177 if test "${ac_cv_prog_CC+set}" = set; then
1178 echo $ECHO_N "(cached) $ECHO_C" >&6
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1183 ac_save_IFS=$IFS; IFS=$ac_path_separator
1185 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 $as_executable_p "$ac_dir/$ac_word" || continue
1189 ac_cv_prog_CC="${ac_tool_prefix}cc"
1190 echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1197 if test -n "$CC"; then
1198 echo "$as_me:1198: result: $CC" >&5
1199 echo "${ECHO_T}$CC" >&6
1201 echo "$as_me:1201: result: no" >&5
1202 echo "${ECHO_T}no" >&6
1206 if test -z "$ac_cv_prog_CC"; then
1208 # Extract the first word of "cc", so it can be a program name with args.
1209 set dummy cc; ac_word=$2
1210 echo "$as_me:1210: checking for $ac_word" >&5
1211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213 echo $ECHO_N "(cached) $ECHO_C" >&6
1215 if test -n "$ac_ct_CC"; then
1216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1218 ac_save_IFS=$IFS; IFS=$ac_path_separator
1220 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 $as_executable_p "$ac_dir/$ac_word" || continue
1224 ac_cv_prog_ac_ct_CC="cc"
1225 echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232 if test -n "$ac_ct_CC"; then
1233 echo "$as_me:1233: result: $ac_ct_CC" >&5
1234 echo "${ECHO_T}$ac_ct_CC" >&6
1236 echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1246 if test -z "$CC"; then
1247 # Extract the first word of "cc", so it can be a program name with args.
1248 set dummy cc; ac_word=$2
1249 echo "$as_me:1249: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1258 ac_save_IFS=$IFS; IFS=$ac_path_separator
1260 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 $as_executable_p "$ac_dir/$ac_word" || continue
1264 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1265 ac_prog_rejected=yes
1269 echo "$as_me:1269: found $ac_dir/$ac_word" >&5
1273 if test $ac_prog_rejected = yes; then
1274 # We found a bogon in the path, so make sure we never use it.
1275 set dummy $ac_cv_prog_CC
1277 if test $# != 0; then
1278 # We chose a different compiler from the bogus one.
1279 # However, it has the same basename, so the bogon will be chosen
1280 # first if we set CC to just the basename; use the full file name.
1282 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1290 if test -n "$CC"; then
1291 echo "$as_me:1291: result: $CC" >&5
1292 echo "${ECHO_T}$CC" >&6
1294 echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1299 if test -z "$CC"; then
1300 if test -n "$ac_tool_prefix"; then
1303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1305 echo "$as_me:1305: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 ac_save_IFS=$IFS; IFS=$ac_path_separator
1315 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 $as_executable_p "$ac_dir/$ac_word" || continue
1319 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1320 echo "$as_me:1320: found $ac_dir/$ac_word" >&5
1327 if test -n "$CC"; then
1328 echo "$as_me:1328: result: $CC" >&5
1329 echo "${ECHO_T}$CC" >&6
1331 echo "$as_me:1331: result: no" >&5
1332 echo "${ECHO_T}no" >&6
1335 test -n "$CC" && break
1338 if test -z "$CC"; then
1342 # Extract the first word of "$ac_prog", so it can be a program name with args.
1343 set dummy $ac_prog; ac_word=$2
1344 echo "$as_me:1344: checking for $ac_word" >&5
1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 if test -n "$ac_ct_CC"; then
1350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1352 ac_save_IFS=$IFS; IFS=$ac_path_separator
1354 for ac_dir in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir=.
1357 $as_executable_p "$ac_dir/$ac_word" || continue
1358 ac_cv_prog_ac_ct_CC="$ac_prog"
1359 echo "$as_me:1359: found $ac_dir/$ac_word" >&5
1365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1366 if test -n "$ac_ct_CC"; then
1367 echo "$as_me:1367: result: $ac_ct_CC" >&5
1368 echo "${ECHO_T}$ac_ct_CC" >&6
1370 echo "$as_me:1370: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1374 test -n "$ac_ct_CC" && break
1382 test -z "$CC" && { { echo "$as_me:1382: error: no acceptable cc found in \$PATH" >&5
1383 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1384 { (exit 1); exit 1; }; }
1386 # Provide some information about the compiler.
1387 echo "$as_me:1387:" \
1388 "checking for C compiler version" >&5
1389 ac_compiler=`set X $ac_compile; echo $2`
1390 { (eval echo "$as_me:1390: \"$ac_compiler --version </dev/null >&5\"") >&5
1391 (eval $ac_compiler --version </dev/null >&5) 2>&5
1393 echo "$as_me:1393: \$? = $ac_status" >&5
1394 (exit $ac_status); }
1395 { (eval echo "$as_me:1395: \"$ac_compiler -v </dev/null >&5\"") >&5
1396 (eval $ac_compiler -v </dev/null >&5) 2>&5
1398 echo "$as_me:1398: \$? = $ac_status" >&5
1399 (exit $ac_status); }
1400 { (eval echo "$as_me:1400: \"$ac_compiler -V </dev/null >&5\"") >&5
1401 (eval $ac_compiler -V </dev/null >&5) 2>&5
1403 echo "$as_me:1403: \$? = $ac_status" >&5
1404 (exit $ac_status); }
1406 cat >conftest.$ac_ext <<_ACEOF
1407 #line 1407 "configure"
1408 #include "confdefs.h"
1418 ac_clean_files_save=$ac_clean_files
1419 ac_clean_files="$ac_clean_files a.out a.exe"
1420 # Try to create an executable without -o first, disregard a.out.
1421 # It will help us diagnose broken compilers, and finding out an intuition
1423 echo "$as_me:1423: checking for C compiler default output" >&5
1424 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1425 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1426 if { (eval echo "$as_me:1426: \"$ac_link_default\"") >&5
1427 (eval $ac_link_default) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }; then
1431 # Find the output, starting from the most likely. This scheme is
1432 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1434 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1435 ls a.out conftest 2>/dev/null;
1436 ls a.* conftest.* 2>/dev/null`; do
1438 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1439 a.out ) # We found the default executable, but exeext='' is most
1442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1443 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1450 echo "$as_me: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1452 { { echo "$as_me:1452: error: C compiler cannot create executables" >&5
1453 echo "$as_me: error: C compiler cannot create executables" >&2;}
1454 { (exit 77); exit 77; }; }
1457 ac_exeext=$ac_cv_exeext
1458 echo "$as_me:1458: result: $ac_file" >&5
1459 echo "${ECHO_T}$ac_file" >&6
1461 # Check the compiler produces executables we can run. If not, either
1462 # the compiler is broken, or we cross compile.
1463 echo "$as_me:1463: checking whether the C compiler works" >&5
1464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1466 # If not cross compiling, check that we can run a simple program.
1467 if test "$cross_compiling" != yes; then
1468 if { ac_try='./$ac_file'
1469 { (eval echo "$as_me:1469: \"$ac_try\"") >&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; }; then
1476 if test "$cross_compiling" = maybe; then
1479 { { echo "$as_me:1479: error: cannot run C compiled programs.
1480 If you meant to cross compile, use \`--host'." >&5
1481 echo "$as_me: error: cannot run C compiled programs.
1482 If you meant to cross compile, use \`--host'." >&2;}
1483 { (exit 1); exit 1; }; }
1487 echo "$as_me:1487: result: yes" >&5
1488 echo "${ECHO_T}yes" >&6
1490 rm -f a.out a.exe conftest$ac_cv_exeext
1491 ac_clean_files=$ac_clean_files_save
1492 # Check the compiler produces executables we can run. If not, either
1493 # the compiler is broken, or we cross compile.
1494 echo "$as_me:1494: checking whether we are cross compiling" >&5
1495 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1496 echo "$as_me:1496: result: $cross_compiling" >&5
1497 echo "${ECHO_T}$cross_compiling" >&6
1499 echo "$as_me:1499: checking for executable suffix" >&5
1500 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1501 if { (eval echo "$as_me:1501: \"$ac_link\"") >&5
1502 (eval $ac_link) 2>&5
1504 echo "$as_me:1504: \$? = $ac_status" >&5
1505 (exit $ac_status); }; then
1506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1508 # work properly (i.e., refer to `conftest.exe'), while it won't with
1510 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1512 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1520 { { echo "$as_me:1520: error: cannot compute EXEEXT: cannot compile and link" >&5
1521 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1522 { (exit 1); exit 1; }; }
1525 rm -f conftest$ac_cv_exeext
1526 echo "$as_me:1526: result: $ac_cv_exeext" >&5
1527 echo "${ECHO_T}$ac_cv_exeext" >&6
1529 rm -f conftest.$ac_ext
1530 EXEEXT=$ac_cv_exeext
1532 echo "$as_me:1532: checking for object suffix" >&5
1533 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1534 if test "${ac_cv_objext+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 cat >conftest.$ac_ext <<_ACEOF
1538 #line 1538 "configure"
1539 #include "confdefs.h"
1549 rm -f conftest.o conftest.obj
1550 if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
1551 (eval $ac_compile) 2>&5
1553 echo "$as_me:1553: \$? = $ac_status" >&5
1554 (exit $ac_status); }; then
1555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1563 echo "$as_me: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 { { echo "$as_me:1565: error: cannot compute OBJEXT: cannot compile" >&5
1566 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1567 { (exit 1); exit 1; }; }
1570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1572 echo "$as_me:1572: result: $ac_cv_objext" >&5
1573 echo "${ECHO_T}$ac_cv_objext" >&6
1574 OBJEXT=$ac_cv_objext
1576 echo "$as_me:1576: checking whether we are using the GNU C compiler" >&5
1577 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1578 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 cat >conftest.$ac_ext <<_ACEOF
1582 #line 1582 "configure"
1583 #include "confdefs.h"
1596 rm -f conftest.$ac_objext
1597 if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
1598 (eval $ac_compile) 2>&5
1600 echo "$as_me:1600: \$? = $ac_status" >&5
1601 (exit $ac_status); } &&
1602 { ac_try='test -s conftest.$ac_objext'
1603 { (eval echo "$as_me:1603: \"$ac_try\"") >&5
1606 echo "$as_me:1606: \$? = $ac_status" >&5
1607 (exit $ac_status); }; }; then
1610 echo "$as_me: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1614 rm -f conftest.$ac_objext conftest.$ac_ext
1615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1618 echo "$as_me:1618: result: $ac_cv_c_compiler_gnu" >&5
1619 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1620 GCC=`test $ac_compiler_gnu = yes && echo yes`
1621 ac_test_CFLAGS=${CFLAGS+set}
1622 ac_save_CFLAGS=$CFLAGS
1624 echo "$as_me:1624: checking whether $CC accepts -g" >&5
1625 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1626 if test "${ac_cv_prog_cc_g+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 cat >conftest.$ac_ext <<_ACEOF
1630 #line 1630 "configure"
1631 #include "confdefs.h"
1641 rm -f conftest.$ac_objext
1642 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643 (eval $ac_compile) 2>&5
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); } &&
1647 { ac_try='test -s conftest.$ac_objext'
1648 { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1651 echo "$as_me:1651: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1655 echo "$as_me: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1659 rm -f conftest.$ac_objext conftest.$ac_ext
1661 echo "$as_me:1661: result: $ac_cv_prog_cc_g" >&5
1662 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1663 if test "$ac_test_CFLAGS" = set; then
1664 CFLAGS=$ac_save_CFLAGS
1665 elif test $ac_cv_prog_cc_g = yes; then
1666 if test "$GCC" = yes; then
1672 if test "$GCC" = yes; then
1678 # Some people use a C++ compiler to compile C. Since we use `exit',
1679 # in C++ we need to declare it. In case someone uses the same compiler
1680 # for both compiling C and C++ we need to have the C++ compiler decide
1681 # the declaration of exit, since it's the most demanding environment.
1682 cat >conftest.$ac_ext <<_ACEOF
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 (eval $ac_compile) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); } &&
1693 { ac_try='test -s conftest.$ac_objext'
1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; }; then
1699 for ac_declaration in \
1701 '#include <stdlib.h>' \
1702 'extern "C" void std::exit (int) throw (); using std::exit;' \
1703 'extern "C" void std::exit (int); using std::exit;' \
1704 'extern "C" void exit (int) throw ();' \
1705 'extern "C" void exit (int);' \
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1721 rm -f conftest.$ac_objext
1722 if { (eval echo "$as_me:1722: \"$ac_compile\"") >&5
1723 (eval $ac_compile) 2>&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); } &&
1727 { ac_try='test -s conftest.$ac_objext'
1728 { (eval echo "$as_me:1728: \"$ac_try\"") >&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); }; }; then
1735 echo "$as_me: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1739 rm -f conftest.$ac_objext conftest.$ac_ext
1740 cat >conftest.$ac_ext <<_ACEOF
1741 #line 1741 "configure"
1742 #include "confdefs.h"
1752 rm -f conftest.$ac_objext
1753 if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5
1754 (eval $ac_compile) 2>&5
1756 echo "$as_me:1756: \$? = $ac_status" >&5
1757 (exit $ac_status); } &&
1758 { ac_try='test -s conftest.$ac_objext'
1759 { (eval echo "$as_me:1759: \"$ac_try\"") >&5
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); }; }; then
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 rm -f conftest.$ac_objext conftest.$ac_ext
1772 if test -n "$ac_declaration"; then
1773 echo '#ifdef __cplusplus' >>confdefs.h
1774 echo $ac_declaration >>confdefs.h
1775 echo '#endif' >>confdefs.h
1779 echo "$as_me: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789 echo "$as_me:1789: checking for ${CC-cc} option to accept ANSI C" >&5
1790 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
1791 if test "${am_cv_prog_cc_stdc+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 am_cv_prog_cc_stdc=no
1796 # Don't try gcc -ansi; that turns off useful extensions and
1797 # breaks some systems' header files.
1798 # AIX -qlanglvl=ansi
1799 # Ultrix and OSF/1 -std1
1800 # HP-UX -Aa -D_HPUX_SOURCE
1801 # SVR4 -Xc -D__EXTENSIONS__
1802 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1804 CC="$ac_save_CC $ac_arg"
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1810 #include <sys/types.h>
1811 #include <sys/stat.h>
1812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1813 struct buf { int x; };
1814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1815 static char *e (p, i)
1821 static char *f (char * (*g) (char **, int), char **p, ...)
1826 s = g (p, va_arg (v,int));
1830 int test (int i, double x);
1831 struct s1 {int (*f) (int a);};
1832 struct s2 {int (*f) (double a);};
1833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>&5
1851 echo "$as_me:1851: \$? = $ac_status" >&5
1852 (exit $ac_status); } &&
1853 { ac_try='test -s conftest.$ac_objext'
1854 { (eval echo "$as_me:1854: \"$ac_try\"") >&5
1857 echo "$as_me:1857: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 am_cv_prog_cc_stdc="$ac_arg"; break
1861 echo "$as_me: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 rm -f conftest.$ac_objext conftest.$ac_ext
1870 if test -z "$am_cv_prog_cc_stdc"; then
1871 echo "$as_me:1871: result: none needed" >&5
1872 echo "${ECHO_T}none needed" >&6
1874 echo "$as_me:1874: result: $am_cv_prog_cc_stdc" >&5
1875 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
1877 case "x$am_cv_prog_cc_stdc" in
1879 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1882 if test x"$CFLAGS" != x; then
1883 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
1885 if test x"$CFLAGS" != x; then
1886 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
1888 if test x"$CFLAGS" != x; then
1889 unet_old_cflags=$CFLAGS
1890 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
1892 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1893 # If -g was already there, force symbols to be enabled
1894 unet_cv_enable_symbols=yes
1896 if test x"$CFLAGS" != x; then
1897 unet_old_cflags=$CFLAGS
1898 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
1900 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1901 # If -pg was already there, force profiling to be enabled
1902 unet_cv_enable_profile=yes
1904 if test x"$CFLAGS" != x; then
1905 unet_old_cflags=$CFLAGS
1906 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
1908 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1909 # If -Wall was already there, force warnings to be enabled
1910 unet_cv_enable_warnings=yes
1912 if test x"$CFLAGS" != x; then
1913 unet_old_cflags=$CFLAGS
1914 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
1916 if test x"$CFLAGS" != x"$unet_old_cflags"; then
1917 # If -pedantic was already there, force pedatic to be enabled
1918 unet_cv_enable_pedantic=yes
1921 echo "$as_me:1921: checking for library containing crypt" >&5
1922 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
1923 if test "${ac_cv_search_crypt+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 ac_func_search_save_LIBS=$LIBS
1927 ac_cv_search_crypt=no
1928 cat >conftest.$ac_ext <<_ACEOF
1929 #line 1929 "configure"
1930 #include "confdefs.h"
1932 /* Override any gcc2 internal prototype to avoid an error. */
1936 /* We use char because int might match the return type of a gcc2
1937 builtin and then its argument prototype would still apply. */
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { (eval echo "$as_me:1948: \"$ac_link\"") >&5
1949 (eval $ac_link) 2>&5
1951 echo "$as_me:1951: \$? = $ac_status" >&5
1952 (exit $ac_status); } &&
1953 { ac_try='test -s conftest$ac_exeext'
1954 { (eval echo "$as_me:1954: \"$ac_try\"") >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1959 ac_cv_search_crypt="none required"
1961 echo "$as_me: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1965 if test "$ac_cv_search_crypt" = no; then
1966 for ac_lib in descrypt crypt; do
1967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1972 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { (eval echo "$as_me:1988: \"$ac_link\"") >&5
1989 (eval $ac_link) 2>&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest$ac_exeext'
1994 { (eval echo "$as_me:1994: \"$ac_try\"") >&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_cv_search_crypt="-l$ac_lib"
2002 echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2008 LIBS=$ac_func_search_save_LIBS
2010 echo "$as_me:2010: result: $ac_cv_search_crypt" >&5
2011 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2012 if test "$ac_cv_search_crypt" != no; then
2013 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2016 { { echo "$as_me:2016: error: Unable to find library containing crypt()" >&5
2017 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2018 { (exit 1); exit 1; }; }
2021 # Most operating systems have gethostbyname() in the default searched
2022 # libraries (i.e. libc):
2023 echo "$as_me:2023: checking for gethostbyname" >&5
2024 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2025 if test "${ac_cv_func_gethostbyname+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char gethostbyname (); below. */
2034 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2040 char gethostbyname ();
2046 /* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2059 rm -f conftest.$ac_objext conftest$ac_exeext
2060 if { (eval echo "$as_me:2060: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2063 echo "$as_me:2063: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest$ac_exeext'
2066 { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_func_gethostbyname=yes
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 ac_cv_func_gethostbyname=no
2077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2079 echo "$as_me:2079: result: $ac_cv_func_gethostbyname" >&5
2080 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2081 if test $ac_cv_func_gethostbyname = yes; then
2084 # Some OSes (eg. Solaris) place it in libnsl:
2086 echo "$as_me:2086: checking for gethostbyname in -lnsl" >&5
2087 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2088 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 ac_check_lib_save_LIBS=$LIBS
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2097 /* Override any gcc2 internal prototype to avoid an error. */
2101 /* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2103 char gethostbyname ();
2112 rm -f conftest.$ac_objext conftest$ac_exeext
2113 if { (eval echo "$as_me:2113: \"$ac_link\"") >&5
2114 (eval $ac_link) 2>&5
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -s conftest$ac_exeext'
2119 { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 ac_cv_lib_nsl_gethostbyname=yes
2126 echo "$as_me: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 ac_cv_lib_nsl_gethostbyname=no
2130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2131 LIBS=$ac_check_lib_save_LIBS
2133 echo "$as_me:2133: result: $ac_cv_lib_nsl_gethostbyname" >&5
2134 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2135 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2136 cat >>confdefs.h <<EOF
2137 #define HAVE_LIBNSL 1
2143 # Some strange OSes (SINIX) have it in libsocket:
2145 echo "$as_me:2145: checking for gethostbyname in -lsocket" >&5
2146 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2147 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 ac_check_lib_save_LIBS=$LIBS
2151 LIBS="-lsocket $LIBS"
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2156 /* Override any gcc2 internal prototype to avoid an error. */
2160 /* We use char because int might match the return type of a gcc2
2161 builtin and then its argument prototype would still apply. */
2162 char gethostbyname ();
2171 rm -f conftest.$ac_objext conftest$ac_exeext
2172 if { (eval echo "$as_me:2172: \"$ac_link\"") >&5
2173 (eval $ac_link) 2>&5
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -s conftest$ac_exeext'
2178 { (eval echo "$as_me:2178: \"$ac_try\"") >&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_lib_socket_gethostbyname=yes
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 ac_cv_lib_socket_gethostbyname=no
2189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2190 LIBS=$ac_check_lib_save_LIBS
2192 echo "$as_me:2192: result: $ac_cv_lib_socket_gethostbyname" >&5
2193 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2194 if test $ac_cv_lib_socket_gethostbyname = yes; then
2195 cat >>confdefs.h <<EOF
2196 #define HAVE_LIBSOCKET 1
2199 LIBS="-lsocket $LIBS"
2202 # Unfortunately libsocket sometimes depends on libnsl.
2203 # AC_CHECK_LIB's API is essentially broken so the following
2204 # ugliness is necessary:
2205 echo "$as_me:2205: checking for gethostbyname in -lsocket" >&5
2206 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2207 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 ac_check_lib_save_LIBS=$LIBS
2211 LIBS="-lsocket -lnsl $LIBS"
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #line 2213 "configure"
2214 #include "confdefs.h"
2216 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2222 char gethostbyname ();
2231 rm -f conftest.$ac_objext conftest$ac_exeext
2232 if { (eval echo "$as_me:2232: \"$ac_link\"") >&5
2233 (eval $ac_link) 2>&5
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest$ac_exeext'
2238 { (eval echo "$as_me:2238: \"$ac_try\"") >&5
2241 echo "$as_me:2241: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_cv_lib_socket_gethostbyname=yes
2245 echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_lib_socket_gethostbyname=no
2249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2250 LIBS=$ac_check_lib_save_LIBS
2252 echo "$as_me:2252: result: $ac_cv_lib_socket_gethostbyname" >&5
2253 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2254 if test $ac_cv_lib_socket_gethostbyname = yes; then
2255 LIBS="-lsocket -lnsl $LIBS"
2258 echo "$as_me:2258: checking for gethostbyname in -lresolv" >&5
2259 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2260 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 ac_check_lib_save_LIBS=$LIBS
2264 LIBS="-lresolv $LIBS"
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2269 /* Override any gcc2 internal prototype to avoid an error. */
2273 /* We use char because int might match the return type of a gcc2
2274 builtin and then its argument prototype would still apply. */
2275 char gethostbyname ();
2284 rm -f conftest.$ac_objext conftest$ac_exeext
2285 if { (eval echo "$as_me:2285: \"$ac_link\"") >&5
2286 (eval $ac_link) 2>&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -s conftest$ac_exeext'
2291 { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 ac_cv_lib_resolv_gethostbyname=yes
2298 echo "$as_me: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 ac_cv_lib_resolv_gethostbyname=no
2302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2303 LIBS=$ac_check_lib_save_LIBS
2305 echo "$as_me:2305: result: $ac_cv_lib_resolv_gethostbyname" >&5
2306 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2307 if test $ac_cv_lib_resolv_gethostbyname = yes; then
2308 cat >>confdefs.h <<EOF
2309 #define HAVE_LIBRESOLV 1
2312 LIBS="-lresolv $LIBS"
2324 echo "$as_me:2324: checking for socket" >&5
2325 echo $ECHO_N "checking for socket... $ECHO_C" >&6
2326 if test "${ac_cv_func_socket+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line 2330 "configure"
2331 #include "confdefs.h"
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char socket (); below. */
2335 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined (__stub_socket) || defined (__stub___socket)
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { (eval echo "$as_me:2361: \"$ac_link\"") >&5
2362 (eval $ac_link) 2>&5
2364 echo "$as_me:2364: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -s conftest$ac_exeext'
2367 { (eval echo "$as_me:2367: \"$ac_try\"") >&5
2370 echo "$as_me:2370: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_cv_func_socket=yes
2374 echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 ac_cv_func_socket=no
2378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2380 echo "$as_me:2380: result: $ac_cv_func_socket" >&5
2381 echo "${ECHO_T}$ac_cv_func_socket" >&6
2382 if test $ac_cv_func_socket = yes; then
2386 echo "$as_me:2386: checking for socket in -lsocket" >&5
2387 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2388 if test "${ac_cv_lib_socket_socket+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 ac_check_lib_save_LIBS=$LIBS
2392 LIBS="-lsocket $LIBS"
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line 2394 "configure"
2395 #include "confdefs.h"
2397 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { (eval echo "$as_me:2413: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest$ac_exeext'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 ac_cv_lib_socket_socket=yes
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 ac_cv_lib_socket_socket=no
2430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2431 LIBS=$ac_check_lib_save_LIBS
2433 echo "$as_me:2433: result: $ac_cv_lib_socket_socket" >&5
2434 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2435 if test $ac_cv_lib_socket_socket = yes; then
2436 cat >>confdefs.h <<EOF
2437 #define HAVE_LIBSOCKET 1
2440 LIBS="-lsocket $LIBS"
2443 echo "$as_me:2443: checking for socket in -lsocket" >&5
2444 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2445 if test "${ac_cv_lib_socket_socket+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 ac_check_lib_save_LIBS=$LIBS
2449 LIBS="-lsocket -lnsl $LIBS"
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line 2451 "configure"
2452 #include "confdefs.h"
2454 /* Override any gcc2 internal prototype to avoid an error. */
2458 /* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { (eval echo "$as_me:2470: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>&5
2473 echo "$as_me:2473: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -s conftest$ac_exeext'
2476 { (eval echo "$as_me:2476: \"$ac_try\"") >&5
2479 echo "$as_me:2479: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 ac_cv_lib_socket_socket=yes
2483 echo "$as_me: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 ac_cv_lib_socket_socket=no
2487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2488 LIBS=$ac_check_lib_save_LIBS
2490 echo "$as_me:2490: result: $ac_cv_lib_socket_socket" >&5
2491 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2492 if test $ac_cv_lib_socket_socket = yes; then
2493 LIBS="-lsocket -lnsl $LIBS"
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 echo "$as_me:2505: checking how to run the C preprocessor" >&5
2506 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2507 # On Suns, sometimes $CPP names a directory.
2508 if test -n "$CPP" && test -d "$CPP"; then
2511 if test -z "$CPP"; then
2512 if test "${ac_cv_prog_CPP+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 # Double quotes because CPP needs to be expanded
2516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2519 for ac_c_preproc_warn_flag in '' yes
2521 # Use a header file that comes with gcc, so configuring glibc
2522 # with a fresh cross-compiler works.
2523 # On the NeXT, cc -E runs the code through the compiler's parser,
2524 # not just through cpp. "Syntax error" is here to catch this case.
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line 2526 "configure"
2527 #include "confdefs.h"
2531 if { (eval echo "$as_me:2531: \"$ac_cpp conftest.$ac_ext\"") >&5
2532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 egrep -v '^ *\+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } >/dev/null; then
2539 if test -s conftest.err; then
2540 ac_cpp_err=$ac_c_preproc_warn_flag
2547 if test -z "$ac_cpp_err"; then
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 # Broken: fails on valid input.
2555 rm -f conftest.err conftest.$ac_ext
2557 # OK, works on sane cases. Now check whether non-existent headers
2558 # can be detected and how.
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line 2560 "configure"
2561 #include "confdefs.h"
2562 #include <ac_nonexistent.h>
2564 if { (eval echo "$as_me:2564: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 egrep -v '^ *\+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2580 if test -z "$ac_cpp_err"; then
2581 # Broken: success on invalid input.
2584 echo "$as_me: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 # Passes both tests.
2590 rm -f conftest.err conftest.$ac_ext
2593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2594 rm -f conftest.err conftest.$ac_ext
2595 if $ac_preproc_ok; then
2607 echo "$as_me:2607: result: $CPP" >&5
2608 echo "${ECHO_T}$CPP" >&6
2610 for ac_c_preproc_warn_flag in '' yes
2612 # Use a header file that comes with gcc, so configuring glibc
2613 # with a fresh cross-compiler works.
2614 # On the NeXT, cc -E runs the code through the compiler's parser,
2615 # not just through cpp. "Syntax error" is here to catch this case.
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line 2617 "configure"
2618 #include "confdefs.h"
2622 if { (eval echo "$as_me:2622: \"$ac_cpp conftest.$ac_ext\"") >&5
2623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2625 egrep -v '^ *\+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:2628: \$? = $ac_status" >&5
2629 (exit $ac_status); } >/dev/null; then
2630 if test -s conftest.err; then
2631 ac_cpp_err=$ac_c_preproc_warn_flag
2638 if test -z "$ac_cpp_err"; then
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 # Broken: fails on valid input.
2646 rm -f conftest.err conftest.$ac_ext
2648 # OK, works on sane cases. Now check whether non-existent headers
2649 # can be detected and how.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2653 #include <ac_nonexistent.h>
2655 if { (eval echo "$as_me:2655: \"$ac_cpp conftest.$ac_ext\"") >&5
2656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2658 egrep -v '^ *\+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); } >/dev/null; then
2663 if test -s conftest.err; then
2664 ac_cpp_err=$ac_c_preproc_warn_flag
2671 if test -z "$ac_cpp_err"; then
2672 # Broken: success on invalid input.
2675 echo "$as_me: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 # Passes both tests.
2681 rm -f conftest.err conftest.$ac_ext
2684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2685 rm -f conftest.err conftest.$ac_ext
2686 if $ac_preproc_ok; then
2689 { { echo "$as_me:2689: error: C preprocessor \"$CPP\" fails sanity check" >&5
2690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2691 { (exit 1); exit 1; }; }
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 echo "$as_me:2700: checking for ANSI C header files" >&5
2701 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2702 if test "${ac_cv_header_stdc+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line 2706 "configure"
2707 #include "confdefs.h"
2714 if { (eval echo "$as_me:2714: \"$ac_cpp conftest.$ac_ext\"") >&5
2715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717 egrep -v '^ *\+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:2720: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev/null; then
2722 if test -s conftest.err; then
2723 ac_cpp_err=$ac_c_preproc_warn_flag
2730 if test -z "$ac_cpp_err"; then
2731 ac_cv_header_stdc=yes
2733 echo "$as_me: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 ac_cv_header_stdc=no
2737 rm -f conftest.err conftest.$ac_ext
2739 if test $ac_cv_header_stdc = yes; then
2740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line 2742 "configure"
2743 #include "confdefs.h"
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748 egrep "memchr" >/dev/null 2>&1; then
2751 ac_cv_header_stdc=no
2757 if test $ac_cv_header_stdc = yes; then
2758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766 egrep "free" >/dev/null 2>&1; then
2769 ac_cv_header_stdc=no
2775 if test $ac_cv_header_stdc = yes; then
2776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2777 if test "$cross_compiling" = yes; then
2780 cat >conftest.$ac_ext <<_ACEOF
2781 #line 2781 "configure"
2782 #include "confdefs.h"
2784 #if ((' ' & 0x0FF) == 0x020)
2785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2788 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2789 || ('j' <= (c) && (c) <= 'r') \
2790 || ('s' <= (c) && (c) <= 'z'))
2791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2799 for (i = 0; i < 256; i++)
2800 if (XOR (islower (i), ISLOWER (i))
2801 || toupper (i) != TOUPPER (i))
2806 rm -f conftest$ac_exeext
2807 if { (eval echo "$as_me:2807: \"$ac_link\"") >&5
2808 (eval $ac_link) 2>&5
2810 echo "$as_me:2810: \$? = $ac_status" >&5
2811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2812 { (eval echo "$as_me:2812: \"$ac_try\"") >&5
2815 echo "$as_me:2815: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 echo "$as_me: program exited with status $ac_status" >&5
2820 echo "$as_me: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2822 ac_cv_header_stdc=no
2824 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2828 echo "$as_me:2828: result: $ac_cv_header_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2830 if test $ac_cv_header_stdc = yes; then
2832 cat >>confdefs.h <<\EOF
2833 #define STDC_HEADERS 1
2838 for ac_header in poll.h sys/devpoll.h sys/event.h
2840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2841 echo "$as_me:2841: checking for $ac_header" >&5
2842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2849 #include <$ac_header>
2851 if { (eval echo "$as_me:2851: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 egrep -v '^ *\+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2868 eval "$as_ac_Header=yes"
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 eval "$as_ac_Header=no"
2874 rm -f conftest.err conftest.$ac_ext
2876 echo "$as_me:2876: result: `eval echo '${'$as_ac_Header'}'`" >&5
2877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2879 cat >>confdefs.h <<EOF
2880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2886 echo "$as_me:2886: checking whether byte ordering is bigendian" >&5
2887 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2888 if test "${ac_cv_c_bigendian+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 ac_cv_c_bigendian=unknown
2892 # See if sys/param.h defines the BYTE_ORDER macro.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2896 #include <sys/types.h>
2897 #include <sys/param.h>
2902 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:2911: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:2917: \"$ac_try\"") >&5
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 # It does; now see whether it defined to BIG_ENDIAN or not.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line 2924 "configure"
2925 #include "confdefs.h"
2926 #include <sys/types.h>
2927 #include <sys/param.h>
2932 #if BYTE_ORDER != BIG_ENDIAN
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:2941: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>&5
2944 echo "$as_me:2944: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:2947: \"$ac_try\"") >&5
2950 echo "$as_me:2950: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_cv_c_bigendian=yes
2954 echo "$as_me: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 ac_cv_c_bigendian=no
2958 rm -f conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 rm -f conftest.$ac_objext conftest.$ac_ext
2964 if test $ac_cv_c_bigendian = unknown; then
2965 if test "$cross_compiling" = yes; then
2966 { { echo "$as_me:2966: error: cannot run test program while cross compiling" >&5
2967 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2968 { (exit 1); exit 1; }; }
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line 2971 "configure"
2972 #include "confdefs.h"
2976 /* Are we little or big endian? From Harbison&Steele. */
2980 char c[sizeof (long)];
2983 exit (u.c[sizeof (long) - 1] == 1);
2986 rm -f conftest$ac_exeext
2987 if { (eval echo "$as_me:2987: \"$ac_link\"") >&5
2988 (eval $ac_link) 2>&5
2990 echo "$as_me:2990: \$? = $ac_status" >&5
2991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2992 { (eval echo "$as_me:2992: \"$ac_try\"") >&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 ac_cv_c_bigendian=no
2999 echo "$as_me: program exited with status $ac_status" >&5
3000 echo "$as_me: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3002 ac_cv_c_bigendian=yes
3004 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3008 echo "$as_me:3008: result: $ac_cv_c_bigendian" >&5
3009 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3010 if test $ac_cv_c_bigendian = yes; then
3012 cat >>confdefs.h <<\EOF
3013 #define WORDS_BIGENDIAN 1
3018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3021 inttypes.h stdint.h unistd.h
3023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3024 echo "$as_me:3024: checking for $ac_header" >&5
3025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 $ac_includes_default
3033 #include <$ac_header>
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:3036: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:3042: \"$ac_try\"") >&5
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 eval "$as_ac_Header=yes"
3049 echo "$as_me: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 eval "$as_ac_Header=no"
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3055 echo "$as_me:3055: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058 cat >>confdefs.h <<EOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3065 echo "$as_me:3065: checking for size_t" >&5
3066 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3067 if test "${ac_cv_type_size_t+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line 3071 "configure"
3072 #include "confdefs.h"
3073 $ac_includes_default
3079 if (sizeof (size_t))
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:3086: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>&5
3089 echo "$as_me:3089: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_type_size_t=yes
3099 echo "$as_me: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3101 ac_cv_type_size_t=no
3103 rm -f conftest.$ac_objext conftest.$ac_ext
3105 echo "$as_me:3105: result: $ac_cv_type_size_t" >&5
3106 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3107 if test $ac_cv_type_size_t = yes; then
3111 cat >>confdefs.h <<EOF
3112 #define size_t unsigned
3117 echo "$as_me:3117: checking whether time.h and sys/time.h may both be included" >&5
3118 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3119 if test "${ac_cv_header_time+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 #include <sys/types.h>
3126 #include <sys/time.h>
3132 if ((struct tm *) 0)
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:3139: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3142 echo "$as_me:3142: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:3145: \"$ac_try\"") >&5
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_header_time=yes
3152 echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 ac_cv_header_time=no
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3158 echo "$as_me:3158: result: $ac_cv_header_time" >&5
3159 echo "${ECHO_T}$ac_cv_header_time" >&6
3160 if test $ac_cv_header_time = yes; then
3162 cat >>confdefs.h <<\EOF
3163 #define TIME_WITH_SYS_TIME 1
3168 echo "$as_me:3168: checking whether struct tm is in sys/time.h or time.h" >&5
3169 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3170 if test "${ac_cv_struct_tm+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3182 struct tm *tp; tp->tm_sec;
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:3188: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:3194: \"$ac_try\"") >&5
3197 echo "$as_me:3197: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_struct_tm=time.h
3201 echo "$as_me: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 ac_cv_struct_tm=sys/time.h
3205 rm -f conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:3207: result: $ac_cv_struct_tm" >&5
3208 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3209 if test $ac_cv_struct_tm = sys/time.h; then
3211 cat >>confdefs.h <<\EOF
3212 #define TM_IN_SYS_TIME 1
3217 echo "$as_me:3217: checking for uid_t in sys/types.h" >&5
3218 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3219 if test "${ac_cv_type_uid_t+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "uid_t" >/dev/null 2>&1; then
3230 ac_cv_type_uid_t=yes
3237 echo "$as_me:3237: result: $ac_cv_type_uid_t" >&5
3238 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3239 if test $ac_cv_type_uid_t = no; then
3241 cat >>confdefs.h <<\EOF
3245 cat >>confdefs.h <<\EOF
3251 echo "$as_me:3251: checking for short" >&5
3252 echo $ECHO_N "checking for short... $ECHO_C" >&6
3253 if test "${ac_cv_type_short+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line 3257 "configure"
3258 #include "confdefs.h"
3259 $ac_includes_default
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:3272: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:3278: \"$ac_try\"") >&5
3281 echo "$as_me:3281: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_type_short=yes
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3291 echo "$as_me:3291: result: $ac_cv_type_short" >&5
3292 echo "${ECHO_T}$ac_cv_type_short" >&6
3294 echo "$as_me:3294: checking size of short" >&5
3295 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3296 if test "${ac_cv_sizeof_short+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if test "$ac_cv_type_short" = yes; then
3300 if test "$cross_compiling" = yes; then
3301 # Depending upon the size, compute the lo and hi bounds.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line 3303 "configure"
3304 #include "confdefs.h"
3305 $ac_includes_default
3309 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:3315: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>&5
3318 echo "$as_me:3318: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:3321: \"$ac_try\"") >&5
3324 echo "$as_me:3324: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3328 cat >conftest.$ac_ext <<_ACEOF
3329 #line 3329 "configure"
3330 #include "confdefs.h"
3331 $ac_includes_default
3335 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:3341: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:3347: \"$ac_try\"") >&5
3350 echo "$as_me:3350: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_hi=$ac_mid; break
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3358 rm -f conftest.$ac_objext conftest.$ac_ext
3361 echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #line 3366 "configure"
3367 #include "confdefs.h"
3368 $ac_includes_default
3372 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:3378: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>&5
3381 echo "$as_me:3381: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:3384: \"$ac_try\"") >&5
3387 echo "$as_me:3387: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_lo=$ac_mid; break
3391 echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3398 rm -f conftest.$ac_objext conftest.$ac_ext
3399 # Binary search between lo and hi bounds.
3400 while test "x$ac_lo" != "x$ac_hi"; do
3401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line 3403 "configure"
3404 #include "confdefs.h"
3405 $ac_includes_default
3409 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:3415: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
3418 echo "$as_me:3418: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:3421: \"$ac_try\"") >&5
3424 echo "$as_me:3424: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3428 echo "$as_me: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 ac_lo=`expr $ac_mid + 1`
3432 rm -f conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_sizeof_short=$ac_lo
3436 if test "$cross_compiling" = yes; then
3437 { { echo "$as_me:3437: error: cannot run test program while cross compiling" >&5
3438 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3439 { (exit 1); exit 1; }; }
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 $ac_includes_default
3448 FILE *f = fopen ("conftest.val", "w");
3451 fprintf (f, "%d", (sizeof (short)));
3457 rm -f conftest$ac_exeext
3458 if { (eval echo "$as_me:3458: \"$ac_link\"") >&5
3459 (eval $ac_link) 2>&5
3461 echo "$as_me:3461: \$? = $ac_status" >&5
3462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3463 { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3466 echo "$as_me:3466: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_sizeof_short=`cat conftest.val`
3470 echo "$as_me: program exited with status $ac_status" >&5
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_sizeof_short=0
3482 echo "$as_me:3482: result: $ac_cv_sizeof_short" >&5
3483 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3484 cat >>confdefs.h <<EOF
3485 #define SIZEOF_SHORT $ac_cv_sizeof_short
3488 echo "$as_me:3488: checking for int" >&5
3489 echo $ECHO_N "checking for int... $ECHO_C" >&6
3490 if test "${ac_cv_type_int+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 $ac_includes_default
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:3509: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>&5
3512 echo "$as_me:3512: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:3515: \"$ac_try\"") >&5
3518 echo "$as_me:3518: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3522 echo "$as_me: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3526 rm -f conftest.$ac_objext conftest.$ac_ext
3528 echo "$as_me:3528: result: $ac_cv_type_int" >&5
3529 echo "${ECHO_T}$ac_cv_type_int" >&6
3531 echo "$as_me:3531: checking size of int" >&5
3532 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3533 if test "${ac_cv_sizeof_int+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 if test "$ac_cv_type_int" = yes; then
3537 if test "$cross_compiling" = yes; then
3538 # Depending upon the size, compute the lo and hi bounds.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line 3540 "configure"
3541 #include "confdefs.h"
3542 $ac_includes_default
3546 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:3552: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>&5
3555 echo "$as_me:3555: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:3558: \"$ac_try\"") >&5
3561 echo "$as_me:3561: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3565 cat >conftest.$ac_ext <<_ACEOF
3566 #line 3566 "configure"
3567 #include "confdefs.h"
3568 $ac_includes_default
3572 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:3578: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>&5
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:3584: \"$ac_try\"") >&5
3587 echo "$as_me:3587: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_hi=$ac_mid; break
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3595 rm -f conftest.$ac_objext conftest.$ac_ext
3598 echo "$as_me: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3602 cat >conftest.$ac_ext <<_ACEOF
3603 #line 3603 "configure"
3604 #include "confdefs.h"
3605 $ac_includes_default
3609 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:3621: \"$ac_try\"") >&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_lo=$ac_mid; break
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3636 # Binary search between lo and hi bounds.
3637 while test "x$ac_lo" != "x$ac_hi"; do
3638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line 3640 "configure"
3641 #include "confdefs.h"
3642 $ac_includes_default
3646 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:3652: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>&5
3655 echo "$as_me:3655: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:3658: \"$ac_try\"") >&5
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 ac_lo=`expr $ac_mid + 1`
3669 rm -f conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_sizeof_int=$ac_lo
3673 if test "$cross_compiling" = yes; then
3674 { { echo "$as_me:3674: error: cannot run test program while cross compiling" >&5
3675 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3676 { (exit 1); exit 1; }; }
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line 3679 "configure"
3680 #include "confdefs.h"
3681 $ac_includes_default
3685 FILE *f = fopen ("conftest.val", "w");
3688 fprintf (f, "%d", (sizeof (int)));
3694 rm -f conftest$ac_exeext
3695 if { (eval echo "$as_me:3695: \"$ac_link\"") >&5
3696 (eval $ac_link) 2>&5
3698 echo "$as_me:3698: \$? = $ac_status" >&5
3699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3700 { (eval echo "$as_me:3700: \"$ac_try\"") >&5
3703 echo "$as_me:3703: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 ac_cv_sizeof_int=`cat conftest.val`
3707 echo "$as_me: program exited with status $ac_status" >&5
3708 echo "$as_me: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 echo "$as_me:3719: result: $ac_cv_sizeof_int" >&5
3720 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3721 cat >>confdefs.h <<EOF
3722 #define SIZEOF_INT $ac_cv_sizeof_int
3725 echo "$as_me:3725: checking for long" >&5
3726 echo $ECHO_N "checking for long... $ECHO_C" >&6
3727 if test "${ac_cv_type_long+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
3733 $ac_includes_default
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:3746: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>&5
3749 echo "$as_me:3749: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3755 echo "$as_me:3755: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3765 echo "$as_me:3765: result: $ac_cv_type_long" >&5
3766 echo "${ECHO_T}$ac_cv_type_long" >&6
3768 echo "$as_me:3768: checking size of long" >&5
3769 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3770 if test "${ac_cv_sizeof_long+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test "$ac_cv_type_long" = yes; then
3774 if test "$cross_compiling" = yes; then
3775 # Depending upon the size, compute the lo and hi bounds.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3779 $ac_includes_default
3783 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:3789: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line 3803 "configure"
3804 #include "confdefs.h"
3805 $ac_includes_default
3809 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:3815: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>&5
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_hi=$ac_mid; break
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3832 rm -f conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 $ac_includes_default
3846 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3851 rm -f conftest.$ac_objext
3852 if { (eval echo "$as_me:3852: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3855 echo "$as_me:3855: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:3858: \"$ac_try\"") >&5
3861 echo "$as_me:3861: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_lo=$ac_mid; break
3865 echo "$as_me: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3869 rm -f conftest.$ac_objext conftest.$ac_ext
3872 rm -f conftest.$ac_objext conftest.$ac_ext
3873 # Binary search between lo and hi bounds.
3874 while test "x$ac_lo" != "x$ac_hi"; do
3875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3876 cat >conftest.$ac_ext <<_ACEOF
3877 #line 3877 "configure"
3878 #include "confdefs.h"
3879 $ac_includes_default
3883 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:3889: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:3895: \"$ac_try\"") >&5
3898 echo "$as_me:3898: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3902 echo "$as_me: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 ac_lo=`expr $ac_mid + 1`
3906 rm -f conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_sizeof_long=$ac_lo
3910 if test "$cross_compiling" = yes; then
3911 { { echo "$as_me:3911: error: cannot run test program while cross compiling" >&5
3912 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3913 { (exit 1); exit 1; }; }
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line 3916 "configure"
3917 #include "confdefs.h"
3918 $ac_includes_default
3922 FILE *f = fopen ("conftest.val", "w");
3925 fprintf (f, "%d", (sizeof (long)));
3931 rm -f conftest$ac_exeext
3932 if { (eval echo "$as_me:3932: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3937 { (eval echo "$as_me:3937: \"$ac_try\"") >&5
3940 echo "$as_me:3940: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_cv_sizeof_long=`cat conftest.val`
3944 echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3956 echo "$as_me:3956: result: $ac_cv_sizeof_long" >&5
3957 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3958 cat >>confdefs.h <<EOF
3959 #define SIZEOF_LONG $ac_cv_sizeof_long
3962 echo "$as_me:3962: checking for void *" >&5
3963 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3964 if test "${ac_cv_type_void_p+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 cat >conftest.$ac_ext <<_ACEOF
3968 #line 3968 "configure"
3969 #include "confdefs.h"
3970 $ac_includes_default
3976 if (sizeof (void *))
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:3983: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3986 echo "$as_me:3986: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:3989: \"$ac_try\"") >&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_type_void_p=yes
3996 echo "$as_me: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 ac_cv_type_void_p=no
4000 rm -f conftest.$ac_objext conftest.$ac_ext
4002 echo "$as_me:4002: result: $ac_cv_type_void_p" >&5
4003 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4005 echo "$as_me:4005: checking size of void *" >&5
4006 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4007 if test "${ac_cv_sizeof_void_p+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test "$ac_cv_type_void_p" = yes; then
4011 if test "$cross_compiling" = yes; then
4012 # Depending upon the size, compute the lo and hi bounds.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line 4014 "configure"
4015 #include "confdefs.h"
4016 $ac_includes_default
4020 int _array_ [1 - 2 * !((sizeof (void *)) >= 0)]
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:4026: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4029 echo "$as_me:4029: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:4032: \"$ac_try\"") >&5
4035 echo "$as_me:4035: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line 4040 "configure"
4041 #include "confdefs.h"
4042 $ac_includes_default
4046 int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:4052: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (eval echo "$as_me:4058: \"$ac_try\"") >&5
4061 echo "$as_me:4061: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_hi=$ac_mid; break
4065 echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4072 echo "$as_me: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line 4077 "configure"
4078 #include "confdefs.h"
4079 $ac_includes_default
4083 int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)]
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:4089: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:4092: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:4095: \"$ac_try\"") >&5
4098 echo "$as_me:4098: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_lo=$ac_mid; break
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4110 # Binary search between lo and hi bounds.
4111 while test "x$ac_lo" != "x$ac_hi"; do
4112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line 4114 "configure"
4115 #include "confdefs.h"
4116 $ac_includes_default
4120 int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:4126: \"$ac_compile\"") >&5
4127 (eval $ac_compile) 2>&5
4129 echo "$as_me:4129: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:4132: \"$ac_try\"") >&5
4135 echo "$as_me:4135: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4139 echo "$as_me: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4141 ac_lo=`expr $ac_mid + 1`
4143 rm -f conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_sizeof_void_p=$ac_lo
4147 if test "$cross_compiling" = yes; then
4148 { { echo "$as_me:4148: error: cannot run test program while cross compiling" >&5
4149 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4150 { (exit 1); exit 1; }; }
4152 cat >conftest.$ac_ext <<_ACEOF
4153 #line 4153 "configure"
4154 #include "confdefs.h"
4155 $ac_includes_default
4159 FILE *f = fopen ("conftest.val", "w");
4162 fprintf (f, "%d", (sizeof (void *)));
4168 rm -f conftest$ac_exeext
4169 if { (eval echo "$as_me:4169: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>&5
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4174 { (eval echo "$as_me:4174: \"$ac_try\"") >&5
4177 echo "$as_me:4177: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_sizeof_void_p=`cat conftest.val`
4181 echo "$as_me: program exited with status $ac_status" >&5
4182 echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190 ac_cv_sizeof_void_p=0
4193 echo "$as_me:4193: result: $ac_cv_sizeof_void_p" >&5
4194 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4195 cat >>confdefs.h <<EOF
4196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4199 if test "$ac_cv_sizeof_int" = 2 ; then
4200 echo "$as_me:4200: checking for int16_t" >&5
4201 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
4202 if test "${ac_cv_type_int16_t+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line 4206 "configure"
4207 #include "confdefs.h"
4208 $ac_includes_default
4214 if (sizeof (int16_t))
4220 rm -f conftest.$ac_objext
4221 if { (eval echo "$as_me:4221: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:4227: \"$ac_try\"") >&5
4230 echo "$as_me:4230: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 ac_cv_type_int16_t=yes
4234 echo "$as_me: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4236 ac_cv_type_int16_t=no
4238 rm -f conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me:4240: result: $ac_cv_type_int16_t" >&5
4241 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
4242 if test $ac_cv_type_int16_t = yes; then
4246 cat >>confdefs.h <<EOF
4252 echo "$as_me:4252: checking for u_int16_t" >&5
4253 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4254 if test "${ac_cv_type_u_int16_t+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line 4258 "configure"
4259 #include "confdefs.h"
4260 $ac_includes_default
4264 if ((u_int16_t *) 0)
4266 if (sizeof (u_int16_t))
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:4273: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>&5
4276 echo "$as_me:4276: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:4279: \"$ac_try\"") >&5
4282 echo "$as_me:4282: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_type_u_int16_t=yes
4286 echo "$as_me: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 ac_cv_type_u_int16_t=no
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me:4292: result: $ac_cv_type_u_int16_t" >&5
4293 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4294 if test $ac_cv_type_u_int16_t = yes; then
4298 cat >>confdefs.h <<EOF
4299 #define u_int16_t unsigned int
4304 elif test "$ac_cv_sizeof_short" = 2 ; then
4305 echo "$as_me:4305: checking for int16_t" >&5
4306 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
4307 if test "${ac_cv_type_int16_t+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat >conftest.$ac_ext <<_ACEOF
4311 #line 4311 "configure"
4312 #include "confdefs.h"
4313 $ac_includes_default
4319 if (sizeof (int16_t))
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:4326: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:4332: \"$ac_try\"") >&5
4335 echo "$as_me:4335: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_type_int16_t=yes
4339 echo "$as_me: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4341 ac_cv_type_int16_t=no
4343 rm -f conftest.$ac_objext conftest.$ac_ext
4345 echo "$as_me:4345: result: $ac_cv_type_int16_t" >&5
4346 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
4347 if test $ac_cv_type_int16_t = yes; then
4351 cat >>confdefs.h <<EOF
4352 #define int16_t short
4357 echo "$as_me:4357: checking for u_int16_t" >&5
4358 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4359 if test "${ac_cv_type_u_int16_t+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line 4363 "configure"
4364 #include "confdefs.h"
4365 $ac_includes_default
4369 if ((u_int16_t *) 0)
4371 if (sizeof (u_int16_t))
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:4378: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4381 echo "$as_me:4381: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:4384: \"$ac_try\"") >&5
4387 echo "$as_me:4387: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 ac_cv_type_u_int16_t=yes
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 ac_cv_type_u_int16_t=no
4395 rm -f conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me:4397: result: $ac_cv_type_u_int16_t" >&5
4398 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4399 if test $ac_cv_type_u_int16_t = yes; then
4403 cat >>confdefs.h <<EOF
4404 #define u_int16_t unsigned short
4410 { { echo "$as_me:4410: error: Cannot find a type with size of 16 bits" >&5
4411 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
4412 { (exit 1); exit 1; }; }
4414 if test "$ac_cv_sizeof_int" = 4 ; then
4415 echo "$as_me:4415: checking for int32_t" >&5
4416 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4417 if test "${ac_cv_type_int32_t+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 cat >conftest.$ac_ext <<_ACEOF
4421 #line 4421 "configure"
4422 #include "confdefs.h"
4423 $ac_includes_default
4429 if (sizeof (int32_t))
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:4436: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4439 echo "$as_me:4439: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:4442: \"$ac_try\"") >&5
4445 echo "$as_me:4445: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_type_int32_t=yes
4449 echo "$as_me: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 ac_cv_type_int32_t=no
4453 rm -f conftest.$ac_objext conftest.$ac_ext
4455 echo "$as_me:4455: result: $ac_cv_type_int32_t" >&5
4456 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4457 if test $ac_cv_type_int32_t = yes; then
4461 cat >>confdefs.h <<EOF
4467 echo "$as_me:4467: checking for u_int32_t" >&5
4468 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4469 if test "${ac_cv_type_u_int32_t+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 #line 4473 "configure"
4474 #include "confdefs.h"
4475 $ac_includes_default
4479 if ((u_int32_t *) 0)
4481 if (sizeof (u_int32_t))
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:4488: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4491 echo "$as_me:4491: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:4494: \"$ac_try\"") >&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_type_u_int32_t=yes
4501 echo "$as_me: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 ac_cv_type_u_int32_t=no
4505 rm -f conftest.$ac_objext conftest.$ac_ext
4507 echo "$as_me:4507: result: $ac_cv_type_u_int32_t" >&5
4508 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4509 if test $ac_cv_type_u_int32_t = yes; then
4513 cat >>confdefs.h <<EOF
4514 #define u_int32_t unsigned int
4519 elif test "$ac_cv_sizeof_short" = 4 ; then
4520 echo "$as_me:4520: checking for int32_t" >&5
4521 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4522 if test "${ac_cv_type_int32_t+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4528 $ac_includes_default
4534 if (sizeof (int32_t))
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_type_int32_t=yes
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 ac_cv_type_int32_t=no
4558 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:4560: result: $ac_cv_type_int32_t" >&5
4561 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4562 if test $ac_cv_type_int32_t = yes; then
4566 cat >>confdefs.h <<EOF
4567 #define int32_t short
4572 echo "$as_me:4572: checking for u_int32_t" >&5
4573 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4574 if test "${ac_cv_type_u_int32_t+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line 4578 "configure"
4579 #include "confdefs.h"
4580 $ac_includes_default
4584 if ((u_int32_t *) 0)
4586 if (sizeof (u_int32_t))
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:4593: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:4599: \"$ac_try\"") >&5
4602 echo "$as_me:4602: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_type_u_int32_t=yes
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 ac_cv_type_u_int32_t=no
4610 rm -f conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me:4612: result: $ac_cv_type_u_int32_t" >&5
4613 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4614 if test $ac_cv_type_u_int32_t = yes; then
4618 cat >>confdefs.h <<EOF
4619 #define u_int32_t unsigned short
4624 elif test "$ac_cv_sizeof_long" = 4 ; then
4625 echo "$as_me:4625: checking for int32_t" >&5
4626 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
4627 if test "${ac_cv_type_int32_t+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line 4631 "configure"
4632 #include "confdefs.h"
4633 $ac_includes_default
4639 if (sizeof (int32_t))
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:4646: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:4649: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:4652: \"$ac_try\"") >&5
4655 echo "$as_me:4655: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_type_int32_t=yes
4659 echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 ac_cv_type_int32_t=no
4663 rm -f conftest.$ac_objext conftest.$ac_ext
4665 echo "$as_me:4665: result: $ac_cv_type_int32_t" >&5
4666 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
4667 if test $ac_cv_type_int32_t = yes; then
4671 cat >>confdefs.h <<EOF
4672 #define int32_t long
4677 echo "$as_me:4677: checking for u_int32_t" >&5
4678 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4679 if test "${ac_cv_type_u_int32_t+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #line 4683 "configure"
4684 #include "confdefs.h"
4685 $ac_includes_default
4689 if ((u_int32_t *) 0)
4691 if (sizeof (u_int32_t))
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:4698: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4701 echo "$as_me:4701: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4707 echo "$as_me:4707: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_type_u_int32_t=yes
4711 echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_cv_type_u_int32_t=no
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4717 echo "$as_me:4717: result: $ac_cv_type_u_int32_t" >&5
4718 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4719 if test $ac_cv_type_u_int32_t = yes; then
4723 cat >>confdefs.h <<EOF
4724 #define u_int32_t unsigned long
4730 { { echo "$as_me:4730: error: Cannot find a type with size of 32 bits" >&5
4731 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
4732 { (exit 1); exit 1; }; }
4735 for ac_func in kqueue setrlimit getrusage times
4737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:4738: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #line 4744 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func (); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:4775: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>&5
4778 echo "$as_me:4778: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:4781: \"$ac_try\"") >&5
4784 echo "$as_me:4784: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_var=yes"
4788 echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 eval "$as_ac_var=no"
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4794 echo "$as_me:4794: result: `eval echo '${'$as_ac_var'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4796 if test `eval echo '${'$as_ac_var'}'` = yes; then
4797 cat >>confdefs.h <<EOF
4798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4804 echo "$as_me:4804: checking for sys/wait.h that is POSIX.1 compatible" >&5
4805 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4806 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line 4810 "configure"
4811 #include "confdefs.h"
4812 #include <sys/types.h>
4813 #include <sys/wait.h>
4815 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4818 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4826 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:4832: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>&5
4835 echo "$as_me:4835: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:4838: \"$ac_try\"") >&5
4841 echo "$as_me:4841: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_cv_header_sys_wait_h=yes
4845 echo "$as_me: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 ac_cv_header_sys_wait_h=no
4849 rm -f conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:4851: result: $ac_cv_header_sys_wait_h" >&5
4852 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4853 if test $ac_cv_header_sys_wait_h = yes; then
4855 cat >>confdefs.h <<\EOF
4856 #define HAVE_SYS_WAIT_H 1
4861 for ac_header in unistd.h
4863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4864 echo "$as_me:4864: checking for $ac_header" >&5
4865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line 4870 "configure"
4871 #include "confdefs.h"
4872 #include <$ac_header>
4874 if { (eval echo "$as_me:4874: \"$ac_cpp conftest.$ac_ext\"") >&5
4875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877 egrep -v '^ *\+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:4880: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null; then
4882 if test -s conftest.err; then
4883 ac_cpp_err=$ac_c_preproc_warn_flag
4890 if test -z "$ac_cpp_err"; then
4891 eval "$as_ac_Header=yes"
4893 echo "$as_me: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 eval "$as_ac_Header=no"
4897 rm -f conftest.err conftest.$ac_ext
4899 echo "$as_me:4899: result: `eval echo '${'$as_ac_Header'}'`" >&5
4900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4902 cat >>confdefs.h <<EOF
4903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4909 echo "$as_me:4909: checking for restartable system calls" >&5
4910 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
4911 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 if test "$cross_compiling" = yes; then
4915 { { echo "$as_me:4915: error: cannot run test program while cross compiling" >&5
4916 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4917 { (exit 1); exit 1; }; }
4919 cat >conftest.$ac_ext <<_ACEOF
4920 #line 4920 "configure"
4921 #include "confdefs.h"
4922 /* Exit 0 (true) if wait returns something other than -1,
4923 i.e. the pid of the child, which means that wait was restarted
4924 after getting the signal. */
4926 #include <sys/types.h>
4929 # include <unistd.h>
4932 # include <sys/wait.h>
4935 /* Some platforms explicitly require an extern "C" signal handler
4938 extern "C" void ucatch (int dummy) { }
4940 void ucatch (dummy) int dummy; { }
4946 int i = fork (), status;
4951 kill (getppid (), SIGINT);
4956 signal (SIGINT, ucatch);
4962 exit (status == -1);
4965 rm -f conftest$ac_exeext
4966 if { (eval echo "$as_me:4966: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971 { (eval echo "$as_me:4971: \"$ac_try\"") >&5
4974 echo "$as_me:4974: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_sys_restartable_syscalls=yes
4978 echo "$as_me: program exited with status $ac_status" >&5
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_sys_restartable_syscalls=no
4983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4986 echo "$as_me:4986: result: $ac_cv_sys_restartable_syscalls" >&5
4987 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
4988 if test $ac_cv_sys_restartable_syscalls = yes; then
4990 cat >>confdefs.h <<\EOF
4991 #define HAVE_RESTARTABLE_SYSCALLS 1
4996 echo "$as_me:4996: checking for donuts" >&5
4997 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
4998 echo "$as_me:4998: result: yes" >&5
4999 echo "${ECHO_T}yes" >&6
5001 for ac_prog in mawk gawk nawk awk
5003 # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 echo "$as_me:5005: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_AWK+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$AWK"; then
5011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5013 ac_save_IFS=$IFS; IFS=$ac_path_separator
5015 for ac_dir in $ac_dummy; do
5017 test -z "$ac_dir" && ac_dir=.
5018 $as_executable_p "$ac_dir/$ac_word" || continue
5019 ac_cv_prog_AWK="$ac_prog"
5020 echo "$as_me:5020: found $ac_dir/$ac_word" >&5
5027 if test -n "$AWK"; then
5028 echo "$as_me:5028: result: $AWK" >&5
5029 echo "${ECHO_T}$AWK" >&6
5031 echo "$as_me:5031: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5035 test -n "$AWK" && break
5038 echo "$as_me:5038: checking whether ${MAKE-make} sets \${MAKE}" >&5
5039 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5040 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5041 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 cat >conftest.make <<\EOF
5046 @echo 'ac_maketemp="${MAKE}"'
5048 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5049 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5050 if test -n "$ac_maketemp"; then
5051 eval ac_cv_prog_make_${ac_make}_set=yes
5053 eval ac_cv_prog_make_${ac_make}_set=no
5057 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5058 echo "$as_me:5058: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6
5062 echo "$as_me:5062: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5064 SET_MAKE="MAKE=${MAKE-make}"
5067 # Find a good install program. We prefer a C program (faster),
5068 # so one script is as good as another. But avoid the broken or
5069 # incompatible versions:
5070 # SysV /etc/install, /usr/sbin/install
5071 # SunOS /usr/etc/install
5072 # IRIX /sbin/install
5074 # AmigaOS /C/install, which installs bootblocks on floppy discs
5075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5078 # ./install, which can be erroneously created by make from ./install.sh.
5079 echo "$as_me:5079: checking for a BSD compatible install" >&5
5080 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5081 if test -z "$INSTALL"; then
5082 if test "${ac_cv_path_install+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_save_IFS=$IFS; IFS=$ac_path_separator
5086 for ac_dir in $PATH; do
5088 # Account for people who put trailing slashes in PATH elements.
5090 / | ./ | .// | /cC/* \
5091 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5094 # OSF1 and SCO ODT 3.0 have their own names for install.
5095 # Don't use installbsd from OSF since it installs stuff as root
5097 for ac_prog in ginstall scoinst install; do
5098 if $as_executable_p "$ac_dir/$ac_prog"; then
5099 if test $ac_prog = install &&
5100 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5101 # AIX install. It has an incompatible calling convention.
5103 elif test $ac_prog = install &&
5104 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5105 # program-specific install script used by HP pwplus--don't use.
5108 ac_cv_path_install="$ac_dir/$ac_prog -c"
5118 if test "${ac_cv_path_install+set}" = set; then
5119 INSTALL=$ac_cv_path_install
5121 # As a last resort, use the slow shell script. We don't cache a
5122 # path for INSTALL within a source directory, because that will
5123 # break other packages using the cache if that directory is
5124 # removed, or if the path is relative.
5125 INSTALL=$ac_install_sh
5128 echo "$as_me:5128: result: $INSTALL" >&5
5129 echo "${ECHO_T}$INSTALL" >&6
5131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5132 # It thinks the first close brace ends the variable substitution.
5133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5139 echo "$as_me:5139: checking whether ln -s works" >&5
5140 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5142 if test "$LN_S" = "ln -s"; then
5143 echo "$as_me:5143: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5146 echo "$as_me:5146: result: no, using $LN_S" >&5
5147 echo "${ECHO_T}no, using $LN_S" >&6
5152 # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 echo "$as_me:5154: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_path_RMPROG+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
5164 ac_save_IFS=$IFS; IFS=$ac_path_separator
5166 for ac_dir in $ac_dummy; do
5168 test -z "$ac_dir" && ac_dir=.
5169 if $as_executable_p "$ac_dir/$ac_word"; then
5170 ac_cv_path_RMPROG="$ac_dir/$ac_word"
5171 echo "$as_me:5171: found $ac_dir/$ac_word" >&5
5179 RMPROG=$ac_cv_path_RMPROG
5181 if test -n "$RMPROG"; then
5182 echo "$as_me:5182: result: $RMPROG" >&5
5183 echo "${ECHO_T}$RMPROG" >&6
5185 echo "$as_me:5185: result: no" >&5
5186 echo "${ECHO_T}no" >&6
5189 test -n "$RMPROG" && break
5191 test -n "$RMPROG" || RMPROG="/bin/rm"
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 echo "$as_me:5197: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_path_SHPROG+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
5207 ac_save_IFS=$IFS; IFS=$ac_path_separator
5209 for ac_dir in $ac_dummy; do
5211 test -z "$ac_dir" && ac_dir=.
5212 if $as_executable_p "$ac_dir/$ac_word"; then
5213 ac_cv_path_SHPROG="$ac_dir/$ac_word"
5214 echo "$as_me:5214: found $ac_dir/$ac_word" >&5
5222 SHPROG=$ac_cv_path_SHPROG
5224 if test -n "$SHPROG"; then
5225 echo "$as_me:5225: result: $SHPROG" >&5
5226 echo "${ECHO_T}$SHPROG" >&6
5228 echo "$as_me:5228: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 test -n "$SHPROG" && break
5234 test -n "$SHPROG" || SHPROG="/bin/sh"
5236 echo "$as_me:5236: checking for posix non-blocking" >&5
5237 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
5238 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 if test "$cross_compiling" = yes; then
5242 { { echo "$as_me:5242: error: cannot run test program while cross compiling" >&5
5243 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5244 { (exit 1); exit 1; }; }
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line 5247 "configure"
5248 #include "confdefs.h"
5249 #include <sys/types.h>
5250 #include <sys/socket.h>
5252 #include <sys/ioctl.h>
5253 #include <sys/file.h>
5255 $ac_cv_type_signal alarmed() { exit(1); }
5260 size_t l = sizeof(x);
5261 int f = socket(AF_INET, SOCK_DGRAM, 0);
5262 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
5264 signal(SIGALRM, alarmed);
5266 recvfrom(f, b, 12, 0, &x, &l);
5273 rm -f conftest$ac_exeext
5274 if { (eval echo "$as_me:5274: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:5277: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279 { (eval echo "$as_me:5279: \"$ac_try\"") >&5
5282 echo "$as_me:5282: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 unet_cv_sys_nonblocking_posix=yes
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 unet_cv_sys_nonblocking_posix=no
5291 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me:5294: result: $unet_cv_sys_nonblocking_posix" >&5
5295 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
5296 if test $unet_cv_sys_nonblocking_posix = yes; then
5297 cat >>confdefs.h <<\EOF
5298 #define NBLOCK_POSIX 1
5302 echo "$as_me:5302: checking for bsd non-blocking" >&5
5303 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
5304 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test "$cross_compiling" = yes; then
5308 { { echo "$as_me:5308: error: cannot run test program while cross compiling" >&5
5309 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5310 { (exit 1); exit 1; }; }
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line 5313 "configure"
5314 #include "confdefs.h"
5315 #include <sys/types.h>
5316 #include <sys/socket.h>
5318 #include <sys/ioctl.h>
5319 #include <sys/file.h>
5321 $ac_cv_type_signal alarmed() { exit(1); }
5326 size_t l = sizeof(x);
5327 int f = socket(AF_INET, SOCK_DGRAM, 0);
5328 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
5330 signal(SIGALRM, alarmed);
5332 recvfrom(f, b, 12, 0, &x, &l);
5339 rm -f conftest$ac_exeext
5340 if { (eval echo "$as_me:5340: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>&5
5343 echo "$as_me:5343: \$? = $ac_status" >&5
5344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5345 { (eval echo "$as_me:5345: \"$ac_try\"") >&5
5348 echo "$as_me:5348: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 unet_cv_sys_nonblocking_bsd=yes
5352 echo "$as_me: program exited with status $ac_status" >&5
5353 echo "$as_me: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 unet_cv_sys_nonblocking_bsd=no
5357 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:5360: result: $unet_cv_sys_nonblocking_bsd" >&5
5361 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
5362 if test $unet_cv_sys_nonblocking_bsd = yes; then
5363 cat >>confdefs.h <<\EOF
5364 #define NBLOCK_BSD 1
5368 cat >>confdefs.h <<\EOF
5369 #define NBLOCK_SYSV 1
5374 echo "$as_me:5374: checking for posix signals" >&5
5375 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
5376 if test "${unet_cv_sys_signal_posix+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 cat >conftest.$ac_ext <<_ACEOF
5380 #line 5380 "configure"
5381 #include "confdefs.h"
5386 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:5392: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:5398: \"$ac_try\"") >&5
5401 echo "$as_me:5401: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 unet_cv_sys_signal_posix=yes
5405 echo "$as_me: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 unet_cv_sys_signal_posix=no
5409 rm -f conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:5411: result: $unet_cv_sys_signal_posix" >&5
5412 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
5413 if test $unet_cv_sys_signal_posix = yes; then
5414 cat >>confdefs.h <<\EOF
5415 #define POSIX_SIGNALS 1
5419 echo "$as_me:5419: checking for bsd reliable signals" >&5
5420 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
5421 if test "${unet_cv_sys_signal_bsd+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 if test "$cross_compiling" = yes; then
5425 { { echo "$as_me:5425: error: cannot run test program while cross compiling" >&5
5426 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5427 { (exit 1); exit 1; }; }
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5434 $ac_cv_type_signal handler()
5438 kill(getpid(), SIGTERM);
5443 signal(SIGTERM, handler);
5444 kill(getpid(), SIGTERM);
5448 rm -f conftest$ac_exeext
5449 if { (eval echo "$as_me:5449: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>&5
5452 echo "$as_me:5452: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (eval echo "$as_me:5454: \"$ac_try\"") >&5
5457 echo "$as_me:5457: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 unet_cv_sys_signal_bsd=yes
5461 echo "$as_me: program exited with status $ac_status" >&5
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 unet_cv_sys_signal_bsd=no
5466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:5469: result: $unet_cv_sys_signal_bsd" >&5
5470 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
5471 if test $unet_cv_sys_signal_bsd = yes; then
5472 cat >>confdefs.h <<\EOF
5473 #define BSD_RELIABLE_SIGNALS 1
5477 cat >>confdefs.h <<\EOF
5478 #define SYSV_UNRELIABLE_SIGNALS 1
5484 echo "$as_me:5484: checking if the compiler understands -pipe" >&5
5485 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
5486 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
5487 if test "$ac_cv_c_compiler_gnu" = no; then
5489 CFLAGS="$CFLAGS -pipe"
5490 cat >conftest.$ac_ext <<_ACEOF
5491 #line 5491 "configure"
5492 #include "confdefs.h"
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:5503: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:5506: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:5509: \"$ac_try\"") >&5
5512 echo "$as_me:5512: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 unet_cv_pipe_flags=yes
5516 echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:5522: result: $unet_cv_pipe_flags" >&5
5523 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
5524 if test "$unet_cv_pipe_flags" = yes ; then
5525 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
5526 if test "$x" = "" ; then
5527 CFLAGS="$CFLAGS -pipe"
5531 echo "$as_me:5531: checking for OS-dependent information" >&5
5532 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
5535 echo "$as_me:5535: result: Linux ($host) found." >&5
5536 echo "${ECHO_T}Linux ($host) found." >&6
5537 unet_poll_syscall=yes
5542 echo "$as_me:5542: result: Solaris ($host) found." >&5
5543 echo "${ECHO_T}Solaris ($host) found." >&6
5544 if test x"$ac_cv_header_poll_h" = xyes; then
5545 unet_poll_syscall=yes
5547 unet_poll_syscall=no
5549 OSDEP_C=os_solaris.c
5553 echo "$as_me:5553: result: Solaris ($host) found." >&5
5554 echo "${ECHO_T}Solaris ($host) found." >&6
5555 unet_poll_syscall=no
5556 OSDEP_C=os_solaris.c
5560 echo "$as_me:5560: result: OpenBSD ($host) found." >&5
5561 echo "${ECHO_T}OpenBSD ($host) found." >&6
5562 if test x"$ac_cv_header_poll_h" = xyes; then
5563 unet_poll_syscall=yes
5565 unet_poll_syscall=no
5567 OSDEP_C=os_openbsd.c
5571 echo "$as_me:5571: result: Generic BSD ($host) found." >&5
5572 echo "${ECHO_T}Generic BSD ($host) found." >&6
5573 if test x"$ac_cv_header_poll_h" = xyes; then
5574 unet_poll_syscall=yes
5576 unet_poll_syscall=no
5582 echo "$as_me:5582: result: Darwin (Mac OS X) ($host) found." >&5
5583 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
5584 unet_poll_syscall=no
5589 echo "$as_me:5589: result: Unknown system type $host found." >&5
5590 echo "${ECHO_T}Unknown system type $host found." >&6
5591 { echo "$as_me:5591: WARNING: Unknown OS type; using generic routines." >&5
5592 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
5593 unet_poll_syscall=no
5594 OSDEP_C=os_generic.c
5598 echo "$as_me:5598: checking whether to enable use of poll()" >&5
5599 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
5600 # Check whether --enable-poll or --disable-poll was given.
5601 if test "${enable_poll+set}" = set; then
5602 enableval="$enable_poll"
5603 unet_cv_enable_poll=$enable_poll
5605 if test "${unet_cv_enable_poll+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 unet_cv_enable_poll=$unet_poll_syscall
5613 # Force poll to be disabled if there is no poll.h
5614 if test x"$ac_cv_header_poll_h" != xyes; then
5615 unet_cv_enable_poll=no
5618 echo "$as_me:5618: result: $unet_cv_enable_poll" >&5
5619 echo "${ECHO_T}$unet_cv_enable_poll" >&6
5621 if test x"$unet_cv_enable_poll" = xyes; then
5623 cat >>confdefs.h <<\EOF
5627 ENGINE_C=engine_poll.c
5629 ENGINE_C=engine_select.c
5632 echo "$as_me:5632: checking whether to enable debug mode" >&5
5633 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
5634 # Check whether --enable-debug or --disable-debug was given.
5635 if test "${enable_debug+set}" = set; then
5636 enableval="$enable_debug"
5637 unet_cv_enable_debug=$enable_debug
5639 if test "${unet_cv_enable_debug+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 unet_cv_enable_debug=no
5646 echo "$as_me:5646: result: $unet_cv_enable_debug" >&5
5647 echo "${ECHO_T}$unet_cv_enable_debug" >&6
5649 if test x"$unet_cv_enable_debug" = xyes; then
5651 cat >>confdefs.h <<\EOF
5657 echo "$as_me:5657: checking whether to enable leak detection" >&5
5658 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
5660 # Check whether --with-leak-detect or --without-leak-detect was given.
5661 if test "${with_leak_detect+set}" = set; then
5662 withval="$with_leak_detect"
5663 unet_cv_with_leak_detect=$with_leak_detect
5665 if test "${unet_cv_with_leak_detect+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 unet_cv_with_leak_detect=no
5672 echo "$as_me:5672: result: $unet_cv_enable_leak_detect" >&5
5673 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
5675 if test x"$unet_cv_with_leak_detect" != xno; then
5677 CFLAGS="-DMDEBUG $CFLAGS"
5678 if test x"$unet_cv_with_leak_detect" != xyes; then
5679 LIBS="-L$unet_cv_with_leak_detect $LIBS"
5683 echo "$as_me:5683: checking whether to enable asserts" >&5
5684 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
5685 # Check whether --enable-asserts or --disable-asserts was given.
5686 if test "${enable_asserts+set}" = set; then
5687 enableval="$enable_asserts"
5688 unet_cv_enable_asserts=$enable_asserts
5690 if test "${unet_cv_enable_asserts+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 unet_cv_enable_asserts=yes
5697 echo "$as_me:5697: result: $unet_cv_enable_asserts" >&5
5698 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
5700 if test x"$unet_cv_enable_asserts" = xno; then
5702 cat >>confdefs.h <<\EOF
5708 echo "$as_me:5708: checking whether to enable debugging symbols" >&5
5709 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
5710 # Check whether --enable-symbols or --disable-symbols was given.
5711 if test "${enable_symbols+set}" = set; then
5712 enableval="$enable_symbols"
5713 unet_cv_enable_symbols=$enable_symbols
5715 if test "${unet_cv_enable_symbols+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 unet_cv_enable_symbols=yes
5722 echo "$as_me:5722: result: $unet_cv_enable_symbols" >&5
5723 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
5725 if test x"$unet_cv_enable_symbols" = xyes; then
5729 echo "$as_me:5729: checking whether to enable head in sand 'features'" >&5
5730 echo $ECHO_N "checking whether to enable head in sand 'features'... $ECHO_C" >&6
5731 # Check whether --enable-headinsand or --disable-headinsand was given.
5732 if test "${enable_headinsand+set}" = set; then
5733 enableval="$enable_headinsand"
5734 unet_cv_enable_headinsand=$enable_headinsand
5736 if test "${unet_cv_enable_headinsand+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 unet_cv_enable_headinsand=yes
5743 echo "$as_me:5743: result: $unet_cv_enable_headinsand" >&5
5744 echo "${ECHO_T}$unet_cv_enable_headinsand" >&6
5746 if test x"$unet_cv_enable_headinsand" = xno; then
5747 CFLAGS="-DNO_HEAD_IN_SAND $CFLAGS"
5750 echo "$as_me:5750: checking whether to enable profiling support (gprof)" >&5
5751 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
5752 # Check whether --enable-profile or --disable-profile was given.
5753 if test "${enable_profile+set}" = set; then
5754 enableval="$enable_profile"
5755 unet_cv_enable_profile=$enable_profile
5757 if test "${unet_cv_enable_profile+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 unet_cv_enable_profile=no
5764 echo "$as_me:5764: result: $unet_cv_enable_profile" >&5
5765 echo "${ECHO_T}$unet_cv_enable_profile" >&6
5767 if test x"$unet_cv_enable_profile" = xyes; then
5768 CFLAGS="-pg $CFLAGS"
5771 echo "$as_me:5771: checking whether to enable pedantic compiler warnings" >&5
5772 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
5773 # Check whether --enable-pedantic or --disable-pedantic was given.
5774 if test "${enable_pedantic+set}" = set; then
5775 enableval="$enable_pedantic"
5776 unet_cv_enable_pedantic=$enable_pedantic
5778 if test "${unet_cv_enable_pedantic+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 unet_cv_enable_pedantic=no
5785 echo "$as_me:5785: result: $unet_cv_enable_pedantic" >&5
5786 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
5788 if test x"$unet_cv_enable_pedantic" = xyes; then
5789 CFLAGS="-pedantic $CFLAGS"
5792 echo "$as_me:5792: checking whether to enable compiler warnings" >&5
5793 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
5794 # Check whether --enable-warnings or --disable-warnings was given.
5795 if test "${enable_warnings+set}" = set; then
5796 enableval="$enable_warnings"
5797 unet_cv_enable_warnings=$enable_warnings
5799 if test "${unet_cv_enable_warnings+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 unet_cv_enable_warnings=no
5806 echo "$as_me:5806: result: $unet_cv_enable_warnings" >&5
5807 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
5809 if test x"$unet_cv_enable_warnings" = xyes; then
5810 CFLAGS="-Wall $CFLAGS"
5813 echo "$as_me:5813: checking whether to enable inlining for a few critical functions" >&5
5814 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
5815 # Check whether --enable-inlines or --disable-inlines was given.
5816 if test "${enable_inlines+set}" = set; then
5817 enableval="$enable_inlines"
5818 unet_cv_enable_inlines=$enable_inlines
5820 if test "${unet_cv_enable_inlines+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 unet_cv_enable_inlines=yes
5827 echo "$as_me:5827: result: $unet_cv_enable_inlines" >&5
5828 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
5830 if test x"$unet_cv_enable_inlines" = xyes; then
5832 cat >>confdefs.h <<\EOF
5838 echo "$as_me:5838: checking whether to enable the /dev/poll event engine" >&5
5839 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
5840 # Check whether --enable-devpoll or --disable-devpoll was given.
5841 if test "${enable_devpoll+set}" = set; then
5842 enableval="$enable_devpoll"
5843 unet_cv_enable_devpoll=$enable_devpoll
5845 if test "${unet_cv_enable_devpoll+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 unet_cv_enable_devpoll=yes
5853 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
5854 unet_cv_enable_devpoll=no
5857 echo "$as_me:5857: result: $unet_cv_enable_devpoll" >&5
5858 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
5860 if test x"$unet_cv_enable_devpoll" != xno; then
5862 cat >>confdefs.h <<\EOF
5866 ENGINE_C="engine_devpoll.c $ENGINE_C"
5869 echo "$as_me:5869: checking whether to enable the kqueue event engine" >&5
5870 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
5871 # Check whether --enable-kqueue or --disable-kqueue was given.
5872 if test "${enable_kqueue+set}" = set; then
5873 enableval="$enable_kqueue"
5874 unet_cv_enable_kqueue=$enable_kqueue
5876 if test "${unet_cv_enable_kqueue+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 unet_cv_enable_kqueue=yes
5884 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
5885 unet_cv_enable_kqueue=no
5888 echo "$as_me:5888: result: $unet_cv_enable_kqueue" >&5
5889 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
5891 if test x"$unet_cv_enable_kqueue" != xno; then
5893 cat >>confdefs.h <<\EOF
5897 ENGINE_C="engine_kqueue.c $ENGINE_C"
5900 echo "$as_me:5900: checking whether to enable the adns resolver engine" >&5
5901 echo $ECHO_N "checking whether to enable the adns resolver engine... $ECHO_C" >&6
5902 # Check whether --enable-adns or --disable-adns was given.
5903 if test "${enable_adns+set}" = set; then
5904 enableval="$enable_adns"
5905 unet_cv_enable_adns=$enable_adns
5907 if test "${unet_cv_enable_adns+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 unet_cv_enable_adns=yes
5915 echo "$as_me:5915: result: $unet_cv_enable_adns" >&5
5916 echo "${ECHO_T}$unet_cv_enable_adns" >&6
5918 if test x"$unet_cv_enable_adns" != xno; then
5920 cat >>confdefs.h <<\EOF
5924 subdirs="$subdirs adns"
5927 LIBS="../adns/src/libadns.a $LIBS"
5930 RES_C="res_libresolv.c"
5933 echo "$as_me:5933: checking for library containing res_mkquery" >&5
5934 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
5935 if test "${ac_cv_search_res_mkquery+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 ac_func_search_save_LIBS=$LIBS
5939 ac_cv_search_res_mkquery=no
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line 5941 "configure"
5942 #include "confdefs.h"
5944 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5950 char res_mkquery ();
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>&5
5963 echo "$as_me:5963: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -s conftest$ac_exeext'
5966 { (eval echo "$as_me:5966: \"$ac_try\"") >&5
5969 echo "$as_me:5969: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 ac_cv_search_res_mkquery="none required"
5973 echo "$as_me: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5977 if test "$ac_cv_search_res_mkquery" = no; then
5978 for ac_lib in resolv; do
5979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5980 cat >conftest.$ac_ext <<_ACEOF
5981 #line 5981 "configure"
5982 #include "confdefs.h"
5984 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5990 char res_mkquery ();
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:6000: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>&5
6003 echo "$as_me:6003: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -s conftest$ac_exeext'
6006 { (eval echo "$as_me:6006: \"$ac_try\"") >&5
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_search_res_mkquery="-l$ac_lib"
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6020 LIBS=$ac_func_search_save_LIBS
6022 echo "$as_me:6022: result: $ac_cv_search_res_mkquery" >&5
6023 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
6024 if test "$ac_cv_search_res_mkquery" != no; then
6025 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
6028 { { echo "$as_me:6028: error: Unable to find library containing res_mkquery()" >&5
6029 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
6030 { (exit 1); exit 1; }; }
6035 echo "$as_me:6035: checking what name to give the symlink" >&5
6036 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
6038 # Check whether --with-symlink or --without-symlink was given.
6039 if test "${with_symlink+set}" = set; then
6040 withval="$with_symlink"
6041 unet_cv_with_symlink=$with_symlink
6043 if test "${unet_cv_with_symlink+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 unet_cv_with_symlink="ircd"
6051 if test x"$unet_cv_with_symlink" = xyes; then
6052 unet_cv_with_symlink="ircd"
6055 echo "$as_me:6055: result: $unet_cv_with_symlink" >&5
6056 echo "${ECHO_T}$unet_cv_with_symlink" >&6
6058 if test x"$unet_cv_with_symlink" = xno; then
6059 INSTALL_RULE=install-no-symlink
6062 INSTALL_RULE=install-with-symlink
6063 SYMLINK=$unet_cv_with_symlink
6066 echo "$as_me:6066: checking what permissions to set on the installed binary" >&5
6067 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
6069 # Check whether --with-mode or --without-mode was given.
6070 if test "${with_mode+set}" = set; then
6071 withval="$with_mode"
6072 unet_cv_with_mode=$with_mode
6074 if test "${unet_cv_with_mode+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 unet_cv_with_mode=711
6082 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
6083 unet_cv_with_mode=711
6086 echo "$as_me:6086: result: $unet_cv_with_mode" >&5
6087 echo "${ECHO_T}$unet_cv_with_mode" >&6
6089 IRCDMODE=$unet_cv_with_mode
6091 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6092 echo "$as_me:6092: checking which user should own the installed binary" >&5
6093 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
6095 # Check whether --with-owner or --without-owner was given.
6096 if test "${with_owner+set}" = set; then
6097 withval="$with_owner"
6098 unet_cv_with_owner=$with_owner
6100 if test "${unet_cv_with_owner+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 unet_cv_with_owner=$unet_uid
6108 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
6109 unet_cv_with_owner=$unet_uid
6112 echo "$as_me:6112: result: $unet_cv_with_owner" >&5
6113 echo "${ECHO_T}$unet_cv_with_owner" >&6
6115 IRCDOWN=$unet_cv_with_owner
6117 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6118 echo "$as_me:6118: checking which group should own the installed binary" >&5
6119 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
6121 # Check whether --with-group or --without-group was given.
6122 if test "${with_group+set}" = set; then
6123 withval="$with_group"
6124 unet_cv_with_group=$with_group
6126 if test "${unet_cv_with_group+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 unet_cv_with_group=$unet_gid
6134 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
6135 unet_cv_with_group=$unet_gid
6138 echo "$as_me:6138: result: $unet_cv_with_group" >&5
6139 echo "${ECHO_T}$unet_cv_with_group" >&6
6141 IRCDGRP=$unet_cv_with_group
6144 if test -f /etc/resolv.conf; then
6145 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
6146 if test x"$unet_domain" = x; then
6147 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
6150 echo "$as_me:6150: checking for site domain name" >&5
6151 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
6153 # Check whether --with-domain or --without-domain was given.
6154 if test "${with_domain+set}" = set; then
6155 withval="$with_domain"
6156 unet_cv_with_domain=$with_domain
6158 if test "${unet_cv_with_domain+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 unet_cv_with_domain=$unet_domain
6166 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
6167 unet_cv_with_domain=$unet_domain
6169 if test x"$unet_cv_with_domain" = xno; then
6170 { { echo "$as_me:6170: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
6171 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
6172 { (exit 1); exit 1; }; }
6175 echo "$as_me:6175: result: $unet_cv_with_domain" >&5
6176 echo "${ECHO_T}$unet_cv_with_domain" >&6
6178 cat >>confdefs.h <<EOF
6179 #define DOMAINNAME "*$unet_cv_with_domain"
6182 echo "$as_me:6182: checking if chroot operation is desired" >&5
6183 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
6185 # Check whether --with-chroot or --without-chroot was given.
6186 if test "${with_chroot+set}" = set; then
6187 withval="$with_chroot"
6188 unet_cv_with_chroot=$with_chroot
6190 if test "${unet_cv_with_chroot+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 unet_cv_with_chroot=no
6198 if test x"$unet_cv_with_chroot" = xyes; then
6199 { { echo "$as_me:6199: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
6200 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
6201 { (exit 1); exit 1; }; }
6204 # Ensure there are no trailing /'s to mess us up
6205 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
6207 echo "$as_me:6207: result: $unet_cv_with_chroot" >&5
6208 echo "${ECHO_T}$unet_cv_with_chroot" >&6
6210 # Deal with the annoying value "NONE" here
6211 unet_save_prefix=$prefix
6212 if test x"$prefix" = xNONE; then
6213 prefix=$ac_default_prefix
6218 unet_save_exec_prefix=$exec_prefix
6219 if test x"$exec_prefix" = xNONE; then
6222 exec_prefix=$exec_prefix
6225 # Obtain the actual interesting directories
6226 unet_bindir=`eval echo "$bindir"`
6227 unet_libdir=`eval echo "$libdir"`
6229 # Restore the original settings of $prefix and $exec_prefix
6230 prefix=$unet_save_prefix
6231 exec_prefix=$unet_save_exec_prefix
6233 echo "$as_me:6233: checking where the binary will be for /restart" >&5
6234 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
6235 if test x"$unet_cv_with_symlink" = xno; then
6236 unet_spath="$unet_bindir/ircd"
6238 unet_spath="$unet_bindir/$unet_cv_with_symlink"
6240 echo "$as_me:6240: result: $unet_spath" >&5
6241 echo "${ECHO_T}$unet_spath" >&6
6243 if test x"$unet_cv_with_chroot" != xno; then
6244 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6245 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
6247 { echo "$as_me:6247: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
6248 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
6252 cat >>confdefs.h <<EOF
6253 #define SPATH "$unet_spath"
6256 echo "$as_me:6256: checking what the data directory should be" >&5
6257 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
6259 # Check whether --with-dpath or --without-dpath was given.
6260 if test "${with_dpath+set}" = set; then
6261 withval="$with_dpath"
6262 unet_cv_with_dpath=$with_dpath
6264 if test "${unet_cv_with_dpath+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 unet_cv_with_dpath=$unet_libdir
6272 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
6273 unet_cv_with_dpath=$unet_libdir
6276 # Ensure there are no trailing /'s to mess us up
6277 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
6279 echo "$as_me:6279: result: $unet_cv_with_dpath" >&5
6280 echo "${ECHO_T}$unet_cv_with_dpath" >&6
6282 if test x"$unet_cv_with_chroot" != xno; then
6283 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6284 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
6286 { { echo "$as_me:6286: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
6287 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
6288 { (exit 1); exit 1; }; }
6291 unet_dpath=$unet_cv_with_dpath
6294 cat >>confdefs.h <<EOF
6295 #define DPATH "$unet_dpath"
6298 DPATH=$unet_cv_with_dpath
6300 echo "$as_me:6300: checking where the default configuration file resides" >&5
6301 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
6303 # Check whether --with-cpath or --without-cpath was given.
6304 if test "${with_cpath+set}" = set; then
6305 withval="$with_cpath"
6306 unet_cv_with_cpath=$with_cpath
6308 if test "${unet_cv_with_cpath+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 unet_cv_with_cpath="ircd.conf"
6316 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
6317 unet_cv_with_cpath="ircd.conf"
6320 echo "$as_me:6320: result: $unet_cv_with_cpath" >&5
6321 echo "${ECHO_T}$unet_cv_with_cpath" >&6
6323 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
6324 # Absolute path; check against chroot stuff
6325 if test x"$unet_cv_with_chroot" != xno; then
6326 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6327 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
6329 { { echo "$as_me:6329: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
6330 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
6331 { (exit 1); exit 1; }; }
6334 unet_cpath=$unet_cv_with_cpath
6337 unet_cpath=$unet_cv_with_cpath
6340 cat >>confdefs.h <<EOF
6341 #define CPATH "$unet_cpath"
6344 echo "$as_me:6344: checking where to put the debugging log if debugging enabled" >&5
6345 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
6347 # Check whether --with-lpath or --without-lpath was given.
6348 if test "${with_lpath+set}" = set; then
6349 withval="$with_lpath"
6350 unet_cv_with_lpath=$with_lpath
6352 if test "${unet_cv_with_lpath+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 unet_cv_with_lpath="ircd.log"
6360 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
6361 unet_cv_with_lpath="ircd.log"
6364 echo "$as_me:6364: result: $unet_cv_with_lpath" >&5
6365 echo "${ECHO_T}$unet_cv_with_lpath" >&6
6367 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
6368 # Absolute path; check against chroot stuff
6369 if test x"$unet_cv_with_chroot" != xno; then
6370 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6371 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
6373 { echo "$as_me:6373: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
6374 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;}
6375 unet_cv_with_lpath="ircd.log"
6376 unet_lpath="ircd.log"
6379 unet_lpath=$unet_cv_with_lpath
6382 unet_lpath=$unet_cv_with_lpath
6385 cat >>confdefs.h <<EOF
6386 #define LPATH "$unet_lpath"
6389 unet_maxcon=`ulimit -Hn`
6390 unet_maxcon=`expr $unet_maxcon - 4`
6391 echo "$as_me:6391: checking max connections" >&5
6392 echo $ECHO_N "checking max connections... $ECHO_C" >&6
6394 # Check whether --with-maxcon or --without-maxcon was given.
6395 if test "${with_maxcon+set}" = set; then
6396 withval="$with_maxcon"
6397 unet_cv_with_maxcon=$with_maxcon
6399 if test "${unet_cv_with_maxcon+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 unet_cv_with_maxcon=$unet_maxcon
6407 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
6408 unet_cv_with_maxcon=$unet_maxcon
6411 echo "$as_me:6411: result: $unet_cv_with_maxcon" >&5
6412 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
6414 cat >>confdefs.h <<EOF
6415 #define MAXCONNECTIONS $unet_cv_with_maxcon
6418 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
6419 ac_config_commands="$ac_config_commands default"
6420 cat >confcache <<\_ACEOF
6421 # This file is a shell script that caches the results of configure
6422 # tests run on this system so they can be shared between configure
6423 # scripts and configure runs, see configure's option --config-cache.
6424 # It is not useful on other systems. If it contains results you don't
6425 # want to keep, you may remove or edit it.
6427 # config.status only pays attention to the cache file if you give it
6428 # the --recheck option to rerun configure.
6430 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6436 # The following way of writing the cache mishandles newlines in values,
6437 # but we know of no workaround that is simple, portable, and efficient.
6438 # So, don't put newlines in cache variables' values.
6439 # Ultrix sh set writes to stderr and can't be redirected directly,
6440 # and sets the high bit in the cache file unless we assign to the vars.
6443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6445 # `set' does not quote correctly, so add quotes (double-quote
6446 # substitution turns \\\\ into \\, and sed turns \\ into \).
6449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6452 # `set' quotes correctly as required by POSIX, so do not add quotes.
6454 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6463 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6465 if cmp -s $cache_file confcache; then :; else
6466 if test -w $cache_file; then
6467 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6468 cat confcache >$cache_file
6470 echo "not updating unwritable cache $cache_file"
6475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6476 # Let make expand exec_prefix.
6477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6481 # trailing colons and then remove the whole line if VPATH becomes empty
6482 # (actually we leave an empty line to preserve line numbers).
6483 if test "x$srcdir" = x.; then
6484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6485 s/:*\$(srcdir):*/:/;
6486 s/:*\${srcdir}:*/:/;
6488 s/^\([^=]*=[ ]*\):*/\1/;
6494 DEFS=-DHAVE_CONFIG_H
6496 : ${CONFIG_STATUS=./config.status}
6497 ac_clean_files_save=$ac_clean_files
6498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6499 { echo "$as_me:6499: creating $CONFIG_STATUS" >&5
6500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6501 cat >$CONFIG_STATUS <<_ACEOF
6503 # Generated automatically by configure.
6504 # Run this file to recreate the current configuration.
6505 # Compiler output produced by configure, useful for debugging
6506 # configure, is in config.log if it exists.
6509 SHELL=\${CONFIG_SHELL-$SHELL}
6510 ac_cs_invocation="\$0 \$@"
6514 cat >>$CONFIG_STATUS <<\_ACEOF
6515 # Be Bourne compatible
6516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6519 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6523 # Name of the executable.
6524 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6526 if expr a : '\(a\)' >/dev/null 2>&1; then
6532 rm -f conf$$ conf$$.exe conf$$.file
6534 if ln -s conf$$.file conf$$ 2>/dev/null; then
6535 # We could just check for DJGPP; but this test a) works b) is more generic
6536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6537 if test -f conf$$.exe; then
6538 # Don't use ln at all; we don't have any links
6543 elif ln conf$$.file conf$$ 2>/dev/null; then
6548 rm -f conf$$ conf$$.exe conf$$.file
6550 as_executable_p="test -f"
6552 # Support unset when possible.
6553 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6560 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6561 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6562 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6563 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6564 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6565 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6566 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6567 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6570 # We need space, tab and new line, in precisely that order.
6576 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6582 # Files that config.status was made for.
6583 if test -n "$ac_config_files"; then
6584 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6587 if test -n "$ac_config_headers"; then
6588 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6591 if test -n "$ac_config_links"; then
6592 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6595 if test -n "$ac_config_commands"; then
6596 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6599 cat >>$CONFIG_STATUS <<\EOF
6602 \`$as_me' instantiates files from templates according to the
6603 current configuration.
6605 Usage: $0 [OPTIONS] [FILE]...
6607 -h, --help print this help, then exit
6608 -V, --version print version number, then exit
6609 -d, --debug don't remove temporary files
6610 --recheck update $as_me by reconfiguring in the same conditions
6611 --file=FILE[:TEMPLATE]
6612 instantiate the configuration file FILE
6613 --header=FILE[:TEMPLATE]
6614 instantiate the configuration header FILE
6616 Configuration files:
6619 Configuration headers:
6622 Configuration commands:
6625 Report bugs to <bug-autoconf@gnu.org>."
6628 cat >>$CONFIG_STATUS <<EOF
6631 configured by $0, generated by GNU Autoconf 2.52,
6632 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6634 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6635 Free Software Foundation, Inc.
6636 This config.status script is free software; the Free Software Foundation
6637 gives unlimited permission to copy, distribute and modify it."
6642 cat >>$CONFIG_STATUS <<\EOF
6643 # If no file are specified by the user, then we need to provide default
6644 # value. By we need to know if files were specified by the user.
6650 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6651 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6653 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6657 *) # This is not an option, so the user has probably given explicit
6659 ac_need_defaults=false;;
6663 # Handling of the options.
6665 cat >>$CONFIG_STATUS <<EOF
6666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6667 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6668 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6670 cat >>$CONFIG_STATUS <<\EOF
6671 --version | --vers* | -V )
6672 echo "$ac_cs_version"; exit 0 ;;
6674 # Conflict between --help and --header
6675 { { echo "$as_me:6675: error: ambiguous option: $1
6676 Try \`$0 --help' for more information." >&5
6677 echo "$as_me: error: ambiguous option: $1
6678 Try \`$0 --help' for more information." >&2;}
6679 { (exit 1); exit 1; }; };;
6680 --help | --hel | -h )
6681 echo "$ac_cs_usage"; exit 0 ;;
6682 --debug | --d* | -d )
6684 --file | --fil | --fi | --f )
6686 CONFIG_FILES="$CONFIG_FILES $1"
6687 ac_need_defaults=false;;
6688 --header | --heade | --head | --hea )
6690 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6691 ac_need_defaults=false;;
6694 -*) { { echo "$as_me:6694: error: unrecognized option: $1
6695 Try \`$0 --help' for more information." >&5
6696 echo "$as_me: error: unrecognized option: $1
6697 Try \`$0 --help' for more information." >&2;}
6698 { (exit 1); exit 1; }; } ;;
6700 *) ac_config_targets="$ac_config_targets $1" ;;
6709 ## ----------------------- ##
6710 ## Running config.status. ##
6711 ## ----------------------- ##
6713 This file was extended by $as_me 2.52, executed with
6714 CONFIG_FILES = $CONFIG_FILES
6715 CONFIG_HEADERS = $CONFIG_HEADERS
6716 CONFIG_LINKS = $CONFIG_LINKS
6717 CONFIG_COMMANDS = $CONFIG_COMMANDS
6719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6724 cat >>$CONFIG_STATUS <<\EOF
6725 for ac_config_target in $ac_config_targets
6727 case "$ac_config_target" in
6728 # Handling of arguments.
6729 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6730 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
6731 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6732 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6733 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6734 *) { { echo "$as_me:6734: error: invalid argument: $ac_config_target" >&5
6735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6736 { (exit 1); exit 1; }; };;
6740 # If the user did not use the arguments to specify the items to instantiate,
6741 # then the envvar interface is used. Set only those that are not.
6742 # We use the long form for the default assignment because of an extremely
6743 # bizarre bug on SunOS 4.1.3.
6744 if $ac_need_defaults; then
6745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6747 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6750 # Create a temporary directory, and hook for its removal unless debugging.
6753 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6754 trap '{ (exit 1); exit 1; }' 1 2 13 15
6757 # Create a (secure) tmp directory for tmp files.
6760 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6761 test -n "$tmp" && test -d "$tmp"
6764 tmp=$TMPDIR/cs$$-$RANDOM
6765 (umask 077 && mkdir $tmp)
6768 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6769 { (exit 1); exit 1; }
6774 cat >>$CONFIG_STATUS <<EOF
6777 # CONFIG_FILES section.
6780 # No need to generate the scripts if there are no CONFIG_FILES.
6781 # This happens for instance when ./config.status config.h
6782 if test -n "\$CONFIG_FILES"; then
6783 # Protect against being on the right side of a sed subst in config.status.
6784 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6785 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6786 s,@SHELL@,$SHELL,;t t
6787 s,@exec_prefix@,$exec_prefix,;t t
6788 s,@prefix@,$prefix,;t t
6789 s,@program_transform_name@,$program_transform_name,;t t
6790 s,@bindir@,$bindir,;t t
6791 s,@sbindir@,$sbindir,;t t
6792 s,@libexecdir@,$libexecdir,;t t
6793 s,@datadir@,$datadir,;t t
6794 s,@sysconfdir@,$sysconfdir,;t t
6795 s,@sharedstatedir@,$sharedstatedir,;t t
6796 s,@localstatedir@,$localstatedir,;t t
6797 s,@libdir@,$libdir,;t t
6798 s,@includedir@,$includedir,;t t
6799 s,@oldincludedir@,$oldincludedir,;t t
6800 s,@infodir@,$infodir,;t t
6801 s,@mandir@,$mandir,;t t
6802 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6803 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6804 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6805 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6806 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6807 s,@build_alias@,$build_alias,;t t
6808 s,@host_alias@,$host_alias,;t t
6809 s,@target_alias@,$target_alias,;t t
6810 s,@ECHO_C@,$ECHO_C,;t t
6811 s,@ECHO_N@,$ECHO_N,;t t
6812 s,@ECHO_T@,$ECHO_T,;t t
6813 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6816 s,@build@,$build,;t t
6817 s,@build_cpu@,$build_cpu,;t t
6818 s,@build_vendor@,$build_vendor,;t t
6819 s,@build_os@,$build_os,;t t
6821 s,@host_cpu@,$host_cpu,;t t
6822 s,@host_vendor@,$host_vendor,;t t
6823 s,@host_os@,$host_os,;t t
6825 s,@CFLAGS@,$CFLAGS,;t t
6826 s,@LDFLAGS@,$LDFLAGS,;t t
6827 s,@CPPFLAGS@,$CPPFLAGS,;t t
6828 s,@ac_ct_CC@,$ac_ct_CC,;t t
6829 s,@EXEEXT@,$EXEEXT,;t t
6830 s,@OBJEXT@,$OBJEXT,;t t
6833 s,@SET_MAKE@,$SET_MAKE,;t t
6834 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6835 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6836 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6838 s,@RMPROG@,$RMPROG,;t t
6839 s,@SHPROG@,$SHPROG,;t t
6840 s,@OSDEP_C@,$OSDEP_C,;t t
6841 s,@ENGINE_C@,$ENGINE_C,;t t
6842 s,@subdirs@,$subdirs,;t t
6843 s,@RES_C@,$RES_C,;t t
6844 s,@ADNS_SUBDIR@,$ADNS_SUBDIR,;t t
6845 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
6846 s,@SYMLINK@,$SYMLINK,;t t
6847 s,@IRCDMODE@,$IRCDMODE,;t t
6848 s,@IRCDOWN@,$IRCDOWN,;t t
6849 s,@IRCDGRP@,$IRCDGRP,;t t
6850 s,@DPATH@,$DPATH,;t t
6855 cat >>$CONFIG_STATUS <<\EOF
6856 # Split the substitutions into bite-sized pieces for seds with
6857 # small command number limits, like on Digital OSF/1 and HP-UX.
6859 ac_sed_frag=1 # Number of current file.
6860 ac_beg=1 # First line for current file.
6861 ac_end=$ac_max_sed_lines # Line after last line for current file.
6864 while $ac_more_lines; do
6865 if test $ac_beg -gt 1; then
6866 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6868 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6870 if test ! -s $tmp/subs.frag; then
6873 # The purpose of the label and of the branching condition is to
6874 # speed up the sed processing (if there are no `@' at all, there
6875 # is no need to browse any of the substitutions).
6876 # These are the two extra sed commands mentioned above.
6878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6879 if test -z "$ac_sed_cmds"; then
6880 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6882 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6884 ac_sed_frag=`expr $ac_sed_frag + 1`
6886 ac_end=`expr $ac_end + $ac_max_sed_lines`
6889 if test -z "$ac_sed_cmds"; then
6892 fi # test -n "$CONFIG_FILES"
6895 cat >>$CONFIG_STATUS <<\EOF
6896 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6899 - | *:- | *:-:* ) # input from stdin
6901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6905 * ) ac_file_in=$ac_file.in ;;
6908 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6909 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910 X"$ac_file" : 'X\(//\)[^/]' \| \
6911 X"$ac_file" : 'X\(//\)$' \| \
6912 X"$ac_file" : 'X\(/\)' \| \
6913 . : '\(.\)' 2>/dev/null ||
6915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6917 /^X\(\/\/\)$/{ s//\1/; q; }
6918 /^X\(\/\).*/{ s//\1/; q; }
6920 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6922 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6926 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6927 case $as_mkdir_dir in
6928 # Skip DOS drivespec
6929 ?:) as_incr_dir=$as_mkdir_dir ;;
6931 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6932 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6937 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6938 # A "../" for each directory in $ac_dir_suffix.
6939 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6941 ac_dir_suffix= ac_dots=
6946 if test -z "$ac_dots"; then
6949 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6952 ac_srcdir=$srcdir$ac_dir_suffix;
6953 ac_top_srcdir=$srcdir ;;
6955 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6956 ac_top_srcdir=$ac_dots$srcdir ;;
6960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6961 *) ac_INSTALL=$ac_dots$INSTALL ;;
6964 if test x"$ac_file" != x-; then
6965 { echo "$as_me:6965: creating $ac_file" >&5
6966 echo "$as_me: creating $ac_file" >&6;}
6969 # Let's still pretend it is `configure' which instantiates (i.e., don't
6970 # use $as_me), people would be surprised to read:
6971 # /* config.h. Generated automatically by config.status. */
6972 configure_input="Generated automatically from `echo $ac_file_in |
6973 sed 's,.*/,,'` by configure."
6975 # First look for the input files in the build tree, otherwise in the
6977 ac_file_inputs=`IFS=:
6978 for f in $ac_file_in; do
6980 -) echo $tmp/stdin ;;
6982 # Absolute (can't be DOS-style, as IFS=:)
6983 test -f "$f" || { { echo "$as_me:6983: error: cannot find input file: $f" >&5
6984 echo "$as_me: error: cannot find input file: $f" >&2;}
6985 { (exit 1); exit 1; }; }
6988 if test -f "$f"; then
6991 elif test -f "$srcdir/$f"; then
6996 { { echo "$as_me:6996: error: cannot find input file: $f" >&5
6997 echo "$as_me: error: cannot find input file: $f" >&2;}
6998 { (exit 1); exit 1; }; }
7001 done` || { (exit 1); exit 1; }
7003 cat >>$CONFIG_STATUS <<EOF
7007 cat >>$CONFIG_STATUS <<\EOF
7009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7010 s,@configure_input@,$configure_input,;t t
7011 s,@srcdir@,$ac_srcdir,;t t
7012 s,@top_srcdir@,$ac_top_srcdir,;t t
7013 s,@INSTALL@,$ac_INSTALL,;t t
7014 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7016 if test x"$ac_file" != x-; then
7017 mv $tmp/out $ac_file
7025 cat >>$CONFIG_STATUS <<\EOF
7028 # CONFIG_HEADER section.
7031 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7032 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7034 # ac_d sets the value in "#define NAME VALUE" lines.
7035 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7036 ac_dB='[ ].*$,\1#\2'
7039 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7040 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7041 ac_uB='$,\1#\2define\3'
7045 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7048 - | *:- | *:-:* ) # input from stdin
7050 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7052 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7054 * ) ac_file_in=$ac_file.in ;;
7057 test x"$ac_file" != x- && { echo "$as_me:7057: creating $ac_file" >&5
7058 echo "$as_me: creating $ac_file" >&6;}
7060 # First look for the input files in the build tree, otherwise in the
7062 ac_file_inputs=`IFS=:
7063 for f in $ac_file_in; do
7065 -) echo $tmp/stdin ;;
7067 # Absolute (can't be DOS-style, as IFS=:)
7068 test -f "$f" || { { echo "$as_me:7068: error: cannot find input file: $f" >&5
7069 echo "$as_me: error: cannot find input file: $f" >&2;}
7070 { (exit 1); exit 1; }; }
7073 if test -f "$f"; then
7076 elif test -f "$srcdir/$f"; then
7081 { { echo "$as_me:7081: error: cannot find input file: $f" >&5
7082 echo "$as_me: error: cannot find input file: $f" >&2;}
7083 { (exit 1); exit 1; }; }
7086 done` || { (exit 1); exit 1; }
7087 # Remove the trailing spaces.
7088 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7092 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7093 # `conftest.undefs', that substitutes the proper values into
7094 # config.h.in to produce config.h. The first handles `#define'
7095 # templates, and the second `#undef' templates.
7096 # And first: Protect against being on the right side of a sed subst in
7097 # config.status. Protect against being in an unquoted here document
7099 rm -f conftest.defines conftest.undefs
7100 # Using a here document instead of a string reduces the quoting nightmare.
7101 # Putting comments in sed scripts is not portable.
7103 # `end' is used to avoid that the second main sed command (meant for
7104 # 0-ary CPP macros) applies to n-ary macro definitions.
7105 # See the Autoconf documentation for `clear'.
7106 cat >confdef2sed.sed <<\EOF
7111 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7113 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7116 # If some macros were called several times there might be several times
7117 # the same #defines, which is useless. Nevertheless, we may not want to
7118 # sort them, since we want the *last* AC-DEFINE to be honored.
7119 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7120 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7121 rm -f confdef2sed.sed
7123 # This sed command replaces #undef with comments. This is necessary, for
7124 # example, in the case of _POSIX_SOURCE, which is predefined and required
7125 # on some systems where configure will not decide to define it.
7126 cat >>conftest.undefs <<\EOF
7127 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7130 # Break up conftest.defines because some shells have a limit on the size
7131 # of here documents, and old seds have small limits too (100 cmds).
7132 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7133 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7134 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7135 echo ' :' >>$CONFIG_STATUS
7137 while grep . conftest.defines >/dev/null
7139 # Write a limited-size here document to $tmp/defines.sed.
7140 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7141 # Speed up: don't consider the non `#define' lines.
7142 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7143 # Work around the forget-to-reset-the-flag bug.
7144 echo 't clr' >>$CONFIG_STATUS
7145 echo ': clr' >>$CONFIG_STATUS
7146 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7148 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7152 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7153 rm -f conftest.defines
7154 mv conftest.tail conftest.defines
7156 rm -f conftest.defines
7157 echo ' fi # egrep' >>$CONFIG_STATUS
7158 echo >>$CONFIG_STATUS
7160 # Break up conftest.undefs because some shells have a limit on the size
7161 # of here documents, and old seds have small limits too (100 cmds).
7162 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7164 while grep . conftest.undefs >/dev/null
7166 # Write a limited-size here document to $tmp/undefs.sed.
7167 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7168 # Speed up: don't consider the non `#undef'
7169 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7170 # Work around the forget-to-reset-the-flag bug.
7171 echo 't clr' >>$CONFIG_STATUS
7172 echo ': clr' >>$CONFIG_STATUS
7173 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7175 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7179 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7180 rm -f conftest.undefs
7181 mv conftest.tail conftest.undefs
7183 rm -f conftest.undefs
7185 cat >>$CONFIG_STATUS <<\EOF
7186 # Let's still pretend it is `configure' which instantiates (i.e., don't
7187 # use $as_me), people would be surprised to read:
7188 # /* config.h. Generated automatically by config.status. */
7189 if test x"$ac_file" = x-; then
7190 echo "/* Generated automatically by configure. */" >$tmp/config.h
7192 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7194 cat $tmp/in >>$tmp/config.h
7196 if test x"$ac_file" != x-; then
7197 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7198 { echo "$as_me:7198: $ac_file is unchanged" >&5
7199 echo "$as_me: $ac_file is unchanged" >&6;}
7201 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202 X"$ac_file" : 'X\(//\)[^/]' \| \
7203 X"$ac_file" : 'X\(//\)$' \| \
7204 X"$ac_file" : 'X\(/\)' \| \
7205 . : '\(.\)' 2>/dev/null ||
7207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7209 /^X\(\/\/\)$/{ s//\1/; q; }
7210 /^X\(\/\).*/{ s//\1/; q; }
7212 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7214 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7218 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7219 case $as_mkdir_dir in
7220 # Skip DOS drivespec
7221 ?:) as_incr_dir=$as_mkdir_dir ;;
7223 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7224 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7231 mv $tmp/config.h $ac_file
7239 cat >>$CONFIG_STATUS <<\EOF
7242 # CONFIG_COMMANDS section.
7244 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7245 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7246 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7249 default ) echo timestamp > stamp-h ;;
7254 cat >>$CONFIG_STATUS <<\EOF
7256 { (exit 0); exit 0; }
7258 chmod +x $CONFIG_STATUS
7259 ac_clean_files=$ac_clean_files_save
7261 # configure is writing to config.log, and then calls config.status.
7262 # config.status does its own redirection, appending to config.log.
7263 # Unfortunately, on DOS this fails, as config.log is still kept open
7264 # by configure, so config.status won't be able to write to it; its
7265 # output is simply discarded. So we exec the FD to /dev/null,
7266 # effectively closing config.log, so it can be properly (re)opened and
7267 # appended to by config.status. When coming back to configure, we
7268 # need to make the FD available again.
7269 if test "$no_create" != yes; then
7272 $SHELL $CONFIG_STATUS || ac_cs_success=false
7274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7275 # would make configure fail if this is the last instruction.
7276 $ac_cs_success || { (exit 1); exit 1; }
7280 # CONFIG_SUBDIRS section.
7282 if test "$no_recursion" != yes; then
7284 # Remove --cache-file and --srcdir arguments so they do not pile up.
7285 ac_sub_configure_args=
7287 for ac_arg in $ac_configure_args; do
7288 if test -n "$ac_prev"; then
7293 -cache-file | --cache-file | --cache-fil | --cache-fi \
7294 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7295 ac_prev=cache_file ;;
7296 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7297 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7300 --config-cache | -C)
7302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7306 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7310 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
7312 # Do not complain, so a configure script can configure whichever
7313 # parts of a large source tree are present.
7314 test -d $srcdir/$ac_subdir || continue
7316 { echo "$as_me:7316: configuring in $ac_subdir" >&5
7317 echo "$as_me: configuring in $ac_subdir" >&6;}
7320 *) { case "./$ac_subdir" in
7321 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7324 as_dummy="./$ac_subdir"
7325 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7326 case $as_mkdir_dir in
7327 # Skip DOS drivespec
7328 ?:) as_incr_dir=$as_mkdir_dir ;;
7330 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7331 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7336 if test -d ./$ac_subdir; then :;
7338 { { echo "$as_me:7338: error: cannot create \`pwd\`/$ac_subdir" >&5
7339 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
7340 { (exit 1); exit 1; }; }
7348 # A "../" for each directory in /$ac_subdir.
7349 ac_dots=`echo $ac_subdir |
7350 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
7353 .) # No --srcdir option. We are building in place.
7354 ac_sub_srcdir=$srcdir ;;
7355 [\\/]* | ?:[\\/]* ) # Absolute path.
7356 ac_sub_srcdir=$srcdir/$ac_subdir ;;
7358 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
7361 # Check for guested configure; otherwise get Cygnus style configure.
7362 if test -f $ac_sub_srcdir/configure.gnu; then
7363 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
7364 elif test -f $ac_sub_srcdir/configure; then
7365 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
7366 elif test -f $ac_sub_srcdir/configure.in; then
7367 ac_sub_configure=$ac_configure
7369 { echo "$as_me:7369: WARNING: no configuration information is in $ac_subdir" >&5
7370 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
7374 # The recursion is here.
7375 if test -n "$ac_sub_configure"; then
7376 # Make the cache file name correct relative to the subdirectory.
7378 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7380 ac_sub_cache_file=$ac_dots$cache_file ;;
7383 { echo "$as_me:7383: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
7384 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
7385 # The eval makes quoting arguments work.
7386 eval $ac_sub_configure $ac_sub_configure_args \
7387 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
7388 { { echo "$as_me:7388: error: $ac_sub_configure failed for $ac_subdir" >&5
7389 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
7390 { (exit 1); exit 1; }; }
7397 ac_config_commands="$ac_config_commands default-1"