2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="ircd/ircd.c"
262 ac_default_prefix=$HOME
263 # Factoring default headers for most tests.
264 ac_includes_default="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
300 ac_subdirs_all="$ac_subdirs_all adns"
302 # Initialize some variables set by options.
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
314 program_transform_name=s,x,x,
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
361 -build | --build | --buil | --bui | --bu)
362 ac_prev=build_alias ;;
363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364 build_alias=$ac_optarg ;;
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371 cache_file=$ac_optarg ;;
374 cache_file=config.cache ;;
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
380 datadir=$ac_optarg ;;
382 -disable-* | --disable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
391 -enable-* | --enable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
402 eval "enable_$ac_feature='$ac_optarg'" ;;
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix=$ac_optarg ;;
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
417 -help | --help | --hel | --he | -h)
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
424 -host | --host | --hos | --ho)
425 ac_prev=host_alias ;;
426 -host=* | --host=* | --hos=* | --ho=*)
427 host_alias=$ac_optarg ;;
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
434 includedir=$ac_optarg ;;
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439 infodir=$ac_optarg ;;
441 -libdir | --libdir | --libdi | --libd)
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
451 libexecdir=$ac_optarg ;;
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460 localstatedir=$ac_optarg ;;
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468 # Obsolete; use --without-fp.
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c | -n)
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486 oldincludedir=$ac_optarg ;;
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498 program_prefix=$ac_optarg ;;
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505 program_suffix=$ac_optarg ;;
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
522 program_transform_name=$ac_optarg ;;
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
532 sbindir=$ac_optarg ;;
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
543 sharedstatedir=$ac_optarg ;;
545 -site | --site | --sit)
547 -site=* | --site=* | --sit=*)
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560 sysconfdir=$ac_optarg ;;
562 -target | --target | --targe | --targ | --tar | --ta | --t)
563 ac_prev=target_alias ;;
564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565 target_alias=$ac_optarg ;;
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
570 -version | --version | --versio | --versi | --vers | -V)
574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
579 ac_package=`echo $ac_package| sed 's/-/_/g'`
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584 eval "with_$ac_package='$ac_optarg'" ;;
586 -without-* | --without-*)
587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
596 # Obsolete; use --with-x.
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604 x_includes=$ac_optarg ;;
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611 x_libraries=$ac_optarg ;;
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
639 if test -n "$ac_prev"; then
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
648 eval ac_val=$`echo $ac_var`
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689 test "$silent" = yes && exec 6>/dev/null
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
709 if test ! -r $srcdir/$ac_unique_file; then
713 ac_srcdir_defaulted=no
715 if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
759 # Report the --help message.
761 if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
765 \`configure' configures this package to adapt to many kinds of systems.
767 Usage: $0 [OPTION]... [VAR=VALUE]...
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE. See below for descriptions of some of the useful variables.
772 Defaults for the options are specified in brackets.
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --sbindir=DIR system admin executables [EPREFIX/sbin]
804 --libexecdir=DIR program executables [EPREFIX/libexec]
805 --datadir=DIR read-only architecture-independent data [PREFIX/share]
806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
809 --libdir=DIR object code libraries [EPREFIX/lib]
810 --includedir=DIR C header files [PREFIX/include]
811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
812 --infodir=DIR info documentation [PREFIX/info]
813 --mandir=DIR man documentation [PREFIX/man]
819 --build=BUILD configure for building on BUILD [guessed]
820 --host=HOST cross-compile to build programs to run on HOST [BUILD]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --enable-poll Force poll to be used regardless of whether or not
833 --enable-debug Turn on debugging mode
834 --disable-asserts Disable assertion checking
835 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
836 --enable-profile Enable profiling support (add -pg to CFLAGS)
837 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
838 --enable-warnings Enable warnings (add -Wall to CFLAGS)
839 --disable-inlines Disable inlining for a few critical functions
840 --disable-devpoll Disable the /dev/poll-based engine
841 --disable-kqueue Disable the kqueue-based engine
842 --disable-adns Disable adns resolver
845 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
846 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
847 --with-leak-detect Turn on the leak detector(requires patched boehm)
848 --with-symlink=name Name to give the symlink; if name is "no," no
849 symlink will be created.
850 --with-mode=mode Permissions (in octal) to give the binary
851 --with-owner=owner Specify owner of the installed binary
852 --with-group=group Specify group owner of the installed binary
853 --with-domain=domain Domain name to use in local statistics gathering
854 --with-chroot=dir Specify that the server will be operated under
855 a different root directory given by dir. See
856 doc/readme.chroot for more information.
857 --with-dpath=dir Directory for all server data files
858 --with-cpath=file Set server configuration file
859 --with-lpath=file Set the debugging log file
860 --with-maxcon=maxcon Maximum number of connections server will accept
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 ac_dir_suffix= ac_top_builddir=
893 .) # No --srcdir option. We are building in place.
895 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.53. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Also quote any args containing shell meta-characters.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n ) continue ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 case " $ac_configure_args " in
1017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1018 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021 # Get rid of the leading space.
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log. We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
1029 trap 'exit_status=$?
1030 # Save into config.log some information that might help in debugging.
1034 ## ---------------- ##
1035 ## Cache variables. ##
1036 ## ---------------- ##
1039 # The following way of writing the cache mishandles newlines in values,
1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1045 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1055 if test -s confdefs.h; then
1062 sed "/^$/d" confdefs.h
1065 test "$ac_signal" != 0 &&
1066 echo "$as_me: caught signal $ac_signal"
1067 echo "$as_me: exit $exit_status"
1069 rm -f core core.* *.core &&
1070 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1073 for ac_signal in 1 2 13 15; do
1074 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1079 rm -rf conftest* confdefs.h
1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1083 # Predefined preprocessor variables.
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_NAME "$PACKAGE_NAME"
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_STRING "$PACKAGE_STRING"
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1110 # Let the site file select an alternate cache file if it wants to.
1111 # Prefer explicitly selected file to automatically selected ones.
1112 if test -z "$CONFIG_SITE"; then
1113 if test "x$prefix" != xNONE; then
1114 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1116 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1119 for ac_site_file in $CONFIG_SITE; do
1120 if test -r "$ac_site_file"; then
1121 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1122 echo "$as_me: loading site script $ac_site_file" >&6;}
1123 sed 's/^/| /' "$ac_site_file" >&5
1128 if test -r "$cache_file"; then
1129 # Some versions of bash will fail to source /dev/null (special
1130 # files actually), so we avoid doing that.
1131 if test -f "$cache_file"; then
1132 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1133 echo "$as_me: loading cache $cache_file" >&6;}
1135 [\\/]* | ?:[\\/]* ) . $cache_file;;
1136 *) . ./$cache_file;;
1140 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1141 echo "$as_me: creating cache $cache_file" >&6;}
1145 # Check that the precious variables saved in the cache have kept the same
1147 ac_cache_corrupted=false
1148 for ac_var in `(set) 2>&1 |
1149 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1151 eval ac_new_set=\$ac_env_${ac_var}_set
1152 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1153 eval ac_new_val="\$ac_env_${ac_var}_value"
1154 case $ac_old_set,$ac_new_set in
1156 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1158 ac_cache_corrupted=: ;;
1160 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1162 ac_cache_corrupted=: ;;
1165 if test "x$ac_old_val" != "x$ac_new_val"; then
1166 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1168 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1169 echo "$as_me: former value: $ac_old_val" >&2;}
1170 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1171 echo "$as_me: current value: $ac_new_val" >&2;}
1172 ac_cache_corrupted=:
1175 # Pass precious variables to config.status.
1176 if test "$ac_new_set" = set; then
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1180 *) ac_arg=$ac_var=$ac_new_val ;;
1182 case " $ac_configure_args " in
1183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1184 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1188 if $ac_cache_corrupted; then
1189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1193 { (exit 1); exit 1; }; }
1197 ac_cpp='$CPP $CPPFLAGS'
1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221 echo "$as_me:$LINENO: checking for installation prefix" >&5
1222 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1223 if test "${unet_cv_prefix+set}" = set; then
1224 echo $ECHO_N "(cached) $ECHO_C" >&6
1226 unet_cv_prefix=$HOME
1229 if test x"$prefix" != xNONE; then
1230 unet_cv_prefix=$prefix
1232 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1233 echo "${ECHO_T}$unet_cv_prefix" >&6
1234 ac_default_prefix=$unet_cv_prefix
1236 ac_config_headers="$ac_config_headers config.h"
1242 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1243 if test -f $ac_dir/install-sh; then
1245 ac_install_sh="$ac_aux_dir/install-sh -c"
1247 elif test -f $ac_dir/install.sh; then
1249 ac_install_sh="$ac_aux_dir/install.sh -c"
1251 elif test -f $ac_dir/shtool; then
1253 ac_install_sh="$ac_aux_dir/shtool install -c"
1257 if test -z "$ac_aux_dir"; then
1258 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1259 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1260 { (exit 1); exit 1; }; }
1262 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1263 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1264 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1266 # Make sure we can run config.sub.
1267 $ac_config_sub sun4 >/dev/null 2>&1 ||
1268 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1269 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1270 { (exit 1); exit 1; }; }
1272 echo "$as_me:$LINENO: checking build system type" >&5
1273 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1274 if test "${ac_cv_build+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 ac_cv_build_alias=$build_alias
1278 test -z "$ac_cv_build_alias" &&
1279 ac_cv_build_alias=`$ac_config_guess`
1280 test -z "$ac_cv_build_alias" &&
1281 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1282 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1283 { (exit 1); exit 1; }; }
1284 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1285 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1287 { (exit 1); exit 1; }; }
1290 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1291 echo "${ECHO_T}$ac_cv_build" >&6
1293 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 test -z "$build_alias" &&
1298 build_alias=$ac_cv_build
1300 echo "$as_me:$LINENO: checking host system type" >&5
1301 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1302 if test "${ac_cv_host+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 ac_cv_host_alias=$host_alias
1306 test -z "$ac_cv_host_alias" &&
1307 ac_cv_host_alias=$ac_cv_build_alias
1308 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1315 echo "${ECHO_T}$ac_cv_host" >&6
1317 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 test -z "$host_alias" &&
1322 host_alias=$ac_cv_host
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 if test -n "$ac_tool_prefix"; then
1331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1333 echo "$as_me:$LINENO: checking for $ac_word" >&5
1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335 if test "${ac_cv_prog_CC+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 if test -n "$CC"; then
1339 ac_cv_prog_CC="$CC" # Let the user override the test.
1341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345 test -z "$as_dir" && as_dir=.
1346 for ac_exec_ext in '' $ac_executable_extensions; do
1347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1358 if test -n "$CC"; then
1359 echo "$as_me:$LINENO: result: $CC" >&5
1360 echo "${ECHO_T}$CC" >&6
1362 echo "$as_me:$LINENO: result: no" >&5
1363 echo "${ECHO_T}no" >&6
1367 if test -z "$ac_cv_prog_CC"; then
1369 # Extract the first word of "gcc", so it can be a program name with args.
1370 set dummy gcc; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1376 if test -n "$ac_ct_CC"; then
1377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 test -z "$as_dir" && as_dir=.
1384 for ac_exec_ext in '' $ac_executable_extensions; do
1385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386 ac_cv_prog_ac_ct_CC="gcc"
1387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1396 if test -n "$ac_ct_CC"; then
1397 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1398 echo "${ECHO_T}$ac_ct_CC" >&6
1400 echo "$as_me:$LINENO: result: no" >&5
1401 echo "${ECHO_T}no" >&6
1409 if test -z "$CC"; then
1410 if test -n "$ac_tool_prefix"; then
1411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1412 set dummy ${ac_tool_prefix}cc; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_CC+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 if test -n "$CC"; then
1419 ac_cv_prog_CC="$CC" # Let the user override the test.
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 test -z "$as_dir" && as_dir=.
1426 for ac_exec_ext in '' $ac_executable_extensions; do
1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428 ac_cv_prog_CC="${ac_tool_prefix}cc"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 if test -n "$CC"; then
1439 echo "$as_me:$LINENO: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1442 echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1447 if test -z "$ac_cv_prog_CC"; then
1449 # Extract the first word of "cc", so it can be a program name with args.
1450 set dummy cc; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 if test -n "$ac_ct_CC"; then
1457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 test -z "$as_dir" && as_dir=.
1464 for ac_exec_ext in '' $ac_executable_extensions; do
1465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466 ac_cv_prog_ac_ct_CC="cc"
1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476 if test -n "$ac_ct_CC"; then
1477 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1478 echo "${ECHO_T}$ac_ct_CC" >&6
1480 echo "$as_me:$LINENO: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1490 if test -z "$CC"; then
1491 # Extract the first word of "cc", so it can be a program name with args.
1492 set dummy cc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1510 ac_prog_rejected=yes
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 if test $ac_prog_rejected = yes; then
1521 # We found a bogon in the path, so make sure we never use it.
1522 set dummy $ac_cv_prog_CC
1524 if test $# != 0; then
1525 # We chose a different compiler from the bogus one.
1526 # However, it has the same basename, so the bogon will be chosen
1527 # first if we set CC to just the basename; use the full file name.
1529 set dummy "$as_dir/$ac_word" ${1+"$@"}
1537 if test -n "$CC"; then
1538 echo "$as_me:$LINENO: result: $CC" >&5
1539 echo "${ECHO_T}$CC" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1546 if test -z "$CC"; then
1547 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 if test -n "$CC"; then
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1585 test -n "$CC" && break
1588 if test -z "$CC"; then
1592 # Extract the first word of "$ac_prog", so it can be a program name with args.
1593 set dummy $ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1627 test -n "$ac_ct_CC" && break
1636 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1637 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1638 { (exit 1); exit 1; }; }
1640 # Provide some information about the compiler.
1641 echo "$as_me:$LINENO:" \
1642 "checking for C compiler version" >&5
1643 ac_compiler=`set X $ac_compile; echo $2`
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1645 (eval $ac_compiler --version </dev/null >&5) 2>&5
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1650 (eval $ac_compiler -v </dev/null >&5) 2>&5
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1655 (eval $ac_compiler -V </dev/null >&5) 2>&5
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1660 cat >conftest.$ac_ext <<_ACEOF
1661 #line $LINENO "configure"
1662 #include "confdefs.h"
1664 #ifdef F77_DUMMY_MAIN
1668 int F77_DUMMY_MAIN() { return 1; }
1678 ac_clean_files_save=$ac_clean_files
1679 ac_clean_files="$ac_clean_files a.out a.exe"
1680 # Try to create an executable without -o first, disregard a.out.
1681 # It will help us diagnose broken compilers, and finding out an intuition
1683 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1684 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1686 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1687 (eval $ac_link_default) 2>&5
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }; then
1691 # Find the output, starting from the most likely. This scheme is
1692 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1695 # Be careful to initialize this variable, since it used to be cached.
1696 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1698 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1699 ls a.out conftest 2>/dev/null;
1700 ls a.* conftest.* 2>/dev/null`; do
1702 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1703 a.out ) # We found the default executable, but exeext='' is most
1706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1707 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1714 echo "$as_me: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1717 echo "$as_me: error: C compiler cannot create executables" >&2;}
1718 { (exit 77); exit 77; }; }
1721 ac_exeext=$ac_cv_exeext
1722 echo "$as_me:$LINENO: result: $ac_file" >&5
1723 echo "${ECHO_T}$ac_file" >&6
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 # If not cross compiling, check that we can run a simple program.
1731 if test "$cross_compiling" != yes; then
1732 if { ac_try='./$ac_file'
1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 if test "$cross_compiling" = maybe; then
1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 If you meant to cross compile, use \`--host'." >&5
1745 echo "$as_me: error: cannot run C compiled programs.
1746 If you meant to cross compile, use \`--host'." >&2;}
1747 { (exit 1); exit 1; }; }
1751 echo "$as_me:$LINENO: result: yes" >&5
1752 echo "${ECHO_T}yes" >&6
1754 rm -f a.out a.exe conftest$ac_cv_exeext
1755 ac_clean_files=$ac_clean_files_save
1756 # Check the compiler produces executables we can run. If not, either
1757 # the compiler is broken, or we cross compile.
1758 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1759 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1760 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1761 echo "${ECHO_T}$cross_compiling" >&6
1763 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1764 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1766 (eval $ac_link) 2>&5
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }; then
1770 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1771 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1772 # work properly (i.e., refer to `conftest.exe'), while it won't with
1774 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1776 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1784 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1786 { (exit 1); exit 1; }; }
1789 rm -f conftest$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1791 echo "${ECHO_T}$ac_cv_exeext" >&6
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1796 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1798 if test "${ac_cv_objext+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 cat >conftest.$ac_ext <<_ACEOF
1802 #line $LINENO "configure"
1803 #include "confdefs.h"
1805 #ifdef F77_DUMMY_MAIN
1809 int F77_DUMMY_MAIN() { return 1; }
1819 rm -f conftest.o conftest.obj
1820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1821 (eval $ac_compile) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833 echo "$as_me: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1836 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1846 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1847 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1848 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line $LINENO "configure"
1853 #include "confdefs.h"
1855 #ifdef F77_DUMMY_MAIN
1859 int F77_DUMMY_MAIN() { return 1; }
1872 rm -f conftest.$ac_objext
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1890 rm -f conftest.$ac_objext conftest.$ac_ext
1891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1894 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1895 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1896 GCC=`test $ac_compiler_gnu = yes && echo yes`
1897 ac_test_CFLAGS=${CFLAGS+set}
1898 ac_save_CFLAGS=$CFLAGS
1900 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1902 if test "${ac_cv_prog_cc_g+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1909 #ifdef F77_DUMMY_MAIN
1913 int F77_DUMMY_MAIN() { return 1; }
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1943 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1944 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1945 if test "$ac_test_CFLAGS" = set; then
1946 CFLAGS=$ac_save_CFLAGS
1947 elif test $ac_cv_prog_cc_g = yes; then
1948 if test "$GCC" = yes; then
1954 if test "$GCC" = yes; then
1960 # Some people use a C++ compiler to compile C. Since we use `exit',
1961 # in C++ we need to declare it. In case someone uses the same compiler
1962 # for both compiling C and C++ we need to have the C++ compiler decide
1963 # the declaration of exit, since it's the most demanding environment.
1964 cat >conftest.$ac_ext <<_ACEOF
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971 (eval $ac_compile) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -s conftest.$ac_objext'
1976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; }; then
1981 for ac_declaration in \
1983 '#include <stdlib.h>' \
1984 'extern "C" void std::exit (int) throw (); using std::exit;' \
1985 'extern "C" void std::exit (int); using std::exit;' \
1986 'extern "C" void exit (int) throw ();' \
1987 'extern "C" void exit (int);' \
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 #include "confdefs.h"
1995 #ifdef F77_DUMMY_MAIN
1999 int F77_DUMMY_MAIN() { return 1; }
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line $LINENO "configure"
2030 #include "confdefs.h"
2032 #ifdef F77_DUMMY_MAIN
2036 int F77_DUMMY_MAIN() { return 1; }
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -s conftest.$ac_objext'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2060 echo "$as_me: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2066 if test -n "$ac_declaration"; then
2067 echo '#ifdef __cplusplus' >>confdefs.h
2068 echo $ac_declaration >>confdefs.h
2069 echo '#endif' >>confdefs.h
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2090 if test "${am_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 am_cv_prog_cc_stdc=no
2095 # Don't try gcc -ansi; that turns off useful extensions and
2096 # breaks some systems' header files.
2097 # AIX -qlanglvl=ansi
2098 # Ultrix and OSF/1 -std1
2099 # HP-UX -Aa -D_HPUX_SOURCE
2100 # SVR4 -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2103 CC="$ac_save_CC $ac_arg"
2104 cat >conftest.$ac_ext <<_ACEOF
2105 #line $LINENO "configure"
2106 #include "confdefs.h"
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2125 s = g (p, va_arg (v,int));
2129 int test (int i, double x);
2130 struct s1 {int (*f) (int a);};
2131 struct s2 {int (*f) (double a);};
2132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2136 #ifdef F77_DUMMY_MAIN
2140 int F77_DUMMY_MAIN() { return 1; }
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 am_cv_prog_cc_stdc="$ac_arg"; break
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2175 if test -z "$am_cv_prog_cc_stdc"; then
2176 echo "$as_me:$LINENO: result: none needed" >&5
2177 echo "${ECHO_T}none needed" >&6
2179 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2180 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2182 case "x$am_cv_prog_cc_stdc" in
2184 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2187 if test x"$CFLAGS" != x; then
2188 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2190 if test x"$CFLAGS" != x; then
2191 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2193 if test x"$CFLAGS" != x; then
2194 unet_old_cflags=$CFLAGS
2195 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2197 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2198 # If -g was already there, force symbols to be enabled
2199 unet_cv_enable_symbols=yes
2201 if test x"$CFLAGS" != x; then
2202 unet_old_cflags=$CFLAGS
2203 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2205 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2206 # If -pg was already there, force profiling to be enabled
2207 unet_cv_enable_profile=yes
2209 if test x"$CFLAGS" != x; then
2210 unet_old_cflags=$CFLAGS
2211 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2213 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2214 # If -Wall was already there, force warnings to be enabled
2215 unet_cv_enable_warnings=yes
2217 if test x"$CFLAGS" != x; then
2218 unet_old_cflags=$CFLAGS
2219 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2221 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2222 # If -pedantic was already there, force pedatic to be enabled
2223 unet_cv_enable_pedantic=yes
2227 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2228 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2229 if test "${ac_cv_search_crypt+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 ac_func_search_save_LIBS=$LIBS
2233 ac_cv_search_crypt=no
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2236 #include "confdefs.h"
2238 /* Override any gcc2 internal prototype to avoid an error. */
2242 /* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2245 #ifdef F77_DUMMY_MAIN
2249 int F77_DUMMY_MAIN() { return 1; }
2259 rm -f conftest.$ac_objext conftest$ac_exeext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -s conftest$ac_exeext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 ac_cv_search_crypt="none required"
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2277 if test "$ac_cv_search_crypt" = no; then
2278 for ac_lib in descrypt crypt; do
2279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2280 cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 #include "confdefs.h"
2284 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2291 #ifdef F77_DUMMY_MAIN
2295 int F77_DUMMY_MAIN() { return 1; }
2305 rm -f conftest.$ac_objext conftest$ac_exeext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307 (eval $ac_link) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest$ac_exeext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_cv_search_crypt="-l$ac_lib"
2320 echo "$as_me: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2326 LIBS=$ac_func_search_save_LIBS
2328 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2329 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2330 if test "$ac_cv_search_crypt" != no; then
2331 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2334 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2335 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2336 { (exit 1); exit 1; }; }
2341 # Most operating systems have gethostbyname() in the default searched
2342 # libraries (i.e. libc):
2343 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2344 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2345 if test "${ac_cv_func_gethostbyname+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351 /* System header to define __stub macros and hopefully few prototypes,
2352 which can conflict with char gethostbyname (); below. */
2354 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360 char gethostbyname ();
2363 #ifdef F77_DUMMY_MAIN
2367 int F77_DUMMY_MAIN() { return 1; }
2372 /* The GNU C library defines this for functions which it implements
2373 to always fail with ENOSYS. Some functions are actually named
2374 something starting with __ and the normal name is an alias. */
2375 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest$ac_exeext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_cv_func_gethostbyname=yes
2399 echo "$as_me: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 ac_cv_func_gethostbyname=no
2403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2405 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2406 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2407 if test $ac_cv_func_gethostbyname = yes; then
2410 # Some OSes (eg. Solaris) place it in libnsl:
2412 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2413 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2414 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 ac_check_lib_save_LIBS=$LIBS
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line $LINENO "configure"
2421 #include "confdefs.h"
2423 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2429 char gethostbyname ();
2430 #ifdef F77_DUMMY_MAIN
2434 int F77_DUMMY_MAIN() { return 1; }
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -s conftest$ac_exeext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_lib_nsl_gethostbyname=yes
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 ac_cv_lib_nsl_gethostbyname=no
2462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2463 LIBS=$ac_check_lib_save_LIBS
2465 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2466 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2467 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2468 cat >>confdefs.h <<_ACEOF
2469 #define HAVE_LIBNSL 1
2475 # Some strange OSes (SINIX) have it in libsocket:
2477 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2478 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2479 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 ac_check_lib_save_LIBS=$LIBS
2483 LIBS="-lsocket $LIBS"
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 #include "confdefs.h"
2488 /* Override any gcc2 internal prototype to avoid an error. */
2492 /* We use char because int might match the return type of a gcc2
2493 builtin and then its argument prototype would still apply. */
2494 char gethostbyname ();
2495 #ifdef F77_DUMMY_MAIN
2499 int F77_DUMMY_MAIN() { return 1; }
2509 rm -f conftest.$ac_objext conftest$ac_exeext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511 (eval $ac_link) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -s conftest$ac_exeext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_lib_socket_gethostbyname=yes
2523 echo "$as_me: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 ac_cv_lib_socket_gethostbyname=no
2527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2528 LIBS=$ac_check_lib_save_LIBS
2530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2531 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2532 if test $ac_cv_lib_socket_gethostbyname = yes; then
2533 cat >>confdefs.h <<_ACEOF
2534 #define HAVE_LIBSOCKET 1
2537 LIBS="-lsocket $LIBS"
2540 # Unfortunately libsocket sometimes depends on libnsl.
2541 # AC_CHECK_LIB's API is essentially broken so the following
2542 # ugliness is necessary:
2543 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2544 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2545 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 ac_check_lib_save_LIBS=$LIBS
2549 LIBS="-lsocket -lnsl $LIBS"
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2554 /* Override any gcc2 internal prototype to avoid an error. */
2558 /* We use char because int might match the return type of a gcc2
2559 builtin and then its argument prototype would still apply. */
2560 char gethostbyname ();
2561 #ifdef F77_DUMMY_MAIN
2565 int F77_DUMMY_MAIN() { return 1; }
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2577 (eval $ac_link) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest$ac_exeext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_lib_socket_gethostbyname=yes
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 ac_cv_lib_socket_gethostbyname=no
2593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2594 LIBS=$ac_check_lib_save_LIBS
2596 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2597 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2598 if test $ac_cv_lib_socket_gethostbyname = yes; then
2599 LIBS="-lsocket -lnsl $LIBS"
2602 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2603 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2604 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 ac_check_lib_save_LIBS=$LIBS
2608 LIBS="-lresolv $LIBS"
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2613 /* Override any gcc2 internal prototype to avoid an error. */
2617 /* We use char because int might match the return type of a gcc2
2618 builtin and then its argument prototype would still apply. */
2619 char gethostbyname ();
2620 #ifdef F77_DUMMY_MAIN
2624 int F77_DUMMY_MAIN() { return 1; }
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -s conftest$ac_exeext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_lib_resolv_gethostbyname=yes
2648 echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 ac_cv_lib_resolv_gethostbyname=no
2652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2653 LIBS=$ac_check_lib_save_LIBS
2655 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
2656 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2657 if test $ac_cv_lib_resolv_gethostbyname = yes; then
2658 cat >>confdefs.h <<_ACEOF
2659 #define HAVE_LIBRESOLV 1
2662 LIBS="-lresolv $LIBS"
2677 echo "$as_me:$LINENO: checking for socket" >&5
2678 echo $ECHO_N "checking for socket... $ECHO_C" >&6
2679 if test "${ac_cv_func_socket+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2684 #include "confdefs.h"
2685 /* System header to define __stub macros and hopefully few prototypes,
2686 which can conflict with char socket (); below. */
2688 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2697 #ifdef F77_DUMMY_MAIN
2701 int F77_DUMMY_MAIN() { return 1; }
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_socket) || defined (__stub___socket)
2719 rm -f conftest.$ac_objext conftest$ac_exeext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721 (eval $ac_link) 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_func_socket=yes
2733 echo "$as_me: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 ac_cv_func_socket=no
2737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2739 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2740 echo "${ECHO_T}$ac_cv_func_socket" >&6
2741 if test $ac_cv_func_socket = yes; then
2745 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2746 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2747 if test "${ac_cv_lib_socket_socket+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 ac_check_lib_save_LIBS=$LIBS
2751 LIBS="-lsocket $LIBS"
2752 cat >conftest.$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
2754 #include "confdefs.h"
2756 /* Override any gcc2 internal prototype to avoid an error. */
2760 /* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2763 #ifdef F77_DUMMY_MAIN
2767 int F77_DUMMY_MAIN() { return 1; }
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779 (eval $ac_link) 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -s conftest$ac_exeext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_lib_socket_socket=yes
2791 echo "$as_me: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 ac_cv_lib_socket_socket=no
2795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2796 LIBS=$ac_check_lib_save_LIBS
2798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2799 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2800 if test $ac_cv_lib_socket_socket = yes; then
2801 cat >>confdefs.h <<_ACEOF
2802 #define HAVE_LIBSOCKET 1
2805 LIBS="-lsocket $LIBS"
2808 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2809 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2810 if test "${ac_cv_lib_socket_socket+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 ac_check_lib_save_LIBS=$LIBS
2814 LIBS="-lsocket -lnsl $LIBS"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2819 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2826 #ifdef F77_DUMMY_MAIN
2830 int F77_DUMMY_MAIN() { return 1; }
2840 rm -f conftest.$ac_objext conftest$ac_exeext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2842 (eval $ac_link) 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest$ac_exeext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_lib_socket_socket=yes
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 ac_cv_lib_socket_socket=no
2858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2859 LIBS=$ac_check_lib_save_LIBS
2861 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2862 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2863 if test $ac_cv_lib_socket_socket = yes; then
2864 LIBS="-lsocket -lnsl $LIBS"
2873 echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
2874 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
2875 if test "${ac_cv_search_res_mkquery+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 ac_func_search_save_LIBS=$LIBS
2879 ac_cv_search_res_mkquery=no
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2884 /* Override any gcc2 internal prototype to avoid an error. */
2888 /* We use char because int might match the return type of a gcc2
2889 builtin and then its argument prototype would still apply. */
2890 char res_mkquery ();
2891 #ifdef F77_DUMMY_MAIN
2895 int F77_DUMMY_MAIN() { return 1; }
2905 rm -f conftest.$ac_objext conftest$ac_exeext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907 (eval $ac_link) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest$ac_exeext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_search_res_mkquery="none required"
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2923 if test "$ac_cv_search_res_mkquery" = no; then
2924 for ac_lib in resolv; do
2925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2926 cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 #include "confdefs.h"
2930 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
2936 char res_mkquery ();
2937 #ifdef F77_DUMMY_MAIN
2941 int F77_DUMMY_MAIN() { return 1; }
2951 rm -f conftest.$ac_objext conftest$ac_exeext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953 (eval $ac_link) 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -s conftest$ac_exeext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_search_res_mkquery="-l$ac_lib"
2966 echo "$as_me: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2972 LIBS=$ac_func_search_save_LIBS
2974 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
2975 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
2976 if test "$ac_cv_search_res_mkquery" != no; then
2977 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
2980 { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
2981 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
2982 { (exit 1); exit 1; }; }
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2992 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2993 # On Suns, sometimes $CPP names a directory.
2994 if test -n "$CPP" && test -d "$CPP"; then
2997 if test -z "$CPP"; then
2998 if test "${ac_cv_prog_CPP+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 # Double quotes because CPP needs to be expanded
3002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005 for ac_c_preproc_warn_flag in '' yes
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 egrep -v '^ *\+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3033 if test -z "$ac_cpp_err"; then
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 # Broken: fails on valid input.
3041 rm -f conftest.err conftest.$ac_ext
3043 # OK, works on sane cases. Now check whether non-existent headers
3044 # can be detected and how.
3045 cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3047 #include "confdefs.h"
3048 #include <ac_nonexistent.h>
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053 egrep -v '^ *\+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev/null; then
3058 if test -s conftest.err; then
3059 ac_cpp_err=$ac_c_preproc_warn_flag
3066 if test -z "$ac_cpp_err"; then
3067 # Broken: success on invalid input.
3070 echo "$as_me: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3072 # Passes both tests.
3076 rm -f conftest.err conftest.$ac_ext
3079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3080 rm -f conftest.err conftest.$ac_ext
3081 if $ac_preproc_ok; then
3093 echo "$as_me:$LINENO: result: $CPP" >&5
3094 echo "${ECHO_T}$CPP" >&6
3096 for ac_c_preproc_warn_flag in '' yes
3098 # Use a header file that comes with gcc, so configuring glibc
3099 # with a fresh cross-compiler works.
3100 # On the NeXT, cc -E runs the code through the compiler's parser,
3101 # not just through cpp. "Syntax error" is here to catch this case.
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111 egrep -v '^ *\+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3124 if test -z "$ac_cpp_err"; then
3127 echo "$as_me: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 # Broken: fails on valid input.
3132 rm -f conftest.err conftest.$ac_ext
3134 # OK, works on sane cases. Now check whether non-existent headers
3135 # can be detected and how.
3136 cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 #include "confdefs.h"
3139 #include <ac_nonexistent.h>
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144 egrep -v '^ *\+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev/null; then
3149 if test -s conftest.err; then
3150 ac_cpp_err=$ac_c_preproc_warn_flag
3157 if test -z "$ac_cpp_err"; then
3158 # Broken: success on invalid input.
3161 echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 # Passes both tests.
3167 rm -f conftest.err conftest.$ac_ext
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3176 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3177 { (exit 1); exit 1; }; }
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3189 if test "${ac_cv_header_stdc+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 egrep -v '^ *\+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3217 if test -z "$ac_cpp_err"; then
3218 ac_cv_header_stdc=yes
3220 echo "$as_me: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3222 ac_cv_header_stdc=no
3224 rm -f conftest.err conftest.$ac_ext
3226 if test $ac_cv_header_stdc = yes; then
3227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 #include "confdefs.h"
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "memchr" >/dev/null 2>&1; then
3238 ac_cv_header_stdc=no
3244 if test $ac_cv_header_stdc = yes; then
3245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3246 cat >conftest.$ac_ext <<_ACEOF
3247 #line $LINENO "configure"
3248 #include "confdefs.h"
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253 egrep "free" >/dev/null 2>&1; then
3256 ac_cv_header_stdc=no
3262 if test $ac_cv_header_stdc = yes; then
3263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3264 if test "$cross_compiling" = yes; then
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line $LINENO "configure"
3269 #include "confdefs.h"
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3275 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3276 || ('j' <= (c) && (c) <= 'r') \
3277 || ('s' <= (c) && (c) <= 'z'))
3278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3286 for (i = 0; i < 256; i++)
3287 if (XOR (islower (i), ISLOWER (i))
3288 || toupper (i) != TOUPPER (i))
3293 rm -f conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: program exited with status $ac_status" >&5
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 ac_cv_header_stdc=no
3312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3316 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3317 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3318 if test $ac_cv_header_stdc = yes; then
3320 cat >>confdefs.h <<\_ACEOF
3321 #define STDC_HEADERS 1
3326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3337 inttypes.h stdint.h unistd.h
3339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3340 echo "$as_me:$LINENO: checking for $ac_header" >&5
3341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 #include "confdefs.h"
3348 $ac_includes_default
3350 #include <$ac_header>
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 eval "$as_ac_Header=yes"
3366 echo "$as_me: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 eval "$as_ac_Header=no"
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3375 cat >>confdefs.h <<_ACEOF
3376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3387 for ac_header in poll.h sys/devpoll.h sys/event.h
3389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3391 echo "$as_me:$LINENO: checking for $ac_header" >&5
3392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3399 # Is the header compilable?
3400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 $ac_includes_default
3406 #include <$ac_header>
3408 rm -f conftest.$ac_objext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410 (eval $ac_compile) 2>&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 ac_header_compiler=yes
3422 echo "$as_me: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 ac_header_compiler=no
3426 rm -f conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3428 echo "${ECHO_T}$ac_header_compiler" >&6
3430 # Is the header present?
3431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 #include "confdefs.h"
3436 #include <$ac_header>
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 egrep -v '^ *\+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3454 if test -z "$ac_cpp_err"; then
3455 ac_header_preproc=yes
3457 echo "$as_me: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 ac_header_preproc=no
3461 rm -f conftest.err conftest.$ac_ext
3462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3463 echo "${ECHO_T}$ac_header_preproc" >&6
3465 # So? What about this header?
3466 case $ac_header_compiler:$ac_header_preproc in
3468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 eval "$as_ac_Header=$ac_header_preproc"
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3492 cat >>confdefs.h <<_ACEOF
3493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3501 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3502 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3503 if test "${ac_cv_c_bigendian+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 # See if sys/param.h defines the BYTE_ORDER macro.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #line $LINENO "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/param.h>
3513 #ifdef F77_DUMMY_MAIN
3517 int F77_DUMMY_MAIN() { return 1; }
3522 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 # It does; now see whether it defined to BIG_ENDIAN or not.
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3547 #include <sys/param.h>
3549 #ifdef F77_DUMMY_MAIN
3553 int F77_DUMMY_MAIN() { return 1; }
3558 #if BYTE_ORDER != BIG_ENDIAN
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_c_bigendian=yes
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 ac_cv_c_bigendian=no
3584 rm -f conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 # It does not; compile a test program.
3589 if test "$cross_compiling" = yes; then
3590 # try to guess the endianess by grep'ing values into an object file
3591 ac_cv_c_bigendian=unknown
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3595 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3596 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3597 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3598 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3599 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3600 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3601 #ifdef F77_DUMMY_MAIN
3605 int F77_DUMMY_MAIN() { return 1; }
3610 _ascii (); _ebcdic ();
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3628 ac_cv_c_bigendian=yes
3630 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3631 if test "$ac_cv_c_bigendian" = unknown; then
3632 ac_cv_c_bigendian=no
3634 # finding both strings is unlikely to happen, but who knows?
3635 ac_cv_c_bigendian=unknown
3639 echo "$as_me: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 rm -f conftest.$ac_objext conftest.$ac_ext
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line $LINENO "configure"
3646 #include "confdefs.h"
3650 /* Are we little or big endian? From Harbison&Steele. */
3654 char c[sizeof (long)];
3657 exit (u.c[sizeof (long) - 1] == 1);
3660 rm -f conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 ac_cv_c_bigendian=no
3673 echo "$as_me: program exited with status $ac_status" >&5
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3677 ac_cv_c_bigendian=yes
3679 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3682 rm -f conftest.$ac_objext conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3685 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3686 case $ac_cv_c_bigendian in
3689 cat >>confdefs.h <<\_ACEOF
3690 #define WORDS_BIGENDIAN 1
3696 { { echo "$as_me:$LINENO: error: unknown endianess
3697 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3698 echo "$as_me: error: unknown endianess
3699 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3700 { (exit 1); exit 1; }; } ;;
3703 echo "$as_me:$LINENO: checking for size_t" >&5
3704 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3705 if test "${ac_cv_type_size_t+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3712 #ifdef F77_DUMMY_MAIN
3716 int F77_DUMMY_MAIN() { return 1; }
3723 if (sizeof (size_t))
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_cv_type_size_t=yes
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 ac_cv_type_size_t=no
3747 rm -f conftest.$ac_objext conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3750 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3751 if test $ac_cv_type_size_t = yes; then
3755 cat >>confdefs.h <<_ACEOF
3756 #define size_t unsigned
3761 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3762 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3763 if test "${ac_cv_header_time+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3767 #line $LINENO "configure"
3768 #include "confdefs.h"
3769 #include <sys/types.h>
3770 #include <sys/time.h>
3773 #ifdef F77_DUMMY_MAIN
3777 int F77_DUMMY_MAIN() { return 1; }
3782 if ((struct tm *) 0)
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_header_time=yes
3802 echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 ac_cv_header_time=no
3806 rm -f conftest.$ac_objext conftest.$ac_ext
3808 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3809 echo "${ECHO_T}$ac_cv_header_time" >&6
3810 if test $ac_cv_header_time = yes; then
3812 cat >>confdefs.h <<\_ACEOF
3813 #define TIME_WITH_SYS_TIME 1
3818 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3819 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3820 if test "${ac_cv_struct_tm+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3829 #ifdef F77_DUMMY_MAIN
3833 int F77_DUMMY_MAIN() { return 1; }
3838 struct tm *tp; tp->tm_sec;
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_struct_tm=time.h
3857 echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_struct_tm=sys/time.h
3861 rm -f conftest.$ac_objext conftest.$ac_ext
3863 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3864 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3865 if test $ac_cv_struct_tm = sys/time.h; then
3867 cat >>confdefs.h <<\_ACEOF
3868 #define TM_IN_SYS_TIME 1
3873 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
3874 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3875 if test "${ac_cv_type_uid_t+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 #include "confdefs.h"
3881 #include <sys/types.h>
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 egrep "uid_t" >/dev/null 2>&1; then
3886 ac_cv_type_uid_t=yes
3893 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
3894 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3895 if test $ac_cv_type_uid_t = no; then
3897 cat >>confdefs.h <<\_ACEOF
3902 cat >>confdefs.h <<\_ACEOF
3908 echo "$as_me:$LINENO: checking for short" >&5
3909 echo $ECHO_N "checking for short... $ECHO_C" >&6
3910 if test "${ac_cv_type_short+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 #include "confdefs.h"
3916 $ac_includes_default
3917 #ifdef F77_DUMMY_MAIN
3921 int F77_DUMMY_MAIN() { return 1; }
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_type_short=yes
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3952 rm -f conftest.$ac_objext conftest.$ac_ext
3954 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3955 echo "${ECHO_T}$ac_cv_type_short" >&6
3957 echo "$as_me:$LINENO: checking size of short" >&5
3958 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3959 if test "${ac_cv_sizeof_short+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test "$ac_cv_type_short" = yes; then
3963 # The cast to unsigned long works around a bug in the HP C Compiler
3964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3966 # This bug is HP SR number 8606223364.
3967 if test "$cross_compiling" = yes; then
3968 # Depending upon the size, compute the lo and hi bounds.
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line $LINENO "configure"
3971 #include "confdefs.h"
3972 $ac_includes_default
3973 #ifdef F77_DUMMY_MAIN
3977 int F77_DUMMY_MAIN() { return 1; }
3982 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4003 cat >conftest.$ac_ext <<_ACEOF
4004 #line $LINENO "configure"
4005 #include "confdefs.h"
4006 $ac_includes_default
4007 #ifdef F77_DUMMY_MAIN
4011 int F77_DUMMY_MAIN() { return 1; }
4016 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_hi=$ac_mid; break
4037 echo "$as_me: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 ac_lo=`expr $ac_mid + 1`
4040 if test $ac_lo -le $ac_mid; then
4044 ac_mid=`expr 2 '*' $ac_mid + 1`
4046 rm -f conftest.$ac_objext conftest.$ac_ext
4049 echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4053 #include "confdefs.h"
4054 $ac_includes_default
4055 #ifdef F77_DUMMY_MAIN
4059 int F77_DUMMY_MAIN() { return 1; }
4064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4085 cat >conftest.$ac_ext <<_ACEOF
4086 #line $LINENO "configure"
4087 #include "confdefs.h"
4088 $ac_includes_default
4089 #ifdef F77_DUMMY_MAIN
4093 int F77_DUMMY_MAIN() { return 1; }
4098 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_lo=$ac_mid; break
4119 echo "$as_me: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 ac_hi=`expr '(' $ac_mid ')' - 1`
4122 if test $ac_mid -le $ac_hi; then
4126 ac_mid=`expr 2 '*' $ac_mid`
4128 rm -f conftest.$ac_objext conftest.$ac_ext
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4137 rm -f conftest.$ac_objext conftest.$ac_ext
4138 # Binary search between lo and hi bounds.
4139 while test "x$ac_lo" != "x$ac_hi"; do
4140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 #include "confdefs.h"
4144 $ac_includes_default
4145 #ifdef F77_DUMMY_MAIN
4149 int F77_DUMMY_MAIN() { return 1; }
4154 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 echo "$as_me: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 ac_lo=`expr '(' $ac_mid ')' + 1`
4179 rm -f conftest.$ac_objext conftest.$ac_ext
4182 ?*) ac_cv_sizeof_short=$ac_lo;;
4183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4185 { (exit 1); exit 1; }; } ;;
4188 if test "$cross_compiling" = yes; then
4189 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4190 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4191 { (exit 1); exit 1; }; }
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4196 $ac_includes_default
4197 long longval () { return (long) (sizeof (short)); }
4198 unsigned long ulongval () { return (long) (sizeof (short)); }
4201 #ifdef F77_DUMMY_MAIN
4205 int F77_DUMMY_MAIN() { return 1; }
4211 FILE *f = fopen ("conftest.val", "w");
4214 if (((long) (sizeof (short))) < 0)
4216 long i = longval ();
4217 if (i != ((long) (sizeof (short))))
4219 fprintf (f, "%ld\n", i);
4223 unsigned long i = ulongval ();
4224 if (i != ((long) (sizeof (short))))
4226 fprintf (f, "%lu\n", i);
4228 exit (ferror (f) || fclose (f) != 0);
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_sizeof_short=`cat conftest.val`
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4252 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4253 { (exit 1); exit 1; }; }
4255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 ac_cv_sizeof_short=0
4263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4264 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4265 cat >>confdefs.h <<_ACEOF
4266 #define SIZEOF_SHORT $ac_cv_sizeof_short
4270 echo "$as_me:$LINENO: checking for int" >&5
4271 echo $ECHO_N "checking for int... $ECHO_C" >&6
4272 if test "${ac_cv_type_int+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 #include "confdefs.h"
4278 $ac_includes_default
4279 #ifdef F77_DUMMY_MAIN
4283 int F77_DUMMY_MAIN() { return 1; }
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4314 rm -f conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4317 echo "${ECHO_T}$ac_cv_type_int" >&6
4319 echo "$as_me:$LINENO: checking size of int" >&5
4320 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4321 if test "${ac_cv_sizeof_int+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test "$ac_cv_type_int" = yes; then
4325 # The cast to unsigned long works around a bug in the HP C Compiler
4326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328 # This bug is HP SR number 8606223364.
4329 if test "$cross_compiling" = yes; then
4330 # Depending upon the size, compute the lo and hi bounds.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 $ac_includes_default
4335 #ifdef F77_DUMMY_MAIN
4339 int F77_DUMMY_MAIN() { return 1; }
4344 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4365 cat >conftest.$ac_ext <<_ACEOF
4366 #line $LINENO "configure"
4367 #include "confdefs.h"
4368 $ac_includes_default
4369 #ifdef F77_DUMMY_MAIN
4373 int F77_DUMMY_MAIN() { return 1; }
4378 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_hi=$ac_mid; break
4399 echo "$as_me: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 ac_lo=`expr $ac_mid + 1`
4402 if test $ac_lo -le $ac_mid; then
4406 ac_mid=`expr 2 '*' $ac_mid + 1`
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4416 $ac_includes_default
4417 #ifdef F77_DUMMY_MAIN
4421 int F77_DUMMY_MAIN() { return 1; }
4426 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4433 rm -f conftest.$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -s conftest.$ac_objext'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4450 $ac_includes_default
4451 #ifdef F77_DUMMY_MAIN
4455 int F77_DUMMY_MAIN() { return 1; }
4460 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_lo=$ac_mid; break
4481 echo "$as_me: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 ac_hi=`expr '(' $ac_mid ')' - 1`
4484 if test $ac_mid -le $ac_hi; then
4488 ac_mid=`expr 2 '*' $ac_mid`
4490 rm -f conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4497 rm -f conftest.$ac_objext conftest.$ac_ext
4499 rm -f conftest.$ac_objext conftest.$ac_ext
4500 # Binary search between lo and hi bounds.
4501 while test "x$ac_lo" != "x$ac_hi"; do
4502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #ifdef F77_DUMMY_MAIN
4511 int F77_DUMMY_MAIN() { return 1; }
4516 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -s conftest.$ac_objext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4537 echo "$as_me: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 ac_lo=`expr '(' $ac_mid ')' + 1`
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4544 ?*) ac_cv_sizeof_int=$ac_lo;;
4545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4546 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4547 { (exit 1); exit 1; }; } ;;
4550 if test "$cross_compiling" = yes; then
4551 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4552 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4553 { (exit 1); exit 1; }; }
4555 cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4558 $ac_includes_default
4559 long longval () { return (long) (sizeof (int)); }
4560 unsigned long ulongval () { return (long) (sizeof (int)); }
4563 #ifdef F77_DUMMY_MAIN
4567 int F77_DUMMY_MAIN() { return 1; }
4573 FILE *f = fopen ("conftest.val", "w");
4576 if (((long) (sizeof (int))) < 0)
4578 long i = longval ();
4579 if (i != ((long) (sizeof (int))))
4581 fprintf (f, "%ld\n", i);
4585 unsigned long i = ulongval ();
4586 if (i != ((long) (sizeof (int))))
4588 fprintf (f, "%lu\n", i);
4590 exit (ferror (f) || fclose (f) != 0);
4596 rm -f conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_sizeof_int=`cat conftest.val`
4609 echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4614 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4615 { (exit 1); exit 1; }; }
4617 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4626 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4627 cat >>confdefs.h <<_ACEOF
4628 #define SIZEOF_INT $ac_cv_sizeof_int
4632 echo "$as_me:$LINENO: checking for long" >&5
4633 echo $ECHO_N "checking for long... $ECHO_C" >&6
4634 if test "${ac_cv_type_long+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4640 $ac_includes_default
4641 #ifdef F77_DUMMY_MAIN
4645 int F77_DUMMY_MAIN() { return 1; }
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -s conftest.$ac_objext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4672 echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4676 rm -f conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4679 echo "${ECHO_T}$ac_cv_type_long" >&6
4681 echo "$as_me:$LINENO: checking size of long" >&5
4682 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4683 if test "${ac_cv_sizeof_long+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 if test "$ac_cv_type_long" = yes; then
4687 # The cast to unsigned long works around a bug in the HP C Compiler
4688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4690 # This bug is HP SR number 8606223364.
4691 if test "$cross_compiling" = yes; then
4692 # Depending upon the size, compute the lo and hi bounds.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4695 #include "confdefs.h"
4696 $ac_includes_default
4697 #ifdef F77_DUMMY_MAIN
4701 int F77_DUMMY_MAIN() { return 1; }
4706 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4730 $ac_includes_default
4731 #ifdef F77_DUMMY_MAIN
4735 int F77_DUMMY_MAIN() { return 1; }
4740 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_hi=$ac_mid; break
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 ac_lo=`expr $ac_mid + 1`
4764 if test $ac_lo -le $ac_mid; then
4768 ac_mid=`expr 2 '*' $ac_mid + 1`
4770 rm -f conftest.$ac_objext conftest.$ac_ext
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 cat >conftest.$ac_ext <<_ACEOF
4776 #line $LINENO "configure"
4777 #include "confdefs.h"
4778 $ac_includes_default
4779 #ifdef F77_DUMMY_MAIN
4783 int F77_DUMMY_MAIN() { return 1; }
4788 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 #include "confdefs.h"
4812 $ac_includes_default
4813 #ifdef F77_DUMMY_MAIN
4817 int F77_DUMMY_MAIN() { return 1; }
4822 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_lo=$ac_mid; break
4843 echo "$as_me: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 ac_hi=`expr '(' $ac_mid ')' - 1`
4846 if test $ac_mid -le $ac_hi; then
4850 ac_mid=`expr 2 '*' $ac_mid`
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4859 rm -f conftest.$ac_objext conftest.$ac_ext
4861 rm -f conftest.$ac_objext conftest.$ac_ext
4862 # Binary search between lo and hi bounds.
4863 while test "x$ac_lo" != "x$ac_hi"; do
4864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4865 cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 #include "confdefs.h"
4868 $ac_includes_default
4869 #ifdef F77_DUMMY_MAIN
4873 int F77_DUMMY_MAIN() { return 1; }
4878 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4885 rm -f conftest.$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 ac_lo=`expr '(' $ac_mid ')' + 1`
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4906 ?*) ac_cv_sizeof_long=$ac_lo;;
4907 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4908 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4912 if test "$cross_compiling" = yes; then
4913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4914 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4915 { (exit 1); exit 1; }; }
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 #include "confdefs.h"
4920 $ac_includes_default
4921 long longval () { return (long) (sizeof (long)); }
4922 unsigned long ulongval () { return (long) (sizeof (long)); }
4925 #ifdef F77_DUMMY_MAIN
4929 int F77_DUMMY_MAIN() { return 1; }
4935 FILE *f = fopen ("conftest.val", "w");
4938 if (((long) (sizeof (long))) < 0)
4940 long i = longval ();
4941 if (i != ((long) (sizeof (long))))
4943 fprintf (f, "%ld\n", i);
4947 unsigned long i = ulongval ();
4948 if (i != ((long) (sizeof (long))))
4950 fprintf (f, "%lu\n", i);
4952 exit (ferror (f) || fclose (f) != 0);
4958 rm -f conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960 (eval $ac_link) 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_sizeof_long=`cat conftest.val`
4971 echo "$as_me: program exited with status $ac_status" >&5
4972 echo "$as_me: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4976 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4977 { (exit 1); exit 1; }; }
4979 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4988 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4989 cat >>confdefs.h <<_ACEOF
4990 #define SIZEOF_LONG $ac_cv_sizeof_long
4994 echo "$as_me:$LINENO: checking for void *" >&5
4995 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4996 if test "${ac_cv_type_void_p+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002 $ac_includes_default
5003 #ifdef F77_DUMMY_MAIN
5007 int F77_DUMMY_MAIN() { return 1; }
5014 if (sizeof (void *))
5020 rm -f conftest.$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_type_void_p=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_type_void_p=no
5038 rm -f conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5041 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5043 echo "$as_me:$LINENO: checking size of void *" >&5
5044 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5045 if test "${ac_cv_sizeof_void_p+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test "$ac_cv_type_void_p" = yes; then
5049 # The cast to unsigned long works around a bug in the HP C Compiler
5050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5052 # This bug is HP SR number 8606223364.
5053 if test "$cross_compiling" = yes; then
5054 # Depending upon the size, compute the lo and hi bounds.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line $LINENO "configure"
5057 #include "confdefs.h"
5058 $ac_includes_default
5059 #ifdef F77_DUMMY_MAIN
5063 int F77_DUMMY_MAIN() { return 1; }
5068 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 #include "confdefs.h"
5092 $ac_includes_default
5093 #ifdef F77_DUMMY_MAIN
5097 int F77_DUMMY_MAIN() { return 1; }
5102 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -s conftest.$ac_objext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_hi=$ac_mid; break
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_lo=`expr $ac_mid + 1`
5126 if test $ac_lo -le $ac_mid; then
5130 ac_mid=`expr 2 '*' $ac_mid + 1`
5132 rm -f conftest.$ac_objext conftest.$ac_ext
5135 echo "$as_me: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 #include "confdefs.h"
5140 $ac_includes_default
5141 #ifdef F77_DUMMY_MAIN
5145 int F77_DUMMY_MAIN() { return 1; }
5150 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 #include "confdefs.h"
5174 $ac_includes_default
5175 #ifdef F77_DUMMY_MAIN
5179 int F77_DUMMY_MAIN() { return 1; }
5184 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5191 rm -f conftest.$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193 (eval $ac_compile) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -s conftest.$ac_objext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_lo=$ac_mid; break
5205 echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_hi=`expr '(' $ac_mid ')' - 1`
5208 if test $ac_mid -le $ac_hi; then
5212 ac_mid=`expr 2 '*' $ac_mid`
5214 rm -f conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5221 rm -f conftest.$ac_objext conftest.$ac_ext
5223 rm -f conftest.$ac_objext conftest.$ac_ext
5224 # Binary search between lo and hi bounds.
5225 while test "x$ac_lo" != "x$ac_hi"; do
5226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230 $ac_includes_default
5231 #ifdef F77_DUMMY_MAIN
5235 int F77_DUMMY_MAIN() { return 1; }
5240 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 ac_lo=`expr '(' $ac_mid ')' + 1`
5265 rm -f conftest.$ac_objext conftest.$ac_ext
5268 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5270 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 if test "$cross_compiling" = yes; then
5275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5276 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5277 { (exit 1); exit 1; }; }
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5281 #include "confdefs.h"
5282 $ac_includes_default
5283 long longval () { return (long) (sizeof (void *)); }
5284 unsigned long ulongval () { return (long) (sizeof (void *)); }
5287 #ifdef F77_DUMMY_MAIN
5291 int F77_DUMMY_MAIN() { return 1; }
5297 FILE *f = fopen ("conftest.val", "w");
5300 if (((long) (sizeof (void *))) < 0)
5302 long i = longval ();
5303 if (i != ((long) (sizeof (void *))))
5305 fprintf (f, "%ld\n", i);
5309 unsigned long i = ulongval ();
5310 if (i != ((long) (sizeof (void *))))
5312 fprintf (f, "%lu\n", i);
5314 exit (ferror (f) || fclose (f) != 0);
5320 rm -f conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_cv_sizeof_void_p=`cat conftest.val`
5333 echo "$as_me: program exited with status $ac_status" >&5
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5338 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5339 { (exit 1); exit 1; }; }
5341 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5346 ac_cv_sizeof_void_p=0
5349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5350 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5351 cat >>confdefs.h <<_ACEOF
5352 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5356 if test "$ac_cv_sizeof_int" = 2 ; then
5357 echo "$as_me:$LINENO: checking for int16_t" >&5
5358 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5359 if test "${ac_cv_type_int16_t+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 #include "confdefs.h"
5365 $ac_includes_default
5366 #ifdef F77_DUMMY_MAIN
5370 int F77_DUMMY_MAIN() { return 1; }
5377 if (sizeof (int16_t))
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_cv_type_int16_t=yes
5397 echo "$as_me: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 ac_cv_type_int16_t=no
5401 rm -f conftest.$ac_objext conftest.$ac_ext
5403 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5404 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5405 if test $ac_cv_type_int16_t = yes; then
5409 cat >>confdefs.h <<_ACEOF
5415 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5416 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5417 if test "${ac_cv_type_u_int16_t+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 $ac_includes_default
5424 #ifdef F77_DUMMY_MAIN
5428 int F77_DUMMY_MAIN() { return 1; }
5433 if ((u_int16_t *) 0)
5435 if (sizeof (u_int16_t))
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_type_u_int16_t=yes
5455 echo "$as_me: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 ac_cv_type_u_int16_t=no
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5462 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5463 if test $ac_cv_type_u_int16_t = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define u_int16_t unsigned int
5473 elif test "$ac_cv_sizeof_short" = 2 ; then
5474 echo "$as_me:$LINENO: checking for int16_t" >&5
5475 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5476 if test "${ac_cv_type_int16_t+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 #include "confdefs.h"
5482 $ac_includes_default
5483 #ifdef F77_DUMMY_MAIN
5487 int F77_DUMMY_MAIN() { return 1; }
5494 if (sizeof (int16_t))
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_type_int16_t=yes
5514 echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_type_int16_t=no
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5521 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5522 if test $ac_cv_type_int16_t = yes; then
5526 cat >>confdefs.h <<_ACEOF
5527 #define int16_t short
5532 echo "$as_me:$LINENO: checking for u_int16_t" >&5
5533 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5534 if test "${ac_cv_type_u_int16_t+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 #include "confdefs.h"
5540 $ac_includes_default
5541 #ifdef F77_DUMMY_MAIN
5545 int F77_DUMMY_MAIN() { return 1; }
5550 if ((u_int16_t *) 0)
5552 if (sizeof (u_int16_t))
5558 rm -f conftest.$ac_objext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -s conftest.$ac_objext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_type_u_int16_t=yes
5572 echo "$as_me: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 ac_cv_type_u_int16_t=no
5576 rm -f conftest.$ac_objext conftest.$ac_ext
5578 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5579 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5580 if test $ac_cv_type_u_int16_t = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define u_int16_t unsigned short
5591 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
5592 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
5593 { (exit 1); exit 1; }; }
5595 if test "$ac_cv_sizeof_int" = 4 ; then
5596 echo "$as_me:$LINENO: checking for int32_t" >&5
5597 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5598 if test "${ac_cv_type_int32_t+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 cat >conftest.$ac_ext <<_ACEOF
5602 #line $LINENO "configure"
5603 #include "confdefs.h"
5604 $ac_includes_default
5605 #ifdef F77_DUMMY_MAIN
5609 int F77_DUMMY_MAIN() { return 1; }
5616 if (sizeof (int32_t))
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_type_int32_t=yes
5636 echo "$as_me: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 ac_cv_type_int32_t=no
5640 rm -f conftest.$ac_objext conftest.$ac_ext
5642 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5643 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5644 if test $ac_cv_type_int32_t = yes; then
5648 cat >>confdefs.h <<_ACEOF
5654 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5655 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5656 if test "${ac_cv_type_u_int32_t+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 #include "confdefs.h"
5662 $ac_includes_default
5663 #ifdef F77_DUMMY_MAIN
5667 int F77_DUMMY_MAIN() { return 1; }
5672 if ((u_int32_t *) 0)
5674 if (sizeof (u_int32_t))
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_type_u_int32_t=yes
5694 echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 ac_cv_type_u_int32_t=no
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5701 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5702 if test $ac_cv_type_u_int32_t = yes; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define u_int32_t unsigned int
5712 elif test "$ac_cv_sizeof_short" = 4 ; then
5713 echo "$as_me:$LINENO: checking for int32_t" >&5
5714 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5715 if test "${ac_cv_type_int32_t+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 #include "confdefs.h"
5721 $ac_includes_default
5722 #ifdef F77_DUMMY_MAIN
5726 int F77_DUMMY_MAIN() { return 1; }
5733 if (sizeof (int32_t))
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_type_int32_t=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_type_int32_t=no
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5761 if test $ac_cv_type_int32_t = yes; then
5765 cat >>confdefs.h <<_ACEOF
5766 #define int32_t short
5771 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5772 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5773 if test "${ac_cv_type_u_int32_t+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5779 $ac_includes_default
5780 #ifdef F77_DUMMY_MAIN
5784 int F77_DUMMY_MAIN() { return 1; }
5789 if ((u_int32_t *) 0)
5791 if (sizeof (u_int32_t))
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_type_u_int32_t=yes
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_cv_type_u_int32_t=no
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5818 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5819 if test $ac_cv_type_u_int32_t = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define u_int32_t unsigned short
5829 elif test "$ac_cv_sizeof_long" = 4 ; then
5830 echo "$as_me:$LINENO: checking for int32_t" >&5
5831 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5832 if test "${ac_cv_type_int32_t+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 #include "confdefs.h"
5838 $ac_includes_default
5839 #ifdef F77_DUMMY_MAIN
5843 int F77_DUMMY_MAIN() { return 1; }
5850 if (sizeof (int32_t))
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_type_int32_t=yes
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_cv_type_int32_t=no
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5877 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5878 if test $ac_cv_type_int32_t = yes; then
5882 cat >>confdefs.h <<_ACEOF
5883 #define int32_t long
5888 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5889 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5890 if test "${ac_cv_type_u_int32_t+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5896 $ac_includes_default
5897 #ifdef F77_DUMMY_MAIN
5901 int F77_DUMMY_MAIN() { return 1; }
5906 if ((u_int32_t *) 0)
5908 if (sizeof (u_int32_t))
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest.$ac_objext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_type_u_int32_t=yes
5928 echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_type_u_int32_t=no
5932 rm -f conftest.$ac_objext conftest.$ac_ext
5934 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5935 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5936 if test $ac_cv_type_u_int32_t = yes; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define u_int32_t unsigned long
5947 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
5948 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
5949 { (exit 1); exit 1; }; }
5956 for ac_func in kqueue setrlimit getrusage times
5958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5959 echo "$as_me:$LINENO: checking for $ac_func" >&5
5960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5961 if eval "test \"\${$as_ac_var+set}\" = set"; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char $ac_func (); below. */
5970 /* Override any gcc2 internal prototype to avoid an error. */
5974 /* We use char because int might match the return type of a gcc2
5975 builtin and then its argument prototype would still apply. */
5979 #ifdef F77_DUMMY_MAIN
5983 int F77_DUMMY_MAIN() { return 1; }
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 eval "$as_ac_var=yes"
6015 echo "$as_me: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 eval "$as_ac_var=no"
6019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6023 if test `eval echo '${'$as_ac_var'}'` = yes; then
6024 cat >>confdefs.h <<_ACEOF
6025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6032 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6033 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6034 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 #include "confdefs.h"
6040 #include <sys/types.h>
6041 #include <sys/wait.h>
6043 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6046 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6049 #ifdef F77_DUMMY_MAIN
6053 int F77_DUMMY_MAIN() { return 1; }
6060 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_header_sys_wait_h=yes
6079 echo "$as_me: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 ac_cv_header_sys_wait_h=no
6083 rm -f conftest.$ac_objext conftest.$ac_ext
6085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6086 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6087 if test $ac_cv_header_sys_wait_h = yes; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_SYS_WAIT_H 1
6096 for ac_header in unistd.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6100 echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108 # Is the header compilable?
6109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 $ac_includes_default
6115 #include <$ac_header>
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_header_compiler=yes
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 ac_header_compiler=no
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6137 echo "${ECHO_T}$ac_header_compiler" >&6
6139 # Is the header present?
6140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 #include "confdefs.h"
6145 #include <$ac_header>
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 egrep -v '^ *\+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6163 if test -z "$ac_cpp_err"; then
6164 ac_header_preproc=yes
6166 echo "$as_me: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 ac_header_preproc=no
6170 rm -f conftest.err conftest.$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6
6174 # So? What about this header?
6175 case $ac_header_compiler:$ac_header_preproc in
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6189 echo "$as_me:$LINENO: checking for $ac_header" >&5
6190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 eval "$as_ac_Header=$ac_header_preproc"
6196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6201 cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209 echo "$as_me:$LINENO: checking for restartable system calls" >&5
6210 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
6211 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 if test "$cross_compiling" = yes; then
6215 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6216 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6217 { (exit 1); exit 1; }; }
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6222 /* Exit 0 (true) if wait returns something other than -1,
6223 i.e. the pid of the child, which means that wait was restarted
6224 after getting the signal. */
6226 #include <sys/types.h>
6229 # include <unistd.h>
6232 # include <sys/wait.h>
6235 /* Some platforms explicitly require an extern "C" signal handler
6238 extern "C" void ucatch (int dummy) { }
6240 void ucatch (dummy) int dummy; { }
6246 int i = fork (), status;
6251 kill (getppid (), SIGINT);
6256 signal (SIGINT, ucatch);
6262 exit (status == -1);
6265 rm -f conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_sys_restartable_syscalls=yes
6278 echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6282 ac_cv_sys_restartable_syscalls=no
6284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6287 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
6288 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
6289 if test $ac_cv_sys_restartable_syscalls = yes; then
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_RESTARTABLE_SYSCALLS 1
6298 echo "$as_me:$LINENO: checking for donuts" >&5
6299 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
6300 echo "$as_me:$LINENO: result: yes" >&5
6301 echo "${ECHO_T}yes" >&6
6303 for ac_prog in gawk mawk nawk awk
6305 # Extract the first word of "$ac_prog", so it can be a program name with args.
6306 set dummy $ac_prog; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_AWK+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 if test -n "$AWK"; then
6313 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AWK="$ac_prog"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 if test -n "$AWK"; then
6333 echo "$as_me:$LINENO: result: $AWK" >&5
6334 echo "${ECHO_T}$AWK" >&6
6336 echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6340 test -n "$AWK" && break
6343 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
6344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6345 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.make <<\_ACEOF
6351 @echo 'ac_maketemp="${MAKE}"'
6353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6355 if test -n "$ac_maketemp"; then
6356 eval ac_cv_prog_make_${ac_make}_set=yes
6358 eval ac_cv_prog_make_${ac_make}_set=no
6362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6363 echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6
6367 echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6
6369 SET_MAKE="MAKE=${MAKE-make}"
6372 # Find a good install program. We prefer a C program (faster),
6373 # so one script is as good as another. But avoid the broken or
6374 # incompatible versions:
6375 # SysV /etc/install, /usr/sbin/install
6376 # SunOS /usr/etc/install
6377 # IRIX /sbin/install
6379 # AmigaOS /C/install, which installs bootblocks on floppy discs
6380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6383 # ./install, which can be erroneously created by make from ./install.sh.
6384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6386 if test -z "$INSTALL"; then
6387 if test "${ac_cv_path_install+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 # Account for people who put trailing slashes in PATH elements.
6397 ./ | .// | /cC/* | \
6398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6401 # OSF1 and SCO ODT 3.0 have their own names for install.
6402 # Don't use installbsd from OSF since it installs stuff as root
6404 for ac_prog in ginstall scoinst install; do
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6407 if test $ac_prog = install &&
6408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6409 # AIX install. It has an incompatible calling convention.
6411 elif test $ac_prog = install &&
6412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6413 # program-specific install script used by HP pwplus--don't use.
6416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6428 if test "${ac_cv_path_install+set}" = set; then
6429 INSTALL=$ac_cv_path_install
6431 # As a last resort, use the slow shell script. We don't cache a
6432 # path for INSTALL within a source directory, because that will
6433 # break other packages using the cache if that directory is
6434 # removed, or if the path is relative.
6435 INSTALL=$ac_install_sh
6438 echo "$as_me:$LINENO: result: $INSTALL" >&5
6439 echo "${ECHO_T}$INSTALL" >&6
6441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6442 # It thinks the first close brace ends the variable substitution.
6443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6452 if test "$LN_S" = "ln -s"; then
6453 echo "$as_me:$LINENO: result: yes" >&5
6454 echo "${ECHO_T}yes" >&6
6456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6457 echo "${ECHO_T}no, using $LN_S" >&6
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6466 if test "${ac_cv_path_RMPROG+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 RMPROG=$ac_cv_path_RMPROG
6493 if test -n "$RMPROG"; then
6494 echo "$as_me:$LINENO: result: $RMPROG" >&5
6495 echo "${ECHO_T}$RMPROG" >&6
6497 echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6501 test -n "$RMPROG" && break
6503 test -n "$RMPROG" || RMPROG="/bin/rm"
6507 # Extract the first word of "$ac_prog", so it can be a program name with args.
6508 set dummy $ac_prog; ac_word=$2
6509 echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6511 if test "${ac_cv_path_SHPROG+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 SHPROG=$ac_cv_path_SHPROG
6538 if test -n "$SHPROG"; then
6539 echo "$as_me:$LINENO: result: $SHPROG" >&5
6540 echo "${ECHO_T}$SHPROG" >&6
6542 echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6
6546 test -n "$SHPROG" && break
6548 test -n "$SHPROG" || SHPROG="/bin/sh"
6551 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
6552 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
6553 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test "$cross_compiling" = yes; then
6557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6558 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6559 { (exit 1); exit 1; }; }
6561 cat >conftest.$ac_ext <<_ACEOF
6562 #line $LINENO "configure"
6563 #include "confdefs.h"
6564 #include <sys/types.h>
6565 #include <sys/socket.h>
6567 #include <sys/ioctl.h>
6568 #include <sys/file.h>
6570 $ac_cv_type_signal alarmed() { exit(1); }
6575 size_t l = sizeof(x);
6576 int f = socket(AF_INET, SOCK_DGRAM, 0);
6577 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
6579 signal(SIGALRM, alarmed);
6581 recvfrom(f, b, 12, 0, &x, &l);
6588 rm -f conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 unet_cv_sys_nonblocking_posix=yes
6601 echo "$as_me: program exited with status $ac_status" >&5
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 unet_cv_sys_nonblocking_posix=no
6607 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
6611 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
6612 if test $unet_cv_sys_nonblocking_posix = yes; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define NBLOCK_POSIX 1
6618 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
6619 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
6620 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 if test "$cross_compiling" = yes; then
6624 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6625 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6626 { (exit 1); exit 1; }; }
6628 cat >conftest.$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6630 #include "confdefs.h"
6631 #include <sys/types.h>
6632 #include <sys/socket.h>
6634 #include <sys/ioctl.h>
6635 #include <sys/file.h>
6637 $ac_cv_type_signal alarmed() { exit(1); }
6642 size_t l = sizeof(x);
6643 int f = socket(AF_INET, SOCK_DGRAM, 0);
6644 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
6646 signal(SIGALRM, alarmed);
6648 recvfrom(f, b, 12, 0, &x, &l);
6655 rm -f conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 unet_cv_sys_nonblocking_bsd=yes
6668 echo "$as_me: program exited with status $ac_status" >&5
6669 echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 unet_cv_sys_nonblocking_bsd=no
6674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6677 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
6678 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
6679 if test $unet_cv_sys_nonblocking_bsd = yes; then
6680 cat >>confdefs.h <<\_ACEOF
6681 #define NBLOCK_BSD 1
6685 cat >>confdefs.h <<\_ACEOF
6686 #define NBLOCK_SYSV 1
6691 echo "$as_me:$LINENO: checking for posix signals" >&5
6692 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
6693 if test "${unet_cv_sys_signal_posix+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 #include "confdefs.h"
6700 #ifdef F77_DUMMY_MAIN
6704 int F77_DUMMY_MAIN() { return 1; }
6709 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 unet_cv_sys_signal_posix=yes
6728 echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 unet_cv_sys_signal_posix=no
6732 rm -f conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
6735 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
6736 if test $unet_cv_sys_signal_posix = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define POSIX_SIGNALS 1
6742 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
6743 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
6744 if test "${unet_cv_sys_signal_bsd+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 if test "$cross_compiling" = yes; then
6748 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6749 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6750 { (exit 1); exit 1; }; }
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6757 $ac_cv_type_signal handler()
6761 kill(getpid(), SIGTERM);
6766 signal(SIGTERM, handler);
6767 kill(getpid(), SIGTERM);
6771 rm -f conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 unet_cv_sys_signal_bsd=yes
6784 echo "$as_me: program exited with status $ac_status" >&5
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6788 unet_cv_sys_signal_bsd=no
6790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
6794 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
6795 if test $unet_cv_sys_signal_bsd = yes; then
6796 cat >>confdefs.h <<\_ACEOF
6797 #define BSD_RELIABLE_SIGNALS 1
6801 cat >>confdefs.h <<\_ACEOF
6802 #define SYSV_UNRELIABLE_SIGNALS 1
6808 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
6809 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
6810 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
6811 if test "$ac_cv_c_compiler_gnu" = no; then
6813 CFLAGS="$CFLAGS -pipe"
6814 cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6818 #ifdef F77_DUMMY_MAIN
6822 int F77_DUMMY_MAIN() { return 1; }
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 unet_cv_pipe_flags=yes
6846 echo "$as_me: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 rm -f conftest.$ac_objext conftest.$ac_ext
6852 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
6853 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
6854 if test "$unet_cv_pipe_flags" = yes ; then
6855 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
6856 if test "$x" = "" ; then
6857 CFLAGS="$CFLAGS -pipe"
6862 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
6863 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
6866 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
6867 echo "${ECHO_T}Linux ($host) found." >&6
6868 unet_poll_syscall=yes
6873 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
6874 echo "${ECHO_T}Solaris ($host) found." >&6
6875 if test x"$ac_cv_header_poll_h" = xyes; then
6876 unet_poll_syscall=yes
6878 unet_poll_syscall=no
6880 OSDEP_C=os_solaris.c
6884 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
6885 echo "${ECHO_T}Solaris ($host) found." >&6
6886 unet_poll_syscall=no
6887 OSDEP_C=os_solaris.c
6891 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
6892 echo "${ECHO_T}OpenBSD ($host) found." >&6
6893 if test x"$ac_cv_header_poll_h" = xyes; then
6894 unet_poll_syscall=yes
6896 unet_poll_syscall=no
6898 OSDEP_C=os_openbsd.c
6902 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
6903 echo "${ECHO_T}Generic BSD ($host) found." >&6
6904 if test x"$ac_cv_header_poll_h" = xyes; then
6905 unet_poll_syscall=yes
6907 unet_poll_syscall=no
6913 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
6914 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
6915 unet_poll_syscall=no
6920 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
6921 echo "${ECHO_T}Unknown system type $host found." >&6
6922 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
6923 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
6924 unet_poll_syscall=no
6925 OSDEP_C=os_generic.c
6930 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
6931 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
6932 # Check whether --enable-poll or --disable-poll was given.
6933 if test "${enable_poll+set}" = set; then
6934 enableval="$enable_poll"
6935 unet_cv_enable_poll=$enable_poll
6937 if test "${unet_cv_enable_poll+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 unet_cv_enable_poll=$unet_poll_syscall
6945 # Force poll to be disabled if there is no poll.h
6946 if test x"$ac_cv_header_poll_h" != xyes; then
6947 unet_cv_enable_poll=no
6950 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
6951 echo "${ECHO_T}$unet_cv_enable_poll" >&6
6953 if test x"$unet_cv_enable_poll" = xyes; then
6955 cat >>confdefs.h <<\_ACEOF
6959 ENGINE_C=engine_poll.c
6961 ENGINE_C=engine_select.c
6965 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
6966 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
6967 # Check whether --enable-debug or --disable-debug was given.
6968 if test "${enable_debug+set}" = set; then
6969 enableval="$enable_debug"
6970 unet_cv_enable_debug=$enable_debug
6972 if test "${unet_cv_enable_debug+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 unet_cv_enable_debug=no
6979 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
6980 echo "${ECHO_T}$unet_cv_enable_debug" >&6
6982 if test x"$unet_cv_enable_debug" = xyes; then
6984 cat >>confdefs.h <<\_ACEOF
6990 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
6991 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
6993 # Check whether --with-leak-detect or --without-leak-detect was given.
6994 if test "${with_leak_detect+set}" = set; then
6995 withval="$with_leak_detect"
6996 unet_cv_with_leak_detect=$with_leak_detect
6998 if test "${unet_cv_with_leak_detect+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 unet_cv_with_leak_detect=no
7005 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
7006 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
7008 if test x"$unet_cv_with_leak_detect" != xno; then
7010 CFLAGS="-DMDEBUG $CFLAGS"
7011 if test x"$unet_cv_with_leak_detect" != xyes; then
7012 LIBS="-L$unet_cv_with_leak_detect $LIBS"
7016 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
7017 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
7018 # Check whether --enable-asserts or --disable-asserts was given.
7019 if test "${enable_asserts+set}" = set; then
7020 enableval="$enable_asserts"
7021 unet_cv_enable_asserts=$enable_asserts
7023 if test "${unet_cv_enable_asserts+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 unet_cv_enable_asserts=yes
7030 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
7031 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
7033 if test x"$unet_cv_enable_asserts" = xno; then
7035 cat >>confdefs.h <<\_ACEOF
7041 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
7042 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
7043 # Check whether --enable-symbols or --disable-symbols was given.
7044 if test "${enable_symbols+set}" = set; then
7045 enableval="$enable_symbols"
7046 unet_cv_enable_symbols=$enable_symbols
7048 if test "${unet_cv_enable_symbols+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 unet_cv_enable_symbols=yes
7055 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
7056 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
7058 if test x"$unet_cv_enable_symbols" = xyes; then
7062 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
7063 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
7064 # Check whether --enable-profile or --disable-profile was given.
7065 if test "${enable_profile+set}" = set; then
7066 enableval="$enable_profile"
7067 unet_cv_enable_profile=$enable_profile
7069 if test "${unet_cv_enable_profile+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 unet_cv_enable_profile=no
7076 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
7077 echo "${ECHO_T}$unet_cv_enable_profile" >&6
7079 if test x"$unet_cv_enable_profile" = xyes; then
7080 CFLAGS="-pg $CFLAGS"
7083 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
7084 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
7085 # Check whether --enable-pedantic or --disable-pedantic was given.
7086 if test "${enable_pedantic+set}" = set; then
7087 enableval="$enable_pedantic"
7088 unet_cv_enable_pedantic=$enable_pedantic
7090 if test "${unet_cv_enable_pedantic+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 unet_cv_enable_pedantic=no
7097 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
7098 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
7100 if test x"$unet_cv_enable_pedantic" = xyes; then
7101 CFLAGS="-pedantic $CFLAGS"
7104 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
7105 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
7106 # Check whether --enable-warnings or --disable-warnings was given.
7107 if test "${enable_warnings+set}" = set; then
7108 enableval="$enable_warnings"
7109 unet_cv_enable_warnings=$enable_warnings
7111 if test "${unet_cv_enable_warnings+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 unet_cv_enable_warnings=no
7118 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
7119 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
7121 if test x"$unet_cv_enable_warnings" = xyes; then
7122 CFLAGS="-Wall $CFLAGS"
7125 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
7126 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
7127 # Check whether --enable-inlines or --disable-inlines was given.
7128 if test "${enable_inlines+set}" = set; then
7129 enableval="$enable_inlines"
7130 unet_cv_enable_inlines=$enable_inlines
7132 if test "${unet_cv_enable_inlines+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 unet_cv_enable_inlines=yes
7139 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
7140 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
7142 if test x"$unet_cv_enable_inlines" = xyes; then
7144 cat >>confdefs.h <<\_ACEOF
7150 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
7151 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
7152 # Check whether --enable-devpoll or --disable-devpoll was given.
7153 if test "${enable_devpoll+set}" = set; then
7154 enableval="$enable_devpoll"
7155 unet_cv_enable_devpoll=$enable_devpoll
7157 if test "${unet_cv_enable_devpoll+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 unet_cv_enable_devpoll=yes
7165 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
7166 unet_cv_enable_devpoll=no
7169 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
7170 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
7172 if test x"$unet_cv_enable_devpoll" != xno; then
7174 cat >>confdefs.h <<\_ACEOF
7178 ENGINE_C="engine_devpoll.c $ENGINE_C"
7181 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
7182 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
7183 # Check whether --enable-kqueue or --disable-kqueue was given.
7184 if test "${enable_kqueue+set}" = set; then
7185 enableval="$enable_kqueue"
7186 unet_cv_enable_kqueue=$enable_kqueue
7188 if test "${unet_cv_enable_kqueue+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 unet_cv_enable_kqueue=yes
7196 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
7197 unet_cv_enable_kqueue=no
7200 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
7201 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
7203 if test x"$unet_cv_enable_kqueue" != xno; then
7205 cat >>confdefs.h <<\_ACEOF
7209 ENGINE_C="engine_kqueue.c $ENGINE_C"
7212 echo "$as_me:$LINENO: checking whether to enable the adns resolver engine" >&5
7213 echo $ECHO_N "checking whether to enable the adns resolver engine... $ECHO_C" >&6
7214 # Check whether --enable-adns or --disable-adns was given.
7215 if test "${enable_adns+set}" = set; then
7216 enableval="$enable_adns"
7217 unet_cv_enable_adns=$enable_adns
7219 if test "${unet_cv_enable_adns+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 unet_cv_enable_adns=yes
7227 echo "$as_me:$LINENO: result: $unet_cv_enable_adns" >&5
7228 echo "${ECHO_T}$unet_cv_enable_adns" >&6
7230 if test x"$unet_cv_enable_adns" != xno; then
7232 cat >>confdefs.h <<\_ACEOF
7238 subdirs="$subdirs adns"
7241 LIBS="../adns/src/libadns.a $LIBS"
7244 RES_C="res_libresolv.c"
7247 echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
7248 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
7249 if test "${ac_cv_search_res_mkquery+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_func_search_save_LIBS=$LIBS
7253 ac_cv_search_res_mkquery=no
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char res_mkquery ();
7265 #ifdef F77_DUMMY_MAIN
7269 int F77_DUMMY_MAIN() { return 1; }
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_search_res_mkquery="none required"
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7297 if test "$ac_cv_search_res_mkquery" = no; then
7298 for ac_lib in resolv; do
7299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7304 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310 char res_mkquery ();
7311 #ifdef F77_DUMMY_MAIN
7315 int F77_DUMMY_MAIN() { return 1; }
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -s conftest$ac_exeext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 ac_cv_search_res_mkquery="-l$ac_lib"
7340 echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7346 LIBS=$ac_func_search_save_LIBS
7348 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
7349 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
7350 if test "$ac_cv_search_res_mkquery" != no; then
7351 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
7354 { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
7355 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
7356 { (exit 1); exit 1; }; }
7363 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
7364 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
7366 # Check whether --with-symlink or --without-symlink was given.
7367 if test "${with_symlink+set}" = set; then
7368 withval="$with_symlink"
7369 unet_cv_with_symlink=$with_symlink
7371 if test "${unet_cv_with_symlink+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 unet_cv_with_symlink="ircd"
7379 if test x"$unet_cv_with_symlink" = xyes; then
7380 unet_cv_with_symlink="ircd"
7383 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
7384 echo "${ECHO_T}$unet_cv_with_symlink" >&6
7386 if test x"$unet_cv_with_symlink" = xno; then
7387 INSTALL_RULE=install-no-symlink
7390 INSTALL_RULE=install-with-symlink
7391 SYMLINK=$unet_cv_with_symlink
7396 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
7397 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
7399 # Check whether --with-mode or --without-mode was given.
7400 if test "${with_mode+set}" = set; then
7401 withval="$with_mode"
7402 unet_cv_with_mode=$with_mode
7404 if test "${unet_cv_with_mode+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 unet_cv_with_mode=711
7412 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
7413 unet_cv_with_mode=711
7416 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
7417 echo "${ECHO_T}$unet_cv_with_mode" >&6
7419 IRCDMODE=$unet_cv_with_mode
7422 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
7423 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
7424 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
7426 # Check whether --with-owner or --without-owner was given.
7427 if test "${with_owner+set}" = set; then
7428 withval="$with_owner"
7429 unet_cv_with_owner=$with_owner
7431 if test "${unet_cv_with_owner+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 unet_cv_with_owner=$unet_uid
7439 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
7440 unet_cv_with_owner=$unet_uid
7443 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
7444 echo "${ECHO_T}$unet_cv_with_owner" >&6
7446 IRCDOWN=$unet_cv_with_owner
7449 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
7450 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
7451 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
7453 # Check whether --with-group or --without-group was given.
7454 if test "${with_group+set}" = set; then
7455 withval="$with_group"
7456 unet_cv_with_group=$with_group
7458 if test "${unet_cv_with_group+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 unet_cv_with_group=$unet_gid
7466 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
7467 unet_cv_with_group=$unet_gid
7470 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
7471 echo "${ECHO_T}$unet_cv_with_group" >&6
7473 IRCDGRP=$unet_cv_with_group
7477 if test -f /etc/resolv.conf; then
7478 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
7479 if test x"$unet_domain" = x; then
7480 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
7483 echo "$as_me:$LINENO: checking for site domain name" >&5
7484 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
7486 # Check whether --with-domain or --without-domain was given.
7487 if test "${with_domain+set}" = set; then
7488 withval="$with_domain"
7489 unet_cv_with_domain=$with_domain
7491 if test "${unet_cv_with_domain+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 unet_cv_with_domain=$unet_domain
7499 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
7500 unet_cv_with_domain=$unet_domain
7502 if test x"$unet_cv_with_domain" = xno; then
7503 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
7504 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
7505 { (exit 1); exit 1; }; }
7508 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
7509 echo "${ECHO_T}$unet_cv_with_domain" >&6
7512 cat >>confdefs.h <<_ACEOF
7513 #define DOMAINNAME "*$unet_cv_with_domain"
7517 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
7518 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
7520 # Check whether --with-chroot or --without-chroot was given.
7521 if test "${with_chroot+set}" = set; then
7522 withval="$with_chroot"
7523 unet_cv_with_chroot=$with_chroot
7525 if test "${unet_cv_with_chroot+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 unet_cv_with_chroot=no
7533 if test x"$unet_cv_with_chroot" = xyes; then
7534 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
7535 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
7536 { (exit 1); exit 1; }; }
7539 # Ensure there are no trailing /'s to mess us up
7540 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
7542 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
7543 echo "${ECHO_T}$unet_cv_with_chroot" >&6
7545 # Deal with the annoying value "NONE" here
7546 unet_save_prefix=$prefix
7547 if test x"$prefix" = xNONE; then
7548 prefix=$ac_default_prefix
7553 unet_save_exec_prefix=$exec_prefix
7554 if test x"$exec_prefix" = xNONE; then
7557 exec_prefix=$exec_prefix
7560 # Obtain the actual interesting directories
7561 unet_bindir=`eval echo "$bindir"`
7562 unet_libdir=`eval echo "$libdir"`
7564 # Restore the original settings of $prefix and $exec_prefix
7565 prefix=$unet_save_prefix
7566 exec_prefix=$unet_save_exec_prefix
7568 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
7569 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
7570 if test x"$unet_cv_with_symlink" = xno; then
7571 unet_spath="$unet_bindir/ircd"
7573 unet_spath="$unet_bindir/$unet_cv_with_symlink"
7575 echo "$as_me:$LINENO: result: $unet_spath" >&5
7576 echo "${ECHO_T}$unet_spath" >&6
7578 if test x"$unet_cv_with_chroot" != xno; then
7579 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7580 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
7582 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
7583 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
7588 cat >>confdefs.h <<_ACEOF
7589 #define SPATH "$unet_spath"
7593 echo "$as_me:$LINENO: checking what the data directory should be" >&5
7594 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
7596 # Check whether --with-dpath or --without-dpath was given.
7597 if test "${with_dpath+set}" = set; then
7598 withval="$with_dpath"
7599 unet_cv_with_dpath=$with_dpath
7601 if test "${unet_cv_with_dpath+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 unet_cv_with_dpath=$unet_libdir
7609 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
7610 unet_cv_with_dpath=$unet_libdir
7613 # Ensure there are no trailing /'s to mess us up
7614 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
7616 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
7617 echo "${ECHO_T}$unet_cv_with_dpath" >&6
7619 if test x"$unet_cv_with_chroot" != xno; then
7620 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7621 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
7623 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
7624 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
7625 { (exit 1); exit 1; }; }
7628 unet_dpath=$unet_cv_with_dpath
7632 cat >>confdefs.h <<_ACEOF
7633 #define DPATH "$unet_dpath"
7637 DPATH=$unet_cv_with_dpath
7640 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
7641 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
7643 # Check whether --with-cpath or --without-cpath was given.
7644 if test "${with_cpath+set}" = set; then
7645 withval="$with_cpath"
7646 unet_cv_with_cpath=$with_cpath
7648 if test "${unet_cv_with_cpath+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 unet_cv_with_cpath="ircd.conf"
7656 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
7657 unet_cv_with_cpath="ircd.conf"
7660 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
7661 echo "${ECHO_T}$unet_cv_with_cpath" >&6
7663 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
7664 # Absolute path; check against chroot stuff
7665 if test x"$unet_cv_with_chroot" != xno; then
7666 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7667 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
7669 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
7670 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
7671 { (exit 1); exit 1; }; }
7674 unet_cpath=$unet_cv_with_cpath
7677 unet_cpath=$unet_cv_with_cpath
7681 cat >>confdefs.h <<_ACEOF
7682 #define CPATH "$unet_cpath"
7686 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
7687 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
7689 # Check whether --with-lpath or --without-lpath was given.
7690 if test "${with_lpath+set}" = set; then
7691 withval="$with_lpath"
7692 unet_cv_with_lpath=$with_lpath
7694 if test "${unet_cv_with_lpath+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 unet_cv_with_lpath="ircd.log"
7702 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
7703 unet_cv_with_lpath="ircd.log"
7706 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
7707 echo "${ECHO_T}$unet_cv_with_lpath" >&6
7709 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
7710 # Absolute path; check against chroot stuff
7711 if test x"$unet_cv_with_chroot" != xno; then
7712 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
7713 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
7715 { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
7716 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
7717 unet_cv_with_lpath="ircd.log"
7718 unet_lpath="ircd.log"
7721 unet_lpath=$unet_cv_with_lpath
7724 unet_lpath=$unet_cv_with_lpath
7728 cat >>confdefs.h <<_ACEOF
7729 #define LPATH "$unet_lpath"
7733 unet_maxcon=`ulimit -Hn`
7734 unet_maxcon=`expr $unet_maxcon - 4`
7735 echo "$as_me:$LINENO: checking max connections" >&5
7736 echo $ECHO_N "checking max connections... $ECHO_C" >&6
7738 # Check whether --with-maxcon or --without-maxcon was given.
7739 if test "${with_maxcon+set}" = set; then
7740 withval="$with_maxcon"
7741 unet_cv_with_maxcon=$with_maxcon
7743 if test "${unet_cv_with_maxcon+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 unet_cv_with_maxcon=$unet_maxcon
7751 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
7752 unet_cv_with_maxcon=$unet_maxcon
7755 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
7756 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
7759 cat >>confdefs.h <<_ACEOF
7760 #define MAXCONNECTIONS $unet_cv_with_maxcon
7764 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
7765 ac_config_commands="$ac_config_commands default"
7766 cat >confcache <<\_ACEOF
7767 # This file is a shell script that caches the results of configure
7768 # tests run on this system so they can be shared between configure
7769 # scripts and configure runs, see configure's option --config-cache.
7770 # It is not useful on other systems. If it contains results you don't
7771 # want to keep, you may remove or edit it.
7773 # config.status only pays attention to the cache file if you give it
7774 # the --recheck option to rerun configure.
7776 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7782 # The following way of writing the cache mishandles newlines in values,
7783 # but we know of no workaround that is simple, portable, and efficient.
7784 # So, don't put newlines in cache variables' values.
7785 # Ultrix sh set writes to stderr and can't be redirected directly,
7786 # and sets the high bit in the cache file unless we assign to the vars.
7789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7791 # `set' does not quote correctly, so add quotes (double-quote
7792 # substitution turns \\\\ into \\, and sed turns \\ into \).
7795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7798 # `set' quotes correctly as required by POSIX, so do not add quotes.
7800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7809 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7811 if cmp -s $cache_file confcache; then :; else
7812 if test -w $cache_file; then
7813 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7814 cat confcache >$cache_file
7816 echo "not updating unwritable cache $cache_file"
7821 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7822 # Let make expand exec_prefix.
7823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7827 # trailing colons and then remove the whole line if VPATH becomes empty
7828 # (actually we leave an empty line to preserve line numbers).
7829 if test "x$srcdir" = x.; then
7830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7831 s/:*\$(srcdir):*/:/;
7832 s/:*\${srcdir}:*/:/;
7834 s/^\([^=]*=[ ]*\):*/\1/;
7840 DEFS=-DHAVE_CONFIG_H
7843 : ${CONFIG_STATUS=./config.status}
7844 ac_clean_files_save=$ac_clean_files
7845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7846 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7848 cat >$CONFIG_STATUS <<_ACEOF
7850 # Generated by $as_me.
7851 # Run this file to recreate the current configuration.
7852 # Compiler output produced by configure, useful for debugging
7853 # configure, is in config.log if it exists.
7856 SHELL=\${CONFIG_SHELL-$SHELL}
7859 cat >>$CONFIG_STATUS <<\_ACEOF
7861 ## --------------------- ##
7862 ## M4sh Initialization. ##
7863 ## --------------------- ##
7865 # Be Bourne compatible
7866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7874 # Support unset when possible.
7875 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7881 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7882 { $as_unset LANG || test "${LANG+set}" != set; } ||
7883 { LANG=C; export LANG; }
7884 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7885 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7886 { LC_ALL=C; export LC_ALL; }
7887 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7888 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7889 { LC_TIME=C; export LC_TIME; }
7890 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7891 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7892 { LC_CTYPE=C; export LC_CTYPE; }
7893 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7894 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7895 { LANGUAGE=C; export LANGUAGE; }
7896 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7897 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7898 { LC_COLLATE=C; export LC_COLLATE; }
7899 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7900 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7901 { LC_NUMERIC=C; export LC_NUMERIC; }
7902 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7903 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7904 { LC_MESSAGES=C; export LC_MESSAGES; }
7907 # Name of the executable.
7908 as_me=`(basename "$0") 2>/dev/null ||
7909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7910 X"$0" : 'X\(//\)$' \| \
7911 X"$0" : 'X\(/\)$' \| \
7912 . : '\(.\)' 2>/dev/null ||
7914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7915 /^X\/\(\/\/\)$/{ s//\1/; q; }
7916 /^X\/\(\/\).*/{ s//\1/; q; }
7919 # PATH needs CR, and LINENO needs CR and PATH.
7920 # Avoid depending upon Character Ranges.
7921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7924 as_cr_digits='0123456789'
7925 as_cr_alnum=$as_cr_Letters$as_cr_digits
7927 # The user is always right.
7928 if test "${PATH_SEPARATOR+set}" != set; then
7929 echo "#! /bin/sh" >conftest.sh
7930 echo "exit 0" >>conftest.sh
7931 chmod +x conftest.sh
7932 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
7943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7944 test "x$as_lineno_1" != "x$as_lineno_2" &&
7945 test "x$as_lineno_3" = "x$as_lineno_2" || {
7946 # Find who we are. Look in the path if we contain no path at all
7949 *[\\/]* ) as_myself=$0 ;;
7950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir=.
7955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7960 # We did not find ourselves, most probably we were run as `sh COMMAND'
7961 # in which case we are not to be found in the path.
7962 if test "x$as_myself" = x; then
7965 if test ! -f "$as_myself"; then
7966 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7967 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7968 { (exit 1); exit 1; }; }
7970 case $CONFIG_SHELL in
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7976 test -z "$as_dir" && as_dir=.
7977 for as_base in sh bash ksh sh5; do
7980 if ("$as_dir/$as_base" -c '
7983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7984 test "x$as_lineno_1" != "x$as_lineno_2" &&
7985 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7986 CONFIG_SHELL=$as_dir/$as_base
7988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7997 # uniformly replaced by the line number. The first 'sed' inserts a
7998 # line-number line before each line; the second 'sed' does the real
7999 # work. The second script uses 'N' to pair each line-number line
8000 # with the numbered line, and appends trailing '-' during
8001 # substitution so that $LINENO is not a special case at line end.
8002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8004 sed '=' <$as_myself |
8009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8012 s,^['$as_cr_digits']*\n,,
8014 chmod +x $as_me.lineno ||
8015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8017 { (exit 1); exit 1; }; }
8019 # Don't try to exec as it changes $[0], causing all sort of problems
8020 # (the dirname of $[0] is not the place where we might find the
8021 # original and so on. Autoconf is especially sensible to this).
8023 # Exit status is that of the last command.
8028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8029 *c*,-n*) ECHO_N= ECHO_C='
8031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8035 if expr a : '\(a\)' >/dev/null 2>&1; then
8041 rm -f conf$$ conf$$.exe conf$$.file
8043 if ln -s conf$$.file conf$$ 2>/dev/null; then
8044 # We could just check for DJGPP; but this test a) works b) is more generic
8045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8046 if test -f conf$$.exe; then
8047 # Don't use ln at all; we don't have any links
8052 elif ln conf$$.file conf$$ 2>/dev/null; then
8057 rm -f conf$$ conf$$.exe conf$$.file
8059 as_executable_p="test -f"
8061 # Sed expression to map a string onto a valid CPP name.
8062 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8064 # Sed expression to map a string onto a valid variable name.
8065 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8069 # We need space, tab and new line, in precisely that order.
8075 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8080 # report actual input values of CONFIG_FILES etc. instead of their
8081 # values after options handling. Logging --version etc. is OK.
8085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8086 ## Running $as_me. ##
8091 This file was extended by $as_me, which was
8092 generated by GNU Autoconf 2.53. Invocation command line was
8094 CONFIG_FILES = $CONFIG_FILES
8095 CONFIG_HEADERS = $CONFIG_HEADERS
8096 CONFIG_LINKS = $CONFIG_LINKS
8097 CONFIG_COMMANDS = $CONFIG_COMMANDS
8101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8105 # Files that config.status was made for.
8106 if test -n "$ac_config_files"; then
8107 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8110 if test -n "$ac_config_headers"; then
8111 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8114 if test -n "$ac_config_links"; then
8115 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8118 if test -n "$ac_config_commands"; then
8119 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8122 cat >>$CONFIG_STATUS <<\_ACEOF
8125 \`$as_me' instantiates files from templates according to the
8126 current configuration.
8128 Usage: $0 [OPTIONS] [FILE]...
8130 -h, --help print this help, then exit
8131 -V, --version print version number, then exit
8132 -d, --debug don't remove temporary files
8133 --recheck update $as_me by reconfiguring in the same conditions
8134 --file=FILE[:TEMPLATE]
8135 instantiate the configuration file FILE
8136 --header=FILE[:TEMPLATE]
8137 instantiate the configuration header FILE
8139 Configuration files:
8142 Configuration headers:
8145 Configuration commands:
8148 Report bugs to <bug-autoconf@gnu.org>."
8151 cat >>$CONFIG_STATUS <<_ACEOF
8154 configured by $0, generated by GNU Autoconf 2.53,
8155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8157 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8158 Free Software Foundation, Inc.
8159 This config.status script is free software; the Free Software Foundation
8160 gives unlimited permission to copy, distribute and modify it."
8165 cat >>$CONFIG_STATUS <<\_ACEOF
8166 # If no file are specified by the user, then we need to provide default
8167 # value. By we need to know if files were specified by the user.
8173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8180 *) # This is not an option, so the user has probably given explicit
8182 ac_need_defaults=false;;
8186 # Handling of the options.
8188 cat >>$CONFIG_STATUS <<_ACEOF
8189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8190 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8191 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8193 cat >>$CONFIG_STATUS <<\_ACEOF
8194 --version | --vers* | -V )
8195 echo "$ac_cs_version"; exit 0 ;;
8197 # Conflict between --help and --header
8198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8199 Try \`$0 --help' for more information." >&5
8200 echo "$as_me: error: ambiguous option: $1
8201 Try \`$0 --help' for more information." >&2;}
8202 { (exit 1); exit 1; }; };;
8203 --help | --hel | -h )
8204 echo "$ac_cs_usage"; exit 0 ;;
8205 --debug | --d* | -d )
8207 --file | --fil | --fi | --f )
8209 CONFIG_FILES="$CONFIG_FILES $1"
8210 ac_need_defaults=false;;
8211 --header | --heade | --head | --hea )
8213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8214 ac_need_defaults=false;;
8217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8218 Try \`$0 --help' for more information." >&5
8219 echo "$as_me: error: unrecognized option: $1
8220 Try \`$0 --help' for more information." >&2;}
8221 { (exit 1); exit 1; }; } ;;
8223 *) ac_config_targets="$ac_config_targets $1" ;;
8235 cat >>$CONFIG_STATUS <<\_ACEOF
8236 for ac_config_target in $ac_config_targets
8238 case "$ac_config_target" in
8239 # Handling of arguments.
8240 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8241 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
8242 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8243 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8244 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8247 { (exit 1); exit 1; }; };;
8251 # If the user did not use the arguments to specify the items to instantiate,
8252 # then the envvar interface is used. Set only those that are not.
8253 # We use the long form for the default assignment because of an extremely
8254 # bizarre bug on SunOS 4.1.3.
8255 if $ac_need_defaults; then
8256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8261 # Create a temporary directory, and hook for its removal unless debugging.
8264 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8265 trap '{ (exit 1); exit 1; }' 1 2 13 15
8268 # Create a (secure) tmp directory for tmp files.
8271 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8272 test -n "$tmp" && test -d "$tmp"
8275 tmp=$TMPDIR/cs$$-$RANDOM
8276 (umask 077 && mkdir $tmp)
8279 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8280 { (exit 1); exit 1; }
8285 cat >>$CONFIG_STATUS <<_ACEOF
8288 # CONFIG_FILES section.
8291 # No need to generate the scripts if there are no CONFIG_FILES.
8292 # This happens for instance when ./config.status config.h
8293 if test -n "\$CONFIG_FILES"; then
8294 # Protect against being on the right side of a sed subst in config.status.
8295 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8296 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8297 s,@SHELL@,$SHELL,;t t
8298 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8299 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8300 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8301 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8302 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8303 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8304 s,@exec_prefix@,$exec_prefix,;t t
8305 s,@prefix@,$prefix,;t t
8306 s,@program_transform_name@,$program_transform_name,;t t
8307 s,@bindir@,$bindir,;t t
8308 s,@sbindir@,$sbindir,;t t
8309 s,@libexecdir@,$libexecdir,;t t
8310 s,@datadir@,$datadir,;t t
8311 s,@sysconfdir@,$sysconfdir,;t t
8312 s,@sharedstatedir@,$sharedstatedir,;t t
8313 s,@localstatedir@,$localstatedir,;t t
8314 s,@libdir@,$libdir,;t t
8315 s,@includedir@,$includedir,;t t
8316 s,@oldincludedir@,$oldincludedir,;t t
8317 s,@infodir@,$infodir,;t t
8318 s,@mandir@,$mandir,;t t
8319 s,@build_alias@,$build_alias,;t t
8320 s,@host_alias@,$host_alias,;t t
8321 s,@target_alias@,$target_alias,;t t
8323 s,@ECHO_C@,$ECHO_C,;t t
8324 s,@ECHO_N@,$ECHO_N,;t t
8325 s,@ECHO_T@,$ECHO_T,;t t
8327 s,@build@,$build,;t t
8328 s,@build_cpu@,$build_cpu,;t t
8329 s,@build_vendor@,$build_vendor,;t t
8330 s,@build_os@,$build_os,;t t
8332 s,@host_cpu@,$host_cpu,;t t
8333 s,@host_vendor@,$host_vendor,;t t
8334 s,@host_os@,$host_os,;t t
8336 s,@CFLAGS@,$CFLAGS,;t t
8337 s,@LDFLAGS@,$LDFLAGS,;t t
8338 s,@CPPFLAGS@,$CPPFLAGS,;t t
8339 s,@ac_ct_CC@,$ac_ct_CC,;t t
8340 s,@EXEEXT@,$EXEEXT,;t t
8341 s,@OBJEXT@,$OBJEXT,;t t
8344 s,@SET_MAKE@,$SET_MAKE,;t t
8345 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8346 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8349 s,@RMPROG@,$RMPROG,;t t
8350 s,@SHPROG@,$SHPROG,;t t
8351 s,@OSDEP_C@,$OSDEP_C,;t t
8352 s,@ENGINE_C@,$ENGINE_C,;t t
8353 s,@subdirs@,$subdirs,;t t
8354 s,@RES_C@,$RES_C,;t t
8355 s,@ADNS_SUBDIR@,$ADNS_SUBDIR,;t t
8356 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
8357 s,@SYMLINK@,$SYMLINK,;t t
8358 s,@IRCDMODE@,$IRCDMODE,;t t
8359 s,@IRCDOWN@,$IRCDOWN,;t t
8360 s,@IRCDGRP@,$IRCDGRP,;t t
8361 s,@DPATH@,$DPATH,;t t
8366 cat >>$CONFIG_STATUS <<\_ACEOF
8367 # Split the substitutions into bite-sized pieces for seds with
8368 # small command number limits, like on Digital OSF/1 and HP-UX.
8370 ac_sed_frag=1 # Number of current file.
8371 ac_beg=1 # First line for current file.
8372 ac_end=$ac_max_sed_lines # Line after last line for current file.
8375 while $ac_more_lines; do
8376 if test $ac_beg -gt 1; then
8377 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8379 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8381 if test ! -s $tmp/subs.frag; then
8384 # The purpose of the label and of the branching condition is to
8385 # speed up the sed processing (if there are no `@' at all, there
8386 # is no need to browse any of the substitutions).
8387 # These are the two extra sed commands mentioned above.
8389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8390 if test -z "$ac_sed_cmds"; then
8391 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8393 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8395 ac_sed_frag=`expr $ac_sed_frag + 1`
8397 ac_end=`expr $ac_end + $ac_max_sed_lines`
8400 if test -z "$ac_sed_cmds"; then
8403 fi # test -n "$CONFIG_FILES"
8406 cat >>$CONFIG_STATUS <<\_ACEOF
8407 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8410 - | *:- | *:-:* ) # input from stdin
8412 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8414 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8416 * ) ac_file_in=$ac_file.in ;;
8419 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8420 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8422 X"$ac_file" : 'X\(//\)[^/]' \| \
8423 X"$ac_file" : 'X\(//\)$' \| \
8424 X"$ac_file" : 'X\(/\)' \| \
8425 . : '\(.\)' 2>/dev/null ||
8427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8429 /^X\(\/\/\)$/{ s//\1/; q; }
8430 /^X\(\/\).*/{ s//\1/; q; }
8433 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8437 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8438 case $as_mkdir_dir in
8439 # Skip DOS drivespec
8440 ?:) as_incr_dir=$as_mkdir_dir ;;
8442 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8443 test -d "$as_incr_dir" ||
8444 mkdir "$as_incr_dir" ||
8445 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8446 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8447 { (exit 1); exit 1; }; }
8454 if test "$ac_dir" != .; then
8455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8456 # A "../" for each directory in $ac_dir_suffix.
8457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8459 ac_dir_suffix= ac_top_builddir=
8463 .) # No --srcdir option. We are building in place.
8465 if test -z "$ac_top_builddir"; then
8468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8470 [\\/]* | ?:[\\/]* ) # Absolute path.
8471 ac_srcdir=$srcdir$ac_dir_suffix;
8472 ac_top_srcdir=$srcdir ;;
8474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8477 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8479 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8480 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8481 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8482 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8487 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8490 if test x"$ac_file" != x-; then
8491 { echo "$as_me:$LINENO: creating $ac_file" >&5
8492 echo "$as_me: creating $ac_file" >&6;}
8495 # Let's still pretend it is `configure' which instantiates (i.e., don't
8496 # use $as_me), people would be surprised to read:
8497 # /* config.h. Generated by config.status. */
8498 if test x"$ac_file" = x-; then
8501 configure_input="$ac_file. "
8503 configure_input=$configure_input"Generated from `echo $ac_file_in |
8504 sed 's,.*/,,'` by configure."
8506 # First look for the input files in the build tree, otherwise in the
8508 ac_file_inputs=`IFS=:
8509 for f in $ac_file_in; do
8511 -) echo $tmp/stdin ;;
8513 # Absolute (can't be DOS-style, as IFS=:)
8514 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8515 echo "$as_me: error: cannot find input file: $f" >&2;}
8516 { (exit 1); exit 1; }; }
8519 if test -f "$f"; then
8522 elif test -f "$srcdir/$f"; then
8527 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8528 echo "$as_me: error: cannot find input file: $f" >&2;}
8529 { (exit 1); exit 1; }; }
8532 done` || { (exit 1); exit 1; }
8534 cat >>$CONFIG_STATUS <<_ACEOF
8538 cat >>$CONFIG_STATUS <<\_ACEOF
8540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8541 s,@configure_input@,$configure_input,;t t
8542 s,@srcdir@,$ac_srcdir,;t t
8543 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8544 s,@top_srcdir@,$ac_top_srcdir,;t t
8545 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8546 s,@builddir@,$ac_builddir,;t t
8547 s,@abs_builddir@,$ac_abs_builddir,;t t
8548 s,@top_builddir@,$ac_top_builddir,;t t
8549 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8550 s,@INSTALL@,$ac_INSTALL,;t t
8551 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8553 if test x"$ac_file" != x-; then
8554 mv $tmp/out $ac_file
8562 cat >>$CONFIG_STATUS <<\_ACEOF
8565 # CONFIG_HEADER section.
8568 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8569 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8571 # ac_d sets the value in "#define NAME VALUE" lines.
8572 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8573 ac_dB='[ ].*$,\1#\2'
8576 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8577 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8578 ac_uB='$,\1#\2define\3'
8582 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8585 - | *:- | *:-:* ) # input from stdin
8587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8591 * ) ac_file_in=$ac_file.in ;;
8594 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8595 echo "$as_me: creating $ac_file" >&6;}
8597 # First look for the input files in the build tree, otherwise in the
8599 ac_file_inputs=`IFS=:
8600 for f in $ac_file_in; do
8602 -) echo $tmp/stdin ;;
8604 # Absolute (can't be DOS-style, as IFS=:)
8605 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8606 echo "$as_me: error: cannot find input file: $f" >&2;}
8607 { (exit 1); exit 1; }; }
8610 if test -f "$f"; then
8613 elif test -f "$srcdir/$f"; then
8618 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8619 echo "$as_me: error: cannot find input file: $f" >&2;}
8620 { (exit 1); exit 1; }; }
8623 done` || { (exit 1); exit 1; }
8624 # Remove the trailing spaces.
8625 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8629 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8630 # `conftest.undefs', that substitutes the proper values into
8631 # config.h.in to produce config.h. The first handles `#define'
8632 # templates, and the second `#undef' templates.
8633 # And first: Protect against being on the right side of a sed subst in
8634 # config.status. Protect against being in an unquoted here document
8636 rm -f conftest.defines conftest.undefs
8637 # Using a here document instead of a string reduces the quoting nightmare.
8638 # Putting comments in sed scripts is not portable.
8640 # `end' is used to avoid that the second main sed command (meant for
8641 # 0-ary CPP macros) applies to n-ary macro definitions.
8642 # See the Autoconf documentation for `clear'.
8643 cat >confdef2sed.sed <<\_ACEOF
8648 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8650 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8653 # If some macros were called several times there might be several times
8654 # the same #defines, which is useless. Nevertheless, we may not want to
8655 # sort them, since we want the *last* AC-DEFINE to be honored.
8656 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8657 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8658 rm -f confdef2sed.sed
8660 # This sed command replaces #undef with comments. This is necessary, for
8661 # example, in the case of _POSIX_SOURCE, which is predefined and required
8662 # on some systems where configure will not decide to define it.
8663 cat >>conftest.undefs <<\_ACEOF
8664 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8667 # Break up conftest.defines because some shells have a limit on the size
8668 # of here documents, and old seds have small limits too (100 cmds).
8669 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8670 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8671 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8672 echo ' :' >>$CONFIG_STATUS
8674 while grep . conftest.defines >/dev/null
8676 # Write a limited-size here document to $tmp/defines.sed.
8677 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8678 # Speed up: don't consider the non `#define' lines.
8679 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8680 # Work around the forget-to-reset-the-flag bug.
8681 echo 't clr' >>$CONFIG_STATUS
8682 echo ': clr' >>$CONFIG_STATUS
8683 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8685 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8689 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8690 rm -f conftest.defines
8691 mv conftest.tail conftest.defines
8693 rm -f conftest.defines
8694 echo ' fi # egrep' >>$CONFIG_STATUS
8695 echo >>$CONFIG_STATUS
8697 # Break up conftest.undefs because some shells have a limit on the size
8698 # of here documents, and old seds have small limits too (100 cmds).
8699 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8701 while grep . conftest.undefs >/dev/null
8703 # Write a limited-size here document to $tmp/undefs.sed.
8704 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8705 # Speed up: don't consider the non `#undef'
8706 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8707 # Work around the forget-to-reset-the-flag bug.
8708 echo 't clr' >>$CONFIG_STATUS
8709 echo ': clr' >>$CONFIG_STATUS
8710 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8712 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8716 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8717 rm -f conftest.undefs
8718 mv conftest.tail conftest.undefs
8720 rm -f conftest.undefs
8722 cat >>$CONFIG_STATUS <<\_ACEOF
8723 # Let's still pretend it is `configure' which instantiates (i.e., don't
8724 # use $as_me), people would be surprised to read:
8725 # /* config.h. Generated by config.status. */
8726 if test x"$ac_file" = x-; then
8727 echo "/* Generated by configure. */" >$tmp/config.h
8729 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8731 cat $tmp/in >>$tmp/config.h
8733 if test x"$ac_file" != x-; then
8734 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8735 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8736 echo "$as_me: $ac_file is unchanged" >&6;}
8738 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8740 X"$ac_file" : 'X\(//\)[^/]' \| \
8741 X"$ac_file" : 'X\(//\)$' \| \
8742 X"$ac_file" : 'X\(/\)' \| \
8743 . : '\(.\)' 2>/dev/null ||
8745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8747 /^X\(\/\/\)$/{ s//\1/; q; }
8748 /^X\(\/\).*/{ s//\1/; q; }
8751 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8755 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8756 case $as_mkdir_dir in
8757 # Skip DOS drivespec
8758 ?:) as_incr_dir=$as_mkdir_dir ;;
8760 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8761 test -d "$as_incr_dir" ||
8762 mkdir "$as_incr_dir" ||
8763 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8764 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8765 { (exit 1); exit 1; }; }
8771 mv $tmp/config.h $ac_file
8779 cat >>$CONFIG_STATUS <<\_ACEOF
8782 # CONFIG_COMMANDS section.
8784 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8785 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8786 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8787 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8788 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8789 X"$ac_dest" : 'X\(//\)[^/]' \| \
8790 X"$ac_dest" : 'X\(//\)$' \| \
8791 X"$ac_dest" : 'X\(/\)' \| \
8792 . : '\(.\)' 2>/dev/null ||
8794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8796 /^X\(\/\/\)$/{ s//\1/; q; }
8797 /^X\(\/\).*/{ s//\1/; q; }
8801 if test "$ac_dir" != .; then
8802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8803 # A "../" for each directory in $ac_dir_suffix.
8804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8806 ac_dir_suffix= ac_top_builddir=
8810 .) # No --srcdir option. We are building in place.
8812 if test -z "$ac_top_builddir"; then
8815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8817 [\\/]* | ?:[\\/]* ) # Absolute path.
8818 ac_srcdir=$srcdir$ac_dir_suffix;
8819 ac_top_srcdir=$srcdir ;;
8821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8824 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8826 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8827 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8828 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8829 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8832 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8833 echo "$as_me: executing $ac_dest commands" >&6;}
8835 default ) echo timestamp > stamp-h ;;
8840 cat >>$CONFIG_STATUS <<\_ACEOF
8842 { (exit 0); exit 0; }
8844 chmod +x $CONFIG_STATUS
8845 ac_clean_files=$ac_clean_files_save
8848 # configure is writing to config.log, and then calls config.status.
8849 # config.status does its own redirection, appending to config.log.
8850 # Unfortunately, on DOS this fails, as config.log is still kept open
8851 # by configure, so config.status won't be able to write to it; its
8852 # output is simply discarded. So we exec the FD to /dev/null,
8853 # effectively closing config.log, so it can be properly (re)opened and
8854 # appended to by config.status. When coming back to configure, we
8855 # need to make the FD available again.
8856 if test "$no_create" != yes; then
8859 $SHELL $CONFIG_STATUS || ac_cs_success=false
8861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8862 # would make configure fail if this is the last instruction.
8863 $ac_cs_success || { (exit 1); exit 1; }
8867 # CONFIG_SUBDIRS section.
8869 if test "$no_recursion" != yes; then
8871 # Remove --cache-file and --srcdir arguments so they do not pile up.
8872 ac_sub_configure_args=
8874 for ac_arg in $ac_configure_args; do
8875 if test -n "$ac_prev"; then
8880 -cache-file | --cache-file | --cache-fil | --cache-fi \
8881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8882 ac_prev=cache_file ;;
8883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8887 --config-cache | -C)
8889 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8891 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8893 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8895 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8897 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8901 # Always prepend --prefix to ensure using the same prefix
8902 # in subdir configurations.
8903 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8906 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8908 # Do not complain, so a configure script can configure whichever
8909 # parts of a large source tree are present.
8910 test -d $srcdir/$ac_dir || continue
8912 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8913 echo "$as_me: configuring in $ac_dir" >&6;}
8915 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8919 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8920 case $as_mkdir_dir in
8921 # Skip DOS drivespec
8922 ?:) as_incr_dir=$as_mkdir_dir ;;
8924 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8925 test -d "$as_incr_dir" ||
8926 mkdir "$as_incr_dir" ||
8927 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8928 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8929 { (exit 1); exit 1; }; }
8936 if test "$ac_dir" != .; then
8937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8938 # A "../" for each directory in $ac_dir_suffix.
8939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8941 ac_dir_suffix= ac_top_builddir=
8945 .) # No --srcdir option. We are building in place.
8947 if test -z "$ac_top_builddir"; then
8950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8952 [\\/]* | ?:[\\/]* ) # Absolute path.
8953 ac_srcdir=$srcdir$ac_dir_suffix;
8954 ac_top_srcdir=$srcdir ;;
8956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8969 # Check for guested configure; otherwise get Cygnus style configure.
8970 if test -f $ac_srcdir/configure.gnu; then
8971 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8972 elif test -f $ac_srcdir/configure; then
8973 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8974 elif test -f $ac_srcdir/configure.in; then
8975 ac_sub_configure=$ac_configure
8977 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8982 # The recursion is here.
8983 if test -n "$ac_sub_configure"; then
8984 # Make the cache file name correct relative to the subdirectory.
8986 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8988 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8991 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8992 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8993 # The eval makes quoting arguments work.
8994 eval $ac_sub_configure $ac_sub_configure_args \
8995 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8996 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8997 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8998 { (exit 1); exit 1; }; }
9006 ac_config_commands="$ac_config_commands default-1"