3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=$HOME
16 --enable-poll Force poll to be used regardless of whether or not
19 --enable-debug Turn on debugging mode"
21 --disable-asserts Disable assertion checking"
23 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)"
25 --disable-headinsand Disable head in sand (-DNO_HEAD_IN_SAND)"
27 --enable-profile Enable profiling support (add -pg to CFLAGS)"
29 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)"
31 --enable-warnings Enable warnings (add -Wall to CFLAGS)"
33 --disable-inlines Disable inlining for a few critical functions"
35 --disable-devpoll Enable the /dev/poll-based engine"
37 --disable-kqueue Enable the kqueue-based engine"
39 --with-symlink=name Name to give the symlink; if name is "no," no
40 symlink will be created."
42 --with-mode=mode Permissions (in octal) to give the binary"
44 --with-owner=owner Specify owner of the installed binary"
46 --with-group=group Specify group owner of the installed binary"
48 --with-domain=domain Domain name to use in local statistics gathering"
50 --with-chroot=dir Specify that the server will be operated under
51 a different root directory given by dir. See
52 doc/readme.chroot for more information."
54 --with-dpath=dir Directory for all server data files"
56 --with-cpath=file Set server configuration file"
58 --with-lpath=file Set the debugging log file"
60 --with-maxcon=maxcon Maximum number of connections server will accept"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file=./config.cache
75 program_transform_name=s,x,x,
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
99 SHELL=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126 bindir="$ac_optarg" ;;
128 -build | --build | --buil | --bui | --bu)
130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131 build="$ac_optarg" ;;
133 -cache-file | --cache-file | --cache-fil | --cache-fi \
134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135 ac_prev=cache_file ;;
136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138 cache_file="$ac_optarg" ;;
140 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144 datadir="$ac_optarg" ;;
146 -disable-* | --disable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* | --enable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170 | --exec | --exe | --ex)
171 ac_prev=exec_prefix ;;
172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174 | --exec=* | --exe=* | --ex=*)
175 exec_prefix="$ac_optarg" ;;
177 -gas | --gas | --ga | --g)
178 # Obsolete; use --with-gas.
181 -help | --help | --hel | --he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host | --host | --hos | --ho)
238 -host=* | --host=* | --hos=* | --ho=*)
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
359 -site=* | --site=* | --sit=*)
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir="$ac_optarg" ;;
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir="$ac_optarg" ;;
374 -target | --target | --targe | --targ | --tar | --ta | --t)
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target="$ac_optarg" ;;
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 -version | --version | --versio | --versi | --vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes="$ac_optarg" ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c) ;;
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file=ircd/ircd.c
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE; then
529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
545 echo "creating cache $cache_file"
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp='$CPP $CPPFLAGS'
552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567 ac_n= ac_c='\c' ac_t=
573 echo $ac_n "checking for installation prefix""... $ac_c" 1>&6
574 echo "configure:575: checking for installation prefix" >&5
575 if eval "test \"`echo '$''{'unet_cv_prefix'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
581 if test x"$prefix" != xNONE; then
582 unet_cv_prefix=$prefix
584 echo "$ac_t""$unet_cv_prefix" 1>&6
585 ac_default_prefix=$unet_cv_prefix
592 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 # Make sure we can run config.sub.
612 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
613 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616 echo $ac_n "checking host system type""... $ac_c" 1>&6
617 echo "configure:618: checking host system type" >&5
620 case "$host_alias" in
624 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
625 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
627 *) host_alias=$nonopt ;;
631 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
632 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$host" 1>&6
638 # Extract the first word of "gcc", so it can be a program name with args.
639 set dummy gcc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 # Extract the first word of "cc", so it can be a program name with args.
669 set dummy cc; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 if test $ac_prog_rejected = yes; then
694 # We found a bogon in the path, so make sure we never use it.
695 set dummy $ac_cv_prog_CC
697 if test $# -gt 0; then
698 # We chose a different compiler from the bogus one.
699 # However, it has the same basename, so the bogon will be chosen
700 # first if we set CC to just the basename; use the full file name.
702 set dummy "$ac_dir/$ac_word" "$@"
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
719 # Extract the first word of "cl", so it can be a program name with args.
720 set dummy cl; ac_word=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC="$CC" # Let the user override the test.
729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
731 for ac_dir in $ac_dummy; do
732 test -z "$ac_dir" && ac_dir=.
733 if test -f $ac_dir/$ac_word; then
742 if test -n "$CC"; then
743 echo "$ac_t""$CC" 1>&6
745 echo "$ac_t""no" 1>&6
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp='$CPP $CPPFLAGS'
759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling=$ac_cv_prog_cc_cross
763 cat > conftest.$ac_ext << EOF
765 #line 766 "configure"
766 #include "confdefs.h"
770 if { (eval echo configure:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771 ac_cv_prog_cc_works=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (./conftest; exit) 2>/dev/null; then
774 ac_cv_prog_cc_cross=no
776 ac_cv_prog_cc_cross=yes
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
781 ac_cv_prog_cc_works=no
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 cat > conftest.c <<EOF
810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
825 ac_test_CFLAGS="${CFLAGS+set}"
826 ac_save_CFLAGS="$CFLAGS"
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
847 if test "$GCC" = yes; then
853 if test "$GCC" = yes; then
864 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
865 echo "configure:866: checking for ${CC-cc} option to accept ANSI C" >&5
866 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 am_cv_prog_cc_stdc=no
871 # Don't try gcc -ansi; that turns off useful extensions and
872 # breaks some systems' header files.
874 # Ultrix and OSF/1 -std1
875 # HP-UX -Aa -D_HPUX_SOURCE
876 # SVR4 -Xc -D__EXTENSIONS__
877 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
879 CC="$ac_save_CC $ac_arg"
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
885 #include <sys/types.h>
886 #include <sys/stat.h>
887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
888 struct buf { int x; };
889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
890 static char *e (p, i)
896 static char *f (char * (*g) (char **, int), char **p, ...)
901 s = g (p, va_arg (v,int));
905 int test (int i, double x);
906 struct s1 {int (*f) (int a);};
907 struct s2 {int (*f) (double a);};
908 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
914 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
918 if { (eval echo configure:919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
920 am_cv_prog_cc_stdc="$ac_arg"; break
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
931 if test -z "$am_cv_prog_cc_stdc"; then
932 echo "$ac_t""none needed" 1>&6
934 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
936 case "x$am_cv_prog_cc_stdc" in
938 *) CC="$CC $am_cv_prog_cc_stdc" ;;
941 if test x"$CFLAGS" != x; then
942 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
944 if test x"$CFLAGS" != x; then
945 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
947 if test x"$CFLAGS" != x; then
948 unet_old_cflags=$CFLAGS
949 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
951 if test x"$CFLAGS" != x"$unet_old_cflags"; then
952 # If -g was already there, force symbols to be enabled
953 unet_cv_enable_symbols=yes
955 if test x"$CFLAGS" != x; then
956 unet_old_cflags=$CFLAGS
957 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
959 if test x"$CFLAGS" != x"$unet_old_cflags"; then
960 # If -pg was already there, force profiling to be enabled
961 unet_cv_enable_profile=yes
963 if test x"$CFLAGS" != x; then
964 unet_old_cflags=$CFLAGS
965 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
967 if test x"$CFLAGS" != x"$unet_old_cflags"; then
968 # If -Wall was already there, force warnings to be enabled
969 unet_cv_enable_warnings=yes
971 if test x"$CFLAGS" != x; then
972 unet_old_cflags=$CFLAGS
973 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
975 if test x"$CFLAGS" != x"$unet_old_cflags"; then
976 # If -pedantic was already there, force pedatic to be enabled
977 unet_cv_enable_pedantic=yes
982 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
983 echo "configure:984: checking for library containing crypt" >&5
984 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 ac_func_search_save_LIBS="$LIBS"
988 ac_cv_search_crypt="no"
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 /* Override any gcc2 internal prototype to avoid an error. */
993 /* We use char because int might match the return type of a gcc2
994 builtin and then its argument prototype would still apply. */
1001 if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1003 ac_cv_search_crypt="none required"
1005 echo "configure: failed program was:" >&5
1006 cat conftest.$ac_ext >&5
1009 test "$ac_cv_search_crypt" = "no" && for i in descrypt crypt; do
1010 LIBS="-l$i $ac_func_search_save_LIBS"
1011 cat > conftest.$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1014 /* Override any gcc2 internal prototype to avoid an error. */
1015 /* We use char because int might match the return type of a gcc2
1016 builtin and then its argument prototype would still apply. */
1023 if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1025 ac_cv_search_crypt="-l$i"
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1033 LIBS="$ac_func_search_save_LIBS"
1036 echo "$ac_t""$ac_cv_search_crypt" 1>&6
1037 if test "$ac_cv_search_crypt" != "no"; then
1038 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1041 { echo "configure: error: Unable to find library containing crypt()" 1>&2; exit 1; }
1045 # Most operating systems have gethostbyname() in the default searched
1046 # libraries (i.e. libc):
1047 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1048 echo "configure:1049: checking for gethostbyname" >&5
1049 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 /* System header to define __stub macros and hopefully few prototypes,
1056 which can conflict with char gethostbyname(); below. */
1058 /* Override any gcc2 internal prototype to avoid an error. */
1059 /* We use char because int might match the return type of a gcc2
1060 builtin and then its argument prototype would still apply. */
1061 char gethostbyname();
1065 /* The GNU C library defines this for functions which it implements
1066 to always fail with ENOSYS. Some functions are actually named
1067 something starting with __ and the normal name is an alias. */
1068 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1076 if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1078 eval "ac_cv_func_gethostbyname=yes"
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1083 eval "ac_cv_func_gethostbyname=no"
1088 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1089 echo "$ac_t""yes" 1>&6
1092 echo "$ac_t""no" 1>&6
1093 # Some OSes (eg. Solaris) place it in libnsl:
1094 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1095 echo "configure:1096: checking for gethostbyname in -lnsl" >&5
1096 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 ac_save_LIBS="$LIBS"
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1105 /* Override any gcc2 internal prototype to avoid an error. */
1106 /* We use char because int might match the return type of a gcc2
1107 builtin and then its argument prototype would still apply. */
1108 char gethostbyname();
1114 if { (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1116 eval "ac_cv_lib_$ac_lib_var=yes"
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1121 eval "ac_cv_lib_$ac_lib_var=no"
1124 LIBS="$ac_save_LIBS"
1127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1128 echo "$ac_t""yes" 1>&6
1129 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1131 cat >> confdefs.h <<EOF
1132 #define $ac_tr_lib 1
1138 echo "$ac_t""no" 1>&6
1139 # Some strange OSes (SINIX) have it in libsocket:
1140 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1141 echo "configure:1142: checking for gethostbyname in -lsocket" >&5
1142 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 ac_save_LIBS="$LIBS"
1147 LIBS="-lsocket $LIBS"
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 /* Override any gcc2 internal prototype to avoid an error. */
1152 /* We use char because int might match the return type of a gcc2
1153 builtin and then its argument prototype would still apply. */
1154 char gethostbyname();
1160 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1162 eval "ac_cv_lib_$ac_lib_var=yes"
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1167 eval "ac_cv_lib_$ac_lib_var=no"
1170 LIBS="$ac_save_LIBS"
1173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1174 echo "$ac_t""yes" 1>&6
1175 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1177 cat >> confdefs.h <<EOF
1178 #define $ac_tr_lib 1
1181 LIBS="-lsocket $LIBS"
1184 echo "$ac_t""no" 1>&6
1185 # Unfortunately libsocket sometimes depends on libnsl.
1186 # AC_CHECK_LIB's API is essentially broken so the following
1187 # ugliness is necessary:
1188 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1189 echo "configure:1190: checking for gethostbyname in -lsocket" >&5
1190 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 ac_save_LIBS="$LIBS"
1195 LIBS="-lsocket -lnsl $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* Override any gcc2 internal prototype to avoid an error. */
1200 /* We use char because int might match the return type of a gcc2
1201 builtin and then its argument prototype would still apply. */
1202 char gethostbyname();
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1210 eval "ac_cv_lib_$ac_lib_var=yes"
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1215 eval "ac_cv_lib_$ac_lib_var=no"
1218 LIBS="$ac_save_LIBS"
1221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 LIBS="-lsocket -lnsl $LIBS"
1225 echo "$ac_t""no" 1>&6
1226 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1227 echo "configure:1228: checking for gethostbyname in -lresolv" >&5
1228 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 ac_save_LIBS="$LIBS"
1233 LIBS="-lresolv $LIBS"
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1237 /* Override any gcc2 internal prototype to avoid an error. */
1238 /* We use char because int might match the return type of a gcc2
1239 builtin and then its argument prototype would still apply. */
1240 char gethostbyname();
1246 if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1248 eval "ac_cv_lib_$ac_lib_var=yes"
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1253 eval "ac_cv_lib_$ac_lib_var=no"
1256 LIBS="$ac_save_LIBS"
1259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1263 cat >> confdefs.h <<EOF
1264 #define $ac_tr_lib 1
1267 LIBS="-lresolv $LIBS"
1270 echo "$ac_t""no" 1>&6
1284 echo $ac_n "checking for socket""... $ac_c" 1>&6
1285 echo "configure:1286: checking for socket" >&5
1286 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292 /* System header to define __stub macros and hopefully few prototypes,
1293 which can conflict with char socket(); below. */
1295 /* Override any gcc2 internal prototype to avoid an error. */
1296 /* We use char because int might match the return type of a gcc2
1297 builtin and then its argument prototype would still apply. */
1302 /* The GNU C library defines this for functions which it implements
1303 to always fail with ENOSYS. Some functions are actually named
1304 something starting with __ and the normal name is an alias. */
1305 #if defined (__stub_socket) || defined (__stub___socket)
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1315 eval "ac_cv_func_socket=yes"
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1320 eval "ac_cv_func_socket=no"
1325 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1326 echo "$ac_t""yes" 1>&6
1329 echo "$ac_t""no" 1>&6
1330 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1331 echo "configure:1332: checking for socket in -lsocket" >&5
1332 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 ac_save_LIBS="$LIBS"
1337 LIBS="-lsocket $LIBS"
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 /* Override any gcc2 internal prototype to avoid an error. */
1342 /* We use char because int might match the return type of a gcc2
1343 builtin and then its argument prototype would still apply. */
1350 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1352 eval "ac_cv_lib_$ac_lib_var=yes"
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 eval "ac_cv_lib_$ac_lib_var=no"
1360 LIBS="$ac_save_LIBS"
1363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364 echo "$ac_t""yes" 1>&6
1365 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1367 cat >> confdefs.h <<EOF
1368 #define $ac_tr_lib 1
1371 LIBS="-lsocket $LIBS"
1374 echo "$ac_t""no" 1>&6
1375 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1376 echo "configure:1377: checking for socket in -lsocket" >&5
1377 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_save_LIBS="$LIBS"
1382 LIBS="-lsocket -lnsl $LIBS"
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397 eval "ac_cv_lib_$ac_lib_var=yes"
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 eval "ac_cv_lib_$ac_lib_var=no"
1405 LIBS="$ac_save_LIBS"
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 LIBS="-lsocket -lnsl $LIBS"
1412 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for library containing res_mkquery""... $ac_c" 1>&6
1423 echo "configure:1424: checking for library containing res_mkquery" >&5
1424 if eval "test \"`echo '$''{'ac_cv_search_res_mkquery'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_func_search_save_LIBS="$LIBS"
1428 ac_cv_search_res_mkquery="no"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443 ac_cv_search_res_mkquery="none required"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1449 test "$ac_cv_search_res_mkquery" = "no" && for i in resolv; do
1450 LIBS="-l$i $ac_func_search_save_LIBS"
1451 cat > conftest.$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1454 /* Override any gcc2 internal prototype to avoid an error. */
1455 /* We use char because int might match the return type of a gcc2
1456 builtin and then its argument prototype would still apply. */
1463 if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465 ac_cv_search_res_mkquery="-l$i"
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1473 LIBS="$ac_func_search_save_LIBS"
1476 echo "$ac_t""$ac_cv_search_res_mkquery" 1>&6
1477 if test "$ac_cv_search_res_mkquery" != "no"; then
1478 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
1481 { echo "configure: error: Unable to find library containing res_mkquery()" 1>&2; exit 1; }
1484 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1485 echo "configure:1486: checking how to run the C preprocessor" >&5
1486 # On Suns, sometimes $CPP names a directory.
1487 if test -n "$CPP" && test -d "$CPP"; then
1490 if test -z "$CPP"; then
1491 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 # This must be in double quotes, not single quotes, because CPP may get
1495 # substituted into the Makefile and "${CC-cc}" will confuse make.
1497 # On the NeXT, cc -E runs the code through the compiler's parser,
1498 # not just through cpp.
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1506 { (eval echo configure:1507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1508 if test -z "$ac_err"; then
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1515 CPP="${CC-cc} -E -traditional-cpp"
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525 if test -z "$ac_err"; then
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 CPP="${CC-cc} -nologo -E"
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1540 { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1542 if test -z "$ac_err"; then
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1556 ac_cv_prog_CPP="$CPP"
1558 CPP="$ac_cv_prog_CPP"
1560 ac_cv_prog_CPP="$CPP"
1562 echo "$ac_t""$CPP" 1>&6
1564 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1565 echo "configure:1566: checking for ANSI C header files" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1578 { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1580 if test -z "$ac_err"; then
1582 ac_cv_header_stdc=yes
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 ac_cv_header_stdc=no
1592 if test $ac_cv_header_stdc = yes; then
1593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1600 egrep "memchr" >/dev/null 2>&1; then
1604 ac_cv_header_stdc=no
1610 if test $ac_cv_header_stdc = yes; then
1611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1618 egrep "free" >/dev/null 2>&1; then
1622 ac_cv_header_stdc=no
1628 if test $ac_cv_header_stdc = yes; then
1629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1630 if test "$cross_compiling" = yes; then
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1637 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1638 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1640 int main () { int i; for (i = 0; i < 256; i++)
1641 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1645 if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1652 ac_cv_header_stdc=no
1660 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1661 if test $ac_cv_header_stdc = yes; then
1662 cat >> confdefs.h <<\EOF
1663 #define STDC_HEADERS 1
1668 for ac_hdr in poll.h sys/devpoll.h sys/event.h
1670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1672 echo "configure:1673: checking for $ac_hdr" >&5
1673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1682 { (eval echo configure:1683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1684 if test -z "$ac_err"; then
1686 eval "ac_cv_header_$ac_safe=yes"
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1692 eval "ac_cv_header_$ac_safe=no"
1696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1699 cat >> confdefs.h <<EOF
1700 #define $ac_tr_hdr 1
1704 echo "$ac_t""no" 1>&6
1709 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether byte ordering is bigendian" >&5
1711 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 ac_cv_c_bigendian=unknown
1715 # See if sys/param.h defines the BYTE_ORDER macro.
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 #include <sys/types.h>
1720 #include <sys/param.h>
1723 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1728 if { (eval echo configure:1729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1730 # It does; now see whether it defined to BIG_ENDIAN or not.
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 #include <sys/types.h>
1735 #include <sys/param.h>
1738 #if BYTE_ORDER != BIG_ENDIAN
1743 if { (eval echo configure:1744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1745 ac_cv_c_bigendian=yes
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1750 ac_cv_c_bigendian=no
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1758 if test $ac_cv_c_bigendian = unknown; then
1759 if test "$cross_compiling" = yes; then
1760 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1766 /* Are we little or big endian? From Harbison&Steele. */
1770 char c[sizeof (long)];
1773 exit (u.c[sizeof (long) - 1] == 1);
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1778 ac_cv_c_bigendian=no
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 ac_cv_c_bigendian=yes
1791 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1792 if test $ac_cv_c_bigendian = yes; then
1793 cat >> confdefs.h <<\EOF
1794 #define WORDS_BIGENDIAN 1
1799 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1800 echo "configure:1801: checking for size_t" >&5
1801 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #include <sys/types.h>
1813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1814 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1816 ac_cv_type_size_t=yes
1819 ac_cv_type_size_t=no
1824 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1825 if test $ac_cv_type_size_t = no; then
1826 cat >> confdefs.h <<\EOF
1827 #define size_t unsigned
1832 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include <sys/types.h>
1841 #include <sys/time.h>
1847 if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1849 ac_cv_header_time=yes
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1854 ac_cv_header_time=no
1859 echo "$ac_t""$ac_cv_header_time" 1>&6
1860 if test $ac_cv_header_time = yes; then
1861 cat >> confdefs.h <<\EOF
1862 #define TIME_WITH_SYS_TIME 1
1867 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether struct tm is in sys/time.h or time.h" >&5
1869 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <sys/types.h>
1878 struct tm *tp; tp->tm_sec;
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1883 ac_cv_struct_tm=time.h
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 ac_cv_struct_tm=sys/time.h
1893 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1894 if test $ac_cv_struct_tm = sys/time.h; then
1895 cat >> confdefs.h <<\EOF
1896 #define TM_IN_SYS_TIME 1
1901 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1902 echo "configure:1903: checking for uid_t in sys/types.h" >&5
1903 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <sys/types.h>
1911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1912 egrep "uid_t" >/dev/null 2>&1; then
1914 ac_cv_type_uid_t=yes
1923 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1924 if test $ac_cv_type_uid_t = no; then
1925 cat >> confdefs.h <<\EOF
1929 cat >> confdefs.h <<\EOF
1935 echo $ac_n "checking size of short""... $ac_c" 1>&6
1936 echo "configure:1937: checking size of short" >&5
1937 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test "$cross_compiling" = yes; then
1941 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1949 FILE *f=fopen("conftestval", "w");
1951 fprintf(f, "%d\n", sizeof(short));
1955 if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1957 ac_cv_sizeof_short=`cat conftestval`
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 ac_cv_sizeof_short=0
1968 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1969 cat >> confdefs.h <<EOF
1970 #define SIZEOF_SHORT $ac_cv_sizeof_short
1974 echo $ac_n "checking size of int""... $ac_c" 1>&6
1975 echo "configure:1976: checking size of int" >&5
1976 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 if test "$cross_compiling" = yes; then
1980 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1988 FILE *f=fopen("conftestval", "w");
1990 fprintf(f, "%d\n", sizeof(int));
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1996 ac_cv_sizeof_int=`cat conftestval`
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2007 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2008 cat >> confdefs.h <<EOF
2009 #define SIZEOF_INT $ac_cv_sizeof_int
2013 echo $ac_n "checking size of long""... $ac_c" 1>&6
2014 echo "configure:2015: checking size of long" >&5
2015 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 if test "$cross_compiling" = yes; then
2019 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2027 FILE *f=fopen("conftestval", "w");
2029 fprintf(f, "%d\n", sizeof(long));
2033 if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2035 ac_cv_sizeof_long=`cat conftestval`
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2046 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2047 cat >> confdefs.h <<EOF
2048 #define SIZEOF_LONG $ac_cv_sizeof_long
2052 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2053 echo "configure:2054: checking size of void *" >&5
2054 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 if test "$cross_compiling" = yes; then
2058 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2066 FILE *f=fopen("conftestval", "w");
2068 fprintf(f, "%d\n", sizeof(void *));
2072 if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2074 ac_cv_sizeof_void_p=`cat conftestval`
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2079 ac_cv_sizeof_void_p=0
2085 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2086 cat >> confdefs.h <<EOF
2087 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2091 if test "$ac_cv_sizeof_int" = 2 ; then
2092 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2093 echo "configure:2094: checking for int16_t" >&5
2094 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 #include <sys/types.h>
2106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2109 ac_cv_type_int16_t=yes
2112 ac_cv_type_int16_t=no
2117 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2118 if test $ac_cv_type_int16_t = no; then
2119 cat >> confdefs.h <<\EOF
2125 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2126 echo "configure:2127: checking for u_int16_t" >&5
2127 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <sys/types.h>
2139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2140 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2142 ac_cv_type_u_int16_t=yes
2145 ac_cv_type_u_int16_t=no
2150 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2151 if test $ac_cv_type_u_int16_t = no; then
2152 cat >> confdefs.h <<\EOF
2153 #define u_int16_t unsigned int
2158 elif test "$ac_cv_sizeof_short" = 2 ; then
2159 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2160 echo "configure:2161: checking for int16_t" >&5
2161 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <sys/types.h>
2173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2174 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2176 ac_cv_type_int16_t=yes
2179 ac_cv_type_int16_t=no
2184 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2185 if test $ac_cv_type_int16_t = no; then
2186 cat >> confdefs.h <<\EOF
2187 #define int16_t short
2192 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2193 echo "configure:2194: checking for u_int16_t" >&5
2194 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <sys/types.h>
2206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2207 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2209 ac_cv_type_u_int16_t=yes
2212 ac_cv_type_u_int16_t=no
2217 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2218 if test $ac_cv_type_u_int16_t = no; then
2219 cat >> confdefs.h <<\EOF
2220 #define u_int16_t unsigned short
2226 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2228 if test "$ac_cv_sizeof_int" = 4 ; then
2229 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2230 echo "configure:2231: checking for int32_t" >&5
2231 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 #include <sys/types.h>
2243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2244 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2246 ac_cv_type_int32_t=yes
2249 ac_cv_type_int32_t=no
2254 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2255 if test $ac_cv_type_int32_t = no; then
2256 cat >> confdefs.h <<\EOF
2262 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2263 echo "configure:2264: checking for u_int32_t" >&5
2264 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <sys/types.h>
2276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2277 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2279 ac_cv_type_u_int32_t=yes
2282 ac_cv_type_u_int32_t=no
2287 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2288 if test $ac_cv_type_u_int32_t = no; then
2289 cat >> confdefs.h <<\EOF
2290 #define u_int32_t unsigned int
2295 elif test "$ac_cv_sizeof_short" = 4 ; then
2296 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2297 echo "configure:2298: checking for int32_t" >&5
2298 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <sys/types.h>
2310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2311 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2313 ac_cv_type_int32_t=yes
2316 ac_cv_type_int32_t=no
2321 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2322 if test $ac_cv_type_int32_t = no; then
2323 cat >> confdefs.h <<\EOF
2324 #define int32_t short
2329 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2330 echo "configure:2331: checking for u_int32_t" >&5
2331 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <sys/types.h>
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2346 ac_cv_type_u_int32_t=yes
2349 ac_cv_type_u_int32_t=no
2354 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2355 if test $ac_cv_type_u_int32_t = no; then
2356 cat >> confdefs.h <<\EOF
2357 #define u_int32_t unsigned short
2362 elif test "$ac_cv_sizeof_long" = 4 ; then
2363 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2364 echo "configure:2365: checking for int32_t" >&5
2365 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <sys/types.h>
2377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2378 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2380 ac_cv_type_int32_t=yes
2383 ac_cv_type_int32_t=no
2388 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2389 if test $ac_cv_type_int32_t = no; then
2390 cat >> confdefs.h <<\EOF
2391 #define int32_t long
2396 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2397 echo "configure:2398: checking for u_int32_t" >&5
2398 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 #include <sys/types.h>
2410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2411 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2413 ac_cv_type_u_int32_t=yes
2416 ac_cv_type_u_int32_t=no
2421 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2422 if test $ac_cv_type_u_int32_t = no; then
2423 cat >> confdefs.h <<\EOF
2424 #define u_int32_t unsigned long
2430 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2433 echo $ac_n "checking for kqueue""... $ac_c" 1>&6
2434 echo "configure:2435: checking for kqueue" >&5
2435 if eval "test \"`echo '$''{'ac_cv_func_kqueue'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* System header to define __stub macros and hopefully few prototypes,
2442 which can conflict with char kqueue(); below. */
2444 /* Override any gcc2 internal prototype to avoid an error. */
2445 /* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2451 /* The GNU C library defines this for functions which it implements
2452 to always fail with ENOSYS. Some functions are actually named
2453 something starting with __ and the normal name is an alias. */
2454 #if defined (__stub_kqueue) || defined (__stub___kqueue)
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 eval "ac_cv_func_kqueue=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 eval "ac_cv_func_kqueue=no"
2474 if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2478 echo "$ac_t""no" 1>&6
2482 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2483 echo "configure:2484: checking for restartable system calls" >&5
2484 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 if test "$cross_compiling" = yes; then
2488 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 /* Exit 0 (true) if wait returns something other than -1,
2494 i.e. the pid of the child, which means that wait was restarted
2495 after getting the signal. */
2496 #include <sys/types.h>
2500 int i = fork (), status;
2501 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2502 signal (SIGINT, ucatch);
2504 if (status == -1) wait(&i);
2505 exit (status == -1);
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2511 ac_cv_sys_restartable_syscalls=yes
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 ac_cv_sys_restartable_syscalls=no
2523 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2524 if test $ac_cv_sys_restartable_syscalls = yes; then
2525 cat >> confdefs.h <<\EOF
2526 #define HAVE_RESTARTABLE_SYSCALLS 1
2532 echo $ac_n "checking for donuts""... $ac_c" 1>&6
2533 echo "configure:2534: checking for donuts" >&5
2534 echo "$ac_t""yes" 1>&6
2536 for ac_prog in mawk gawk nawk awk
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_word" >&5
2542 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 if test -n "$AWK"; then
2546 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2550 for ac_dir in $ac_dummy; do
2551 test -z "$ac_dir" && ac_dir=.
2552 if test -f $ac_dir/$ac_word; then
2553 ac_cv_prog_AWK="$ac_prog"
2560 AWK="$ac_cv_prog_AWK"
2561 if test -n "$AWK"; then
2562 echo "$ac_t""$AWK" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 test -n "$AWK" && break
2570 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2571 echo "configure:2572: checking whether ${MAKE-make} sets \${MAKE}" >&5
2572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2573 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftestmake <<\EOF
2578 @echo 'ac_maketemp="${MAKE}"'
2580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2581 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2582 if test -n "$ac_maketemp"; then
2583 eval ac_cv_prog_make_${ac_make}_set=yes
2585 eval ac_cv_prog_make_${ac_make}_set=no
2589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2593 echo "$ac_t""no" 1>&6
2594 SET_MAKE="MAKE=${MAKE-make}"
2597 # Find a good install program. We prefer a C program (faster),
2598 # so one script is as good as another. But avoid the broken or
2599 # incompatible versions:
2600 # SysV /etc/install, /usr/sbin/install
2601 # SunOS /usr/etc/install
2602 # IRIX /sbin/install
2604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2607 # ./install, which can be erroneously created by make from ./install.sh.
2608 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2609 echo "configure:2610: checking for a BSD compatible install" >&5
2610 if test -z "$INSTALL"; then
2611 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2615 for ac_dir in $PATH; do
2616 # Account for people who put trailing slashes in PATH elements.
2618 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2620 # OSF1 and SCO ODT 3.0 have their own names for install.
2621 # Don't use installbsd from OSF since it installs stuff as root
2623 for ac_prog in ginstall scoinst install; do
2624 if test -f $ac_dir/$ac_prog; then
2625 if test $ac_prog = install &&
2626 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2627 # AIX install. It has an incompatible calling convention.
2630 ac_cv_path_install="$ac_dir/$ac_prog -c"
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL="$ac_cv_path_install"
2644 # As a last resort, use the slow shell script. We don't cache a
2645 # path for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the path is relative.
2648 INSTALL="$ac_install_sh"
2651 echo "$ac_t""$INSTALL" 1>&6
2653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654 # It thinks the first close brace ends the variable substitution.
2655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2661 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2662 echo "configure:2663: checking whether ln -s works" >&5
2663 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2667 if ln -s X conftestdata 2>/dev/null
2670 ac_cv_prog_LN_S="ln -s"
2675 LN_S="$ac_cv_prog_LN_S"
2676 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2677 echo "$ac_t""yes" 1>&6
2679 echo "$ac_t""no" 1>&6
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_word" >&5
2688 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2693 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2696 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2701 for ac_dir in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir=.
2703 if test -f $ac_dir/$ac_word; then
2704 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2712 RMPROG="$ac_cv_path_RMPROG"
2713 if test -n "$RMPROG"; then
2714 echo "$ac_t""$RMPROG" 1>&6
2716 echo "$ac_t""no" 1>&6
2719 test -n "$RMPROG" && break
2721 test -n "$RMPROG" || RMPROG="/bin/rm"
2725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2726 set dummy $ac_prog; ac_word=$2
2727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2728 echo "configure:2729: checking for $ac_word" >&5
2729 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2734 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2737 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2742 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 if test -f $ac_dir/$ac_word; then
2745 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2753 SHPROG="$ac_cv_path_SHPROG"
2754 if test -n "$SHPROG"; then
2755 echo "$ac_t""$SHPROG" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 test -n "$SHPROG" && break
2762 test -n "$SHPROG" || SHPROG="/bin/sh"
2765 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2766 echo "configure:2767: checking for posix non-blocking" >&5
2767 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 if test "$cross_compiling" = yes; then
2771 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <sys/types.h>
2777 #include <sys/socket.h>
2779 #include <sys/ioctl.h>
2780 #include <sys/file.h>
2782 $ac_cv_type_signal alarmed() { exit(1); }
2787 size_t l = sizeof(x);
2788 int f = socket(AF_INET, SOCK_DGRAM, 0);
2789 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2791 signal(SIGALRM, alarmed);
2793 recvfrom(f, b, 12, 0, &x, &l);
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2802 unet_cv_sys_nonblocking_posix=yes
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 unet_cv_sys_nonblocking_posix=no
2814 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2815 if test $unet_cv_sys_nonblocking_posix = yes; then
2816 cat >> confdefs.h <<\EOF
2817 #define NBLOCK_POSIX 1
2821 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2822 echo "configure:2823: checking for bsd non-blocking" >&5
2823 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 if test "$cross_compiling" = yes; then
2827 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <sys/types.h>
2833 #include <sys/socket.h>
2835 #include <sys/ioctl.h>
2836 #include <sys/file.h>
2838 $ac_cv_type_signal alarmed() { exit(1); }
2843 size_t l = sizeof(x);
2844 int f = socket(AF_INET, SOCK_DGRAM, 0);
2845 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2847 signal(SIGALRM, alarmed);
2849 recvfrom(f, b, 12, 0, &x, &l);
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2858 unet_cv_sys_nonblocking_bsd=yes
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 unet_cv_sys_nonblocking_bsd=no
2870 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2871 if test $unet_cv_sys_nonblocking_bsd = yes; then
2872 cat >> confdefs.h <<\EOF
2873 #define NBLOCK_BSD 1
2877 cat >> confdefs.h <<\EOF
2878 #define NBLOCK_SYSV 1
2883 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2884 echo "configure:2885: checking for posix signals" >&5
2885 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2893 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2896 if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2898 unet_cv_sys_signal_posix=yes
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 unet_cv_sys_signal_posix=no
2908 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2909 if test $unet_cv_sys_signal_posix = yes; then
2910 cat >> confdefs.h <<\EOF
2911 #define POSIX_SIGNALS 1
2915 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2916 echo "configure:2917: checking for bsd reliable signals" >&5
2917 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test "$cross_compiling" = yes; then
2921 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2928 $ac_cv_type_signal handler()
2932 kill(getpid(), SIGTERM);
2937 signal(SIGTERM, handler);
2938 kill(getpid(), SIGTERM);
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2944 unet_cv_sys_signal_bsd=yes
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 unet_cv_sys_signal_bsd=no
2956 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2957 if test $unet_cv_sys_signal_bsd = yes; then
2958 cat >> confdefs.h <<\EOF
2959 #define BSD_RELIABLE_SIGNALS 1
2963 cat >> confdefs.h <<\EOF
2964 #define SYSV_UNRELIABLE_SIGNALS 1
2970 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2971 echo "configure:2972: checking if the compiler understands -pipe" >&5
2972 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2973 if test "$ac_cv_prog_gcc" = no; then
2975 CFLAGS="$CFLAGS -pipe"
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2984 if { (eval echo configure:2985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2986 unet_cv_pipe_flags=yes
2988 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2994 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2995 if test "$unet_cv_pipe_flags" = yes ; then
2996 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2997 if test "$x" = "" ; then
2998 CFLAGS="$CFLAGS -pipe"
3003 echo $ac_n "checking for OS-dependent information""... $ac_c" 1>&6
3004 echo "configure:3005: checking for OS-dependent information" >&5
3007 echo "$ac_t""Linux ($host) found." 1>&6
3008 unet_poll_syscall=yes
3013 echo "$ac_t""Solaris ($host) found." 1>&6
3014 if test x"$ac_cv_header_poll_h" = xyes; then
3015 unet_poll_syscall=yes
3017 unet_poll_syscall=no
3019 OSDEP_C=os_solaris.c
3023 echo "$ac_t""Solaris ($host) found." 1>&6
3024 unet_poll_syscall=no
3025 OSDEP_C=os_solaris.c
3029 echo "$ac_t""OpenBSD ($host) found." 1>&6
3030 if test x"$ac_cv_header_poll_h" = xyes; then
3031 unet_poll_syscall=yes
3033 unet_poll_syscall=no
3035 OSDEP_C=os_openbsd.c
3039 echo "$ac_t""Generic BSD ($host) found." 1>&6
3040 if test x"$ac_cv_header_poll_h" = xyes; then
3041 unet_poll_syscall=yes
3043 unet_poll_syscall=no
3049 echo "$ac_t""Darwin (Mac OS X) ($host) found." 1>&6
3050 unet_poll_syscall=no
3055 echo "$ac_t""Unknown system type $host found." 1>&6
3056 echo "configure: warning: Unknown OS type; using generic routines." 1>&2
3057 unet_poll_syscall=no
3058 OSDEP_C=os_generic.c
3063 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
3064 echo "configure:3065: checking whether to enable use of poll()" >&5
3065 # Check whether --enable-poll or --disable-poll was given.
3066 if test "${enable_poll+set}" = set; then
3067 enableval="$enable_poll"
3068 unet_cv_enable_poll=$enable_poll
3070 if eval "test \"`echo '$''{'unet_cv_enable_poll'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 unet_cv_enable_poll=$unet_poll_syscall
3079 # Force poll to be disabled if there is no poll.h
3080 if test x"$ac_cv_header_poll_h" != xyes; then
3081 unet_cv_enable_poll=no
3084 echo "$ac_t""$unet_cv_enable_poll" 1>&6
3086 if test x"$unet_cv_enable_poll" = xyes; then
3087 cat >> confdefs.h <<\EOF
3091 ENGINE_C=engine_poll.c
3093 ENGINE_C=engine_select.c
3097 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
3098 echo "configure:3099: checking whether to enable debug mode" >&5
3099 # Check whether --enable-debug or --disable-debug was given.
3100 if test "${enable_debug+set}" = set; then
3101 enableval="$enable_debug"
3102 unet_cv_enable_debug=$enable_debug
3104 if eval "test \"`echo '$''{'unet_cv_enable_debug'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 unet_cv_enable_debug=no
3112 echo "$ac_t""$unet_cv_enable_debug" 1>&6
3114 if test x"$unet_cv_enable_debug" = xyes; then
3115 cat >> confdefs.h <<\EOF
3121 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
3122 echo "configure:3123: checking whether to enable asserts" >&5
3123 # Check whether --enable-asserts or --disable-asserts was given.
3124 if test "${enable_asserts+set}" = set; then
3125 enableval="$enable_asserts"
3126 unet_cv_enable_asserts=$enable_asserts
3128 if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 unet_cv_enable_asserts=yes
3136 echo "$ac_t""$unet_cv_enable_asserts" 1>&6
3138 if test x"$unet_cv_enable_asserts" = xno; then
3139 cat >> confdefs.h <<\EOF
3145 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether to enable debugging symbols" >&5
3147 # Check whether --enable-symbols or --disable-symbols was given.
3148 if test "${enable_symbols+set}" = set; then
3149 enableval="$enable_symbols"
3150 unet_cv_enable_symbols=$enable_symbols
3152 if eval "test \"`echo '$''{'unet_cv_enable_symbols'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 unet_cv_enable_symbols=yes
3160 echo "$ac_t""$unet_cv_enable_symbols" 1>&6
3162 if test x"$unet_cv_enable_symbols" = xyes; then
3166 echo $ac_n "checking whether to enable head in sand 'features'""... $ac_c" 1>&6
3167 echo "configure:3168: checking whether to enable head in sand 'features'" >&5
3168 # Check whether --enable-headinsand or --disable-headinsand was given.
3169 if test "${enable_headinsand+set}" = set; then
3170 enableval="$enable_headinsand"
3171 unet_cv_enable_headinsand=$enable_headinsand
3173 if eval "test \"`echo '$''{'unet_cv_enable_headinsand'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 unet_cv_enable_headinsand=yes
3181 echo "$ac_t""$unet_cv_enable_headinsand" 1>&6
3183 if test x"$unet_cv_enable_headinsand" = xno; then
3184 CFLAGS="-DNO_HEAD_IN_SAND $CFLAGS"
3187 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether to enable profiling support (gprof)" >&5
3189 # Check whether --enable-profile or --disable-profile was given.
3190 if test "${enable_profile+set}" = set; then
3191 enableval="$enable_profile"
3192 unet_cv_enable_profile=$enable_profile
3194 if eval "test \"`echo '$''{'unet_cv_enable_profile'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 unet_cv_enable_profile=no
3202 echo "$ac_t""$unet_cv_enable_profile" 1>&6
3204 if test x"$unet_cv_enable_profile" = xyes; then
3205 CFLAGS="-pg $CFLAGS"
3208 echo $ac_n "checking whether to enable pedantic compiler warnings""... $ac_c" 1>&6
3209 echo "configure:3210: checking whether to enable pedantic compiler warnings" >&5
3210 # Check whether --enable-pedantic or --disable-pedantic was given.
3211 if test "${enable_pedantic+set}" = set; then
3212 enableval="$enable_pedantic"
3213 unet_cv_enable_pedantic=$enable_pedantic
3215 if eval "test \"`echo '$''{'unet_cv_enable_pedantic'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 unet_cv_enable_pedantic=no
3223 echo "$ac_t""$unet_cv_enable_pedantic" 1>&6
3225 if test x"$unet_cv_enable_pedantic" = xyes; then
3226 CFLAGS="-pedantic $CFLAGS"
3229 echo $ac_n "checking whether to enable compiler warnings""... $ac_c" 1>&6
3230 echo "configure:3231: checking whether to enable compiler warnings" >&5
3231 # Check whether --enable-warnings or --disable-warnings was given.
3232 if test "${enable_warnings+set}" = set; then
3233 enableval="$enable_warnings"
3234 unet_cv_enable_warnings=$enable_warnings
3236 if eval "test \"`echo '$''{'unet_cv_enable_warnings'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 unet_cv_enable_warnings=no
3244 echo "$ac_t""$unet_cv_enable_warnings" 1>&6
3246 if test x"$unet_cv_enable_warnings" = xyes; then
3247 CFLAGS="-Wall $CFLAGS"
3250 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
3251 echo "configure:3252: checking whether to enable inlining for a few critical functions" >&5
3252 # Check whether --enable-inlines or --disable-inlines was given.
3253 if test "${enable_inlines+set}" = set; then
3254 enableval="$enable_inlines"
3255 unet_cv_enable_inlines=$enable_inlines
3257 if eval "test \"`echo '$''{'unet_cv_enable_inlines'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 unet_cv_enable_inlines=yes
3265 echo "$ac_t""$unet_cv_enable_inlines" 1>&6
3267 if test x"$unet_cv_enable_inlines" = xyes; then
3268 cat >> confdefs.h <<\EOF
3274 echo $ac_n "checking whether to enable the /dev/poll event engine""... $ac_c" 1>&6
3275 echo "configure:3276: checking whether to enable the /dev/poll event engine" >&5
3276 # Check whether --enable-devpoll or --disable-devpoll was given.
3277 if test "${enable_devpoll+set}" = set; then
3278 enableval="$enable_devpoll"
3279 unet_cv_enable_devpoll=$enable_devpoll
3281 if eval "test \"`echo '$''{'unet_cv_enable_devpoll'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 unet_cv_enable_devpoll=yes
3290 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
3291 unet_cv_enable_devpoll=no
3294 echo "$ac_t""$unet_cv_enable_devpoll" 1>&6
3296 if test x"$unet_cv_enable_devpoll" != xno; then
3297 cat >> confdefs.h <<\EOF
3301 ENGINE_C="engine_devpoll.c $ENGINE_C"
3304 echo $ac_n "checking whether to enable the kqueue event engine""... $ac_c" 1>&6
3305 echo "configure:3306: checking whether to enable the kqueue event engine" >&5
3306 # Check whether --enable-kqueue or --disable-kqueue was given.
3307 if test "${enable_kqueue+set}" = set; then
3308 enableval="$enable_kqueue"
3309 unet_cv_enable_kqueue=$enable_kqueue
3311 if eval "test \"`echo '$''{'unet_cv_enable_kqueue'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 unet_cv_enable_kqueue=yes
3320 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
3321 unet_cv_enable_kqueue=no
3324 echo "$ac_t""$unet_cv_enable_kqueue" 1>&6
3326 if test x"$unet_cv_enable_kqueue" != xno; then
3327 cat >> confdefs.h <<\EOF
3331 ENGINE_C="engine_kqueue.c $ENGINE_C"
3334 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
3335 echo "configure:3336: checking what name to give the symlink" >&5
3336 # Check whether --with-symlink or --without-symlink was given.
3337 if test "${with_symlink+set}" = set; then
3338 withval="$with_symlink"
3339 unet_cv_with_symlink=$with_symlink
3341 if eval "test \"`echo '$''{'unet_cv_with_symlink'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 unet_cv_with_symlink="ircd"
3350 if test x"$unet_cv_with_symlink" = xyes; then
3351 unet_cv_with_symlink="ircd"
3354 echo "$ac_t""$unet_cv_with_symlink" 1>&6
3356 if test x"$unet_cv_with_symlink" = xno; then
3357 INSTALL_RULE=install-no-symlink
3360 INSTALL_RULE=install-with-symlink
3361 SYMLINK=$unet_cv_with_symlink
3366 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
3367 echo "configure:3368: checking what permissions to set on the installed binary" >&5
3368 # Check whether --with-mode or --without-mode was given.
3369 if test "${with_mode+set}" = set; then
3370 withval="$with_mode"
3371 unet_cv_with_mode=$with_mode
3373 if eval "test \"`echo '$''{'unet_cv_with_mode'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 unet_cv_with_mode=711
3382 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
3383 unet_cv_with_mode=711
3386 echo "$ac_t""$unet_cv_with_mode" 1>&6
3388 IRCDMODE=$unet_cv_with_mode
3391 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3392 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
3393 echo "configure:3394: checking which user should own the installed binary" >&5
3394 # Check whether --with-owner or --without-owner was given.
3395 if test "${with_owner+set}" = set; then
3396 withval="$with_owner"
3397 unet_cv_with_owner=$with_owner
3399 if eval "test \"`echo '$''{'unet_cv_with_owner'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 unet_cv_with_owner=$unet_uid
3408 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
3409 unet_cv_with_owner=$unet_uid
3412 echo "$ac_t""$unet_cv_with_owner" 1>&6
3414 IRCDOWN=$unet_cv_with_owner
3417 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3418 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
3419 echo "configure:3420: checking which group should own the installed binary" >&5
3420 # Check whether --with-group or --without-group was given.
3421 if test "${with_group+set}" = set; then
3422 withval="$with_group"
3423 unet_cv_with_group=$with_group
3425 if eval "test \"`echo '$''{'unet_cv_with_group'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 unet_cv_with_group=$unet_gid
3434 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
3435 unet_cv_with_group=$unet_gid
3438 echo "$ac_t""$unet_cv_with_group" 1>&6
3440 IRCDGRP=$unet_cv_with_group
3444 if test -f /etc/resolv.conf; then
3445 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
3446 if test x"$unet_domain" = x; then
3447 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
3450 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
3451 echo "configure:3452: checking for site domain name" >&5
3452 # Check whether --with-domain or --without-domain was given.
3453 if test "${with_domain+set}" = set; then
3454 withval="$with_domain"
3455 unet_cv_with_domain=$with_domain
3457 if eval "test \"`echo '$''{'unet_cv_with_domain'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 unet_cv_with_domain=$unet_domain
3466 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
3467 unet_cv_with_domain=$unet_domain
3469 if test x"$unet_cv_with_domain" = xno; then
3470 { echo "configure: error: Unable to determine server DNS domain; use --with-domain to set it" 1>&2; exit 1; }
3473 echo "$ac_t""$unet_cv_with_domain" 1>&6
3475 cat >> confdefs.h <<EOF
3476 #define DOMAINNAME "*$unet_cv_with_domain"
3480 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
3481 echo "configure:3482: checking if chroot operation is desired" >&5
3482 # Check whether --with-chroot or --without-chroot was given.
3483 if test "${with_chroot+set}" = set; then
3484 withval="$with_chroot"
3485 unet_cv_with_chroot=$with_chroot
3487 if eval "test \"`echo '$''{'unet_cv_with_chroot'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 unet_cv_with_chroot=no
3496 if test x"$unet_cv_with_chroot" = xyes; then
3497 { echo "configure: error: --with-chroot given with no directory. See doc/readme.chroot." 1>&2; exit 1; }
3500 # Ensure there are no trailing /'s to mess us up
3501 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
3503 echo "$ac_t""$unet_cv_with_chroot" 1>&6
3505 # Deal with the annoying value "NONE" here
3506 unet_save_prefix=$prefix
3507 if test x"$prefix" = xNONE; then
3508 prefix=$ac_default_prefix
3513 unet_save_exec_prefix=$exec_prefix
3514 if test x"$exec_prefix" = xNONE; then
3517 exec_prefix=$exec_prefix
3520 # Obtain the actual interesting directories
3521 unet_bindir=`eval echo "$bindir"`
3522 unet_libdir=`eval echo "$libdir"`
3524 # Restore the original settings of $prefix and $exec_prefix
3525 prefix=$unet_save_prefix
3526 exec_prefix=$unet_save_exec_prefix
3528 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
3529 echo "configure:3530: checking where the binary will be for /restart" >&5
3530 if test x"$unet_cv_with_symlink" = xno; then
3531 unet_spath="$unet_bindir/ircd"
3533 unet_spath="$unet_bindir/$unet_cv_with_symlink"
3535 echo "$ac_t""$unet_spath" 1>&6
3537 if test x"$unet_cv_with_chroot" != xno; then
3538 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3539 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
3541 echo "configure: warning: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" 1>&2
3545 cat >> confdefs.h <<EOF
3546 #define SPATH "$unet_spath"
3550 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
3551 echo "configure:3552: checking what the data directory should be" >&5
3552 # Check whether --with-dpath or --without-dpath was given.
3553 if test "${with_dpath+set}" = set; then
3554 withval="$with_dpath"
3555 unet_cv_with_dpath=$with_dpath
3557 if eval "test \"`echo '$''{'unet_cv_with_dpath'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 unet_cv_with_dpath=$unet_libdir
3566 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
3567 unet_cv_with_dpath=$unet_libdir
3570 # Ensure there are no trailing /'s to mess us up
3571 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
3573 echo "$ac_t""$unet_cv_with_dpath" 1>&6
3575 if test x"$unet_cv_with_chroot" != xno; then
3576 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3577 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
3579 { echo "configure: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3582 unet_dpath=$unet_cv_with_dpath
3585 cat >> confdefs.h <<EOF
3586 #define DPATH "$unet_dpath"
3590 DPATH=$unet_cv_with_dpath
3593 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
3594 echo "configure:3595: checking where the default configuration file resides" >&5
3595 # Check whether --with-cpath or --without-cpath was given.
3596 if test "${with_cpath+set}" = set; then
3597 withval="$with_cpath"
3598 unet_cv_with_cpath=$with_cpath
3600 if eval "test \"`echo '$''{'unet_cv_with_cpath'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3603 unet_cv_with_cpath="ircd.conf"
3609 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
3610 unet_cv_with_cpath="ircd.conf"
3613 echo "$ac_t""$unet_cv_with_cpath" 1>&6
3615 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
3616 # Absolute path; check against chroot stuff
3617 if test x"$unet_cv_with_chroot" != xno; then
3618 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3619 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
3621 { echo "configure: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3624 unet_cpath=$unet_cv_with_cpath
3627 unet_cpath=$unet_cv_with_cpath
3630 cat >> confdefs.h <<EOF
3631 #define CPATH "$unet_cpath"
3635 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
3636 echo "configure:3637: checking where to put the debugging log if debugging enabled" >&5
3637 # Check whether --with-lpath or --without-lpath was given.
3638 if test "${with_lpath+set}" = set; then
3639 withval="$with_lpath"
3640 unet_cv_with_lpath=$with_lpath
3642 if eval "test \"`echo '$''{'unet_cv_with_lpath'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 unet_cv_with_lpath="ircd.log"
3651 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
3652 unet_cv_with_lpath="ircd.log"
3655 echo "$ac_t""$unet_cv_with_lpath" 1>&6
3657 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
3658 # Absolute path; check against chroot stuff
3659 if test x"$unet_cv_with_chroot" != xno; then
3660 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3661 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
3663 echo "configure: warning: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" 1>&2
3664 unet_cv_with_lpath="ircd.log"
3665 unet_lpath="ircd.log"
3668 unet_lpath=$unet_cv_with_lpath
3671 unet_lpath=$unet_cv_with_lpath
3674 cat >> confdefs.h <<EOF
3675 #define LPATH "$unet_lpath"
3679 unet_maxcon=`ulimit -Hn`
3680 unet_maxcon=`expr $unet_maxcon - 4`
3681 echo $ac_n "checking max connections""... $ac_c" 1>&6
3682 echo "configure:3683: checking max connections" >&5
3683 # Check whether --with-maxcon or --without-maxcon was given.
3684 if test "${with_maxcon+set}" = set; then
3685 withval="$with_maxcon"
3686 unet_cv_with_maxcon=$with_maxcon
3688 if eval "test \"`echo '$''{'unet_cv_with_maxcon'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 unet_cv_with_maxcon=$unet_maxcon
3697 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
3698 unet_cv_with_maxcon=$unet_maxcon
3701 echo "$ac_t""$unet_cv_with_maxcon" 1>&6
3703 cat >> confdefs.h <<EOF
3704 #define MAXCONNECTIONS $unet_cv_with_maxcon
3709 cat > confcache <<\EOF
3710 # This file is a shell script that caches the results of configure
3711 # tests run on this system so they can be shared between configure
3712 # scripts and configure runs. It is not useful on other systems.
3713 # If it contains results you don't want to keep, you may remove or edit it.
3715 # By default, configure uses ./config.cache as the cache file,
3716 # creating it if it does not exist already. You can give configure
3717 # the --cache-file=FILE option to use a different cache file; that is
3718 # what configure does when it calls configure scripts in
3719 # subdirectories, so they share the cache.
3720 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3721 # config.status only pays attention to the cache file if you give it the
3722 # --recheck option to rerun configure.
3725 # The following way of writing the cache mishandles newlines in values,
3726 # but we know of no workaround that is simple, portable, and efficient.
3727 # So, don't put newlines in cache variables' values.
3728 # Ultrix sh set writes to stderr and can't be redirected directly,
3729 # and sets the high bit in the cache file unless we assign to the vars.
3731 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3733 # `set' does not quote correctly, so add quotes (double-quote substitution
3734 # turns \\\\ into \\, and sed turns \\ into \).
3736 -e "s/'/'\\\\''/g" \
3737 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3740 # `set' quotes correctly as required by POSIX, so do not add quotes.
3741 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3744 if cmp -s $cache_file confcache; then
3747 if test -w $cache_file; then
3748 echo "updating cache $cache_file"
3749 cat confcache > $cache_file
3751 echo "not updating unwritable cache $cache_file"
3756 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3759 # Let make expand exec_prefix.
3760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3762 # Any assignment to VPATH causes Sun make to only execute
3763 # the first set of double-colon rules, so remove it if not needed.
3764 # If there is a colon in the path, we need to keep it.
3765 if test "x$srcdir" = x.; then
3766 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3769 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3771 DEFS=-DHAVE_CONFIG_H
3773 # Without the "./", some shells look in PATH for config.status.
3774 : ${CONFIG_STATUS=./config.status}
3776 echo creating $CONFIG_STATUS
3777 rm -f $CONFIG_STATUS
3778 cat > $CONFIG_STATUS <<EOF
3780 # Generated automatically by configure.
3781 # Run this file to recreate the current configuration.
3782 # This directory was configured as follows,
3783 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3785 # $0 $ac_configure_args
3787 # Compiler output produced by configure, useful for debugging
3788 # configure, is in ./config.log if it exists.
3790 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3793 case "\$ac_option" in
3794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3795 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3796 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3797 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3798 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3800 -help | --help | --hel | --he | --h)
3801 echo "\$ac_cs_usage"; exit 0 ;;
3802 *) echo "\$ac_cs_usage"; exit 1 ;;
3806 ac_given_srcdir=$srcdir
3807 ac_given_INSTALL="$INSTALL"
3809 trap 'rm -fr `echo "Makefile ircd/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3811 cat >> $CONFIG_STATUS <<EOF
3813 # Protect against being on the right side of a sed subst in config.status.
3814 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3815 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3819 s%@CFLAGS@%$CFLAGS%g
3820 s%@CPPFLAGS@%$CPPFLAGS%g
3821 s%@CXXFLAGS@%$CXXFLAGS%g
3822 s%@FFLAGS@%$FFLAGS%g
3824 s%@LDFLAGS@%$LDFLAGS%g
3826 s%@exec_prefix@%$exec_prefix%g
3827 s%@prefix@%$prefix%g
3828 s%@program_transform_name@%$program_transform_name%g
3829 s%@bindir@%$bindir%g
3830 s%@sbindir@%$sbindir%g
3831 s%@libexecdir@%$libexecdir%g
3832 s%@datadir@%$datadir%g
3833 s%@sysconfdir@%$sysconfdir%g
3834 s%@sharedstatedir@%$sharedstatedir%g
3835 s%@localstatedir@%$localstatedir%g
3836 s%@libdir@%$libdir%g
3837 s%@includedir@%$includedir%g
3838 s%@oldincludedir@%$oldincludedir%g
3839 s%@infodir@%$infodir%g
3840 s%@mandir@%$mandir%g
3842 s%@host_alias@%$host_alias%g
3843 s%@host_cpu@%$host_cpu%g
3844 s%@host_vendor@%$host_vendor%g
3845 s%@host_os@%$host_os%g
3849 s%@SET_MAKE@%$SET_MAKE%g
3850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3852 s%@INSTALL_DATA@%$INSTALL_DATA%g
3854 s%@RMPROG@%$RMPROG%g
3855 s%@SHPROG@%$SHPROG%g
3856 s%@OSDEP_C@%$OSDEP_C%g
3857 s%@ENGINE_C@%$ENGINE_C%g
3858 s%@INSTALL_RULE@%$INSTALL_RULE%g
3859 s%@SYMLINK@%$SYMLINK%g
3860 s%@IRCDMODE@%$IRCDMODE%g
3861 s%@IRCDOWN@%$IRCDOWN%g
3862 s%@IRCDGRP@%$IRCDGRP%g
3868 cat >> $CONFIG_STATUS <<\EOF
3870 # Split the substitutions into bite-sized pieces for seds with
3871 # small command number limits, like on Digital OSF/1 and HP-UX.
3872 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3873 ac_file=1 # Number of current file.
3874 ac_beg=1 # First line for current file.
3875 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3878 while $ac_more_lines; do
3879 if test $ac_beg -gt 1; then
3880 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3882 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3884 if test ! -s conftest.s$ac_file; then
3886 rm -f conftest.s$ac_file
3888 if test -z "$ac_sed_cmds"; then
3889 ac_sed_cmds="sed -f conftest.s$ac_file"
3891 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3893 ac_file=`expr $ac_file + 1`
3895 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3898 if test -z "$ac_sed_cmds"; then
3903 cat >> $CONFIG_STATUS <<EOF
3905 CONFIG_FILES=\${CONFIG_FILES-"Makefile ircd/Makefile doc/Makefile"}
3907 cat >> $CONFIG_STATUS <<\EOF
3908 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3911 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3912 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3913 *) ac_file_in="${ac_file}.in" ;;
3916 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3918 # Remove last slash and all that follows it. Not all systems have dirname.
3919 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3920 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3921 # The file is in a subdirectory.
3922 test ! -d "$ac_dir" && mkdir "$ac_dir"
3923 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3924 # A "../" for each directory in $ac_dir_suffix.
3925 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3927 ac_dir_suffix= ac_dots=
3930 case "$ac_given_srcdir" in
3932 if test -z "$ac_dots"; then top_srcdir=.
3933 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3934 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3936 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3937 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3940 case "$ac_given_INSTALL" in
3941 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3942 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3945 echo creating "$ac_file"
3947 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3949 *Makefile*) ac_comsub="1i\\
3950 # $configure_input" ;;
3954 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3956 s%@configure_input@%$configure_input%g
3957 s%@srcdir@%$srcdir%g
3958 s%@top_srcdir@%$top_srcdir%g
3959 s%@INSTALL@%$INSTALL%g
3960 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3967 # ac_d sets the value in "#define NAME VALUE" lines.
3968 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3969 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3972 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3973 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3974 ac_uB='\([ ]\)%\1#\2define\3'
3977 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3978 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3979 ac_eB='$%\1#\2define\3'
3983 if test "${CONFIG_HEADERS+set}" != set; then
3985 cat >> $CONFIG_STATUS <<EOF
3986 CONFIG_HEADERS="config.h"
3988 cat >> $CONFIG_STATUS <<\EOF
3990 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3993 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3994 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3995 *) ac_file_in="${ac_file}.in" ;;
3998 echo creating $ac_file
4000 rm -f conftest.frag conftest.in conftest.out
4001 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4002 cat $ac_file_inputs > conftest.in
4006 # Transform confdefs.h into a sed script conftest.vals that substitutes
4007 # the proper values into config.h.in to produce config.h. And first:
4008 # Protect against being on the right side of a sed subst in config.status.
4009 # Protect against being in an unquoted here document in config.status.
4011 cat > conftest.hdr <<\EOF
4014 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4018 sed -n -f conftest.hdr confdefs.h > conftest.vals
4021 # This sed command replaces #undef with comments. This is necessary, for
4022 # example, in the case of _POSIX_SOURCE, which is predefined and required
4023 # on some systems where configure will not decide to define it.
4024 cat >> conftest.vals <<\EOF
4025 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4028 # Break up conftest.vals because some shells have a limit on
4029 # the size of here documents, and old seds have small limits too.
4034 ac_lines=`grep -c . conftest.vals`
4035 # grep -c gives empty output for an empty file on some AIX systems.
4036 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4037 # Write a limited-size here document to conftest.frag.
4038 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4039 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4041 sed -f conftest.frag conftest.in > conftest.out
4043 mv conftest.out conftest.in
4045 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4047 mv conftest.tail conftest.vals
4051 cat >> $CONFIG_STATUS <<\EOF
4052 rm -f conftest.frag conftest.h
4053 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4054 cat conftest.in >> conftest.h
4056 if cmp -s $ac_file conftest.h 2>/dev/null; then
4057 echo "$ac_file is unchanged"
4060 # Remove last slash and all that follows it. Not all systems have dirname.
4061 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4062 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4063 # The file is in a subdirectory.
4064 test ! -d "$ac_dir" && mkdir "$ac_dir"
4067 mv conftest.h $ac_file
4072 cat >> $CONFIG_STATUS <<EOF
4075 cat >> $CONFIG_STATUS <<\EOF
4076 echo timestamp > stamp-h
4079 chmod +x $CONFIG_STATUS
4080 rm -fr confdefs* $ac_clean_files
4081 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1