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 --enable-profile Enable profiling support (add -pg to CFLAGS)"
27 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)"
29 --enable-warnings Enable warnings (add -Wall to CFLAGS)"
31 --disable-inlines Disable inlining for a few critical functions"
33 --disable-devpoll Enable the /dev/poll-based engine"
35 --disable-kqueue Enable the kqueue-based engine"
37 --with-symlink=name Name to give the symlink; if name is "no," no
38 symlink will be created."
40 --with-mode=mode Permissions (in octal) to give the binary"
42 --with-owner=owner Specify owner of the installed binary"
44 --with-group=group Specify group owner of the installed binary"
46 --with-domain=domain Domain name to use in local statistics gathering"
48 --with-chroot=dir Specify that the server will be operated under
49 a different root directory given by dir. See
50 doc/readme.chroot for more information."
52 --with-dpath=dir Directory for all server data files"
54 --with-cpath=file Set server configuration file"
56 --with-lpath=file Set the debugging log file"
58 --with-maxcon=maxcon Maximum number of connections server will accept"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=ircd/ircd.c
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
571 echo $ac_n "checking for installation prefix""... $ac_c" 1>&6
572 echo "configure:573: checking for installation prefix" >&5
573 if eval "test \"`echo '$''{'unet_cv_prefix'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
579 if test x"$prefix" != xNONE; then
580 unet_cv_prefix=$prefix
582 echo "$ac_t""$unet_cv_prefix" 1>&6
583 ac_default_prefix=$unet_cv_prefix
590 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
591 if test -f $ac_dir/install-sh; then
593 ac_install_sh="$ac_aux_dir/install-sh -c"
595 elif test -f $ac_dir/install.sh; then
597 ac_install_sh="$ac_aux_dir/install.sh -c"
601 if test -z "$ac_aux_dir"; then
602 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
604 ac_config_guess=$ac_aux_dir/config.guess
605 ac_config_sub=$ac_aux_dir/config.sub
606 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609 # Make sure we can run config.sub.
610 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
611 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
614 echo $ac_n "checking host system type""... $ac_c" 1>&6
615 echo "configure:616: checking host system type" >&5
618 case "$host_alias" in
622 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
623 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
625 *) host_alias=$nonopt ;;
629 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
630 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$host" 1>&6
636 # Extract the first word of "gcc", so it can be a program name with args.
637 set dummy gcc; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 if test -n "$CC"; then
644 ac_cv_prog_CC="$CC" # Let the user override the test.
646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
666 # Extract the first word of "cc", so it can be a program name with args.
667 set dummy cc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
691 if test $ac_prog_rejected = yes; then
692 # We found a bogon in the path, so make sure we never use it.
693 set dummy $ac_cv_prog_CC
695 if test $# -gt 0; then
696 # We chose a different compiler from the bogus one.
697 # However, it has the same basename, so the bogon will be chosen
698 # first if we set CC to just the basename; use the full file name.
700 set dummy "$ac_dir/$ac_word" "$@"
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
717 # Extract the first word of "cl", so it can be a program name with args.
718 set dummy cl; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 if test -n "$CC"; then
725 ac_cv_prog_CC="$CC" # Let the user override the test.
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
729 for ac_dir in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir=.
731 if test -f $ac_dir/$ac_word; then
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
756 ac_cpp='$CPP $CPPFLAGS'
757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
759 cross_compiling=$ac_cv_prog_cc_cross
761 cat > conftest.$ac_ext << EOF
763 #line 764 "configure"
764 #include "confdefs.h"
768 if { (eval echo configure:769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
769 ac_cv_prog_cc_works=yes
770 # If we can't run a trivial program, we are probably using a cross compiler.
771 if (./conftest; exit) 2>/dev/null; then
772 ac_cv_prog_cc_cross=no
774 ac_cv_prog_cc_cross=yes
777 echo "configure: failed program was:" >&5
778 cat conftest.$ac_ext >&5
779 ac_cv_prog_cc_works=no
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp='$CPP $CPPFLAGS'
785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
790 if test $ac_cv_prog_cc_works = no; then
791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
794 echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
796 cross_compiling=$ac_cv_prog_cc_cross
798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
799 echo "configure:800: checking whether we are using GNU C" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 cat > conftest.c <<EOF
808 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
817 if test $ac_cv_prog_gcc = yes; then
823 ac_test_CFLAGS="${CFLAGS+set}"
824 ac_save_CFLAGS="$CFLAGS"
826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
827 echo "configure:828: checking whether ${CC-cc} accepts -g" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 echo 'void f(){}' > conftest.c
832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
842 if test "$ac_test_CFLAGS" = set; then
843 CFLAGS="$ac_save_CFLAGS"
844 elif test $ac_cv_prog_cc_g = yes; then
845 if test "$GCC" = yes; then
851 if test "$GCC" = yes; then
862 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
863 echo "configure:864: checking for ${CC-cc} option to accept ANSI C" >&5
864 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 am_cv_prog_cc_stdc=no
869 # Don't try gcc -ansi; that turns off useful extensions and
870 # breaks some systems' header files.
872 # Ultrix and OSF/1 -std1
873 # HP-UX -Aa -D_HPUX_SOURCE
874 # SVR4 -Xc -D__EXTENSIONS__
875 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
877 CC="$ac_save_CC $ac_arg"
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
883 #include <sys/types.h>
884 #include <sys/stat.h>
885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
886 struct buf { int x; };
887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
888 static char *e (p, i)
894 static char *f (char * (*g) (char **, int), char **p, ...)
899 s = g (p, va_arg (v,int));
903 int test (int i, double x);
904 struct s1 {int (*f) (int a);};
905 struct s2 {int (*f) (double a);};
906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
916 if { (eval echo configure:917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
918 am_cv_prog_cc_stdc="$ac_arg"; break
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
929 if test -z "$am_cv_prog_cc_stdc"; then
930 echo "$ac_t""none needed" 1>&6
932 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
934 case "x$am_cv_prog_cc_stdc" in
936 *) CC="$CC $am_cv_prog_cc_stdc" ;;
939 if test x"$CFLAGS" != x; then
940 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
942 if test x"$CFLAGS" != x; then
943 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
945 if test x"$CFLAGS" != x; then
946 unet_old_cflags=$CFLAGS
947 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
949 if test x"$CFLAGS" != x"$unet_old_cflags"; then
950 # If -g was already there, force symbols to be enabled
951 unet_cv_enable_symbols=yes
953 if test x"$CFLAGS" != x; then
954 unet_old_cflags=$CFLAGS
955 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
957 if test x"$CFLAGS" != x"$unet_old_cflags"; then
958 # If -pg was already there, force profiling to be enabled
959 unet_cv_enable_profile=yes
961 if test x"$CFLAGS" != x; then
962 unet_old_cflags=$CFLAGS
963 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
965 if test x"$CFLAGS" != x"$unet_old_cflags"; then
966 # If -Wall was already there, force warnings to be enabled
967 unet_cv_enable_warnings=yes
969 if test x"$CFLAGS" != x; then
970 unet_old_cflags=$CFLAGS
971 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
973 if test x"$CFLAGS" != x"$unet_old_cflags"; then
974 # If -pedantic was already there, force pedatic to be enabled
975 unet_cv_enable_pedantic=yes
980 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
981 echo "configure:982: checking for library containing crypt" >&5
982 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 ac_func_search_save_LIBS="$LIBS"
986 ac_cv_search_crypt="no"
987 cat > conftest.$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
990 /* Override any gcc2 internal prototype to avoid an error. */
991 /* We use char because int might match the return type of a gcc2
992 builtin and then its argument prototype would still apply. */
999 if { (eval echo configure:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1001 ac_cv_search_crypt="none required"
1003 echo "configure: failed program was:" >&5
1004 cat conftest.$ac_ext >&5
1007 test "$ac_cv_search_crypt" = "no" && for i in descrypt crypt; do
1008 LIBS="-l$i $ac_func_search_save_LIBS"
1009 cat > conftest.$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1012 /* Override any gcc2 internal prototype to avoid an error. */
1013 /* We use char because int might match the return type of a gcc2
1014 builtin and then its argument prototype would still apply. */
1021 if { (eval echo configure:1022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1023 ac_cv_search_crypt="-l$i"
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1031 LIBS="$ac_func_search_save_LIBS"
1034 echo "$ac_t""$ac_cv_search_crypt" 1>&6
1035 if test "$ac_cv_search_crypt" != "no"; then
1036 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1039 { echo "configure: error: Unable to find library containing crypt()" 1>&2; exit 1; }
1043 # Most operating systems have gethostbyname() in the default searched
1044 # libraries (i.e. libc):
1045 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1046 echo "configure:1047: checking for gethostbyname" >&5
1047 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 /* System header to define __stub macros and hopefully few prototypes,
1054 which can conflict with char gethostbyname(); below. */
1056 /* Override any gcc2 internal prototype to avoid an error. */
1057 /* We use char because int might match the return type of a gcc2
1058 builtin and then its argument prototype would still apply. */
1059 char gethostbyname();
1063 /* The GNU C library defines this for functions which it implements
1064 to always fail with ENOSYS. Some functions are actually named
1065 something starting with __ and the normal name is an alias. */
1066 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1074 if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1076 eval "ac_cv_func_gethostbyname=yes"
1078 echo "configure: failed program was:" >&5
1079 cat conftest.$ac_ext >&5
1081 eval "ac_cv_func_gethostbyname=no"
1086 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1087 echo "$ac_t""yes" 1>&6
1090 echo "$ac_t""no" 1>&6
1091 # Some OSes (eg. Solaris) place it in libnsl:
1092 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1093 echo "configure:1094: checking for gethostbyname in -lnsl" >&5
1094 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 ac_save_LIBS="$LIBS"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1103 /* Override any gcc2 internal prototype to avoid an error. */
1104 /* We use char because int might match the return type of a gcc2
1105 builtin and then its argument prototype would still apply. */
1106 char gethostbyname();
1112 if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1114 eval "ac_cv_lib_$ac_lib_var=yes"
1116 echo "configure: failed program was:" >&5
1117 cat conftest.$ac_ext >&5
1119 eval "ac_cv_lib_$ac_lib_var=no"
1122 LIBS="$ac_save_LIBS"
1125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1127 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1129 cat >> confdefs.h <<EOF
1130 #define $ac_tr_lib 1
1136 echo "$ac_t""no" 1>&6
1137 # Some strange OSes (SINIX) have it in libsocket:
1138 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1139 echo "configure:1140: checking for gethostbyname in -lsocket" >&5
1140 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 ac_save_LIBS="$LIBS"
1145 LIBS="-lsocket $LIBS"
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 /* Override any gcc2 internal prototype to avoid an error. */
1150 /* We use char because int might match the return type of a gcc2
1151 builtin and then its argument prototype would still apply. */
1152 char gethostbyname();
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160 eval "ac_cv_lib_$ac_lib_var=yes"
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1165 eval "ac_cv_lib_$ac_lib_var=no"
1168 LIBS="$ac_save_LIBS"
1171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1173 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1175 cat >> confdefs.h <<EOF
1176 #define $ac_tr_lib 1
1179 LIBS="-lsocket $LIBS"
1182 echo "$ac_t""no" 1>&6
1183 # Unfortunately libsocket sometimes depends on libnsl.
1184 # AC_CHECK_LIB's API is essentially broken so the following
1185 # ugliness is necessary:
1186 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1187 echo "configure:1188: checking for gethostbyname in -lsocket" >&5
1188 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 ac_save_LIBS="$LIBS"
1193 LIBS="-lsocket -lnsl $LIBS"
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 /* Override any gcc2 internal prototype to avoid an error. */
1198 /* We use char because int might match the return type of a gcc2
1199 builtin and then its argument prototype would still apply. */
1200 char gethostbyname();
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208 eval "ac_cv_lib_$ac_lib_var=yes"
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1213 eval "ac_cv_lib_$ac_lib_var=no"
1216 LIBS="$ac_save_LIBS"
1219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1220 echo "$ac_t""yes" 1>&6
1221 LIBS="-lsocket -lnsl $LIBS"
1223 echo "$ac_t""no" 1>&6
1224 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1225 echo "configure:1226: checking for gethostbyname in -lresolv" >&5
1226 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 ac_save_LIBS="$LIBS"
1231 LIBS="-lresolv $LIBS"
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 /* Override any gcc2 internal prototype to avoid an error. */
1236 /* We use char because int might match the return type of a gcc2
1237 builtin and then its argument prototype would still apply. */
1238 char gethostbyname();
1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246 eval "ac_cv_lib_$ac_lib_var=yes"
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1251 eval "ac_cv_lib_$ac_lib_var=no"
1254 LIBS="$ac_save_LIBS"
1257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1258 echo "$ac_t""yes" 1>&6
1259 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1261 cat >> confdefs.h <<EOF
1262 #define $ac_tr_lib 1
1265 LIBS="-lresolv $LIBS"
1268 echo "$ac_t""no" 1>&6
1282 echo $ac_n "checking for socket""... $ac_c" 1>&6
1283 echo "configure:1284: checking for socket" >&5
1284 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* System header to define __stub macros and hopefully few prototypes,
1291 which can conflict with char socket(); below. */
1293 /* Override any gcc2 internal prototype to avoid an error. */
1294 /* We use char because int might match the return type of a gcc2
1295 builtin and then its argument prototype would still apply. */
1300 /* The GNU C library defines this for functions which it implements
1301 to always fail with ENOSYS. Some functions are actually named
1302 something starting with __ and the normal name is an alias. */
1303 #if defined (__stub_socket) || defined (__stub___socket)
1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1313 eval "ac_cv_func_socket=yes"
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 eval "ac_cv_func_socket=no"
1323 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1329 echo "configure:1330: checking for socket in -lsocket" >&5
1330 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 ac_save_LIBS="$LIBS"
1335 LIBS="-lsocket $LIBS"
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 /* Override any gcc2 internal prototype to avoid an error. */
1340 /* We use char because int might match the return type of a gcc2
1341 builtin and then its argument prototype would still apply. */
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1350 eval "ac_cv_lib_$ac_lib_var=yes"
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1355 eval "ac_cv_lib_$ac_lib_var=no"
1358 LIBS="$ac_save_LIBS"
1361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1362 echo "$ac_t""yes" 1>&6
1363 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1365 cat >> confdefs.h <<EOF
1366 #define $ac_tr_lib 1
1369 LIBS="-lsocket $LIBS"
1372 echo "$ac_t""no" 1>&6
1373 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1374 echo "configure:1375: checking for socket in -lsocket" >&5
1375 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 ac_save_LIBS="$LIBS"
1380 LIBS="-lsocket -lnsl $LIBS"
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 /* Override any gcc2 internal prototype to avoid an error. */
1385 /* We use char because int might match the return type of a gcc2
1386 builtin and then its argument prototype would still apply. */
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 eval "ac_cv_lib_$ac_lib_var=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_lib_$ac_lib_var=no"
1403 LIBS="$ac_save_LIBS"
1406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1407 echo "$ac_t""yes" 1>&6
1408 LIBS="-lsocket -lnsl $LIBS"
1410 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking for library containing res_mkquery""... $ac_c" 1>&6
1421 echo "configure:1422: checking for library containing res_mkquery" >&5
1422 if eval "test \"`echo '$''{'ac_cv_search_res_mkquery'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 ac_func_search_save_LIBS="$LIBS"
1426 ac_cv_search_res_mkquery="no"
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* Override any gcc2 internal prototype to avoid an error. */
1431 /* We use char because int might match the return type of a gcc2
1432 builtin and then its argument prototype would still apply. */
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441 ac_cv_search_res_mkquery="none required"
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1447 test "$ac_cv_search_res_mkquery" = "no" && for i in resolv; do
1448 LIBS="-l$i $ac_func_search_save_LIBS"
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1463 ac_cv_search_res_mkquery="-l$i"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1471 LIBS="$ac_func_search_save_LIBS"
1474 echo "$ac_t""$ac_cv_search_res_mkquery" 1>&6
1475 if test "$ac_cv_search_res_mkquery" != "no"; then
1476 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
1479 { echo "configure: error: Unable to find library containing res_mkquery()" 1>&2; exit 1; }
1482 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1483 echo "configure:1484: checking how to run the C preprocessor" >&5
1484 # On Suns, sometimes $CPP names a directory.
1485 if test -n "$CPP" && test -d "$CPP"; then
1488 if test -z "$CPP"; then
1489 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 # This must be in double quotes, not single quotes, because CPP may get
1493 # substituted into the Makefile and "${CC-cc}" will confuse make.
1495 # On the NeXT, cc -E runs the code through the compiler's parser,
1496 # not just through cpp.
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506 if test -z "$ac_err"; then
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1513 CPP="${CC-cc} -E -traditional-cpp"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1523 if test -z "$ac_err"; then
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1530 CPP="${CC-cc} -nologo -E"
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540 if test -z "$ac_err"; then
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1554 ac_cv_prog_CPP="$CPP"
1556 CPP="$ac_cv_prog_CPP"
1558 ac_cv_prog_CPP="$CPP"
1560 echo "$ac_t""$CPP" 1>&6
1562 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1563 echo "configure:1564: checking for ANSI C header files" >&5
1564 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1576 { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1578 if test -z "$ac_err"; then
1580 ac_cv_header_stdc=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 ac_cv_header_stdc=no
1590 if test $ac_cv_header_stdc = yes; then
1591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "memchr" >/dev/null 2>&1; then
1602 ac_cv_header_stdc=no
1608 if test $ac_cv_header_stdc = yes; then
1609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1616 egrep "free" >/dev/null 2>&1; then
1620 ac_cv_header_stdc=no
1626 if test $ac_cv_header_stdc = yes; then
1627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1628 if test "$cross_compiling" = yes; then
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1635 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1636 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1638 int main () { int i; for (i = 0; i < 256; i++)
1639 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1650 ac_cv_header_stdc=no
1658 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1659 if test $ac_cv_header_stdc = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define STDC_HEADERS 1
1666 for ac_hdr in poll.h sys/devpoll.h sys/event.h
1668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_hdr" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1680 { (eval echo configure:1681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1682 if test -z "$ac_err"; then
1684 eval "ac_cv_header_$ac_safe=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 eval "ac_cv_header_$ac_safe=no"
1694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1697 cat >> confdefs.h <<EOF
1698 #define $ac_tr_hdr 1
1702 echo "$ac_t""no" 1>&6
1707 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1708 echo "configure:1709: checking whether byte ordering is bigendian" >&5
1709 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 ac_cv_c_bigendian=unknown
1713 # See if sys/param.h defines the BYTE_ORDER macro.
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <sys/types.h>
1718 #include <sys/param.h>
1721 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1728 # It does; now see whether it defined to BIG_ENDIAN or not.
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732 #include <sys/types.h>
1733 #include <sys/param.h>
1736 #if BYTE_ORDER != BIG_ENDIAN
1741 if { (eval echo configure:1742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1743 ac_cv_c_bigendian=yes
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1748 ac_cv_c_bigendian=no
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1756 if test $ac_cv_c_bigendian = unknown; then
1757 if test "$cross_compiling" = yes; then
1758 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1764 /* Are we little or big endian? From Harbison&Steele. */
1768 char c[sizeof (long)];
1771 exit (u.c[sizeof (long) - 1] == 1);
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1776 ac_cv_c_bigendian=no
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 ac_cv_c_bigendian=yes
1789 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1790 if test $ac_cv_c_bigendian = yes; then
1791 cat >> confdefs.h <<\EOF
1792 #define WORDS_BIGENDIAN 1
1797 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1798 echo "configure:1799: checking for size_t" >&5
1799 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1805 #include <sys/types.h>
1811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1812 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1814 ac_cv_type_size_t=yes
1817 ac_cv_type_size_t=no
1822 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1823 if test $ac_cv_type_size_t = no; then
1824 cat >> confdefs.h <<\EOF
1825 #define size_t unsigned
1830 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1831 echo "configure:1832: checking whether time.h and sys/time.h may both be included" >&5
1832 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 #include <sys/types.h>
1839 #include <sys/time.h>
1845 if { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1847 ac_cv_header_time=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 ac_cv_header_time=no
1857 echo "$ac_t""$ac_cv_header_time" 1>&6
1858 if test $ac_cv_header_time = yes; then
1859 cat >> confdefs.h <<\EOF
1860 #define TIME_WITH_SYS_TIME 1
1865 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether struct tm is in sys/time.h or time.h" >&5
1867 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/types.h>
1876 struct tm *tp; tp->tm_sec;
1879 if { (eval echo configure:1880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1881 ac_cv_struct_tm=time.h
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 ac_cv_struct_tm=sys/time.h
1891 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1892 if test $ac_cv_struct_tm = sys/time.h; then
1893 cat >> confdefs.h <<\EOF
1894 #define TM_IN_SYS_TIME 1
1899 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1900 echo "configure:1901: checking for uid_t in sys/types.h" >&5
1901 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 #include <sys/types.h>
1909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1910 egrep "uid_t" >/dev/null 2>&1; then
1912 ac_cv_type_uid_t=yes
1921 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1922 if test $ac_cv_type_uid_t = no; then
1923 cat >> confdefs.h <<\EOF
1927 cat >> confdefs.h <<\EOF
1933 echo $ac_n "checking size of short""... $ac_c" 1>&6
1934 echo "configure:1935: checking size of short" >&5
1935 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 if test "$cross_compiling" = yes; then
1939 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1947 FILE *f=fopen("conftestval", "w");
1949 fprintf(f, "%d\n", sizeof(short));
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1955 ac_cv_sizeof_short=`cat conftestval`
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1960 ac_cv_sizeof_short=0
1966 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1967 cat >> confdefs.h <<EOF
1968 #define SIZEOF_SHORT $ac_cv_sizeof_short
1972 echo $ac_n "checking size of int""... $ac_c" 1>&6
1973 echo "configure:1974: checking size of int" >&5
1974 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 if test "$cross_compiling" = yes; then
1978 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1986 FILE *f=fopen("conftestval", "w");
1988 fprintf(f, "%d\n", sizeof(int));
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1994 ac_cv_sizeof_int=`cat conftestval`
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
2005 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2006 cat >> confdefs.h <<EOF
2007 #define SIZEOF_INT $ac_cv_sizeof_int
2011 echo $ac_n "checking size of long""... $ac_c" 1>&6
2012 echo "configure:2013: checking size of long" >&5
2013 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 if test "$cross_compiling" = yes; then
2017 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2025 FILE *f=fopen("conftestval", "w");
2027 fprintf(f, "%d\n", sizeof(long));
2031 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2033 ac_cv_sizeof_long=`cat conftestval`
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2044 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2045 cat >> confdefs.h <<EOF
2046 #define SIZEOF_LONG $ac_cv_sizeof_long
2050 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2051 echo "configure:2052: checking size of void *" >&5
2052 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 if test "$cross_compiling" = yes; then
2056 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2058 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2064 FILE *f=fopen("conftestval", "w");
2066 fprintf(f, "%d\n", sizeof(void *));
2070 if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2072 ac_cv_sizeof_void_p=`cat conftestval`
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2077 ac_cv_sizeof_void_p=0
2083 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2084 cat >> confdefs.h <<EOF
2085 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2089 if test "$ac_cv_sizeof_int" = 2 ; then
2090 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2091 echo "configure:2092: checking for int16_t" >&5
2092 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <sys/types.h>
2104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2105 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2107 ac_cv_type_int16_t=yes
2110 ac_cv_type_int16_t=no
2115 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2116 if test $ac_cv_type_int16_t = no; then
2117 cat >> confdefs.h <<\EOF
2123 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2124 echo "configure:2125: checking for u_int16_t" >&5
2125 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 #include <sys/types.h>
2137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2138 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2140 ac_cv_type_u_int16_t=yes
2143 ac_cv_type_u_int16_t=no
2148 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2149 if test $ac_cv_type_u_int16_t = no; then
2150 cat >> confdefs.h <<\EOF
2151 #define u_int16_t unsigned int
2156 elif test "$ac_cv_sizeof_short" = 2 ; then
2157 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2158 echo "configure:2159: checking for int16_t" >&5
2159 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 #include <sys/types.h>
2171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2172 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2174 ac_cv_type_int16_t=yes
2177 ac_cv_type_int16_t=no
2182 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2183 if test $ac_cv_type_int16_t = no; then
2184 cat >> confdefs.h <<\EOF
2185 #define int16_t short
2190 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2191 echo "configure:2192: checking for u_int16_t" >&5
2192 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2205 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2207 ac_cv_type_u_int16_t=yes
2210 ac_cv_type_u_int16_t=no
2215 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2216 if test $ac_cv_type_u_int16_t = no; then
2217 cat >> confdefs.h <<\EOF
2218 #define u_int16_t unsigned short
2224 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2226 if test "$ac_cv_sizeof_int" = 4 ; then
2227 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2228 echo "configure:2229: checking for int32_t" >&5
2229 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2242 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2244 ac_cv_type_int32_t=yes
2247 ac_cv_type_int32_t=no
2252 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2253 if test $ac_cv_type_int32_t = no; then
2254 cat >> confdefs.h <<\EOF
2260 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2261 echo "configure:2262: checking for u_int32_t" >&5
2262 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <sys/types.h>
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2277 ac_cv_type_u_int32_t=yes
2280 ac_cv_type_u_int32_t=no
2285 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2286 if test $ac_cv_type_u_int32_t = no; then
2287 cat >> confdefs.h <<\EOF
2288 #define u_int32_t unsigned int
2293 elif test "$ac_cv_sizeof_short" = 4 ; then
2294 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2295 echo "configure:2296: checking for int32_t" >&5
2296 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #include <sys/types.h>
2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2311 ac_cv_type_int32_t=yes
2314 ac_cv_type_int32_t=no
2319 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2320 if test $ac_cv_type_int32_t = no; then
2321 cat >> confdefs.h <<\EOF
2322 #define int32_t short
2327 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2328 echo "configure:2329: checking for u_int32_t" >&5
2329 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <sys/types.h>
2341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2342 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2344 ac_cv_type_u_int32_t=yes
2347 ac_cv_type_u_int32_t=no
2352 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2353 if test $ac_cv_type_u_int32_t = no; then
2354 cat >> confdefs.h <<\EOF
2355 #define u_int32_t unsigned short
2360 elif test "$ac_cv_sizeof_long" = 4 ; then
2361 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2362 echo "configure:2363: checking for int32_t" >&5
2363 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <sys/types.h>
2375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2376 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2378 ac_cv_type_int32_t=yes
2381 ac_cv_type_int32_t=no
2386 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2387 if test $ac_cv_type_int32_t = no; then
2388 cat >> confdefs.h <<\EOF
2389 #define int32_t long
2394 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2395 echo "configure:2396: checking for u_int32_t" >&5
2396 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2409 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2411 ac_cv_type_u_int32_t=yes
2414 ac_cv_type_u_int32_t=no
2419 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2420 if test $ac_cv_type_u_int32_t = no; then
2421 cat >> confdefs.h <<\EOF
2422 #define u_int32_t unsigned long
2428 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2431 echo $ac_n "checking for kqueue""... $ac_c" 1>&6
2432 echo "configure:2433: checking for kqueue" >&5
2433 if eval "test \"`echo '$''{'ac_cv_func_kqueue'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* System header to define __stub macros and hopefully few prototypes,
2440 which can conflict with char kqueue(); below. */
2442 /* Override any gcc2 internal prototype to avoid an error. */
2443 /* We use char because int might match the return type of a gcc2
2444 builtin and then its argument prototype would still apply. */
2449 /* The GNU C library defines this for functions which it implements
2450 to always fail with ENOSYS. Some functions are actually named
2451 something starting with __ and the normal name is an alias. */
2452 #if defined (__stub_kqueue) || defined (__stub___kqueue)
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 eval "ac_cv_func_kqueue=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_func_kqueue=no"
2472 if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2476 echo "$ac_t""no" 1>&6
2480 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2481 echo "configure:2482: checking for restartable system calls" >&5
2482 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 if test "$cross_compiling" = yes; then
2486 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 /* Exit 0 (true) if wait returns something other than -1,
2492 i.e. the pid of the child, which means that wait was restarted
2493 after getting the signal. */
2494 #include <sys/types.h>
2498 int i = fork (), status;
2499 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2500 signal (SIGINT, ucatch);
2502 if (status == -1) wait(&i);
2503 exit (status == -1);
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2509 ac_cv_sys_restartable_syscalls=yes
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 ac_cv_sys_restartable_syscalls=no
2521 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2522 if test $ac_cv_sys_restartable_syscalls = yes; then
2523 cat >> confdefs.h <<\EOF
2524 #define HAVE_RESTARTABLE_SYSCALLS 1
2530 echo $ac_n "checking for donuts""... $ac_c" 1>&6
2531 echo "configure:2532: checking for donuts" >&5
2532 echo "$ac_t""yes" 1>&6
2534 for ac_prog in gawk mawk nawk awk
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_word" >&5
2540 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 if test -n "$AWK"; then
2544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2548 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 if test -f $ac_dir/$ac_word; then
2551 ac_cv_prog_AWK="$ac_prog"
2558 AWK="$ac_cv_prog_AWK"
2559 if test -n "$AWK"; then
2560 echo "$ac_t""$AWK" 1>&6
2562 echo "$ac_t""no" 1>&6
2565 test -n "$AWK" && break
2568 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether ${MAKE-make} sets \${MAKE}" >&5
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2571 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftestmake <<\EOF
2576 @echo 'ac_maketemp="${MAKE}"'
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2583 eval ac_cv_prog_make_${ac_make}_set=no
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2591 echo "$ac_t""no" 1>&6
2592 SET_MAKE="MAKE=${MAKE-make}"
2595 # Find a good install program. We prefer a C program (faster),
2596 # so one script is as good as another. But avoid the broken or
2597 # incompatible versions:
2598 # SysV /etc/install, /usr/sbin/install
2599 # SunOS /usr/etc/install
2600 # IRIX /sbin/install
2602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605 # ./install, which can be erroneously created by make from ./install.sh.
2606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2607 echo "configure:2608: checking for a BSD compatible install" >&5
2608 if test -z "$INSTALL"; then
2609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2613 for ac_dir in $PATH; do
2614 # Account for people who put trailing slashes in PATH elements.
2616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2618 # OSF1 and SCO ODT 3.0 have their own names for install.
2619 # Don't use installbsd from OSF since it installs stuff as root
2621 for ac_prog in ginstall scoinst install; do
2622 if test -f $ac_dir/$ac_prog; then
2623 if test $ac_prog = install &&
2624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2625 # AIX install. It has an incompatible calling convention.
2628 ac_cv_path_install="$ac_dir/$ac_prog -c"
2639 if test "${ac_cv_path_install+set}" = set; then
2640 INSTALL="$ac_cv_path_install"
2642 # As a last resort, use the slow shell script. We don't cache a
2643 # path for INSTALL within a source directory, because that will
2644 # break other packages using the cache if that directory is
2645 # removed, or if the path is relative.
2646 INSTALL="$ac_install_sh"
2649 echo "$ac_t""$INSTALL" 1>&6
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2660 echo "configure:2661: checking whether ln -s works" >&5
2661 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2665 if ln -s X conftestdata 2>/dev/null
2668 ac_cv_prog_LN_S="ln -s"
2673 LN_S="$ac_cv_prog_LN_S"
2674 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2675 echo "$ac_t""yes" 1>&6
2677 echo "$ac_t""no" 1>&6
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_word" >&5
2686 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2694 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2699 for ac_dir in $ac_dummy; do
2700 test -z "$ac_dir" && ac_dir=.
2701 if test -f $ac_dir/$ac_word; then
2702 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2710 RMPROG="$ac_cv_path_RMPROG"
2711 if test -n "$RMPROG"; then
2712 echo "$ac_t""$RMPROG" 1>&6
2714 echo "$ac_t""no" 1>&6
2717 test -n "$RMPROG" && break
2719 test -n "$RMPROG" || RMPROG="/bin/rm"
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2732 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2735 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2740 for ac_dir in $ac_dummy; do
2741 test -z "$ac_dir" && ac_dir=.
2742 if test -f $ac_dir/$ac_word; then
2743 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2751 SHPROG="$ac_cv_path_SHPROG"
2752 if test -n "$SHPROG"; then
2753 echo "$ac_t""$SHPROG" 1>&6
2755 echo "$ac_t""no" 1>&6
2758 test -n "$SHPROG" && break
2760 test -n "$SHPROG" || SHPROG="/bin/sh"
2763 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2764 echo "configure:2765: checking for posix non-blocking" >&5
2765 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 if test "$cross_compiling" = yes; then
2769 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <sys/types.h>
2775 #include <sys/socket.h>
2777 #include <sys/ioctl.h>
2778 #include <sys/file.h>
2780 $ac_cv_type_signal alarmed() { exit(1); }
2785 size_t l = sizeof(x);
2786 int f = socket(AF_INET, SOCK_DGRAM, 0);
2787 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2789 signal(SIGALRM, alarmed);
2791 recvfrom(f, b, 12, 0, &x, &l);
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2800 unet_cv_sys_nonblocking_posix=yes
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 unet_cv_sys_nonblocking_posix=no
2812 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2813 if test $unet_cv_sys_nonblocking_posix = yes; then
2814 cat >> confdefs.h <<\EOF
2815 #define NBLOCK_POSIX 1
2819 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2820 echo "configure:2821: checking for bsd non-blocking" >&5
2821 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 if test "$cross_compiling" = yes; then
2825 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <sys/types.h>
2831 #include <sys/socket.h>
2833 #include <sys/ioctl.h>
2834 #include <sys/file.h>
2836 $ac_cv_type_signal alarmed() { exit(1); }
2841 size_t l = sizeof(x);
2842 int f = socket(AF_INET, SOCK_DGRAM, 0);
2843 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2845 signal(SIGALRM, alarmed);
2847 recvfrom(f, b, 12, 0, &x, &l);
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2856 unet_cv_sys_nonblocking_bsd=yes
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 unet_cv_sys_nonblocking_bsd=no
2868 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2869 if test $unet_cv_sys_nonblocking_bsd = yes; then
2870 cat >> confdefs.h <<\EOF
2871 #define NBLOCK_BSD 1
2875 cat >> confdefs.h <<\EOF
2876 #define NBLOCK_SYSV 1
2881 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2882 echo "configure:2883: checking for posix signals" >&5
2883 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2891 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2894 if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 unet_cv_sys_signal_posix=yes
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 unet_cv_sys_signal_posix=no
2906 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2907 if test $unet_cv_sys_signal_posix = yes; then
2908 cat >> confdefs.h <<\EOF
2909 #define POSIX_SIGNALS 1
2913 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2914 echo "configure:2915: checking for bsd reliable signals" >&5
2915 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 if test "$cross_compiling" = yes; then
2919 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2926 $ac_cv_type_signal handler()
2930 kill(getpid(), SIGTERM);
2935 signal(SIGTERM, handler);
2936 kill(getpid(), SIGTERM);
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2942 unet_cv_sys_signal_bsd=yes
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 unet_cv_sys_signal_bsd=no
2954 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2955 if test $unet_cv_sys_signal_bsd = yes; then
2956 cat >> confdefs.h <<\EOF
2957 #define BSD_RELIABLE_SIGNALS 1
2961 cat >> confdefs.h <<\EOF
2962 #define SYSV_UNRELIABLE_SIGNALS 1
2968 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2969 echo "configure:2970: checking if the compiler understands -pipe" >&5
2970 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2971 if test "$ac_cv_prog_gcc" = no; then
2973 CFLAGS="$CFLAGS -pipe"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2982 if { (eval echo configure:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2984 unet_cv_pipe_flags=yes
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2992 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2993 if test "$unet_cv_pipe_flags" = yes ; then
2994 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2995 if test "$x" = "" ; then
2996 CFLAGS="$CFLAGS -pipe"
3001 echo $ac_n "checking for OS-dependent information""... $ac_c" 1>&6
3002 echo "configure:3003: checking for OS-dependent information" >&5
3005 echo "$ac_t""Linux ($host) found." 1>&6
3006 unet_poll_syscall=yes
3011 echo "$ac_t""Solaris ($host) found." 1>&6
3012 if test x"$ac_cv_header_poll_h" = xyes; then
3013 unet_poll_syscall=yes
3015 unet_poll_syscall=no
3017 OSDEP_C=os_solaris.c
3021 echo "$ac_t""Solaris ($host) found." 1>&6
3022 unet_poll_syscall=no
3023 OSDEP_C=os_solaris.c
3027 echo "$ac_t""OpenBSD ($host) found." 1>&6
3028 if test x"$ac_cv_header_poll_h" = xyes; then
3029 unet_poll_syscall=yes
3031 unet_poll_syscall=no
3033 OSDEP_C=os_openbsd.c
3037 echo "$ac_t""Generic BSD ($host) found." 1>&6
3038 if test x"$ac_cv_header_poll_h" = xyes; then
3039 unet_poll_syscall=yes
3041 unet_poll_syscall=no
3047 echo "$ac_t""Darwin (Mac OS X) ($host) found." 1>&6
3048 unet_poll_syscall=no
3053 echo "$ac_t""Unknown system type $host found." 1>&6
3054 echo "configure: warning: Unknown OS type; using generic routines." 1>&2
3055 unet_poll_syscall=no
3056 OSDEP_C=os_generic.c
3061 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether to enable use of poll()" >&5
3063 # Check whether --enable-poll or --disable-poll was given.
3064 if test "${enable_poll+set}" = set; then
3065 enableval="$enable_poll"
3066 unet_cv_enable_poll=$enable_poll
3068 if eval "test \"`echo '$''{'unet_cv_enable_poll'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 unet_cv_enable_poll=$unet_poll_syscall
3077 # Force poll to be disabled if there is no poll.h
3078 if test x"$ac_cv_header_poll_h" != xyes; then
3079 unet_cv_enable_poll=no
3082 echo "$ac_t""$unet_cv_enable_poll" 1>&6
3084 if test x"$unet_cv_enable_poll" = xyes; then
3085 cat >> confdefs.h <<\EOF
3089 ENGINE_C=engine_poll.c
3091 ENGINE_C=engine_select.c
3095 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
3096 echo "configure:3097: checking whether to enable debug mode" >&5
3097 # Check whether --enable-debug or --disable-debug was given.
3098 if test "${enable_debug+set}" = set; then
3099 enableval="$enable_debug"
3100 unet_cv_enable_debug=$enable_debug
3102 if eval "test \"`echo '$''{'unet_cv_enable_debug'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 unet_cv_enable_debug=no
3110 echo "$ac_t""$unet_cv_enable_debug" 1>&6
3112 if test x"$unet_cv_enable_debug" = xyes; then
3113 cat >> confdefs.h <<\EOF
3119 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
3120 echo "configure:3121: checking whether to enable asserts" >&5
3121 # Check whether --enable-asserts or --disable-asserts was given.
3122 if test "${enable_asserts+set}" = set; then
3123 enableval="$enable_asserts"
3124 unet_cv_enable_asserts=$enable_asserts
3126 if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 unet_cv_enable_asserts=yes
3134 echo "$ac_t""$unet_cv_enable_asserts" 1>&6
3136 if test x"$unet_cv_enable_asserts" = xno; then
3137 cat >> confdefs.h <<\EOF
3143 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
3144 echo "configure:3145: checking whether to enable debugging symbols" >&5
3145 # Check whether --enable-symbols or --disable-symbols was given.
3146 if test "${enable_symbols+set}" = set; then
3147 enableval="$enable_symbols"
3148 unet_cv_enable_symbols=$enable_symbols
3150 if eval "test \"`echo '$''{'unet_cv_enable_symbols'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 unet_cv_enable_symbols=yes
3158 echo "$ac_t""$unet_cv_enable_symbols" 1>&6
3160 if test x"$unet_cv_enable_symbols" = xyes; then
3164 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
3165 echo "configure:3166: checking whether to enable profiling support (gprof)" >&5
3166 # Check whether --enable-profile or --disable-profile was given.
3167 if test "${enable_profile+set}" = set; then
3168 enableval="$enable_profile"
3169 unet_cv_enable_profile=$enable_profile
3171 if eval "test \"`echo '$''{'unet_cv_enable_profile'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 unet_cv_enable_profile=no
3179 echo "$ac_t""$unet_cv_enable_profile" 1>&6
3181 if test x"$unet_cv_enable_profile" = xyes; then
3182 CFLAGS="-pg $CFLAGS"
3185 echo $ac_n "checking whether to enable pedantic compiler warnings""... $ac_c" 1>&6
3186 echo "configure:3187: checking whether to enable pedantic compiler warnings" >&5
3187 # Check whether --enable-pedantic or --disable-pedantic was given.
3188 if test "${enable_pedantic+set}" = set; then
3189 enableval="$enable_pedantic"
3190 unet_cv_enable_pedantic=$enable_pedantic
3192 if eval "test \"`echo '$''{'unet_cv_enable_pedantic'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 unet_cv_enable_pedantic=no
3200 echo "$ac_t""$unet_cv_enable_pedantic" 1>&6
3202 if test x"$unet_cv_enable_pedantic" = xyes; then
3203 CFLAGS="-pedantic $CFLAGS"
3206 echo $ac_n "checking whether to enable compiler warnings""... $ac_c" 1>&6
3207 echo "configure:3208: checking whether to enable compiler warnings" >&5
3208 # Check whether --enable-warnings or --disable-warnings was given.
3209 if test "${enable_warnings+set}" = set; then
3210 enableval="$enable_warnings"
3211 unet_cv_enable_warnings=$enable_warnings
3213 if eval "test \"`echo '$''{'unet_cv_enable_warnings'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 unet_cv_enable_warnings=no
3221 echo "$ac_t""$unet_cv_enable_warnings" 1>&6
3223 if test x"$unet_cv_enable_warnings" = xyes; then
3224 CFLAGS="-Wall $CFLAGS"
3227 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether to enable inlining for a few critical functions" >&5
3229 # Check whether --enable-inlines or --disable-inlines was given.
3230 if test "${enable_inlines+set}" = set; then
3231 enableval="$enable_inlines"
3232 unet_cv_enable_inlines=$enable_inlines
3234 if eval "test \"`echo '$''{'unet_cv_enable_inlines'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 unet_cv_enable_inlines=yes
3242 echo "$ac_t""$unet_cv_enable_inlines" 1>&6
3244 if test x"$unet_cv_enable_inlines" = xyes; then
3245 cat >> confdefs.h <<\EOF
3251 echo $ac_n "checking whether to enable the /dev/poll event engine""... $ac_c" 1>&6
3252 echo "configure:3253: checking whether to enable the /dev/poll event engine" >&5
3253 # Check whether --enable-devpoll or --disable-devpoll was given.
3254 if test "${enable_devpoll+set}" = set; then
3255 enableval="$enable_devpoll"
3256 unet_cv_enable_devpoll=$enable_devpoll
3258 if eval "test \"`echo '$''{'unet_cv_enable_devpoll'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 unet_cv_enable_devpoll=yes
3267 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
3268 unet_cv_enable_devpoll=no
3271 echo "$ac_t""$unet_cv_enable_devpoll" 1>&6
3273 if test x"$unet_cv_enable_devpoll" != xno; then
3274 cat >> confdefs.h <<\EOF
3278 ENGINE_C="engine_devpoll.c $ENGINE_C"
3281 echo $ac_n "checking whether to enable the kqueue event engine""... $ac_c" 1>&6
3282 echo "configure:3283: checking whether to enable the kqueue event engine" >&5
3283 # Check whether --enable-kqueue or --disable-kqueue was given.
3284 if test "${enable_kqueue+set}" = set; then
3285 enableval="$enable_kqueue"
3286 unet_cv_enable_kqueue=$enable_kqueue
3288 if eval "test \"`echo '$''{'unet_cv_enable_kqueue'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 unet_cv_enable_kqueue=yes
3297 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
3298 unet_cv_enable_kqueue=no
3301 echo "$ac_t""$unet_cv_enable_kqueue" 1>&6
3303 if test x"$unet_cv_enable_kqueue" != xno; then
3304 cat >> confdefs.h <<\EOF
3308 ENGINE_C="engine_kqueue.c $ENGINE_C"
3311 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
3312 echo "configure:3313: checking what name to give the symlink" >&5
3313 # Check whether --with-symlink or --without-symlink was given.
3314 if test "${with_symlink+set}" = set; then
3315 withval="$with_symlink"
3316 unet_cv_with_symlink=$with_symlink
3318 if eval "test \"`echo '$''{'unet_cv_with_symlink'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 unet_cv_with_symlink="ircd"
3327 if test x"$unet_cv_with_symlink" = xyes; then
3328 unet_cv_with_symlink="ircd"
3331 echo "$ac_t""$unet_cv_with_symlink" 1>&6
3333 if test x"$unet_cv_with_symlink" = xno; then
3334 INSTALL_RULE=install-no-symlink
3337 INSTALL_RULE=install-with-symlink
3338 SYMLINK=$unet_cv_with_symlink
3343 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
3344 echo "configure:3345: checking what permissions to set on the installed binary" >&5
3345 # Check whether --with-mode or --without-mode was given.
3346 if test "${with_mode+set}" = set; then
3347 withval="$with_mode"
3348 unet_cv_with_mode=$with_mode
3350 if eval "test \"`echo '$''{'unet_cv_with_mode'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 unet_cv_with_mode=711
3359 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
3360 unet_cv_with_mode=711
3363 echo "$ac_t""$unet_cv_with_mode" 1>&6
3365 IRCDMODE=$unet_cv_with_mode
3368 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3369 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
3370 echo "configure:3371: checking which user should own the installed binary" >&5
3371 # Check whether --with-owner or --without-owner was given.
3372 if test "${with_owner+set}" = set; then
3373 withval="$with_owner"
3374 unet_cv_with_owner=$with_owner
3376 if eval "test \"`echo '$''{'unet_cv_with_owner'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 unet_cv_with_owner=$unet_uid
3385 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
3386 unet_cv_with_owner=$unet_uid
3389 echo "$ac_t""$unet_cv_with_owner" 1>&6
3391 IRCDOWN=$unet_cv_with_owner
3394 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3395 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
3396 echo "configure:3397: checking which group should own the installed binary" >&5
3397 # Check whether --with-group or --without-group was given.
3398 if test "${with_group+set}" = set; then
3399 withval="$with_group"
3400 unet_cv_with_group=$with_group
3402 if eval "test \"`echo '$''{'unet_cv_with_group'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 unet_cv_with_group=$unet_gid
3411 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
3412 unet_cv_with_group=$unet_gid
3415 echo "$ac_t""$unet_cv_with_group" 1>&6
3417 IRCDGRP=$unet_cv_with_group
3421 if test -f /etc/resolv.conf; then
3422 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
3423 if test x"$unet_domain" = x; then
3424 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
3427 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
3428 echo "configure:3429: checking for site domain name" >&5
3429 # Check whether --with-domain or --without-domain was given.
3430 if test "${with_domain+set}" = set; then
3431 withval="$with_domain"
3432 unet_cv_with_domain=$with_domain
3434 if eval "test \"`echo '$''{'unet_cv_with_domain'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 unet_cv_with_domain=$unet_domain
3443 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
3444 unet_cv_with_domain=$unet_domain
3446 if test x"$unet_cv_with_domain" = xno; then
3447 { echo "configure: error: Unable to determine server DNS domain; use --with-domain to set it" 1>&2; exit 1; }
3450 echo "$ac_t""$unet_cv_with_domain" 1>&6
3452 cat >> confdefs.h <<EOF
3453 #define DOMAINNAME "*$unet_cv_with_domain"
3457 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
3458 echo "configure:3459: checking if chroot operation is desired" >&5
3459 # Check whether --with-chroot or --without-chroot was given.
3460 if test "${with_chroot+set}" = set; then
3461 withval="$with_chroot"
3462 unet_cv_with_chroot=$with_chroot
3464 if eval "test \"`echo '$''{'unet_cv_with_chroot'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 unet_cv_with_chroot=no
3473 if test x"$unet_cv_with_chroot" = xyes; then
3474 { echo "configure: error: --with-chroot given with no directory. See doc/readme.chroot." 1>&2; exit 1; }
3477 # Ensure there are no trailing /'s to mess us up
3478 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
3480 echo "$ac_t""$unet_cv_with_chroot" 1>&6
3482 # Deal with the annoying value "NONE" here
3483 unet_save_prefix=$prefix
3484 if test x"$prefix" = xNONE; then
3485 prefix=$ac_default_prefix
3490 unet_save_exec_prefix=$exec_prefix
3491 if test x"$exec_prefix" = xNONE; then
3494 exec_prefix=$exec_prefix
3497 # Obtain the actual interesting directories
3498 unet_bindir=`eval echo "$bindir"`
3499 unet_libdir=`eval echo "$libdir"`
3501 # Restore the original settings of $prefix and $exec_prefix
3502 prefix=$unet_save_prefix
3503 exec_prefix=$unet_save_exec_prefix
3505 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
3506 echo "configure:3507: checking where the binary will be for /restart" >&5
3507 if test x"$unet_cv_with_symlink" = xno; then
3508 unet_spath="$unet_bindir/ircd"
3510 unet_spath="$unet_bindir/$unet_cv_with_symlink"
3512 echo "$ac_t""$unet_spath" 1>&6
3514 if test x"$unet_cv_with_chroot" != xno; then
3515 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3516 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
3518 echo "configure: warning: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" 1>&2
3522 cat >> confdefs.h <<EOF
3523 #define SPATH "$unet_spath"
3527 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
3528 echo "configure:3529: checking what the data directory should be" >&5
3529 # Check whether --with-dpath or --without-dpath was given.
3530 if test "${with_dpath+set}" = set; then
3531 withval="$with_dpath"
3532 unet_cv_with_dpath=$with_dpath
3534 if eval "test \"`echo '$''{'unet_cv_with_dpath'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 unet_cv_with_dpath=$unet_libdir
3543 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
3544 unet_cv_with_dpath=$unet_libdir
3547 # Ensure there are no trailing /'s to mess us up
3548 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
3550 echo "$ac_t""$unet_cv_with_dpath" 1>&6
3552 if test x"$unet_cv_with_chroot" != xno; then
3553 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3554 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
3556 { echo "configure: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3559 unet_dpath=$unet_cv_with_dpath
3562 cat >> confdefs.h <<EOF
3563 #define DPATH "$unet_dpath"
3567 DPATH=$unet_cv_with_dpath
3570 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
3571 echo "configure:3572: checking where the default configuration file resides" >&5
3572 # Check whether --with-cpath or --without-cpath was given.
3573 if test "${with_cpath+set}" = set; then
3574 withval="$with_cpath"
3575 unet_cv_with_cpath=$with_cpath
3577 if eval "test \"`echo '$''{'unet_cv_with_cpath'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 unet_cv_with_cpath="ircd.conf"
3586 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
3587 unet_cv_with_cpath="ircd.conf"
3590 echo "$ac_t""$unet_cv_with_cpath" 1>&6
3592 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
3593 # Absolute path; check against chroot stuff
3594 if test x"$unet_cv_with_chroot" != xno; then
3595 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3596 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
3598 { echo "configure: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3601 unet_cpath=$unet_cv_with_cpath
3604 unet_cpath=$unet_cv_with_cpath
3607 cat >> confdefs.h <<EOF
3608 #define CPATH "$unet_cpath"
3612 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
3613 echo "configure:3614: checking where to put the debugging log if debugging enabled" >&5
3614 # Check whether --with-lpath or --without-lpath was given.
3615 if test "${with_lpath+set}" = set; then
3616 withval="$with_lpath"
3617 unet_cv_with_lpath=$with_lpath
3619 if eval "test \"`echo '$''{'unet_cv_with_lpath'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 unet_cv_with_lpath="ircd.log"
3628 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
3629 unet_cv_with_lpath="ircd.log"
3632 echo "$ac_t""$unet_cv_with_lpath" 1>&6
3634 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
3635 # Absolute path; check against chroot stuff
3636 if test x"$unet_cv_with_chroot" != xno; then
3637 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3638 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
3640 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
3641 unet_cv_with_lpath="ircd.log"
3642 unet_lpath="ircd.log"
3645 unet_lpath=$unet_cv_with_lpath
3648 unet_lpath=$unet_cv_with_lpath
3651 cat >> confdefs.h <<EOF
3652 #define LPATH "$unet_lpath"
3656 unet_maxcon=`ulimit -Hn`
3657 unet_maxcon=`expr $unet_maxcon - 4`
3658 echo $ac_n "checking max connections""... $ac_c" 1>&6
3659 echo "configure:3660: checking max connections" >&5
3660 # Check whether --with-maxcon or --without-maxcon was given.
3661 if test "${with_maxcon+set}" = set; then
3662 withval="$with_maxcon"
3663 unet_cv_with_maxcon=$with_maxcon
3665 if eval "test \"`echo '$''{'unet_cv_with_maxcon'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 unet_cv_with_maxcon=$unet_maxcon
3674 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
3675 unet_cv_with_maxcon=$unet_maxcon
3678 echo "$ac_t""$unet_cv_with_maxcon" 1>&6
3680 cat >> confdefs.h <<EOF
3681 #define MAXCONNECTIONS $unet_cv_with_maxcon
3686 cat > confcache <<\EOF
3687 # This file is a shell script that caches the results of configure
3688 # tests run on this system so they can be shared between configure
3689 # scripts and configure runs. It is not useful on other systems.
3690 # If it contains results you don't want to keep, you may remove or edit it.
3692 # By default, configure uses ./config.cache as the cache file,
3693 # creating it if it does not exist already. You can give configure
3694 # the --cache-file=FILE option to use a different cache file; that is
3695 # what configure does when it calls configure scripts in
3696 # subdirectories, so they share the cache.
3697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3698 # config.status only pays attention to the cache file if you give it the
3699 # --recheck option to rerun configure.
3702 # The following way of writing the cache mishandles newlines in values,
3703 # but we know of no workaround that is simple, portable, and efficient.
3704 # So, don't put newlines in cache variables' values.
3705 # Ultrix sh set writes to stderr and can't be redirected directly,
3706 # and sets the high bit in the cache file unless we assign to the vars.
3708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3710 # `set' does not quote correctly, so add quotes (double-quote substitution
3711 # turns \\\\ into \\, and sed turns \\ into \).
3713 -e "s/'/'\\\\''/g" \
3714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3717 # `set' quotes correctly as required by POSIX, so do not add quotes.
3718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3721 if cmp -s $cache_file confcache; then
3724 if test -w $cache_file; then
3725 echo "updating cache $cache_file"
3726 cat confcache > $cache_file
3728 echo "not updating unwritable cache $cache_file"
3733 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3736 # Let make expand exec_prefix.
3737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3739 # Any assignment to VPATH causes Sun make to only execute
3740 # the first set of double-colon rules, so remove it if not needed.
3741 # If there is a colon in the path, we need to keep it.
3742 if test "x$srcdir" = x.; then
3743 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3746 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3748 DEFS=-DHAVE_CONFIG_H
3750 # Without the "./", some shells look in PATH for config.status.
3751 : ${CONFIG_STATUS=./config.status}
3753 echo creating $CONFIG_STATUS
3754 rm -f $CONFIG_STATUS
3755 cat > $CONFIG_STATUS <<EOF
3757 # Generated automatically by configure.
3758 # Run this file to recreate the current configuration.
3759 # This directory was configured as follows,
3760 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3762 # $0 $ac_configure_args
3764 # Compiler output produced by configure, useful for debugging
3765 # configure, is in ./config.log if it exists.
3767 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3770 case "\$ac_option" in
3771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3772 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3773 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3774 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3775 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3777 -help | --help | --hel | --he | --h)
3778 echo "\$ac_cs_usage"; exit 0 ;;
3779 *) echo "\$ac_cs_usage"; exit 1 ;;
3783 ac_given_srcdir=$srcdir
3784 ac_given_INSTALL="$INSTALL"
3786 trap 'rm -fr `echo "Makefile ircd/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3788 cat >> $CONFIG_STATUS <<EOF
3790 # Protect against being on the right side of a sed subst in config.status.
3791 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3792 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3796 s%@CFLAGS@%$CFLAGS%g
3797 s%@CPPFLAGS@%$CPPFLAGS%g
3798 s%@CXXFLAGS@%$CXXFLAGS%g
3799 s%@FFLAGS@%$FFLAGS%g
3801 s%@LDFLAGS@%$LDFLAGS%g
3803 s%@exec_prefix@%$exec_prefix%g
3804 s%@prefix@%$prefix%g
3805 s%@program_transform_name@%$program_transform_name%g
3806 s%@bindir@%$bindir%g
3807 s%@sbindir@%$sbindir%g
3808 s%@libexecdir@%$libexecdir%g
3809 s%@datadir@%$datadir%g
3810 s%@sysconfdir@%$sysconfdir%g
3811 s%@sharedstatedir@%$sharedstatedir%g
3812 s%@localstatedir@%$localstatedir%g
3813 s%@libdir@%$libdir%g
3814 s%@includedir@%$includedir%g
3815 s%@oldincludedir@%$oldincludedir%g
3816 s%@infodir@%$infodir%g
3817 s%@mandir@%$mandir%g
3819 s%@host_alias@%$host_alias%g
3820 s%@host_cpu@%$host_cpu%g
3821 s%@host_vendor@%$host_vendor%g
3822 s%@host_os@%$host_os%g
3826 s%@SET_MAKE@%$SET_MAKE%g
3827 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3828 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3829 s%@INSTALL_DATA@%$INSTALL_DATA%g
3831 s%@RMPROG@%$RMPROG%g
3832 s%@SHPROG@%$SHPROG%g
3833 s%@OSDEP_C@%$OSDEP_C%g
3834 s%@ENGINE_C@%$ENGINE_C%g
3835 s%@INSTALL_RULE@%$INSTALL_RULE%g
3836 s%@SYMLINK@%$SYMLINK%g
3837 s%@IRCDMODE@%$IRCDMODE%g
3838 s%@IRCDOWN@%$IRCDOWN%g
3839 s%@IRCDGRP@%$IRCDGRP%g
3845 cat >> $CONFIG_STATUS <<\EOF
3847 # Split the substitutions into bite-sized pieces for seds with
3848 # small command number limits, like on Digital OSF/1 and HP-UX.
3849 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3850 ac_file=1 # Number of current file.
3851 ac_beg=1 # First line for current file.
3852 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3855 while $ac_more_lines; do
3856 if test $ac_beg -gt 1; then
3857 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3859 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3861 if test ! -s conftest.s$ac_file; then
3863 rm -f conftest.s$ac_file
3865 if test -z "$ac_sed_cmds"; then
3866 ac_sed_cmds="sed -f conftest.s$ac_file"
3868 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3870 ac_file=`expr $ac_file + 1`
3872 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3875 if test -z "$ac_sed_cmds"; then
3880 cat >> $CONFIG_STATUS <<EOF
3882 CONFIG_FILES=\${CONFIG_FILES-"Makefile ircd/Makefile doc/Makefile"}
3884 cat >> $CONFIG_STATUS <<\EOF
3885 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3888 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3889 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3890 *) ac_file_in="${ac_file}.in" ;;
3893 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3895 # Remove last slash and all that follows it. Not all systems have dirname.
3896 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3897 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3898 # The file is in a subdirectory.
3899 test ! -d "$ac_dir" && mkdir "$ac_dir"
3900 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3901 # A "../" for each directory in $ac_dir_suffix.
3902 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3904 ac_dir_suffix= ac_dots=
3907 case "$ac_given_srcdir" in
3909 if test -z "$ac_dots"; then top_srcdir=.
3910 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3911 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3913 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3914 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3917 case "$ac_given_INSTALL" in
3918 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3919 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3922 echo creating "$ac_file"
3924 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3926 *Makefile*) ac_comsub="1i\\
3927 # $configure_input" ;;
3931 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3933 s%@configure_input@%$configure_input%g
3934 s%@srcdir@%$srcdir%g
3935 s%@top_srcdir@%$top_srcdir%g
3936 s%@INSTALL@%$INSTALL%g
3937 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3944 # ac_d sets the value in "#define NAME VALUE" lines.
3945 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3946 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3949 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3950 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3951 ac_uB='\([ ]\)%\1#\2define\3'
3954 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3955 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3956 ac_eB='$%\1#\2define\3'
3960 if test "${CONFIG_HEADERS+set}" != set; then
3962 cat >> $CONFIG_STATUS <<EOF
3963 CONFIG_HEADERS="config.h"
3965 cat >> $CONFIG_STATUS <<\EOF
3967 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3970 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3971 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3972 *) ac_file_in="${ac_file}.in" ;;
3975 echo creating $ac_file
3977 rm -f conftest.frag conftest.in conftest.out
3978 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3979 cat $ac_file_inputs > conftest.in
3983 # Transform confdefs.h into a sed script conftest.vals that substitutes
3984 # the proper values into config.h.in to produce config.h. And first:
3985 # Protect against being on the right side of a sed subst in config.status.
3986 # Protect against being in an unquoted here document in config.status.
3988 cat > conftest.hdr <<\EOF
3991 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3995 sed -n -f conftest.hdr confdefs.h > conftest.vals
3998 # This sed command replaces #undef with comments. This is necessary, for
3999 # example, in the case of _POSIX_SOURCE, which is predefined and required
4000 # on some systems where configure will not decide to define it.
4001 cat >> conftest.vals <<\EOF
4002 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4005 # Break up conftest.vals because some shells have a limit on
4006 # the size of here documents, and old seds have small limits too.
4011 ac_lines=`grep -c . conftest.vals`
4012 # grep -c gives empty output for an empty file on some AIX systems.
4013 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4014 # Write a limited-size here document to conftest.frag.
4015 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4016 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4018 sed -f conftest.frag conftest.in > conftest.out
4020 mv conftest.out conftest.in
4022 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4024 mv conftest.tail conftest.vals
4028 cat >> $CONFIG_STATUS <<\EOF
4029 rm -f conftest.frag conftest.h
4030 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4031 cat conftest.in >> conftest.h
4033 if cmp -s $ac_file conftest.h 2>/dev/null; then
4034 echo "$ac_file is unchanged"
4037 # Remove last slash and all that follows it. Not all systems have dirname.
4038 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4039 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4040 # The file is in a subdirectory.
4041 test ! -d "$ac_dir" && mkdir "$ac_dir"
4044 mv conftest.h $ac_file
4049 cat >> $CONFIG_STATUS <<EOF
4052 cat >> $CONFIG_STATUS <<\EOF
4053 echo timestamp > stamp-h
4056 chmod +x $CONFIG_STATUS
4057 rm -fr confdefs* $ac_clean_files
4058 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1