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 --enable-asserts Enable asserts"
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"
1945 #include <sys/types.h>
1948 FILE *f=fopen("conftestval", "w");
1950 fprintf(f, "%d\n", sizeof(short));
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1956 ac_cv_sizeof_short=`cat conftestval`
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1961 ac_cv_sizeof_short=0
1967 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1968 cat >> confdefs.h <<EOF
1969 #define SIZEOF_SHORT $ac_cv_sizeof_short
1973 echo $ac_n "checking size of int""... $ac_c" 1>&6
1974 echo "configure:1975: checking size of int" >&5
1975 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 if test "$cross_compiling" = yes; then
1979 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1985 #include <sys/types.h>
1988 FILE *f=fopen("conftestval", "w");
1990 fprintf(f, "%d\n", sizeof(int));
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1996 ac_cv_sizeof_int=`cat conftestval`
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2007 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2008 cat >> confdefs.h <<EOF
2009 #define SIZEOF_INT $ac_cv_sizeof_int
2013 echo $ac_n "checking size of long""... $ac_c" 1>&6
2014 echo "configure:2015: checking size of long" >&5
2015 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 if test "$cross_compiling" = yes; then
2019 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2025 #include <sys/types.h>
2028 FILE *f=fopen("conftestval", "w");
2030 fprintf(f, "%d\n", sizeof(long));
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2036 ac_cv_sizeof_long=`cat conftestval`
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2047 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2048 cat >> confdefs.h <<EOF
2049 #define SIZEOF_LONG $ac_cv_sizeof_long
2053 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2054 echo "configure:2055: checking size of void *" >&5
2055 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test "$cross_compiling" = yes; then
2059 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2065 #include <sys/types.h>
2068 FILE *f=fopen("conftestval", "w");
2070 fprintf(f, "%d\n", sizeof(void *));
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2076 ac_cv_sizeof_void_p=`cat conftestval`
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 ac_cv_sizeof_void_p=0
2087 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2088 cat >> confdefs.h <<EOF
2089 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2093 if test "$ac_cv_sizeof_int" = 2 ; then
2094 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2095 echo "configure:2096: checking for int16_t" >&5
2096 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <sys/types.h>
2108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2109 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2111 ac_cv_type_int16_t=yes
2114 ac_cv_type_int16_t=no
2119 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2120 if test $ac_cv_type_int16_t = no; then
2121 cat >> confdefs.h <<\EOF
2127 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2128 echo "configure:2129: checking for u_int16_t" >&5
2129 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2135 #include <sys/types.h>
2141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2142 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2144 ac_cv_type_u_int16_t=yes
2147 ac_cv_type_u_int16_t=no
2152 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2153 if test $ac_cv_type_u_int16_t = no; then
2154 cat >> confdefs.h <<\EOF
2155 #define u_int16_t unsigned int
2160 elif test "$ac_cv_sizeof_short" = 2 ; then
2161 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2162 echo "configure:2163: checking for int16_t" >&5
2163 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 #include <sys/types.h>
2175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2176 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2178 ac_cv_type_int16_t=yes
2181 ac_cv_type_int16_t=no
2186 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2187 if test $ac_cv_type_int16_t = no; then
2188 cat >> confdefs.h <<\EOF
2189 #define int16_t short
2194 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2195 echo "configure:2196: checking for u_int16_t" >&5
2196 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 #include <sys/types.h>
2208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2209 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2211 ac_cv_type_u_int16_t=yes
2214 ac_cv_type_u_int16_t=no
2219 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2220 if test $ac_cv_type_u_int16_t = no; then
2221 cat >> confdefs.h <<\EOF
2222 #define u_int16_t unsigned short
2228 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2230 if test "$ac_cv_sizeof_int" = 4 ; then
2231 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2232 echo "configure:2233: checking for int32_t" >&5
2233 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <sys/types.h>
2245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2246 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2248 ac_cv_type_int32_t=yes
2251 ac_cv_type_int32_t=no
2256 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2257 if test $ac_cv_type_int32_t = no; then
2258 cat >> confdefs.h <<\EOF
2264 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2265 echo "configure:2266: checking for u_int32_t" >&5
2266 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 #include <sys/types.h>
2278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2279 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2281 ac_cv_type_u_int32_t=yes
2284 ac_cv_type_u_int32_t=no
2289 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2290 if test $ac_cv_type_u_int32_t = no; then
2291 cat >> confdefs.h <<\EOF
2292 #define u_int32_t unsigned int
2297 elif test "$ac_cv_sizeof_short" = 4 ; then
2298 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2299 echo "configure:2300: checking for int32_t" >&5
2300 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2315 ac_cv_type_int32_t=yes
2318 ac_cv_type_int32_t=no
2323 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2324 if test $ac_cv_type_int32_t = no; then
2325 cat >> confdefs.h <<\EOF
2326 #define int32_t short
2331 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2332 echo "configure:2333: checking for u_int32_t" >&5
2333 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #include <sys/types.h>
2345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2346 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2348 ac_cv_type_u_int32_t=yes
2351 ac_cv_type_u_int32_t=no
2356 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2357 if test $ac_cv_type_u_int32_t = no; then
2358 cat >> confdefs.h <<\EOF
2359 #define u_int32_t unsigned short
2364 elif test "$ac_cv_sizeof_long" = 4 ; then
2365 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2366 echo "configure:2367: checking for int32_t" >&5
2367 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 #include <sys/types.h>
2379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2380 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2382 ac_cv_type_int32_t=yes
2385 ac_cv_type_int32_t=no
2390 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2391 if test $ac_cv_type_int32_t = no; then
2392 cat >> confdefs.h <<\EOF
2393 #define int32_t long
2398 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2399 echo "configure:2400: checking for u_int32_t" >&5
2400 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <sys/types.h>
2412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2413 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2415 ac_cv_type_u_int32_t=yes
2418 ac_cv_type_u_int32_t=no
2423 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2424 if test $ac_cv_type_u_int32_t = no; then
2425 cat >> confdefs.h <<\EOF
2426 #define u_int32_t unsigned long
2432 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2435 echo $ac_n "checking for kqueue""... $ac_c" 1>&6
2436 echo "configure:2437: checking for kqueue" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_kqueue'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* System header to define __stub macros and hopefully few prototypes,
2444 which can conflict with char kqueue(); below. */
2446 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2453 /* The GNU C library defines this for functions which it implements
2454 to always fail with ENOSYS. Some functions are actually named
2455 something starting with __ and the normal name is an alias. */
2456 #if defined (__stub_kqueue) || defined (__stub___kqueue)
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 eval "ac_cv_func_kqueue=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_func_kqueue=no"
2476 if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2480 echo "$ac_t""no" 1>&6
2484 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2485 echo "configure:2486: checking for restartable system calls" >&5
2486 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 if test "$cross_compiling" = yes; then
2490 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 /* Exit 0 (true) if wait returns something other than -1,
2496 i.e. the pid of the child, which means that wait was restarted
2497 after getting the signal. */
2498 #include <sys/types.h>
2502 int i = fork (), status;
2503 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2504 signal (SIGINT, ucatch);
2506 if (status == -1) wait(&i);
2507 exit (status == -1);
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2513 ac_cv_sys_restartable_syscalls=yes
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 ac_cv_sys_restartable_syscalls=no
2525 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2526 if test $ac_cv_sys_restartable_syscalls = yes; then
2527 cat >> confdefs.h <<\EOF
2528 #define HAVE_RESTARTABLE_SYSCALLS 1
2534 echo $ac_n "checking for donuts""... $ac_c" 1>&6
2535 echo "configure:2536: checking for donuts" >&5
2536 echo "$ac_t""yes" 1>&6
2538 for ac_prog in mawk gawk nawk awk
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_word" >&5
2544 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 if test -n "$AWK"; then
2548 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2552 for ac_dir in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_prog_AWK="$ac_prog"
2562 AWK="$ac_cv_prog_AWK"
2563 if test -n "$AWK"; then
2564 echo "$ac_t""$AWK" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 test -n "$AWK" && break
2572 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether ${MAKE-make} sets \${MAKE}" >&5
2574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftestmake <<\EOF
2580 @echo 'ac_maketemp="${MAKE}"'
2582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2583 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2584 if test -n "$ac_maketemp"; then
2585 eval ac_cv_prog_make_${ac_make}_set=yes
2587 eval ac_cv_prog_make_${ac_make}_set=no
2591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2595 echo "$ac_t""no" 1>&6
2596 SET_MAKE="MAKE=${MAKE-make}"
2599 # Find a good install program. We prefer a C program (faster),
2600 # so one script is as good as another. But avoid the broken or
2601 # incompatible versions:
2602 # SysV /etc/install, /usr/sbin/install
2603 # SunOS /usr/etc/install
2604 # IRIX /sbin/install
2606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609 # ./install, which can be erroneously created by make from ./install.sh.
2610 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2611 echo "configure:2612: checking for a BSD compatible install" >&5
2612 if test -z "$INSTALL"; then
2613 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2617 for ac_dir in $PATH; do
2618 # Account for people who put trailing slashes in PATH elements.
2620 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2625 for ac_prog in ginstall scoinst install; do
2626 if test -f $ac_dir/$ac_prog; then
2627 if test $ac_prog = install &&
2628 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2629 # AIX install. It has an incompatible calling convention.
2632 ac_cv_path_install="$ac_dir/$ac_prog -c"
2643 if test "${ac_cv_path_install+set}" = set; then
2644 INSTALL="$ac_cv_path_install"
2646 # As a last resort, use the slow shell script. We don't cache a
2647 # path for INSTALL within a source directory, because that will
2648 # break other packages using the cache if that directory is
2649 # removed, or if the path is relative.
2650 INSTALL="$ac_install_sh"
2653 echo "$ac_t""$INSTALL" 1>&6
2655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2656 # It thinks the first close brace ends the variable substitution.
2657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2663 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2664 echo "configure:2665: checking whether ln -s works" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2669 if ln -s X conftestdata 2>/dev/null
2672 ac_cv_prog_LN_S="ln -s"
2677 LN_S="$ac_cv_prog_LN_S"
2678 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2679 echo "$ac_t""yes" 1>&6
2681 echo "$ac_t""no" 1>&6
2686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_word" >&5
2690 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2695 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2698 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2703 for ac_dir in $ac_dummy; do
2704 test -z "$ac_dir" && ac_dir=.
2705 if test -f $ac_dir/$ac_word; then
2706 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2714 RMPROG="$ac_cv_path_RMPROG"
2715 if test -n "$RMPROG"; then
2716 echo "$ac_t""$RMPROG" 1>&6
2718 echo "$ac_t""no" 1>&6
2721 test -n "$RMPROG" && break
2723 test -n "$RMPROG" || RMPROG="/bin/rm"
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_word" >&5
2731 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2739 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2744 for ac_dir in $ac_dummy; do
2745 test -z "$ac_dir" && ac_dir=.
2746 if test -f $ac_dir/$ac_word; then
2747 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2755 SHPROG="$ac_cv_path_SHPROG"
2756 if test -n "$SHPROG"; then
2757 echo "$ac_t""$SHPROG" 1>&6
2759 echo "$ac_t""no" 1>&6
2762 test -n "$SHPROG" && break
2764 test -n "$SHPROG" || SHPROG="/bin/sh"
2767 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2768 echo "configure:2769: checking for posix non-blocking" >&5
2769 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 if test "$cross_compiling" = yes; then
2773 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <sys/types.h>
2779 #include <sys/socket.h>
2781 #include <sys/ioctl.h>
2782 #include <sys/file.h>
2784 $ac_cv_type_signal alarmed() { exit(1); }
2789 size_t l = sizeof(x);
2790 int f = socket(AF_INET, SOCK_DGRAM, 0);
2791 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2793 signal(SIGALRM, alarmed);
2795 recvfrom(f, b, 12, 0, &x, &l);
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2804 unet_cv_sys_nonblocking_posix=yes
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2809 unet_cv_sys_nonblocking_posix=no
2816 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2817 if test $unet_cv_sys_nonblocking_posix = yes; then
2818 cat >> confdefs.h <<\EOF
2819 #define NBLOCK_POSIX 1
2823 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2824 echo "configure:2825: checking for bsd non-blocking" >&5
2825 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test "$cross_compiling" = yes; then
2829 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2835 #include <sys/socket.h>
2837 #include <sys/ioctl.h>
2838 #include <sys/file.h>
2840 $ac_cv_type_signal alarmed() { exit(1); }
2845 size_t l = sizeof(x);
2846 int f = socket(AF_INET, SOCK_DGRAM, 0);
2847 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2849 signal(SIGALRM, alarmed);
2851 recvfrom(f, b, 12, 0, &x, &l);
2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2860 unet_cv_sys_nonblocking_bsd=yes
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2865 unet_cv_sys_nonblocking_bsd=no
2872 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2873 if test $unet_cv_sys_nonblocking_bsd = yes; then
2874 cat >> confdefs.h <<\EOF
2875 #define NBLOCK_BSD 1
2879 cat >> confdefs.h <<\EOF
2880 #define NBLOCK_SYSV 1
2885 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2886 echo "configure:2887: checking for posix signals" >&5
2887 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2895 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2898 if { (eval echo configure:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2900 unet_cv_sys_signal_posix=yes
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2905 unet_cv_sys_signal_posix=no
2910 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2911 if test $unet_cv_sys_signal_posix = yes; then
2912 cat >> confdefs.h <<\EOF
2913 #define POSIX_SIGNALS 1
2917 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2918 echo "configure:2919: checking for bsd reliable signals" >&5
2919 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 if test "$cross_compiling" = yes; then
2923 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2930 $ac_cv_type_signal handler()
2934 kill(getpid(), SIGTERM);
2939 signal(SIGTERM, handler);
2940 kill(getpid(), SIGTERM);
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2946 unet_cv_sys_signal_bsd=yes
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 unet_cv_sys_signal_bsd=no
2958 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2959 if test $unet_cv_sys_signal_bsd = yes; then
2960 cat >> confdefs.h <<\EOF
2961 #define BSD_RELIABLE_SIGNALS 1
2965 cat >> confdefs.h <<\EOF
2966 #define SYSV_UNRELIABLE_SIGNALS 1
2972 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2973 echo "configure:2974: checking if the compiler understands -pipe" >&5
2974 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2975 if test "$ac_cv_prog_gcc" = no; then
2977 CFLAGS="$CFLAGS -pipe"
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 unet_cv_pipe_flags=yes
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2996 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2997 if test "$unet_cv_pipe_flags" = yes ; then
2998 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2999 if test "$x" = "" ; then
3000 CFLAGS="$CFLAGS -pipe"
3005 echo $ac_n "checking for OS-dependent information""... $ac_c" 1>&6
3006 echo "configure:3007: checking for OS-dependent information" >&5
3009 echo "$ac_t""Linux ($host) found." 1>&6
3010 unet_poll_syscall=yes
3015 echo "$ac_t""Solaris ($host) found." 1>&6
3016 if test x"$ac_cv_header_poll_h" = xyes; then
3017 unet_poll_syscall=yes
3019 unet_poll_syscall=no
3021 OSDEP_C=os_solaris.c
3025 echo "$ac_t""Solaris ($host) found." 1>&6
3026 unet_poll_syscall=no
3027 OSDEP_C=os_solaris.c
3031 echo "$ac_t""OpenBSD ($host) found." 1>&6
3032 if test x"$ac_cv_header_poll_h" = xyes; then
3033 unet_poll_syscall=yes
3035 unet_poll_syscall=no
3037 OSDEP_C=os_openbsd.c
3041 echo "$ac_t""Generic BSD ($host) found." 1>&6
3042 if test x"$ac_cv_header_poll_h" = xyes; then
3043 unet_poll_syscall=yes
3045 unet_poll_syscall=no
3051 echo "$ac_t""Darwin (Mac OS X) ($host) found." 1>&6
3052 unet_poll_syscall=no
3057 echo "$ac_t""Unknown system type $host found." 1>&6
3058 echo "configure: warning: Unknown OS type; using generic routines." 1>&2
3059 unet_poll_syscall=no
3060 OSDEP_C=os_generic.c
3065 echo $ac_n "checking whether to enable use of poll()""... $ac_c" 1>&6
3066 echo "configure:3067: checking whether to enable use of poll()" >&5
3067 # Check whether --enable-poll or --disable-poll was given.
3068 if test "${enable_poll+set}" = set; then
3069 enableval="$enable_poll"
3070 unet_cv_enable_poll=$enable_poll
3072 if eval "test \"`echo '$''{'unet_cv_enable_poll'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 unet_cv_enable_poll=$unet_poll_syscall
3081 # Force poll to be disabled if there is no poll.h
3082 if test x"$ac_cv_header_poll_h" != xyes; then
3083 unet_cv_enable_poll=no
3086 echo "$ac_t""$unet_cv_enable_poll" 1>&6
3088 if test x"$unet_cv_enable_poll" = xyes; then
3089 cat >> confdefs.h <<\EOF
3093 ENGINE_C=engine_poll.c
3095 ENGINE_C=engine_select.c
3099 echo $ac_n "checking whether to enable debug mode""... $ac_c" 1>&6
3100 echo "configure:3101: checking whether to enable debug mode" >&5
3101 # Check whether --enable-debug or --disable-debug was given.
3102 if test "${enable_debug+set}" = set; then
3103 enableval="$enable_debug"
3104 unet_cv_enable_debug=$enable_debug
3106 if eval "test \"`echo '$''{'unet_cv_enable_debug'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 unet_cv_enable_debug=no
3114 echo "$ac_t""$unet_cv_enable_debug" 1>&6
3116 if test x"$unet_cv_enable_debug" = xyes; then
3117 cat >> confdefs.h <<\EOF
3123 echo $ac_n "checking whether to enable asserts""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether to enable asserts" >&5
3125 # Check whether --enable-asserts or --disable-asserts was given.
3126 if test "${enable_asserts+set}" = set; then
3127 enableval="$enable_asserts"
3128 unet_cv_enable_asserts=$enable_asserts
3130 if eval "test \"`echo '$''{'unet_cv_enable_asserts'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 unet_cv_enable_asserts=no
3138 echo "$ac_t""$unet_cv_enable_asserts" 1>&6
3140 if test x"$unet_cv_enable_asserts" = xno; then
3141 cat >> confdefs.h <<\EOF
3147 echo $ac_n "checking whether to enable debugging symbols""... $ac_c" 1>&6
3148 echo "configure:3149: checking whether to enable debugging symbols" >&5
3149 # Check whether --enable-symbols or --disable-symbols was given.
3150 if test "${enable_symbols+set}" = set; then
3151 enableval="$enable_symbols"
3152 unet_cv_enable_symbols=$enable_symbols
3154 if eval "test \"`echo '$''{'unet_cv_enable_symbols'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 unet_cv_enable_symbols=yes
3162 echo "$ac_t""$unet_cv_enable_symbols" 1>&6
3164 if test x"$unet_cv_enable_symbols" = xyes; then
3168 echo $ac_n "checking whether to enable profiling support (gprof)""... $ac_c" 1>&6
3169 echo "configure:3170: checking whether to enable profiling support (gprof)" >&5
3170 # Check whether --enable-profile or --disable-profile was given.
3171 if test "${enable_profile+set}" = set; then
3172 enableval="$enable_profile"
3173 unet_cv_enable_profile=$enable_profile
3175 if eval "test \"`echo '$''{'unet_cv_enable_profile'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 unet_cv_enable_profile=no
3183 echo "$ac_t""$unet_cv_enable_profile" 1>&6
3185 if test x"$unet_cv_enable_profile" = xyes; then
3186 CFLAGS="-pg $CFLAGS"
3189 echo $ac_n "checking whether to enable pedantic compiler warnings""... $ac_c" 1>&6
3190 echo "configure:3191: checking whether to enable pedantic compiler warnings" >&5
3191 # Check whether --enable-pedantic or --disable-pedantic was given.
3192 if test "${enable_pedantic+set}" = set; then
3193 enableval="$enable_pedantic"
3194 unet_cv_enable_pedantic=$enable_pedantic
3196 if eval "test \"`echo '$''{'unet_cv_enable_pedantic'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 unet_cv_enable_pedantic=no
3204 echo "$ac_t""$unet_cv_enable_pedantic" 1>&6
3206 if test x"$unet_cv_enable_pedantic" = xyes; then
3207 CFLAGS="-pedantic $CFLAGS"
3210 echo $ac_n "checking whether to enable compiler warnings""... $ac_c" 1>&6
3211 echo "configure:3212: checking whether to enable compiler warnings" >&5
3212 # Check whether --enable-warnings or --disable-warnings was given.
3213 if test "${enable_warnings+set}" = set; then
3214 enableval="$enable_warnings"
3215 unet_cv_enable_warnings=$enable_warnings
3217 if eval "test \"`echo '$''{'unet_cv_enable_warnings'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 unet_cv_enable_warnings=no
3225 echo "$ac_t""$unet_cv_enable_warnings" 1>&6
3227 if test x"$unet_cv_enable_warnings" = xyes; then
3228 CFLAGS="-Wall $CFLAGS"
3231 echo $ac_n "checking whether to enable inlining for a few critical functions""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether to enable inlining for a few critical functions" >&5
3233 # Check whether --enable-inlines or --disable-inlines was given.
3234 if test "${enable_inlines+set}" = set; then
3235 enableval="$enable_inlines"
3236 unet_cv_enable_inlines=$enable_inlines
3238 if eval "test \"`echo '$''{'unet_cv_enable_inlines'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 unet_cv_enable_inlines=yes
3246 echo "$ac_t""$unet_cv_enable_inlines" 1>&6
3248 if test x"$unet_cv_enable_inlines" = xyes; then
3249 cat >> confdefs.h <<\EOF
3255 echo $ac_n "checking whether to enable the /dev/poll event engine""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether to enable the /dev/poll event engine" >&5
3257 # Check whether --enable-devpoll or --disable-devpoll was given.
3258 if test "${enable_devpoll+set}" = set; then
3259 enableval="$enable_devpoll"
3260 unet_cv_enable_devpoll=$enable_devpoll
3262 if eval "test \"`echo '$''{'unet_cv_enable_devpoll'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 unet_cv_enable_devpoll=yes
3271 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
3272 unet_cv_enable_devpoll=no
3275 echo "$ac_t""$unet_cv_enable_devpoll" 1>&6
3277 if test x"$unet_cv_enable_devpoll" != xno; then
3278 cat >> confdefs.h <<\EOF
3282 ENGINE_C="engine_devpoll.c $ENGINE_C"
3285 echo $ac_n "checking whether to enable the kqueue event engine""... $ac_c" 1>&6
3286 echo "configure:3287: checking whether to enable the kqueue event engine" >&5
3287 # Check whether --enable-kqueue or --disable-kqueue was given.
3288 if test "${enable_kqueue+set}" = set; then
3289 enableval="$enable_kqueue"
3290 unet_cv_enable_kqueue=$enable_kqueue
3292 if eval "test \"`echo '$''{'unet_cv_enable_kqueue'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 unet_cv_enable_kqueue=yes
3301 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
3302 unet_cv_enable_kqueue=no
3305 echo "$ac_t""$unet_cv_enable_kqueue" 1>&6
3307 if test x"$unet_cv_enable_kqueue" != xno; then
3308 cat >> confdefs.h <<\EOF
3312 ENGINE_C="engine_kqueue.c $ENGINE_C"
3315 echo $ac_n "checking what name to give the symlink""... $ac_c" 1>&6
3316 echo "configure:3317: checking what name to give the symlink" >&5
3317 # Check whether --with-symlink or --without-symlink was given.
3318 if test "${with_symlink+set}" = set; then
3319 withval="$with_symlink"
3320 unet_cv_with_symlink=$with_symlink
3322 if eval "test \"`echo '$''{'unet_cv_with_symlink'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 unet_cv_with_symlink="ircd"
3331 if test x"$unet_cv_with_symlink" = xyes; then
3332 unet_cv_with_symlink="ircd"
3335 echo "$ac_t""$unet_cv_with_symlink" 1>&6
3337 if test x"$unet_cv_with_symlink" = xno; then
3338 INSTALL_RULE=install-no-symlink
3341 INSTALL_RULE=install-with-symlink
3342 SYMLINK=$unet_cv_with_symlink
3347 echo $ac_n "checking what permissions to set on the installed binary""... $ac_c" 1>&6
3348 echo "configure:3349: checking what permissions to set on the installed binary" >&5
3349 # Check whether --with-mode or --without-mode was given.
3350 if test "${with_mode+set}" = set; then
3351 withval="$with_mode"
3352 unet_cv_with_mode=$with_mode
3354 if eval "test \"`echo '$''{'unet_cv_with_mode'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 unet_cv_with_mode=711
3363 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
3364 unet_cv_with_mode=711
3367 echo "$ac_t""$unet_cv_with_mode" 1>&6
3369 IRCDMODE=$unet_cv_with_mode
3372 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3373 echo $ac_n "checking which user should own the installed binary""... $ac_c" 1>&6
3374 echo "configure:3375: checking which user should own the installed binary" >&5
3375 # Check whether --with-owner or --without-owner was given.
3376 if test "${with_owner+set}" = set; then
3377 withval="$with_owner"
3378 unet_cv_with_owner=$with_owner
3380 if eval "test \"`echo '$''{'unet_cv_with_owner'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 unet_cv_with_owner=$unet_uid
3389 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
3390 unet_cv_with_owner=$unet_uid
3393 echo "$ac_t""$unet_cv_with_owner" 1>&6
3395 IRCDOWN=$unet_cv_with_owner
3398 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
3399 echo $ac_n "checking which group should own the installed binary""... $ac_c" 1>&6
3400 echo "configure:3401: checking which group should own the installed binary" >&5
3401 # Check whether --with-group or --without-group was given.
3402 if test "${with_group+set}" = set; then
3403 withval="$with_group"
3404 unet_cv_with_group=$with_group
3406 if eval "test \"`echo '$''{'unet_cv_with_group'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 unet_cv_with_group=$unet_gid
3415 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
3416 unet_cv_with_group=$unet_gid
3419 echo "$ac_t""$unet_cv_with_group" 1>&6
3421 IRCDGRP=$unet_cv_with_group
3425 if test -f /etc/resolv.conf; then
3426 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
3427 if test x"$unet_domain" = x; then
3428 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
3431 echo $ac_n "checking for site domain name""... $ac_c" 1>&6
3432 echo "configure:3433: checking for site domain name" >&5
3433 # Check whether --with-domain or --without-domain was given.
3434 if test "${with_domain+set}" = set; then
3435 withval="$with_domain"
3436 unet_cv_with_domain=$with_domain
3438 if eval "test \"`echo '$''{'unet_cv_with_domain'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 unet_cv_with_domain=$unet_domain
3447 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
3448 unet_cv_with_domain=$unet_domain
3450 if test x"$unet_cv_with_domain" = xno; then
3451 { echo "configure: error: Unable to determine server DNS domain; use --with-domain to set it" 1>&2; exit 1; }
3454 echo "$ac_t""$unet_cv_with_domain" 1>&6
3456 cat >> confdefs.h <<EOF
3457 #define DOMAINNAME "*$unet_cv_with_domain"
3461 echo $ac_n "checking if chroot operation is desired""... $ac_c" 1>&6
3462 echo "configure:3463: checking if chroot operation is desired" >&5
3463 # Check whether --with-chroot or --without-chroot was given.
3464 if test "${with_chroot+set}" = set; then
3465 withval="$with_chroot"
3466 unet_cv_with_chroot=$with_chroot
3468 if eval "test \"`echo '$''{'unet_cv_with_chroot'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 unet_cv_with_chroot=no
3477 if test x"$unet_cv_with_chroot" = xyes; then
3478 { echo "configure: error: --with-chroot given with no directory. See doc/readme.chroot." 1>&2; exit 1; }
3481 # Ensure there are no trailing /'s to mess us up
3482 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
3484 echo "$ac_t""$unet_cv_with_chroot" 1>&6
3486 # Deal with the annoying value "NONE" here
3487 unet_save_prefix=$prefix
3488 if test x"$prefix" = xNONE; then
3489 prefix=$ac_default_prefix
3494 unet_save_exec_prefix=$exec_prefix
3495 if test x"$exec_prefix" = xNONE; then
3498 exec_prefix=$exec_prefix
3501 # Obtain the actual interesting directories
3502 unet_bindir=`eval echo "$bindir"`
3503 unet_libdir=`eval echo "$libdir"`
3505 # Restore the original settings of $prefix and $exec_prefix
3506 prefix=$unet_save_prefix
3507 exec_prefix=$unet_save_exec_prefix
3509 echo $ac_n "checking where the binary will be for /restart""... $ac_c" 1>&6
3510 echo "configure:3511: checking where the binary will be for /restart" >&5
3511 if test x"$unet_cv_with_symlink" = xno; then
3512 unet_spath="$unet_bindir/ircd"
3514 unet_spath="$unet_bindir/$unet_cv_with_symlink"
3516 echo "$ac_t""$unet_spath" 1>&6
3518 if test x"$unet_cv_with_chroot" != xno; then
3519 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3520 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
3522 echo "configure: warning: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" 1>&2
3526 cat >> confdefs.h <<EOF
3527 #define SPATH "$unet_spath"
3531 echo $ac_n "checking what the data directory should be""... $ac_c" 1>&6
3532 echo "configure:3533: checking what the data directory should be" >&5
3533 # Check whether --with-dpath or --without-dpath was given.
3534 if test "${with_dpath+set}" = set; then
3535 withval="$with_dpath"
3536 unet_cv_with_dpath=$with_dpath
3538 if eval "test \"`echo '$''{'unet_cv_with_dpath'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 unet_cv_with_dpath=$unet_libdir
3547 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
3548 unet_cv_with_dpath=$unet_libdir
3551 # Ensure there are no trailing /'s to mess us up
3552 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
3554 echo "$ac_t""$unet_cv_with_dpath" 1>&6
3556 if test x"$unet_cv_with_chroot" != xno; then
3557 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3558 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
3560 { echo "configure: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3563 unet_dpath=$unet_cv_with_dpath
3566 cat >> confdefs.h <<EOF
3567 #define DPATH "$unet_dpath"
3571 DPATH=$unet_cv_with_dpath
3574 echo $ac_n "checking where the default configuration file resides""... $ac_c" 1>&6
3575 echo "configure:3576: checking where the default configuration file resides" >&5
3576 # Check whether --with-cpath or --without-cpath was given.
3577 if test "${with_cpath+set}" = set; then
3578 withval="$with_cpath"
3579 unet_cv_with_cpath=$with_cpath
3581 if eval "test \"`echo '$''{'unet_cv_with_cpath'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 unet_cv_with_cpath="ircd.conf"
3590 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
3591 unet_cv_with_cpath="ircd.conf"
3594 echo "$ac_t""$unet_cv_with_cpath" 1>&6
3596 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
3597 # Absolute path; check against chroot stuff
3598 if test x"$unet_cv_with_chroot" != xno; then
3599 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3600 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
3602 { echo "configure: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" 1>&2; exit 1; }
3605 unet_cpath=$unet_cv_with_cpath
3608 unet_cpath=$unet_cv_with_cpath
3611 cat >> confdefs.h <<EOF
3612 #define CPATH "$unet_cpath"
3616 echo $ac_n "checking where to put the debugging log if debugging enabled""... $ac_c" 1>&6
3617 echo "configure:3618: checking where to put the debugging log if debugging enabled" >&5
3618 # Check whether --with-lpath or --without-lpath was given.
3619 if test "${with_lpath+set}" = set; then
3620 withval="$with_lpath"
3621 unet_cv_with_lpath=$with_lpath
3623 if eval "test \"`echo '$''{'unet_cv_with_lpath'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 unet_cv_with_lpath="ircd.log"
3632 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
3633 unet_cv_with_lpath="ircd.log"
3636 echo "$ac_t""$unet_cv_with_lpath" 1>&6
3638 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
3639 # Absolute path; check against chroot stuff
3640 if test x"$unet_cv_with_chroot" != xno; then
3641 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
3642 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
3644 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
3645 unet_cv_with_lpath="ircd.log"
3646 unet_lpath="ircd.log"
3649 unet_lpath=$unet_cv_with_lpath
3652 unet_lpath=$unet_cv_with_lpath
3655 cat >> confdefs.h <<EOF
3656 #define LPATH "$unet_lpath"
3660 unet_maxcon=`ulimit -Hn`
3661 unet_maxcon=`expr $unet_maxcon - 4`
3662 echo $ac_n "checking max connections""... $ac_c" 1>&6
3663 echo "configure:3664: checking max connections" >&5
3664 # Check whether --with-maxcon or --without-maxcon was given.
3665 if test "${with_maxcon+set}" = set; then
3666 withval="$with_maxcon"
3667 unet_cv_with_maxcon=$with_maxcon
3669 if eval "test \"`echo '$''{'unet_cv_with_maxcon'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 unet_cv_with_maxcon=$unet_maxcon
3678 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
3679 unet_cv_with_maxcon=$unet_maxcon
3682 echo "$ac_t""$unet_cv_with_maxcon" 1>&6
3684 cat >> confdefs.h <<EOF
3685 #define MAXCONNECTIONS $unet_cv_with_maxcon
3690 cat > confcache <<\EOF
3691 # This file is a shell script that caches the results of configure
3692 # tests run on this system so they can be shared between configure
3693 # scripts and configure runs. It is not useful on other systems.
3694 # If it contains results you don't want to keep, you may remove or edit it.
3696 # By default, configure uses ./config.cache as the cache file,
3697 # creating it if it does not exist already. You can give configure
3698 # the --cache-file=FILE option to use a different cache file; that is
3699 # what configure does when it calls configure scripts in
3700 # subdirectories, so they share the cache.
3701 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3702 # config.status only pays attention to the cache file if you give it the
3703 # --recheck option to rerun configure.
3706 # The following way of writing the cache mishandles newlines in values,
3707 # but we know of no workaround that is simple, portable, and efficient.
3708 # So, don't put newlines in cache variables' values.
3709 # Ultrix sh set writes to stderr and can't be redirected directly,
3710 # and sets the high bit in the cache file unless we assign to the vars.
3712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3714 # `set' does not quote correctly, so add quotes (double-quote substitution
3715 # turns \\\\ into \\, and sed turns \\ into \).
3717 -e "s/'/'\\\\''/g" \
3718 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3721 # `set' quotes correctly as required by POSIX, so do not add quotes.
3722 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3725 if cmp -s $cache_file confcache; then
3728 if test -w $cache_file; then
3729 echo "updating cache $cache_file"
3730 cat confcache > $cache_file
3732 echo "not updating unwritable cache $cache_file"
3737 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3740 # Let make expand exec_prefix.
3741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3743 # Any assignment to VPATH causes Sun make to only execute
3744 # the first set of double-colon rules, so remove it if not needed.
3745 # If there is a colon in the path, we need to keep it.
3746 if test "x$srcdir" = x.; then
3747 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3750 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3752 DEFS=-DHAVE_CONFIG_H
3754 # Without the "./", some shells look in PATH for config.status.
3755 : ${CONFIG_STATUS=./config.status}
3757 echo creating $CONFIG_STATUS
3758 rm -f $CONFIG_STATUS
3759 cat > $CONFIG_STATUS <<EOF
3761 # Generated automatically by configure.
3762 # Run this file to recreate the current configuration.
3763 # This directory was configured as follows,
3764 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3766 # $0 $ac_configure_args
3768 # Compiler output produced by configure, useful for debugging
3769 # configure, is in ./config.log if it exists.
3771 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3774 case "\$ac_option" in
3775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3776 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3777 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3778 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3779 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3781 -help | --help | --hel | --he | --h)
3782 echo "\$ac_cs_usage"; exit 0 ;;
3783 *) echo "\$ac_cs_usage"; exit 1 ;;
3787 ac_given_srcdir=$srcdir
3788 ac_given_INSTALL="$INSTALL"
3790 trap 'rm -fr `echo "Makefile ircd/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3792 cat >> $CONFIG_STATUS <<EOF
3794 # Protect against being on the right side of a sed subst in config.status.
3795 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3796 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3800 s%@CFLAGS@%$CFLAGS%g
3801 s%@CPPFLAGS@%$CPPFLAGS%g
3802 s%@CXXFLAGS@%$CXXFLAGS%g
3803 s%@FFLAGS@%$FFLAGS%g
3805 s%@LDFLAGS@%$LDFLAGS%g
3807 s%@exec_prefix@%$exec_prefix%g
3808 s%@prefix@%$prefix%g
3809 s%@program_transform_name@%$program_transform_name%g
3810 s%@bindir@%$bindir%g
3811 s%@sbindir@%$sbindir%g
3812 s%@libexecdir@%$libexecdir%g
3813 s%@datadir@%$datadir%g
3814 s%@sysconfdir@%$sysconfdir%g
3815 s%@sharedstatedir@%$sharedstatedir%g
3816 s%@localstatedir@%$localstatedir%g
3817 s%@libdir@%$libdir%g
3818 s%@includedir@%$includedir%g
3819 s%@oldincludedir@%$oldincludedir%g
3820 s%@infodir@%$infodir%g
3821 s%@mandir@%$mandir%g
3823 s%@host_alias@%$host_alias%g
3824 s%@host_cpu@%$host_cpu%g
3825 s%@host_vendor@%$host_vendor%g
3826 s%@host_os@%$host_os%g
3830 s%@SET_MAKE@%$SET_MAKE%g
3831 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3832 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3833 s%@INSTALL_DATA@%$INSTALL_DATA%g
3835 s%@RMPROG@%$RMPROG%g
3836 s%@SHPROG@%$SHPROG%g
3837 s%@OSDEP_C@%$OSDEP_C%g
3838 s%@ENGINE_C@%$ENGINE_C%g
3839 s%@INSTALL_RULE@%$INSTALL_RULE%g
3840 s%@SYMLINK@%$SYMLINK%g
3841 s%@IRCDMODE@%$IRCDMODE%g
3842 s%@IRCDOWN@%$IRCDOWN%g
3843 s%@IRCDGRP@%$IRCDGRP%g
3849 cat >> $CONFIG_STATUS <<\EOF
3851 # Split the substitutions into bite-sized pieces for seds with
3852 # small command number limits, like on Digital OSF/1 and HP-UX.
3853 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3854 ac_file=1 # Number of current file.
3855 ac_beg=1 # First line for current file.
3856 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3859 while $ac_more_lines; do
3860 if test $ac_beg -gt 1; then
3861 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3863 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3865 if test ! -s conftest.s$ac_file; then
3867 rm -f conftest.s$ac_file
3869 if test -z "$ac_sed_cmds"; then
3870 ac_sed_cmds="sed -f conftest.s$ac_file"
3872 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3874 ac_file=`expr $ac_file + 1`
3876 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3879 if test -z "$ac_sed_cmds"; then
3884 cat >> $CONFIG_STATUS <<EOF
3886 CONFIG_FILES=\${CONFIG_FILES-"Makefile ircd/Makefile doc/Makefile"}
3888 cat >> $CONFIG_STATUS <<\EOF
3889 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3892 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3893 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3894 *) ac_file_in="${ac_file}.in" ;;
3897 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3899 # Remove last slash and all that follows it. Not all systems have dirname.
3900 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3901 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3902 # The file is in a subdirectory.
3903 test ! -d "$ac_dir" && mkdir "$ac_dir"
3904 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3905 # A "../" for each directory in $ac_dir_suffix.
3906 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3908 ac_dir_suffix= ac_dots=
3911 case "$ac_given_srcdir" in
3913 if test -z "$ac_dots"; then top_srcdir=.
3914 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3915 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3917 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3918 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3921 case "$ac_given_INSTALL" in
3922 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3923 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3926 echo creating "$ac_file"
3928 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3930 *Makefile*) ac_comsub="1i\\
3931 # $configure_input" ;;
3935 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3937 s%@configure_input@%$configure_input%g
3938 s%@srcdir@%$srcdir%g
3939 s%@top_srcdir@%$top_srcdir%g
3940 s%@INSTALL@%$INSTALL%g
3941 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3948 # ac_d sets the value in "#define NAME VALUE" lines.
3949 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3950 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3953 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3954 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3955 ac_uB='\([ ]\)%\1#\2define\3'
3958 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3959 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3960 ac_eB='$%\1#\2define\3'
3964 if test "${CONFIG_HEADERS+set}" != set; then
3966 cat >> $CONFIG_STATUS <<EOF
3967 CONFIG_HEADERS="config.h"
3969 cat >> $CONFIG_STATUS <<\EOF
3971 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3974 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3975 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3976 *) ac_file_in="${ac_file}.in" ;;
3979 echo creating $ac_file
3981 rm -f conftest.frag conftest.in conftest.out
3982 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3983 cat $ac_file_inputs > conftest.in
3987 # Transform confdefs.h into a sed script conftest.vals that substitutes
3988 # the proper values into config.h.in to produce config.h. And first:
3989 # Protect against being on the right side of a sed subst in config.status.
3990 # Protect against being in an unquoted here document in config.status.
3992 cat > conftest.hdr <<\EOF
3995 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3999 sed -n -f conftest.hdr confdefs.h > conftest.vals
4002 # This sed command replaces #undef with comments. This is necessary, for
4003 # example, in the case of _POSIX_SOURCE, which is predefined and required
4004 # on some systems where configure will not decide to define it.
4005 cat >> conftest.vals <<\EOF
4006 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4009 # Break up conftest.vals because some shells have a limit on
4010 # the size of here documents, and old seds have small limits too.
4015 ac_lines=`grep -c . conftest.vals`
4016 # grep -c gives empty output for an empty file on some AIX systems.
4017 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4018 # Write a limited-size here document to conftest.frag.
4019 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4020 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4022 sed -f conftest.frag conftest.in > conftest.out
4024 mv conftest.out conftest.in
4026 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4028 mv conftest.tail conftest.vals
4032 cat >> $CONFIG_STATUS <<\EOF
4033 rm -f conftest.frag conftest.h
4034 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4035 cat conftest.in >> conftest.h
4037 if cmp -s $ac_file conftest.h 2>/dev/null; then
4038 echo "$ac_file is unchanged"
4041 # Remove last slash and all that follows it. Not all systems have dirname.
4042 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4044 # The file is in a subdirectory.
4045 test ! -d "$ac_dir" && mkdir "$ac_dir"
4048 mv conftest.h $ac_file
4053 cat >> $CONFIG_STATUS <<EOF
4056 cat >> $CONFIG_STATUS <<\EOF
4057 echo timestamp > stamp-h
4060 chmod +x $CONFIG_STATUS
4061 rm -fr confdefs* $ac_clean_files
4062 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1