2 # From configure.in Revision: 1.188.2.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-smb enable possibly-buggy SMB printer default=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir=.
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_must_keep_next=false
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 -* ) ac_must_keep_next=true ;;
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -n "$ac_subst_files"; then
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1110 if test -s confdefs.h; then
1117 sed "/^$/d" confdefs.h | sort
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1200 # Check that the precious variables saved in the cache have kept the same
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1282 elif test -f $ac_dir/install.sh; then
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1286 elif test -f $ac_dir/shtool; then
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1374 if test -z "$CC" ; then
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 if test $SHLICC2 = yes ; then
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1467 if test -z "$ac_cv_prog_CC"; then
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CC" && break
1686 if test -z "$CC"; then
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CC" && break
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1799 test -f "$ac_file" || continue
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 # This is the source file.
1807 # We found the default executable, but exeext='' is most
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 if test "$cross_compiling" = maybe; then
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 ac_cv_prog_cc_stdc=no
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2107 s = g (p, va_arg (v,int));
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2154 rm -f conftest.$ac_objext
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2161 case "x$ac_cv_prog_cc_stdc" in
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2334 int frob(int, char *)
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 ac_cv_lbl_cc_ansi_prototypes=no
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2385 int frob(int, char *)
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2444 V_CCOPT="$V_CCOPT -std1 -O"
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2464 struct a { int b; };
2465 void c(const struct a *)
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 ac_cv_lbl_cc_const_proto=no
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_lbl_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 for ac_lbl_inline in inline __inline__ __inline
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #define inline $ac_lbl_inline
2522 static inline struct iltest *foo(void);
2528 static inline struct iltest *
2531 static struct iltest xxx;
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_lbl_cc_inline=yes
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562 if test "$ac_lbl_cc_inline" = yes ; then
2566 if test "$ac_lbl_cc_inline" = yes ; then
2567 ac_cv_lbl_inline=$ac_lbl_inline
2571 if test ! -z "$ac_cv_lbl_inline" ; then
2572 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2579 cat >>confdefs.h <<_ACEOF
2580 #define inline $ac_cv_lbl_inline
2584 echo "$as_me:$LINENO: checking for __attribute__" >&5
2585 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586 if test "${ac_cv___attribute__+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2600 static void foo(void) __attribute__ ((noreturn));
2609 main(int argc, char **argv)
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv___attribute__=yes
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 ac_cv___attribute__=no
2634 rm -f conftest.$ac_objext conftest.$ac_ext
2637 if test "$ac_cv___attribute__" = "yes"; then
2639 cat >>confdefs.h <<\_ACEOF
2640 #define HAVE___ATTRIBUTE__ 1
2643 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2645 V_DEFS="$V_DEFS -D_U_=\"\""
2647 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2648 echo "${ECHO_T}$ac_cv___attribute__" >&6
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2661 if test -z "$CPP"; then
2662 if test "${ac_cv_prog_CPP+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 # Double quotes because CPP needs to be expanded
2666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2669 for ac_c_preproc_warn_flag in '' yes
2671 # Use a header file that comes with gcc, so configuring glibc
2672 # with a fresh cross-compiler works.
2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674 # <limits.h> exists even on freestanding compilers.
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp. "Syntax error" is here to catch this case.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2685 # include <limits.h>
2687 # include <assert.h>
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev/null; then
2699 if test -s conftest.err; then
2700 ac_cpp_err=$ac_c_preproc_warn_flag
2707 if test -z "$ac_cpp_err"; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 # Broken: fails on valid input.
2716 rm -f conftest.err conftest.$ac_ext
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 # Passes both tests.
2756 rm -f conftest.err conftest.$ac_ext
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2776 for ac_c_preproc_warn_flag in '' yes
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2792 # include <limits.h>
2794 # include <assert.h>
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2814 if test -z "$ac_cpp_err"; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 # Broken: fails on valid input.
2823 rm -f conftest.err conftest.$ac_ext
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 # Passes both tests.
2863 rm -f conftest.err conftest.$ac_ext
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891 then ac_cv_prog_egrep='grep -E'
2892 else ac_cv_prog_egrep='egrep'
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897 EGREP=$ac_cv_prog_egrep
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_header_stdc=yes
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_cv_header_stdc=no
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "memchr" >/dev/null 2>&1; then
2962 ac_cv_header_stdc=no
2968 if test $ac_cv_header_stdc = yes; then
2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev/null 2>&1; then
2984 ac_cv_header_stdc=no
2990 if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 ac_cv_header_stdc=no
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3088 #include <$ac_header>
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 eval "$as_ac_Header=no"
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3126 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3130 echo "$as_me:$LINENO: checking for $ac_header" >&5
3131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3138 # Is the header compilable?
3139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 $ac_includes_default
3149 #include <$ac_header>
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_header_compiler=yes
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_header_compiler=no
3170 rm -f conftest.$ac_objext conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3172 echo "${ECHO_T}$ac_header_compiler" >&6
3174 # Is the header present?
3175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 #include <$ac_header>
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null; then
3194 if test -s conftest.err; then
3195 ac_cpp_err=$ac_c_preproc_warn_flag
3202 if test -z "$ac_cpp_err"; then
3203 ac_header_preproc=yes
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 ac_header_preproc=no
3210 rm -f conftest.err conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212 echo "${ECHO_T}$ac_header_preproc" >&6
3214 # So? What about this header?
3215 case $ac_header_compiler:$ac_header_preproc in
3217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3223 ## ------------------------------------ ##
3224 ## Report this to bug-autoconf@gnu.org. ##
3225 ## ------------------------------------ ##
3228 sed "s/^/$as_me: WARNING: /" >&2
3231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3239 ## ------------------------------------ ##
3240 ## Report this to bug-autoconf@gnu.org. ##
3241 ## ------------------------------------ ##
3244 sed "s/^/$as_me: WARNING: /" >&2
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 eval "$as_ac_Header=$ac_header_preproc"
3254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3259 cat >>confdefs.h <<_ACEOF
3260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3268 for ac_header in netinet/if_ether.h
3270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3271 echo "$as_me:$LINENO: checking for $ac_header" >&5
3272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line $LINENO "configure"
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <sys/types.h>
3284 #include <sys/socket.h>
3286 #include <$ac_header>
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 eval "$as_ac_Header=yes"
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 eval "$as_ac_Header=no"
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3312 cat >>confdefs.h <<_ACEOF
3313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3320 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3322 # The simple test didn't work.
3323 # Do we need to include <net/if.h> first?
3324 # Unset ac_cv_header_netinet_if_ether_h so we don't
3325 # treat the previous failure as a cached value and
3326 # suppress the next test.
3328 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3329 echo "$as_me: Rechecking with some additional includes" >&6;}
3330 unset ac_cv_header_netinet_if_ether_h
3332 for ac_header in netinet/if_ether.h
3334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3335 echo "$as_me:$LINENO: checking for $ac_header" >&5
3336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <sys/types.h>
3348 #include <sys/socket.h>
3349 #include <netinet/in.h>
3354 #include <$ac_header>
3356 rm -f conftest.$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358 (eval $ac_compile) 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 eval "$as_ac_Header=yes"
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 eval "$as_ac_Header=no"
3375 rm -f conftest.$ac_objext conftest.$ac_ext
3377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3380 cat >>confdefs.h <<_ACEOF
3381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3390 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3391 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3392 if test "${ac_cv_header_time+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <sys/types.h>
3403 #include <sys/time.h>
3409 if ((struct tm *) 0)
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 ac_cv_header_time=yes
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 ac_cv_header_time=no
3434 rm -f conftest.$ac_objext conftest.$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3437 echo "${ECHO_T}$ac_cv_header_time" >&6
3438 if test $ac_cv_header_time = yes; then
3440 cat >>confdefs.h <<\_ACEOF
3441 #define TIME_WITH_SYS_TIME 1
3450 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3451 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3452 if test "$cross_compiling" = yes; then
3453 if test "${ac_cv_linux_vers+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 ac_cv_linux_vers=unknown
3460 if test "${ac_cv_linux_vers+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_linux_vers=`uname -r 2>&1 | \
3464 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3468 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3469 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3470 if test $ac_cv_linux_vers = unknown ; then
3471 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3472 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3473 { (exit 1); exit 1; }; }
3475 if test $ac_cv_linux_vers -lt 2 ; then
3476 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3477 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3478 { (exit 1); exit 1; }; }
3488 for ac_header in smi.h
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 $ac_includes_default
3511 #include <$ac_header>
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_header_compiler=yes
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_header_compiler=no
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <$ac_header>
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3564 if test -z "$ac_cpp_err"; then
3565 ac_header_preproc=yes
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_header_preproc=no
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3576 # So? What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3590 sed "s/^/$as_me: WARNING: /" >&2
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3606 sed "s/^/$as_me: WARNING: /" >&2
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 eval "$as_ac_Header=$ac_header_preproc"
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621 cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3630 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3631 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3632 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 ac_check_lib_save_LIBS=$LIBS
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3660 rm -f conftest.$ac_objext 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); } &&
3666 { ac_try='test -s conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_lib_smi_smiInit=yes
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 ac_cv_lib_smi_smiInit=no
3679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 LIBS=$ac_check_lib_save_LIBS
3682 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3683 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3684 if test $ac_cv_lib_smi_smiInit = yes; then
3685 cat >>confdefs.h <<_ACEOF
3686 #define HAVE_LIBSMI 1
3693 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3695 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3696 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3697 if test "$cross_compiling" = yes; then
3698 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3699 echo "${ECHO_T}not when cross-compiling" >&6
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* libsmi available check */
3714 int current, revision, age, n;
3715 const int required = 2;
3718 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3720 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3723 if (required < current - age || required > current)
3729 rm -f conftest$ac_exeext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731 (eval $ac_link) 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6
3742 cat >>confdefs.h <<\_ACEOF
3748 echo "$as_me: program exited with status $ac_status" >&5
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3754 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3755 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3756 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3757 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3758 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3759 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3760 4) echo "$as_me:$LINENO: result: no - too old" >&5
3761 echo "${ECHO_T}no - too old" >&6 ;;
3762 *) echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6 ;;
3767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3771 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3773 # Check whether --enable-smb or --disable-smb was given.
3774 if test "${enable_smb+set}" = set; then
3775 enableval="$enable_smb"
3780 case "$enableval" in
3781 yes) echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3785 cat >>confdefs.h <<\_ACEOF
3786 #define TCPDUMP_DO_SMB 1
3789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3791 *) echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3797 # Check whether --with-user or --without-user was given.
3798 if test "${with_user+set}" = set; then
3799 withval="$with_user"
3802 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3804 if test ! -z "$with_user" ; then
3805 cat >>confdefs.h <<_ACEOF
3806 #define WITH_USER "$withval"
3809 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810 echo "${ECHO_T}to \"$withval\"" >&6
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3817 # Check whether --with-chroot or --without-chroot was given.
3818 if test "${with_chroot+set}" = set; then
3819 withval="$with_chroot"
3822 echo "$as_me:$LINENO: checking whether to chroot" >&5
3823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3824 if test ! -z "$with_chroot" ; then
3825 cat >>confdefs.h <<_ACEOF
3826 #define WITH_CHROOT "$withval"
3829 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3830 echo "${ECHO_T}to \"$withval\"" >&6
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3836 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3837 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3838 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3839 if test "${enable_ipv6+set}" = set; then
3840 enableval="$enable_ipv6"
3841 case "$enableval" in
3842 yes) echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6
3844 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3845 cat >>confdefs.h <<\_ACEOF
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3858 if test "$cross_compiling" = yes; then
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 /* AF_INET6 available check */
3872 #include <sys/types.h>
3873 #include <sys/socket.h>
3876 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3883 rm -f conftest$ac_exeext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885 (eval $ac_link) 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6
3896 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3897 cat >>confdefs.h <<\_ACEOF
3903 echo "$as_me: program exited with status $ac_status" >&5
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3908 echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3912 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3920 if test "$ipv6" = "yes"; then
3921 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3922 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3923 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <netinet/in.h>
3934 #ifdef IPV6_INRIA_VERSION
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "yes" >/dev/null 2>&1; then
3941 CFLAGS="-DINET6 $CFLAGS"
3947 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <netinet/in.h>
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960 $EGREP "yes" >/dev/null 2>&1; then
3963 ipv6libdir=/usr/local/v6/lib;
3965 CFLAGS="-DINET6 $CFLAGS"
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <features.h>
3979 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 $EGREP "yes" >/dev/null 2>&1; then
3986 CFLAGS="-DINET6 $CFLAGS"
3992 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3995 ipv6libdir=/usr/inet6/lib
3997 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <sys/param.h>
4009 #ifdef _TOSHIBA_INET6
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "yes" >/dev/null 2>&1; then
4017 ipv6libdir=/usr/local/v6/lib;
4018 CFLAGS="-DINET6 $CFLAGS"
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include </usr/local/v6/include/sys/v6config.h>
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 $EGREP "yes" >/dev/null 2>&1; then
4040 ipv6libdir=/usr/local/v6/lib;
4041 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <sys/param.h>
4055 #ifdef _ZETA_MINAMI_INET6
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 $EGREP "yes" >/dev/null 2>&1; then
4063 ipv6libdir=/usr/local/v6/lib;
4064 CFLAGS="-DINET6 $CFLAGS"
4070 if test "$ipv6type" != "unknown"; then
4074 echo "$as_me:$LINENO: result: $ipv6type" >&5
4075 echo "${ECHO_T}$ipv6type" >&6
4078 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4079 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4080 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4081 echo "You have $ipv6lib library, using it"
4083 if test "$ipv6trylibc" = "yes"; then
4084 echo "You do not have $ipv6lib library, using libc"
4086 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4087 echo "You need to fetch lib$ipv6lib.a from appropriate"
4088 echo 'ipv6 kit and compile beforehand.'
4095 if test "$ipv6" = "yes"; then
4097 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4098 # function in libc; there are "ngetaddrinfo()" and
4099 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4100 # "getaddrinfo" to be either "ngetaddrinfo" or
4101 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4102 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4104 # So this test doesn't work on Tru64 5.1, and possibly
4105 # on other 5.x releases. This causes the configure
4106 # script to become confused, and results in libpcap
4107 # being unbuildable.
4109 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4110 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4111 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 ac_func_search_save_LIBS=$LIBS
4115 ac_cv_search_getaddrinfo=no
4116 cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4124 /* Override any gcc2 internal prototype to avoid an error. */
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130 char getaddrinfo ();
4139 rm -f conftest.$ac_objext conftest$ac_exeext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141 (eval $ac_link) 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -s conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_cv_search_getaddrinfo="none required"
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4158 if test "$ac_cv_search_getaddrinfo" = no; then
4159 for ac_lib in socket; do
4160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4161 cat >conftest.$ac_ext <<_ACEOF
4162 #line $LINENO "configure"
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4175 char getaddrinfo ();
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186 (eval $ac_link) 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_search_getaddrinfo="-l$ac_lib"
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_func_search_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4209 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4210 if test "$ac_cv_search_getaddrinfo" != no; then
4211 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4212 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4213 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4214 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test "$cross_compiling" = yes; then
4218 td_cv_buggygetaddrinfo=yes
4220 cat >conftest.$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 #include <sys/types.h>
4231 #include <sys/socket.h>
4232 #include <netinet/in.h>
4236 int passive, gaierr, inet4 = 0, inet6 = 0;
4237 struct addrinfo hints, *ai, *aitop;
4238 char straddr[INET6_ADDRSTRLEN], strport[16];
4240 for (passive = 0; passive <= 1; passive++) {
4241 memset(&hints, 0, sizeof(hints));
4242 hints.ai_family = AF_UNSPEC;
4243 hints.ai_flags = passive ? AI_PASSIVE : 0;
4244 hints.ai_socktype = SOCK_STREAM;
4245 hints.ai_protocol = IPPROTO_TCP;
4246 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4247 (void)gai_strerror(gaierr);
4250 for (ai = aitop; ai; ai = ai->ai_next) {
4251 if (ai->ai_addr == NULL ||
4252 ai->ai_addrlen == 0 ||
4253 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4254 straddr, sizeof(straddr), strport, sizeof(strport),
4255 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4258 switch (ai->ai_family) {
4260 if (strcmp(strport, "54321") != 0) {
4264 if (strcmp(straddr, "0.0.0.0") != 0) {
4268 if (strcmp(straddr, "127.0.0.1") != 0) {
4275 if (strcmp(strport, "54321") != 0) {
4279 if (strcmp(straddr, "::") != 0) {
4283 if (strcmp(straddr, "::1") != 0) {
4300 /* another family support? */
4306 /* supported family should be 2, unsupported family should be 0 */
4307 if (!(inet4 == 0 || inet4 == 2))
4309 if (!(inet6 == 0 || inet6 == 2))
4313 freeaddrinfo(aitop);
4318 freeaddrinfo(aitop);
4323 rm -f conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 td_cv_buggygetaddrinfo=no
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4341 td_cv_buggygetaddrinfo=yes
4343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347 if test "$td_cv_buggygetaddrinfo" = no; then
4348 echo "$as_me:$LINENO: result: good" >&5
4349 echo "${ECHO_T}good" >&6
4351 echo "$as_me:$LINENO: result: buggy" >&5
4352 echo "${ECHO_T}buggy" >&6
4355 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4357 # XXX - it doesn't appear that "ipv6type" can ever be
4358 # set to "linux". Should this be testing for
4359 # "linux-glibc", or for that *or* "linux-libinet6"?
4360 # If the latter, note that "linux-libinet6" is also
4361 # the type given to some non-Linux OSes.
4363 if test "$ipv6type" != "linux"; then
4364 echo 'Fatal: You must get working getaddrinfo() function.'
4365 echo ' or you can specify "--disable-ipv6"'.
4368 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4369 echo ' Better upgrade your system library to newest version'
4370 echo ' of GNU C library (aka glibc).'
4378 for ac_func in getaddrinfo getnameinfo
4380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381 echo "$as_me:$LINENO: checking for $ac_func" >&5
4382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_var+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func (); below.
4395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 <limits.h> exists even on freestanding compilers. */
4398 # include <limits.h>
4400 # include <assert.h>
4402 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4410 /* The GNU C library defines this for functions which it implements
4411 to always fail with ENOSYS. Some functions are actually named
4412 something starting with __ and the normal name is an alias. */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4416 char (*f) () = $ac_func;
4425 return f != $ac_func;
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 eval "$as_ac_var=yes"
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 eval "$as_ac_var=no"
4449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4453 if test `eval echo '${'$as_ac_var'}'` = yes; then
4454 cat >>confdefs.h <<_ACEOF
4455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4459 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4466 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4467 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4468 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <netdnet/dnetdb.h>
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4483 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4485 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4490 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4491 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4492 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4493 cat >>confdefs.h <<\_ACEOF
4494 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4499 echo "$as_me:$LINENO: checking for char" >&5
4500 echo $ECHO_N "checking for char... $ECHO_C" >&6
4501 if test "${ac_cv_type_char+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 $ac_includes_default
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 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4545 echo "${ECHO_T}$ac_cv_type_char" >&6
4547 echo "$as_me:$LINENO: checking size of char" >&5
4548 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4549 if test "${ac_cv_sizeof_char+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test "$ac_cv_type_char" = yes; then
4553 # The cast to unsigned long works around a bug in the HP C Compiler
4554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4556 # This bug is HP SR number 8606223364.
4557 if test "$cross_compiling" = yes; then
4558 # Depending upon the size, compute the lo and hi bounds.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4570 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4602 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_hi=$ac_mid; break
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_lo=`expr $ac_mid + 1`
4627 if test $ac_lo -le $ac_mid; then
4631 ac_mid=`expr 2 '*' $ac_mid + 1`
4633 rm -f conftest.$ac_objext conftest.$ac_ext
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4650 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line $LINENO "configure"
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_includes_default
4682 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4689 rm -f conftest.$ac_objext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691 (eval $ac_compile) 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_lo=$ac_mid; break
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_hi=`expr '(' $ac_mid ')' - 1`
4707 if test $ac_mid -le $ac_hi; then
4711 ac_mid=`expr 2 '*' $ac_mid`
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.$ac_objext conftest.$ac_ext
4723 rm -f conftest.$ac_objext conftest.$ac_ext
4724 # Binary search between lo and hi bounds.
4725 while test "x$ac_lo" != "x$ac_hi"; do
4726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4738 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest.$ac_objext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_lo=`expr '(' $ac_mid ')' + 1`
4764 rm -f conftest.$ac_objext conftest.$ac_ext
4767 ?*) ac_cv_sizeof_char=$ac_lo;;
4768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: cannot compute sizeof (char), 77
4771 See \`config.log' for more details." >&2;}
4772 { (exit 1); exit 1; }; } ;;
4775 if test "$cross_compiling" = yes; then
4776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot run test program while cross compiling
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 $ac_includes_default
4790 long longval () { return (long) (sizeof (char)); }
4791 unsigned long ulongval () { return (long) (sizeof (char)); }
4798 FILE *f = fopen ("conftest.val", "w");
4801 if (((long) (sizeof (char))) < 0)
4803 long i = longval ();
4804 if (i != ((long) (sizeof (char))))
4806 fprintf (f, "%ld\n", i);
4810 unsigned long i = ulongval ();
4811 if (i != ((long) (sizeof (char))))
4813 fprintf (f, "%lu\n", i);
4815 exit (ferror (f) || fclose (f) != 0);
4821 rm -f conftest$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823 (eval $ac_link) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sizeof_char=`cat conftest.val`
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4840 See \`config.log' for more details." >&5
4841 echo "$as_me: error: cannot compute sizeof (char), 77
4842 See \`config.log' for more details." >&2;}
4843 { (exit 1); exit 1; }; }
4845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4854 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4855 cat >>confdefs.h <<_ACEOF
4856 #define SIZEOF_CHAR $ac_cv_sizeof_char
4860 echo "$as_me:$LINENO: checking for short" >&5
4861 echo $ECHO_N "checking for short... $ECHO_C" >&6
4862 if test "${ac_cv_type_short+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_type_short=yes
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4906 echo "${ECHO_T}$ac_cv_type_short" >&6
4908 echo "$as_me:$LINENO: checking size of short" >&5
4909 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4910 if test "${ac_cv_sizeof_short+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test "$ac_cv_type_short" = yes; then
4914 # The cast to unsigned long works around a bug in the HP C Compiler
4915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4917 # This bug is HP SR number 8606223364.
4918 if test "$cross_compiling" = yes; then
4919 # Depending upon the size, compute the lo and hi bounds.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4931 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 $ac_includes_default
4963 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_hi=$ac_mid; break
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_lo=`expr $ac_mid + 1`
4988 if test $ac_lo -le $ac_mid; then
4992 ac_mid=`expr 2 '*' $ac_mid + 1`
4994 rm -f conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5011 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5043 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_lo=$ac_mid; break
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 ac_hi=`expr '(' $ac_mid ')' - 1`
5068 if test $ac_mid -le $ac_hi; then
5072 ac_mid=`expr 2 '*' $ac_mid`
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5082 rm -f conftest.$ac_objext conftest.$ac_ext
5084 rm -f conftest.$ac_objext conftest.$ac_ext
5085 # Binary search between lo and hi bounds.
5086 while test "x$ac_lo" != "x$ac_hi"; do
5087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5099 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ac_lo=`expr '(' $ac_mid ')' + 1`
5125 rm -f conftest.$ac_objext conftest.$ac_ext
5128 ?*) ac_cv_sizeof_short=$ac_lo;;
5129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot compute sizeof (short), 77
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 if test "$cross_compiling" = yes; then
5137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: cannot run test program while cross compiling
5140 See \`config.log' for more details." >&2;}
5141 { (exit 1); exit 1; }; }
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 long longval () { return (long) (sizeof (short)); }
5152 unsigned long ulongval () { return (long) (sizeof (short)); }
5159 FILE *f = fopen ("conftest.val", "w");
5162 if (((long) (sizeof (short))) < 0)
5164 long i = longval ();
5165 if (i != ((long) (sizeof (short))))
5167 fprintf (f, "%ld\n", i);
5171 unsigned long i = ulongval ();
5172 if (i != ((long) (sizeof (short))))
5174 fprintf (f, "%lu\n", i);
5176 exit (ferror (f) || fclose (f) != 0);
5182 rm -f conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_sizeof_short=`cat conftest.val`
5195 echo "$as_me: program exited with status $ac_status" >&5
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: cannot compute sizeof (short), 77
5203 See \`config.log' for more details." >&2;}
5204 { (exit 1); exit 1; }; }
5206 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5211 ac_cv_sizeof_short=0
5214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5215 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5216 cat >>confdefs.h <<_ACEOF
5217 #define SIZEOF_SHORT $ac_cv_sizeof_short
5221 echo "$as_me:$LINENO: checking for int" >&5
5222 echo $ECHO_N "checking for int... $ECHO_C" >&6
5223 if test "${ac_cv_type_int+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 $ac_includes_default
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5267 echo "${ECHO_T}$ac_cv_type_int" >&6
5269 echo "$as_me:$LINENO: checking size of int" >&5
5270 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_int+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test "$ac_cv_type_int" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5292 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5324 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi=$ac_mid; break
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 ac_lo=`expr $ac_mid + 1`
5349 if test $ac_lo -le $ac_mid; then
5353 ac_mid=`expr 2 '*' $ac_mid + 1`
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 cat >conftest.$ac_ext <<_ACEOF
5362 #line $LINENO "configure"
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 $ac_includes_default
5404 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_lo=$ac_mid; break
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_hi=`expr '(' $ac_mid ')' - 1`
5429 if test $ac_mid -le $ac_hi; then
5433 ac_mid=`expr 2 '*' $ac_mid`
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5443 rm -f conftest.$ac_objext conftest.$ac_ext
5445 rm -f conftest.$ac_objext conftest.$ac_ext
5446 # Binary search between lo and hi bounds.
5447 while test "x$ac_lo" != "x$ac_hi"; do
5448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5460 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_lo=`expr '(' $ac_mid ')' + 1`
5486 rm -f conftest.$ac_objext conftest.$ac_ext
5489 ?*) ac_cv_sizeof_int=$ac_lo;;
5490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot compute sizeof (int), 77
5493 See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; } ;;
5497 if test "$cross_compiling" = yes; then
5498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: cannot run test program while cross compiling
5501 See \`config.log' for more details." >&2;}
5502 { (exit 1); exit 1; }; }
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 long longval () { return (long) (sizeof (int)); }
5513 unsigned long ulongval () { return (long) (sizeof (int)); }
5520 FILE *f = fopen ("conftest.val", "w");
5523 if (((long) (sizeof (int))) < 0)
5525 long i = longval ();
5526 if (i != ((long) (sizeof (int))))
5528 fprintf (f, "%ld\n", i);
5532 unsigned long i = ulongval ();
5533 if (i != ((long) (sizeof (int))))
5535 fprintf (f, "%lu\n", i);
5537 exit (ferror (f) || fclose (f) != 0);
5543 rm -f conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_sizeof_int=`cat conftest.val`
5556 echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (int), 77
5564 See \`config.log' for more details." >&2;}
5565 { (exit 1); exit 1; }; }
5567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5577 cat >>confdefs.h <<_ACEOF
5578 #define SIZEOF_INT $ac_cv_sizeof_int
5582 echo "$as_me:$LINENO: checking for long" >&5
5583 echo $ECHO_N "checking for long... $ECHO_C" >&6
5584 if test "${ac_cv_type_long+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5628 echo "${ECHO_T}$ac_cv_type_long" >&6
5630 echo "$as_me:$LINENO: checking size of long" >&5
5631 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5632 if test "${ac_cv_sizeof_long+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test "$ac_cv_type_long" = yes; then
5636 # The cast to unsigned long works around a bug in the HP C Compiler
5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639 # This bug is HP SR number 8606223364.
5640 if test "$cross_compiling" = yes; then
5641 # Depending upon the size, compute the lo and hi bounds.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5653 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5685 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_hi=$ac_mid; break
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_lo=`expr $ac_mid + 1`
5710 if test $ac_lo -le $ac_mid; then
5714 ac_mid=`expr 2 '*' $ac_mid + 1`
5716 rm -f conftest.$ac_objext conftest.$ac_ext
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 cat >conftest.$ac_ext <<_ACEOF
5723 #line $LINENO "configure"
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 $ac_includes_default
5733 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 $ac_includes_default
5765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_lo=$ac_mid; break
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 ac_hi=`expr '(' $ac_mid ')' - 1`
5790 if test $ac_mid -le $ac_hi; then
5794 ac_mid=`expr 2 '*' $ac_mid`
5796 rm -f conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5807 # Binary search between lo and hi bounds.
5808 while test "x$ac_lo" != "x$ac_hi"; do
5809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5821 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_lo=`expr '(' $ac_mid ')' + 1`
5847 rm -f conftest.$ac_objext conftest.$ac_ext
5850 ?*) ac_cv_sizeof_long=$ac_lo;;
5851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5852 See \`config.log' for more details." >&5
5853 echo "$as_me: error: cannot compute sizeof (long), 77
5854 See \`config.log' for more details." >&2;}
5855 { (exit 1); exit 1; }; } ;;
5858 if test "$cross_compiling" = yes; then
5859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5860 See \`config.log' for more details." >&5
5861 echo "$as_me: error: cannot run test program while cross compiling
5862 See \`config.log' for more details." >&2;}
5863 { (exit 1); exit 1; }; }
5865 cat >conftest.$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 $ac_includes_default
5873 long longval () { return (long) (sizeof (long)); }
5874 unsigned long ulongval () { return (long) (sizeof (long)); }
5881 FILE *f = fopen ("conftest.val", "w");
5884 if (((long) (sizeof (long))) < 0)
5886 long i = longval ();
5887 if (i != ((long) (sizeof (long))))
5889 fprintf (f, "%ld\n", i);
5893 unsigned long i = ulongval ();
5894 if (i != ((long) (sizeof (long))))
5896 fprintf (f, "%lu\n", i);
5898 exit (ferror (f) || fclose (f) != 0);
5904 rm -f conftest$ac_exeext
5905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906 (eval $ac_link) 2>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_cv_sizeof_long=`cat conftest.val`
5917 echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: cannot compute sizeof (long), 77
5925 See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; }
5928 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5937 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5943 echo "$as_me:$LINENO: checking for long long" >&5
5944 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5945 if test "${ac_cv_type_long_long+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 cat >conftest.$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5959 if ((long long *) 0)
5961 if (sizeof (long long))
5967 rm -f conftest.$ac_objext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_type_long_long=yes
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_type_long_long=no
5986 rm -f conftest.$ac_objext conftest.$ac_ext
5988 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5989 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5991 echo "$as_me:$LINENO: checking size of long long" >&5
5992 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5993 if test "${ac_cv_sizeof_long_long+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 if test "$ac_cv_type_long_long" = yes; then
5997 # The cast to unsigned long works around a bug in the HP C Compiler
5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000 # This bug is HP SR number 8606223364.
6001 if test "$cross_compiling" = yes; then
6002 # Depending upon the size, compute the lo and hi bounds.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 $ac_includes_default
6014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6046 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_hi=$ac_mid; break
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_lo=`expr $ac_mid + 1`
6071 if test $ac_lo -le $ac_mid; then
6075 ac_mid=`expr 2 '*' $ac_mid + 1`
6077 rm -f conftest.$ac_objext conftest.$ac_ext
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6094 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6115 cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6126 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_lo=$ac_mid; break
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_hi=`expr '(' $ac_mid ')' - 1`
6151 if test $ac_mid -le $ac_hi; then
6155 ac_mid=`expr 2 '*' $ac_mid`
6157 rm -f conftest.$ac_objext conftest.$ac_ext
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6165 rm -f conftest.$ac_objext conftest.$ac_ext
6167 rm -f conftest.$ac_objext conftest.$ac_ext
6168 # Binary search between lo and hi bounds.
6169 while test "x$ac_lo" != "x$ac_hi"; do
6170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6182 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_lo=`expr '(' $ac_mid ')' + 1`
6208 rm -f conftest.$ac_objext conftest.$ac_ext
6211 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6213 See \`config.log' for more details." >&5
6214 echo "$as_me: error: cannot compute sizeof (long long), 77
6215 See \`config.log' for more details." >&2;}
6216 { (exit 1); exit 1; }; } ;;
6219 if test "$cross_compiling" = yes; then
6220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: cannot run test program while cross compiling
6223 See \`config.log' for more details." >&2;}
6224 { (exit 1); exit 1; }; }
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6234 long longval () { return (long) (sizeof (long long)); }
6235 unsigned long ulongval () { return (long) (sizeof (long long)); }
6242 FILE *f = fopen ("conftest.val", "w");
6245 if (((long) (sizeof (long long))) < 0)
6247 long i = longval ();
6248 if (i != ((long) (sizeof (long long))))
6250 fprintf (f, "%ld\n", i);
6254 unsigned long i = ulongval ();
6255 if (i != ((long) (sizeof (long long))))
6257 fprintf (f, "%lu\n", i);
6259 exit (ferror (f) || fclose (f) != 0);
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_sizeof_long_long=`cat conftest.val`
6278 echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6284 See \`config.log' for more details." >&5
6285 echo "$as_me: error: cannot compute sizeof (long long), 77
6286 See \`config.log' for more details." >&2;}
6287 { (exit 1); exit 1; }; }
6289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6294 ac_cv_sizeof_long_long=0
6297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6298 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6299 cat >>confdefs.h <<_ACEOF
6300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6307 echo "$as_me:$LINENO: checking for addrinfo" >&5
6308 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6309 if test "${ac_cv_addrinfo+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line $LINENO "configure"
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6348 rm -f conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6352 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6353 if test $ac_cv_addrinfo = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_ADDRINFO 1
6359 cat >>confdefs.h <<\_ACEOF
6360 #define NEED_ADDRINFO_H 1
6365 if test "$ac_cv_addrinfo" = no; then
6366 missing_includes=yes
6370 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6371 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6372 if test "${ac_cv_maxserv+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 cat >conftest.$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 $EGREP "yes" >/dev/null 2>&1; then
6397 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6398 echo "${ECHO_T}$ac_cv_maxserv" >&6
6399 if test $ac_cv_maxserv != yes; then
6400 cat >>confdefs.h <<\_ACEOF
6401 #define NEED_ADDRINFO_H 1
6406 if test "$ac_cv_maxserv" = no; then
6407 missing_includes=yes
6411 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6412 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6413 if test "${ac_cv_namereqd+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 $EGREP "yes" >/dev/null 2>&1; then
6438 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6439 echo "${ECHO_T}$ac_cv_namereqd" >&6
6440 if test $ac_cv_namereqd != yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define NEED_ADDRINFO_H 1
6447 if test "$ac_cv_namereqd" = no; then
6448 missing_includes=yes
6452 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6453 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6454 if test "${ac_cv_sa_storage+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 # include <sys/types.h>
6466 # include <sys/socket.h>
6470 struct sockaddr_storage s
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sa_storage=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6497 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6498 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6499 if test $ac_cv_sa_storage = yes; then
6500 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_SOCKADDR_STORAGE 1
6506 if test "$ac_cv_sa_storage" = no; then
6507 missing_includes=yes
6512 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6513 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6514 if test "${ac_cv_inaddrsz+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 # include <arpa/nameser.h>
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6557 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6558 if test $ac_cv_inaddrsz = yes; then
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_INADDRSZ 1
6566 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6567 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6568 if test "${ac_cv_in6addrsz+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 # include <arpa/nameser.h>
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f conftest.$ac_objext conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6611 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6612 if test $ac_cv_in6addrsz = yes; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_IN6ADDRSZ 1
6621 if test "$ac_cv_addrsz" = no; then
6622 missing_includes=yes
6626 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6627 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6628 if test "${ac_cv_res_inet6+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 cat >conftest.$ac_ext <<_ACEOF
6632 #line $LINENO "configure"
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6639 # include <sys/types.h>
6640 # include <netinet/in.h>
6641 # include <resolv.h>
6645 int a = RES_USE_INET6
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6669 rm -f conftest.$ac_objext conftest.$ac_ext
6672 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6673 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6674 if test $ac_cv_res_inet6 = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_RES_USE_INET6 1
6681 if test "$ac_cv_res_inet6" = no; then
6682 missing_includes=yes
6686 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6687 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6688 if test "${ac_cv_res_state_ext+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6699 # include <sys/types.h>
6700 # include <netinet/in.h>
6701 # include <netinet6/in6.h>
6702 # include <resolv.h>
6706 struct __res_state_ext e
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_res_state_ext=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 ac_cv_res_state_ext=no
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6734 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6735 if test $ac_cv_res_state_ext = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_RES_STATE_EXT 1
6742 if test "$ac_cv_res_state_ext" = no; then
6743 missing_includes=yes
6747 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6748 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6749 if test "${ac_cv_res_state+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6760 # include <sys/types.h>
6761 # include <netinet/in.h>
6762 # include <netinet6/in6.h>
6763 # include <resolv.h>
6767 struct __res_state e; e.nsort = 0
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest.$ac_objext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6794 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6795 echo "${ECHO_T}$ac_cv_res_state" >&6
6796 if test $ac_cv_res_state = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_NEW_RES_STATE 1
6811 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6814 echo "$as_me:$LINENO: checking for $ac_func" >&5
6815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6816 if eval "test \"\${$as_ac_var+set}\" = set"; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 /* System header to define __stub macros and hopefully few prototypes,
6827 which can conflict with char $ac_func (); below.
6828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 <limits.h> exists even on freestanding compilers. */
6831 # include <limits.h>
6833 # include <assert.h>
6835 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 char (*f) () = $ac_func;
6858 return f != $ac_func;
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -s conftest$ac_exeext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 eval "$as_ac_var=yes"
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 eval "$as_ac_var=no"
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6886 if test `eval echo '${'$as_ac_var'}'` = yes; then
6887 cat >>confdefs.h <<_ACEOF
6888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6892 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6898 for ac_func in strftime
6900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6901 echo "$as_me:$LINENO: checking for $ac_func" >&5
6902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6903 if eval "test \"\${$as_ac_var+set}\" = set"; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 cat >conftest.$ac_ext <<_ACEOF
6907 #line $LINENO "configure"
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func (); below.
6915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 <limits.h> exists even on freestanding compilers. */
6918 # include <limits.h>
6920 # include <assert.h>
6922 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6930 /* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6936 char (*f) () = $ac_func;
6945 return f != $ac_func;
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952 (eval $ac_link) 2>&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 eval "$as_ac_var=yes"
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 eval "$as_ac_var=no"
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973 if test `eval echo '${'$as_ac_var'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983 for ac_func in setlinebuf alarm
6985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_func" >&5
6987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_var+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char $ac_func (); below.
7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 <limits.h> exists even on freestanding compilers. */
7003 # include <limits.h>
7005 # include <assert.h>
7007 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021 char (*f) () = $ac_func;
7030 return f != $ac_func;
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037 (eval $ac_link) 2>&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_var=yes"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 eval "$as_ac_var=no"
7054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7070 for ac_func in vsnprintf snprintf
7072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073 echo "$as_me:$LINENO: checking for $ac_func" >&5
7074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_var+set}\" = set"; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 /* System header to define __stub macros and hopefully few prototypes,
7086 which can conflict with char $ac_func (); below.
7087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088 <limits.h> exists even on freestanding compilers. */
7090 # include <limits.h>
7092 # include <assert.h>
7094 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7108 char (*f) () = $ac_func;
7117 return f != $ac_func;
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest$ac_exeext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 eval "$as_ac_var=yes"
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 eval "$as_ac_var=no"
7141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145 if test `eval echo '${'$as_ac_var'}'` = yes; then
7146 cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 if test $needsnprintf = yes; then
7156 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7162 if test "${ac_cv_type_signal+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 cat >conftest.$ac_ext <<_ACEOF
7166 #line $LINENO "configure"
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7178 extern "C" void (*signal (int, void (*)(int)))(int);
7180 void (*signal ()) ();
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_type_signal=void
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_cv_type_signal=int
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7213 echo "${ECHO_T}$ac_cv_type_signal" >&6
7215 cat >>confdefs.h <<_ACEOF
7216 #define RETSIGTYPE $ac_cv_type_signal
7220 if test "$ac_cv_type_signal" = void ; then
7221 cat >>confdefs.h <<\_ACEOF
7226 cat >>confdefs.h <<\_ACEOF
7227 #define RETSIGVAL (0)
7234 cat >>confdefs.h <<\_ACEOF
7235 #define _BSD_SIGNALS 1
7242 for ac_func in sigaction
7244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245 echo "$as_me:$LINENO: checking for $ac_func" >&5
7246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_var+set}\" = set"; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func (); below.
7259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 <limits.h> exists even on freestanding compilers. */
7262 # include <limits.h>
7264 # include <assert.h>
7266 /* Override any gcc2 internal prototype to avoid an error. */
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7280 char (*f) () = $ac_func;
7289 return f != $ac_func;
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -s conftest$ac_exeext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 eval "$as_ac_var=yes"
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 eval "$as_ac_var=no"
7313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7317 if test `eval echo '${'$as_ac_var'}'` = yes; then
7318 cat >>confdefs.h <<_ACEOF
7319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7325 if test $ac_cv_func_sigaction = no ; then
7327 for ac_func in sigset
7329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7330 echo "$as_me:$LINENO: checking for $ac_func" >&5
7331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7332 if eval "test \"\${$as_ac_var+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func (); below.
7344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7345 <limits.h> exists even on freestanding compilers. */
7347 # include <limits.h>
7349 # include <assert.h>
7351 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7359 /* The GNU C library defines this for functions which it implements
7360 to always fail with ENOSYS. Some functions are actually named
7361 something starting with __ and the normal name is an alias. */
7362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 char (*f) () = $ac_func;
7374 return f != $ac_func;
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_var=yes"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_var=no"
7398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7402 if test `eval echo '${'$as_ac_var'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7414 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7415 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7416 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_func_search_save_LIBS=$LIBS
7420 ac_cv_search_dnet_htoa=no
7421 cat >conftest.$ac_ext <<_ACEOF
7422 #line $LINENO "configure"
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7429 /* Override any gcc2 internal prototype to avoid an error. */
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_search_dnet_htoa="none required"
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 if test "$ac_cv_search_dnet_htoa" = no; then
7464 for ac_lib in dnet; do
7465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7466 cat >conftest.$ac_ext <<_ACEOF
7467 #line $LINENO "configure"
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7474 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_cv_search_dnet_htoa="-l$ac_lib"
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7511 LIBS=$ac_func_search_save_LIBS
7513 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7514 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7515 if test "$ac_cv_search_dnet_htoa" != no; then
7516 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_DNET_HTOA 1
7525 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7526 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7527 if test "${ac_cv_lib_rpc_main+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_check_lib_save_LIBS=$LIBS
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_lib_rpc_main=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_lib_rpc_main=no
7568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7571 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7572 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7573 if test $ac_cv_lib_rpc_main = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define HAVE_LIBRPC 1
7582 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7583 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7584 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_func_search_save_LIBS=$LIBS
7588 ac_cv_search_getrpcbynumber=no
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7597 /* Override any gcc2 internal prototype to avoid an error. */
7601 /* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7603 char getrpcbynumber ();
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_search_getrpcbynumber="none required"
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7631 if test "$ac_cv_search_getrpcbynumber" = no; then
7632 for ac_lib in nsl; do
7633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char getrpcbynumber ();
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -s conftest$ac_exeext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_search_getrpcbynumber="-l$ac_lib"
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_func_search_save_LIBS
7681 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7682 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7683 if test "$ac_cv_search_getrpcbynumber" != no; then
7684 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7685 cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_GETRPCBYNUMBER 1
7694 # Most operating systems have gethostbyname() in the default searched
7695 # libraries (i.e. libc):
7696 # Some OSes (eg. Solaris) place it in libnsl
7697 # Some strange OSes (SINIX) have it in libsocket:
7698 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7699 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7700 if test "${ac_cv_search_gethostbyname+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 ac_func_search_save_LIBS=$LIBS
7704 ac_cv_search_gethostbyname=no
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7713 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7719 char gethostbyname ();
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730 (eval $ac_link) 2>&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_search_gethostbyname="none required"
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 if test "$ac_cv_search_gethostbyname" = no; then
7748 for ac_lib in nsl socket resolv; do
7749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7750 cat >conftest.$ac_ext <<_ACEOF
7751 #line $LINENO "configure"
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7758 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char gethostbyname ();
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_search_gethostbyname="-l$ac_lib"
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_func_search_save_LIBS
7797 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7798 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7799 if test "$ac_cv_search_gethostbyname" != no; then
7800 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7804 # Unfortunately libsocket sometimes depends on libnsl and
7805 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7806 if test "$ac_cv_search_gethostbyname" = "no"
7808 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7809 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7810 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-lsocket -lnsl $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829 char gethostbyname ();
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_socket_gethostbyname=yes
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_cv_lib_socket_gethostbyname=no
7857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7861 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7862 if test $ac_cv_lib_socket_gethostbyname = yes; then
7863 LIBS="-lsocket -lnsl $LIBS"
7867 echo "$as_me:$LINENO: checking for library containing socket" >&5
7868 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7869 if test "${ac_cv_search_socket+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_func_search_save_LIBS=$LIBS
7873 ac_cv_search_socket=no
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_cv_search_socket="none required"
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 if test "$ac_cv_search_socket" = no; then
7917 for ac_lib in socket; do
7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7927 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944 (eval $ac_link) 2>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_search_socket="-l$ac_lib"
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7964 LIBS=$ac_func_search_save_LIBS
7966 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7967 echo "${ECHO_T}$ac_cv_search_socket" >&6
7968 if test "$ac_cv_search_socket" != no; then
7969 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7972 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7974 if test "${ac_cv_lib_socket_socket+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lsocket -lnsl $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7987 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_lib_socket_socket=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_lib_socket_socket=no
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8025 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8026 if test $ac_cv_lib_socket_socket = yes; then
8027 LIBS="-lsocket -lnsl $LIBS"
8032 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8033 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8034 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8035 if test "${ac_cv_search_putmsg+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 ac_func_search_save_LIBS=$LIBS
8039 ac_cv_search_putmsg=no
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_search_putmsg="none required"
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test "$ac_cv_search_putmsg" = no; then
8083 for ac_lib in str; do
8084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8085 cat >conftest.$ac_ext <<_ACEOF
8086 #line $LINENO "configure"
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8093 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_search_putmsg="-l$ac_lib"
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_func_search_save_LIBS
8132 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8133 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8134 if test "$ac_cv_search_putmsg" != no; then
8135 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8142 pfopen=/usr/examples/packetfilter/pfopen.c
8143 if test -f $pfopen ; then
8145 for ac_func in pfopen
8147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8148 echo "$as_me:$LINENO: checking for $ac_func" >&5
8149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_var+set}\" = set"; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8165 # include <limits.h>
8167 # include <assert.h>
8169 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 char (*f) () = $ac_func;
8192 return f != $ac_func;
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199 (eval $ac_link) 2>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 eval "$as_ac_var=yes"
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 eval "$as_ac_var=no"
8216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8220 if test `eval echo '${'$as_ac_var'}'` = yes; then
8221 cat >>confdefs.h <<_ACEOF
8222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8228 if test $ac_cv_func_pfopen = "no" ; then
8229 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8230 echo "${ECHO_T}Using $pfopen" >&6
8231 LIBS="$LIBS $pfopen"
8234 echo "$as_me:$LINENO: checking for local pcap library" >&5
8235 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8238 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8239 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8240 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8241 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8242 if test $lastdir = $basedir ; then
8246 if test -r $dir/libpcap.a ; then
8247 libpcap=$dir/libpcap.a
8251 if test $libpcap = FAIL ; then
8252 echo "$as_me:$LINENO: result: not found" >&5
8253 echo "${ECHO_T}not found" >&6
8254 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8255 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8256 if test "${ac_cv_lib_pcap_main+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_check_lib_save_LIBS=$LIBS
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_pcap_main=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_cv_lib_pcap_main=no
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8301 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8302 if test $ac_cv_lib_pcap_main = yes; then
8306 if test $libpcap = FAIL ; then
8307 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8308 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8309 { (exit 1); exit 1; }; }
8311 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8312 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8313 if test \( ! -r /usr/local/include/pcap.h \) -a \
8314 \( ! -r /usr/include/pcap.h \); then
8315 if test -r /usr/local/include/pcap/pcap.h; then
8316 d="/usr/local/include/pcap"
8317 elif test -r /usr/include/pcap/pcap.h; then
8318 d="/usr/include/pcap"
8321 if test -z "$d" ; then
8322 echo "$as_me:$LINENO: result: not found" >&5
8323 echo "${ECHO_T}not found" >&6
8325 V_INCLS="-I$d $V_INCLS"
8326 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8327 echo "${ECHO_T}found -- -I$d added" >&6
8331 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8332 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8333 if test -r $d/pcap.h; then
8334 V_INCLS="-I$d $V_INCLS"
8335 elif test -r $places/pcap.h; then
8336 V_INCLS="-I$places $V_INCLS"
8338 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8339 echo "$as_me: error: cannot find pcap.h" >&2;}
8340 { (exit see INSTALL); exit see INSTALL; }; }
8342 echo "$as_me:$LINENO: result: $libpcap" >&5
8343 echo "${ECHO_T}$libpcap" >&6
8345 LIBS="$libpcap $LIBS"
8349 pseexe="/lib/pse.exp"
8350 echo "$as_me:$LINENO: checking for $pseexe" >&5
8351 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8352 if test -f $pseexe ; then
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355 LIBS="$LIBS -I:$pseexe"
8358 # We need "-lodm" and "-lcfg", as libpcap requires them on
8359 # AIX, and we just build a static libpcap.a and thus can't
8360 # arrange that when you link with libpcap you automatically
8361 # link with those libraries.
8363 LIBS="$LIBS -lodm -lcfg"
8367 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8368 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8369 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8379 /* System header to define __stub macros and hopefully few prototypes,
8380 which can conflict with char pcap_list_datalinks (); below.
8381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382 <limits.h> exists even on freestanding compilers. */
8384 # include <limits.h>
8386 # include <assert.h>
8388 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395 char pcap_list_datalinks ();
8396 /* The GNU C library defines this for functions which it implements
8397 to always fail with ENOSYS. Some functions are actually named
8398 something starting with __ and the normal name is an alias. */
8399 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8402 char (*f) () = pcap_list_datalinks;
8411 return f != pcap_list_datalinks;
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_func_pcap_list_datalinks=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 ac_cv_func_pcap_list_datalinks=no
8435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8437 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8438 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8439 if test $ac_cv_func_pcap_list_datalinks = yes; then
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_PCAP_LIST_DATALINKS 1
8446 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8450 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8451 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8452 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 /* System header to define __stub macros and hopefully few prototypes,
8463 which can conflict with char pcap_set_datalink (); below.
8464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465 <limits.h> exists even on freestanding compilers. */
8467 # include <limits.h>
8469 # include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char pcap_set_datalink ();
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8485 char (*f) () = pcap_set_datalink;
8494 return f != pcap_set_datalink;
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_pcap_set_datalink=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_func_pcap_set_datalink=no
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8521 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8522 if test $ac_cv_func_pcap_set_datalink = yes; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_PCAP_SET_DATALINK 1
8529 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8530 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8531 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char pcap_datalink_name_to_val (); below.
8543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544 <limits.h> exists even on freestanding compilers. */
8546 # include <limits.h>
8548 # include <assert.h>
8550 /* Override any gcc2 internal prototype to avoid an error. */
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char pcap_datalink_name_to_val ();
8558 /* The GNU C library defines this for functions which it implements
8559 to always fail with ENOSYS. Some functions are actually named
8560 something starting with __ and the normal name is an alias. */
8561 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8564 char (*f) () = pcap_datalink_name_to_val;
8573 return f != pcap_datalink_name_to_val;
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_func_pcap_datalink_name_to_val=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_func_pcap_datalink_name_to_val=no
8597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8600 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8601 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8607 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8608 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8609 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 /* System header to define __stub macros and hopefully few prototypes,
8620 which can conflict with char pcap_datalink_val_to_description (); below.
8621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8622 <limits.h> exists even on freestanding compilers. */
8624 # include <limits.h>
8626 # include <assert.h>
8628 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8635 char pcap_datalink_val_to_description ();
8636 /* The GNU C library defines this for functions which it implements
8637 to always fail with ENOSYS. Some functions are actually named
8638 something starting with __ and the normal name is an alias. */
8639 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8642 char (*f) () = pcap_datalink_val_to_description;
8651 return f != pcap_datalink_val_to_description;
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_func_pcap_datalink_val_to_description=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_func_pcap_datalink_val_to_description=no
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8678 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8679 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8680 cat >>confdefs.h <<\_ACEOF
8681 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8686 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8693 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8699 for ac_func in pcap_breakloop
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 /* System header to define __stub macros and hopefully few prototypes,
8715 which can conflict with char $ac_func (); below.
8716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 <limits.h> exists even on freestanding compilers. */
8719 # include <limits.h>
8721 # include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 char (*f) () = $ac_func;
8746 return f != $ac_func;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 eval "$as_ac_var=yes"
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 eval "$as_ac_var=no"
8770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8774 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8784 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
8785 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 /* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char pcap_dump_ftell (); below.
8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798 <limits.h> exists even on freestanding compilers. */
8800 # include <limits.h>
8802 # include <assert.h>
8804 /* Override any gcc2 internal prototype to avoid an error. */
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char pcap_dump_ftell ();
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
8818 char (*f) () = pcap_dump_ftell;
8827 return f != pcap_dump_ftell;
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_func_pcap_dump_ftell=yes
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_func_pcap_dump_ftell=no
8851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8854 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
8855 if test $ac_cv_func_pcap_dump_ftell = yes; then
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_PCAP_DUMP_FTELL 1
8862 LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8869 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8870 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8872 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8873 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8874 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8875 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8876 # it does not ship with a libc symbol "inet_ntop()", it ships with
8877 # "_inet_ntop()", and has a #define macro in one of the system headers
8880 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8881 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <sys/socket.h>
8891 #include <netinet/in.h>
8892 #include <arpa/inet.h>
8896 char src[4], dst[128];
8897 inet_ntop(AF_INET, src, dst, sizeof(dst));
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 echo "$as_me:$LINENO: checking for inet_pton" >&5
8926 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8927 cat >conftest.$ac_ext <<_ACEOF
8928 #line $LINENO "configure"
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <sys/types.h>
8935 #include <sys/socket.h>
8936 #include <netinet/in.h>
8937 #include <arpa/inet.h>
8941 char src[128], dst[4];
8942 inet_pton(AF_INET, src, dst);
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 echo "$as_me:$LINENO: result: yes" >&5
8960 echo "${ECHO_T}yes" >&6
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8967 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8970 echo "$as_me:$LINENO: checking for inet_aton" >&5
8971 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <sys/types.h>
8980 #include <netinet/in.h>
8981 #include <arpa/inet.h>
8987 inet_aton(src, &dst);
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 echo "$as_me:$LINENO: result: yes" >&5
9005 echo "${ECHO_T}yes" >&6
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6
9012 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9017 # Check for these after AC_LBL_LIBPCAP, for the same reason.
9019 # You are in a twisty little maze of UN*Xes, all different.
9020 # Some might not have ether_ntohost().
9021 # Some might have it, but not declare it in any header file.
9022 # Some might have it, but declare it in <netinet/if_ether.h>.
9023 # Some might have it, but declare it in <netinet/ether.h>
9024 # (And some might have it but document it as something declared in
9025 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
9027 # Before you is a C compiler.
9030 for ac_func in ether_ntohost
9032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9033 echo "$as_me:$LINENO: checking for $ac_func" >&5
9034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9035 if eval "test \"\${$as_ac_var+set}\" = set"; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 /* System header to define __stub macros and hopefully few prototypes,
9046 which can conflict with char $ac_func (); below.
9047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048 <limits.h> exists even on freestanding compilers. */
9050 # include <limits.h>
9052 # include <assert.h>
9054 /* Override any gcc2 internal prototype to avoid an error. */
9059 /* We use char because int might match the return type of a gcc2
9060 builtin and then its argument prototype would still apply. */
9062 /* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
9065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9068 char (*f) () = $ac_func;
9077 return f != $ac_func;
9082 rm -f conftest.$ac_objext conftest$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 eval "$as_ac_var=yes"
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 eval "$as_ac_var=no"
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9105 if test `eval echo '${'$as_ac_var'}'` = yes; then
9106 cat >>confdefs.h <<_ACEOF
9107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9110 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9111 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9112 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 if test "$cross_compiling" = yes; then
9117 ac_cv_buggy_ether_ntohost="not while cross-compiling"
9119 cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <sys/param.h>
9130 #include <sys/socket.h>
9133 main(int argc, char **argv)
9135 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9136 char name[MAXHOSTNAMELEN];
9138 ether_ntohost(name, (struct ether_addr *)ea);
9143 rm -f conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_buggy_ether_ntohost=no
9156 echo "$as_me: program exited with status $ac_status" >&5
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_buggy_ether_ntohost=yes
9163 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9167 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9168 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9169 cat >>confdefs.h <<\_ACEOF
9170 #define USE_ETHER_NTOHOST 1
9178 if test "$ac_cv_func_ether_ntohost" = yes -a \
9179 "$ac_cv_buggy_ether_ntohost" = "no"; then
9181 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9183 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9185 # Yes. Does it declare ether_ntohost()?
9187 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9188 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9189 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 #include <sys/socket.h>
9202 #include <netinet/in.h>
9203 #include <arpa/inet.h>
9207 #include <netinet/if_ether.h>
9213 #ifndef ether_ntohost
9214 char *p = (char *) ether_ntohost;
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_have_decl_ether_ntohost=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_have_decl_ether_ntohost=no
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9243 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9244 if test $ac_cv_have_decl_ether_ntohost = yes; then
9247 cat >>confdefs.h <<\_ACEOF
9248 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9258 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9260 # No, how about <netinet/ether.h>, as on Linux?
9263 for ac_header in netinet/ether.h
9265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275 # Is the header compilable?
9276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 $ac_includes_default
9286 #include <$ac_header>
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -s conftest.$ac_objext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_header_compiler=yes
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_header_compiler=no
9307 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9309 echo "${ECHO_T}$ac_header_compiler" >&6
9311 # Is the header present?
9312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 #include <$ac_header>
9323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9326 grep -v '^ *+' conftest.er1 >conftest.err
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } >/dev/null; then
9331 if test -s conftest.err; then
9332 ac_cpp_err=$ac_c_preproc_warn_flag
9339 if test -z "$ac_cpp_err"; then
9340 ac_header_preproc=yes
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 ac_header_preproc=no
9347 rm -f conftest.err conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9349 echo "${ECHO_T}$ac_header_preproc" >&6
9351 # So? What about this header?
9352 case $ac_header_compiler:$ac_header_preproc in
9354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9360 ## ------------------------------------ ##
9361 ## Report this to bug-autoconf@gnu.org. ##
9362 ## ------------------------------------ ##
9365 sed "s/^/$as_me: WARNING: /" >&2
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9376 ## ------------------------------------ ##
9377 ## Report this to bug-autoconf@gnu.org. ##
9378 ## ------------------------------------ ##
9381 sed "s/^/$as_me: WARNING: /" >&2
9384 echo "$as_me:$LINENO: checking for $ac_header" >&5
9385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 eval "$as_ac_Header=$ac_header_preproc"
9391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404 if test "$ac_cv_header_netinet_ether_h" = yes; then
9406 # We have it - does it declare ether_ntohost()?
9407 # Unset ac_cv_have_decl_ether_ntohost so we don't
9408 # treat the previous failure as a cached value and
9409 # suppress the next test.
9411 unset ac_cv_have_decl_ether_ntohost
9412 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9413 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9414 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9425 #include <netinet/ether.h>
9431 #ifndef ether_ntohost
9432 char *p = (char *) ether_ntohost;
9439 rm -f conftest.$ac_objext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441 (eval $ac_compile) 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -s conftest.$ac_objext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_have_decl_ether_ntohost=yes
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_have_decl_ether_ntohost=no
9458 rm -f conftest.$ac_objext conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9461 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9462 if test $ac_cv_have_decl_ether_ntohost = yes; then
9465 cat >>confdefs.h <<\_ACEOF
9466 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9475 # Is ether_ntohost() declared?
9477 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9479 # No, we'll have to declare it ourselves.
9480 # Do we have "struct ether_addr"?
9482 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9483 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9484 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9495 #include <sys/types.h>
9496 #include <sys/socket.h>
9497 #include <netinet/in.h>
9498 #include <arpa/inet.h>
9502 #include <netinet/if_ether.h>
9508 if ((struct ether_addr *) 0)
9510 if (sizeof (struct ether_addr))
9516 rm -f conftest.$ac_objext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9518 (eval $ac_compile) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -s conftest.$ac_objext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_type_struct_ether_addr=yes
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_cv_type_struct_ether_addr=no
9535 rm -f conftest.$ac_objext conftest.$ac_ext
9537 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9538 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9539 if test $ac_cv_type_struct_ether_addr = yes; then
9541 cat >>confdefs.h <<_ACEOF
9542 #define HAVE_STRUCT_ETHER_ADDR 1
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_DECL_ETHER_NTOHOST 0
9555 cat >>confdefs.h <<\_ACEOF
9556 #define HAVE_DECL_ETHER_NTOHOST 1
9563 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9564 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9565 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9569 #line $LINENO "configure"
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9576 # include <sys/types.h>
9577 # include <sys/socket.h>
9581 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_sockaddr_has_sa_len=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_sockaddr_has_sa_len=no
9605 rm -f conftest.$ac_objext conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9609 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9610 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_SOCKADDR_SA_LEN 1
9617 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9618 missing_includes=yes
9624 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9627 echo "$as_me:$LINENO: checking for $ac_func" >&5
9628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9629 if eval "test \"\${$as_ac_var+set}\" = set"; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9633 #line $LINENO "configure"
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 /* System header to define __stub macros and hopefully few prototypes,
9640 which can conflict with char $ac_func (); below.
9641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9642 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9648 /* Override any gcc2 internal prototype to avoid an error. */
9653 /* We use char because int might match the return type of a gcc2
9654 builtin and then its argument prototype would still apply. */
9656 /* The GNU C library defines this for functions which it implements
9657 to always fail with ENOSYS. Some functions are actually named
9658 something starting with __ and the normal name is an alias. */
9659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9662 char (*f) () = $ac_func;
9671 return f != $ac_func;
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 eval "$as_ac_var=yes"
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 eval "$as_ac_var=no"
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9707 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9708 savedcflags="$CFLAGS"
9709 CFLAGS="$CFLAGS $V_INCLS"
9710 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9711 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9712 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9727 if ((pcap_if_t *) 0)
9729 if (sizeof (pcap_if_t))
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_type_pcap_if_t=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_type_pcap_if_t=no
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9757 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9758 if test $ac_cv_type_pcap_if_t = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define HAVE_PCAP_IF_T 1
9767 CFLAGS="$savedcflags"
9770 if test $ac_cv_func_pcap_lib_version = "no" ; then
9771 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9772 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9773 cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9785 extern char pcap_version[];
9787 return (int)pcap_version;
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795 (eval $ac_link) 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_lbl_cv_pcap_version_defined=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_lbl_cv_pcap_version_defined=no
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9814 echo "$as_me:$LINENO: result: yes" >&5
9815 echo "${ECHO_T}yes" >&6
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_PCAP_VERSION 1
9821 echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6
9825 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9826 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9839 extern int pcap_debug;
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_lbl_cv_pcap_debug_defined=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_lbl_cv_pcap_debug_defined=no
9866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9867 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9868 echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_PCAP_DEBUG 1
9875 echo "$as_me:$LINENO: result: no" >&5
9876 echo "${ECHO_T}no" >&6
9878 # OK, what about "yydebug"?
9880 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9881 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9882 cat >conftest.$ac_ext <<_ACEOF
9883 #line $LINENO "configure"
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_lbl_cv_yydebug_defined=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_lbl_cv_yydebug_defined=no
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_YYDEBUG 1
9930 echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6
9935 for ac_func in bpf_dump
9937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 /* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char $ac_func (); below.
9952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953 <limits.h> exists even on freestanding compilers. */
9955 # include <limits.h>
9957 # include <assert.h>
9959 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9967 /* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
9970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 char (*f) () = $ac_func;
9982 return f != $ac_func;
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 eval "$as_ac_var=yes"
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 eval "$as_ac_var=no"
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10010 if test `eval echo '${'$as_ac_var'}'` = yes; then
10011 cat >>confdefs.h <<_ACEOF
10012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10016 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10022 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
10028 cat >>confdefs.h <<\_ACEOF
10047 if test -f /dev/bpf0 ; then
10052 for ac_header in sys/bitypes.h
10054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056 echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10064 # Is the header compilable?
10065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10067 cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 #include <$ac_header>
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079 (eval $ac_compile) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_header_compiler=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_header_compiler=no
10096 rm -f conftest.$ac_objext conftest.$ac_ext
10097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10098 echo "${ECHO_T}$ac_header_compiler" >&6
10100 # Is the header present?
10101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 #include <$ac_header>
10112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } >/dev/null; then
10120 if test -s conftest.err; then
10121 ac_cpp_err=$ac_c_preproc_warn_flag
10128 if test -z "$ac_cpp_err"; then
10129 ac_header_preproc=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_header_preproc=no
10136 rm -f conftest.err conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10138 echo "${ECHO_T}$ac_header_preproc" >&6
10140 # So? What about this header?
10141 case $ac_header_compiler:$ac_header_preproc in
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10149 ## ------------------------------------ ##
10150 ## Report this to bug-autoconf@gnu.org. ##
10151 ## ------------------------------------ ##
10154 sed "s/^/$as_me: WARNING: /" >&2
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10165 ## ------------------------------------ ##
10166 ## Report this to bug-autoconf@gnu.org. ##
10167 ## ------------------------------------ ##
10170 sed "s/^/$as_me: WARNING: /" >&2
10173 echo "$as_me:$LINENO: checking for $ac_header" >&5
10174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 eval "$as_ac_Header=$ac_header_preproc"
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10185 cat >>confdefs.h <<_ACEOF
10186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194 echo "$as_me:$LINENO: checking for int8_t" >&5
10195 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10196 if test "${ac_cv_type_int8_t+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 cat >conftest.$ac_ext <<_ACEOF
10200 #line $LINENO "configure"
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10212 if (sizeof (int8_t))
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_type_int8_t=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_cv_type_int8_t=no
10237 rm -f conftest.$ac_objext conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10240 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10241 if test $ac_cv_type_int8_t = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define int8_t signed char
10251 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10252 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10253 if test "${ac_cv_type_u_int8_t+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10264 #ifdef HAVE_SYS_BITYPES_H
10265 #include <sys/bitypes.h>
10271 if ((u_int8_t *) 0)
10273 if (sizeof (u_int8_t))
10279 rm -f conftest.$ac_objext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281 (eval $ac_compile) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_cv_type_u_int8_t=yes
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_cv_type_u_int8_t=no
10298 rm -f conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10301 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10302 if test $ac_cv_type_u_int8_t = yes; then
10306 cat >>confdefs.h <<\_ACEOF
10307 #define u_int8_t unsigned char
10312 echo "$as_me:$LINENO: checking for int16_t" >&5
10313 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10314 if test "${ac_cv_type_int16_t+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10330 if (sizeof (int16_t))
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -s conftest.$ac_objext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_type_int16_t=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_type_int16_t=no
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10358 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10359 if test $ac_cv_type_int16_t = yes; then
10363 cat >>confdefs.h <<\_ACEOF
10364 #define int16_t short
10369 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10370 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10371 if test "${ac_cv_type_u_int16_t+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 $ac_includes_default
10382 #ifdef HAVE_SYS_BITYPES_H
10383 #include <sys/bitypes.h>
10389 if ((u_int16_t *) 0)
10391 if (sizeof (u_int16_t))
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_type_u_int16_t=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_type_u_int16_t=no
10416 rm -f conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10419 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10420 if test $ac_cv_type_u_int16_t = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define u_int16_t unsigned short
10430 echo "$as_me:$LINENO: checking for int32_t" >&5
10431 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10432 if test "${ac_cv_type_int32_t+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10448 if (sizeof (int32_t))
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -s conftest.$ac_objext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 ac_cv_type_int32_t=yes
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 ac_cv_type_int32_t=no
10473 rm -f conftest.$ac_objext conftest.$ac_ext
10475 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10476 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10477 if test $ac_cv_type_int32_t = yes; then
10481 cat >>confdefs.h <<\_ACEOF
10482 #define int32_t int
10487 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10488 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10489 if test "${ac_cv_type_u_int32_t+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 $ac_includes_default
10500 #ifdef HAVE_SYS_BITYPES_H
10501 #include <sys/bitypes.h>
10507 if ((u_int32_t *) 0)
10509 if (sizeof (u_int32_t))
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -s conftest.$ac_objext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_type_u_int32_t=yes
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_cv_type_u_int32_t=no
10534 rm -f conftest.$ac_objext conftest.$ac_ext
10536 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10537 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10538 if test $ac_cv_type_u_int32_t = yes; then
10542 cat >>confdefs.h <<\_ACEOF
10543 #define u_int32_t unsigned int
10548 echo "$as_me:$LINENO: checking for int64_t" >&5
10549 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10550 if test "${ac_cv_type_int64_t+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 cat >conftest.$ac_ext <<_ACEOF
10554 #line $LINENO "configure"
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 $ac_includes_default
10566 if (sizeof (int64_t))
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -s conftest.$ac_objext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_type_int64_t=yes
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ac_cv_type_int64_t=no
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10594 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10595 if test $ac_cv_type_int64_t = yes; then
10599 cat >>confdefs.h <<\_ACEOF
10600 #define int64_t long long
10605 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10606 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10607 if test "${ac_cv_type_u_int64_t+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10611 #line $LINENO "configure"
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 $ac_includes_default
10618 #ifdef HAVE_SYS_BITYPES_H
10619 #include <sys/bitypes.h>
10625 if ((u_int64_t *) 0)
10627 if (sizeof (u_int64_t))
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -s conftest.$ac_objext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_type_u_int64_t=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_type_u_int64_t=no
10652 rm -f conftest.$ac_objext conftest.$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10655 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10656 if test $ac_cv_type_u_int64_t = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define u_int64_t unsigned long long
10668 # We can't just check for <inttypes.h> - some systems have one that
10669 # doesn't define all the PRI[doxu]64 macros.
10672 for ac_header in inttypes.h
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676 echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10684 # Is the header compilable?
10685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 $ac_includes_default
10695 #include <$ac_header>
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699 (eval $ac_compile) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_header_compiler=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_header_compiler=no
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718 echo "${ECHO_T}$ac_header_compiler" >&6
10720 # Is the header present?
10721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <$ac_header>
10732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } >/dev/null; then
10740 if test -s conftest.err; then
10741 ac_cpp_err=$ac_c_preproc_warn_flag
10748 if test -z "$ac_cpp_err"; then
10749 ac_header_preproc=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_header_preproc=no
10756 rm -f conftest.err conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10760 # So? What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10769 ## ------------------------------------ ##
10770 ## Report this to bug-autoconf@gnu.org. ##
10771 ## ------------------------------------ ##
10774 sed "s/^/$as_me: WARNING: /" >&2
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10785 ## ------------------------------------ ##
10786 ## Report this to bug-autoconf@gnu.org. ##
10787 ## ------------------------------------ ##
10790 sed "s/^/$as_me: WARNING: /" >&2
10793 echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 eval "$as_ac_Header=$ac_header_preproc"
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805 cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 # OK, we have inttypes.h, but does it define those macros?
10812 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10813 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 #include <inttypes.h>
10825 #include <sys/types.h>
10826 #ifdef HAVE_SYS_BITYPES_H
10827 #include <sys/bitypes.h>
10832 printf("%" PRId64 "\n", (u_int64_t)1);
10833 printf("%" PRIo64 "\n", (u_int64_t)1);
10834 printf("%" PRIx64 "\n", (u_int64_t)1);
10835 printf("%" PRIu64 "\n", (u_int64_t)1);
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10853 echo "$as_me:$LINENO: result: yes" >&5
10854 echo "${ECHO_T}yes" >&6
10855 ac_lbl_inttypes_h_defines_formats=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10862 echo "$as_me:$LINENO: result: no" >&5
10863 echo "${ECHO_T}no" >&6
10864 ac_lbl_inttypes_h_defines_formats=no
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10872 # We don't have inttypes.h, so it obviously can't define those
10875 ac_lbl_inttypes_h_defines_formats=no
10881 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10883 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10884 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10885 if test "$cross_compiling" = yes; then
10886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10887 See \`config.log' for more details." >&5
10888 echo "$as_me: error: cannot run test program while cross compiling
10889 See \`config.log' for more details." >&2;}
10890 { (exit 1); exit 1; }; }
10892 cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10901 # ifdef HAVE_INTTYPES_H
10902 #include <inttypes.h>
10904 # ifdef HAVE_SYS_BITYPES_H
10905 #include <sys/bitypes.h>
10908 #include <sys/types.h>
10914 sprintf(strbuf, "%016lx", t << 32);
10915 if (strcmp(strbuf, "0000000100000000") == 0)
10923 rm -f conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10935 cat >>confdefs.h <<\_ACEOF
10936 #define PRId64 "ld"
10939 cat >>confdefs.h <<\_ACEOF
10940 #define PRIo64 "lo"
10943 cat >>confdefs.h <<\_ACEOF
10944 #define PRIx64 "lx"
10947 cat >>confdefs.h <<\_ACEOF
10948 #define PRIu64 "lu"
10951 echo "$as_me:$LINENO: result: yes" >&5
10952 echo "${ECHO_T}yes" >&6
10955 echo "$as_me: program exited with status $ac_status" >&5
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ( exit $ac_status )
10961 echo "$as_me:$LINENO: result: no" >&5
10962 echo "${ECHO_T}no" >&6
10965 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10966 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10967 if test "$cross_compiling" = yes; then
10968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10969 See \`config.log' for more details." >&5
10970 echo "$as_me: error: cannot run test program while cross compiling
10971 See \`config.log' for more details." >&2;}
10972 { (exit 1); exit 1; }; }
10974 cat >conftest.$ac_ext <<_ACEOF
10976 #line $LINENO "configure"
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10983 # ifdef HAVE_INTTYPES_H
10984 #include <inttypes.h>
10986 # ifdef HAVE_SYS_BITYPES_H
10987 #include <sys/bitypes.h>
10990 #include <sys/types.h>
10996 sprintf(strbuf, "%016llx", t << 32);
10997 if (strcmp(strbuf, "0000000100000000") == 0)
11005 rm -f conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 (eval $ac_link) 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11017 cat >>confdefs.h <<\_ACEOF
11018 #define PRId64 "lld"
11021 cat >>confdefs.h <<\_ACEOF
11022 #define PRIo64 "llo"
11025 cat >>confdefs.h <<\_ACEOF
11026 #define PRIx64 "llx"
11029 cat >>confdefs.h <<\_ACEOF
11030 #define PRIu64 "llu"
11033 echo "$as_me:$LINENO: result: yes" >&5
11034 echo "${ECHO_T}yes" >&6
11037 echo "$as_me: program exited with status $ac_status" >&5
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ( exit $ac_status )
11043 echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6
11047 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11048 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
11049 if test "$cross_compiling" = yes; then
11050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11051 See \`config.log' for more details." >&5
11052 echo "$as_me: error: cannot run test program while cross compiling
11053 See \`config.log' for more details." >&2;}
11054 { (exit 1); exit 1; }; }
11056 cat >conftest.$ac_ext <<_ACEOF
11058 #line $LINENO "configure"
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11065 # ifdef HAVE_INTTYPES_H
11066 #include <inttypes.h>
11068 # ifdef HAVE_SYS_BITYPES_H
11069 #include <sys/bitypes.h>
11072 #include <sys/types.h>
11078 sprintf(strbuf, "%016Lx", t << 32);
11079 if (strcmp(strbuf, "0000000100000000") == 0)
11087 rm -f conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089 (eval $ac_link) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; }; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define PRId64 "Ld"
11103 cat >>confdefs.h <<\_ACEOF
11104 #define PRIo64 "Lo"
11107 cat >>confdefs.h <<\_ACEOF
11108 #define PRIx64 "Lx"
11111 cat >>confdefs.h <<\_ACEOF
11112 #define PRIu64 "Lu"
11115 echo "$as_me:$LINENO: result: yes" >&5
11116 echo "${ECHO_T}yes" >&6
11119 echo "$as_me: program exited with status $ac_status" >&5
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ( exit $ac_status )
11125 echo "$as_me:$LINENO: result: no" >&5
11126 echo "${ECHO_T}no" >&6
11129 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11130 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11131 if test "$cross_compiling" = yes; then
11132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11133 See \`config.log' for more details." >&5
11134 echo "$as_me: error: cannot run test program while cross compiling
11135 See \`config.log' for more details." >&2;}
11136 { (exit 1); exit 1; }; }
11138 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11147 # ifdef HAVE_INTTYPES_H
11148 #include <inttypes.h>
11150 # ifdef HAVE_SYS_BITYPES_H
11151 #include <sys/bitypes.h>
11154 #include <sys/types.h>
11160 sprintf(strbuf, "%016qx", t << 32);
11161 if (strcmp(strbuf, "0000000100000000") == 0)
11169 rm -f conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11181 cat >>confdefs.h <<\_ACEOF
11182 #define PRId64 "qd"
11185 cat >>confdefs.h <<\_ACEOF
11186 #define PRIo64 "qo"
11189 cat >>confdefs.h <<\_ACEOF
11190 #define PRIx64 "qx"
11193 cat >>confdefs.h <<\_ACEOF
11194 #define PRIu64 "qu"
11197 echo "$as_me:$LINENO: result: yes" >&5
11198 echo "${ECHO_T}yes" >&6
11201 echo "$as_me: program exited with status $ac_status" >&5
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ( exit $ac_status )
11207 echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11210 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11211 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11212 { (exit 1); exit 1; }; }
11216 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11228 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11240 if test "${LBL_CFLAGS+set}" = set; then
11241 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11243 if test -f .devel ; then
11244 if test "$GCC" = yes ; then
11245 if test "${LBL_CFLAGS+set}" != set; then
11246 if test "$ac_cv_prog_cc_g" = yes ; then
11247 V_CCOPT="-g $V_CCOPT"
11249 V_CCOPT="$V_CCOPT -Wall"
11250 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11251 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11258 V_CCOPT="$V_CCOPT -n32"
11265 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11266 name="lbl/os-$os.h"
11267 if test -f $name ; then
11268 ln -s $name os-proto.h
11269 cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_OS_PROTO_H 1
11274 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11275 echo "$as_me: WARNING: can't find $name" >&2;}
11279 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11280 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11281 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11292 # include <sys/types.h>
11293 # include <sys/socket.h>
11297 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest.$ac_objext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_cv_lbl_sockaddr_has_sa_len=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_cv_lbl_sockaddr_has_sa_len=no
11321 rm -f conftest.$ac_objext conftest.$ac_ext
11324 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11325 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11326 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_SOCKADDR_SA_LEN 1
11333 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11334 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11335 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 case "$host_cpu" in
11341 # These are CPU types where:
11343 # the CPU faults on an unaligned access, but at least some
11344 # OSes that support that CPU catch the fault and simulate
11345 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11346 # the simulation is slow, so we don't want to use it;
11348 # the CPU, I infer (from the old
11350 # XXX: should also check that they don't do weird things (like on arm)
11352 # comment) doesn't fault on unaligned accesses, but doesn't
11353 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11355 # for whatever reason, the test program doesn't work
11356 # (this has been claimed to be the case for several of those
11357 # CPUs - I don't know what the problem is; the problem
11358 # was reported as "the test program dumps core" for SuperH,
11359 # but that's what the test program is *supposed* to do -
11360 # it dumps core before it writes anything, so the test
11361 # for an empty output file should find an empty output
11362 # file and conclude that unaligned accesses don't work).
11364 # This run-time test won't work if you're cross-compiling, so
11365 # in order to support cross-compiling for a particular CPU,
11366 # we have to wire in the list of CPU types anyway, as far as
11367 # I know, so perhaps we should just have a set of CPUs on
11368 # which we know it doesn't work, a set of CPUs on which we
11369 # know it does work, and have the script just fail on other
11370 # cpu types and update it when such a failure occurs.
11372 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
11373 ac_cv_lbl_unaligned_fail=yes
11377 cat >conftest.c <<EOF
11378 # include <sys/types.h>
11379 # include <sys/wait.h>
11380 # include <stdio.h>
11381 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11386 /* avoid "core dumped" message */
11392 pid = waitpid(pid, &status, 0);
11395 exit(!WIFEXITED(status));
11398 i = *(unsigned int *)&a[1];
11403 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11404 conftest.c $LIBS >/dev/null 2>&1
11405 if test ! -x conftest ; then
11406 ac_cv_lbl_unaligned_fail=yes
11408 ./conftest >conftest.out
11409 if test ! -s conftest.out ; then
11410 ac_cv_lbl_unaligned_fail=yes
11412 ac_cv_lbl_unaligned_fail=no
11415 rm -f conftest* core core.conftest
11420 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11421 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11422 if test $ac_cv_lbl_unaligned_fail = yes ; then
11423 cat >>confdefs.h <<\_ACEOF
11424 #define LBL_ALIGN 1
11430 echo "$as_me:$LINENO: checking for h_errno" >&5
11431 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11432 if test "${ac_cv_var_h_errno+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 cat >conftest.$ac_ext <<_ACEOF
11436 #line $LINENO "configure"
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11443 # include <sys/types.h>
11444 # include <netdb.h>
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_var_h_errno=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_var_h_errno=no
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11475 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11476 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11477 if test "$ac_cv_var_h_errno" = "yes"; then
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_H_ERRNO 1
11486 # Check whether --with-crypto or --without-crypto was given.
11487 if test "${with_crypto+set}" = set; then
11488 withval="$with_crypto"
11492 echo "$as_me:$LINENO: checking for SSLeay" >&5
11493 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11494 ac_cv_ssleay_path=no
11498 # If Xprefix is set in the environment, use that value.
11499 # XXX - this should arguably be done by having --with-crypto take an
11500 # optional argument, and have that argument be used to set Xprefix
11503 if test -z "$Xprefix"; then
11504 Xprefix=`eval echo $prefix`
11507 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11509 # XXX - is there a better way to check if a given library is
11510 # in a given directory than checking each of the possible
11511 # shared library suffixes?
11513 # Are there any other suffixes we need to look for? Do we have to
11514 # worry about ".so.{version}"?
11516 # Or should we just look for "libcrypto.*"?
11518 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11519 -f $dir/lib/libcrypto.so -o \
11520 -f $dir/lib/libcrypto.sl -o \
11521 -f $dir/lib/libcrypto.dylib \); then
11522 ac_cv_ssleay_path=$dir
11524 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11525 incdir="-I$dir/include"
11527 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11530 ac_cv_ssleay_path=no
11534 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11535 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11536 if test "$ac_cv_ssleay_path" != no; then
11537 V_INCLS="$V_INCLS $incdir"
11538 LDFLAGS="-L$dir/lib $LDFLAGS"
11539 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11540 LIBS="$LIBS -lRSAglue"
11542 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11543 LIBS="$LIBS -lrsaref"
11546 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11547 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11548 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lcrypto $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11567 char DES_cbc_encrypt ();
11571 DES_cbc_encrypt ();
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578 (eval $ac_link) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_cv_lib_crypto_DES_cbc_encrypt=no
11595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11598 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11599 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11600 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define HAVE_LIBCRYPTO 1
11605 LIBS="-lcrypto $LIBS"
11610 CPPFLAGS="$CPPFLAGS $V_INCLS"
11612 for ac_header in openssl/evp.h
11614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616 echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11624 # Is the header compilable?
11625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11627 cat >conftest.$ac_ext <<_ACEOF
11628 #line $LINENO "configure"
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 $ac_includes_default
11635 #include <$ac_header>
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_header_compiler=yes
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_header_compiler=no
11656 rm -f conftest.$ac_objext conftest.$ac_ext
11657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6
11660 # Is the header present?
11661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11663 cat >conftest.$ac_ext <<_ACEOF
11664 #line $LINENO "configure"
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <$ac_header>
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11675 grep -v '^ *+' conftest.er1 >conftest.err
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null; then
11680 if test -s conftest.err; then
11681 ac_cpp_err=$ac_c_preproc_warn_flag
11688 if test -z "$ac_cpp_err"; then
11689 ac_header_preproc=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_header_preproc=no
11696 rm -f conftest.err conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc in
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 ## ------------------------------------ ##
11710 ## Report this to bug-autoconf@gnu.org. ##
11711 ## ------------------------------------ ##
11714 sed "s/^/$as_me: WARNING: /" >&2
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 ## ------------------------------------ ##
11726 ## Report this to bug-autoconf@gnu.org. ##
11727 ## ------------------------------------ ##
11730 sed "s/^/$as_me: WARNING: /" >&2
11733 echo "$as_me:$LINENO: checking for $ac_header" >&5
11734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 eval "$as_ac_Header=$ac_header_preproc"
11740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11757 if test "$missing_includes" = "yes"; then
11758 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11759 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11769 # Find a good install program. We prefer a C program (faster),
11770 # so one script is as good as another. But avoid the broken or
11771 # incompatible versions:
11772 # SysV /etc/install, /usr/sbin/install
11773 # SunOS /usr/etc/install
11774 # IRIX /sbin/install
11776 # AmigaOS /C/install, which installs bootblocks on floppy discs
11777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11780 # ./install, which can be erroneously created by make from ./install.sh.
11781 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11782 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11783 if test -z "$INSTALL"; then
11784 if test "${ac_cv_path_install+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11791 test -z "$as_dir" && as_dir=.
11792 # Account for people who put trailing slashes in PATH elements.
11794 ./ | .// | /cC/* | \
11795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11798 # OSF1 and SCO ODT 3.0 have their own names for install.
11799 # Don't use installbsd from OSF since it installs stuff as root
11801 for ac_prog in ginstall scoinst install; do
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11804 if test $ac_prog = install &&
11805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11806 # AIX install. It has an incompatible calling convention.
11808 elif test $ac_prog = install &&
11809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11810 # program-specific install script used by HP pwplus--don't use.
11813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11825 if test "${ac_cv_path_install+set}" = set; then
11826 INSTALL=$ac_cv_path_install
11828 # As a last resort, use the slow shell script. We don't cache a
11829 # path for INSTALL within a source directory, because that will
11830 # break other packages using the cache if that directory is
11831 # removed, or if the path is relative.
11832 INSTALL=$ac_install_sh
11835 echo "$as_me:$LINENO: result: $INSTALL" >&5
11836 echo "${ECHO_T}$INSTALL" >&6
11838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11839 # It thinks the first close brace ends the variable substitution.
11840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11847 ac_config_headers="$ac_config_headers config.h"
11850 ac_config_commands="$ac_config_commands default-1"
11852 ac_config_files="$ac_config_files Makefile"
11853 cat >confcache <<\_ACEOF
11854 # This file is a shell script that caches the results of configure
11855 # tests run on this system so they can be shared between configure
11856 # scripts and configure runs, see configure's option --config-cache.
11857 # It is not useful on other systems. If it contains results you don't
11858 # want to keep, you may remove or edit it.
11860 # config.status only pays attention to the cache file if you give it
11861 # the --recheck option to rerun configure.
11863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11865 # following values.
11869 # The following way of writing the cache mishandles newlines in values,
11870 # but we know of no workaround that is simple, portable, and efficient.
11871 # So, don't put newlines in cache variables' values.
11872 # Ultrix sh set writes to stderr and can't be redirected directly,
11873 # and sets the high bit in the cache file unless we assign to the vars.
11876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11878 # `set' does not quote correctly, so add quotes (double-quote
11879 # substitution turns \\\\ into \\, and sed turns \\ into \).
11882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11885 # `set' quotes correctly as required by POSIX, so do not add quotes.
11887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11899 if test -w $cache_file; then
11900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11901 cat confcache >$cache_file
11903 echo "not updating unwritable cache $cache_file"
11908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11909 # Let make expand exec_prefix.
11910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11914 # trailing colons and then remove the whole line if VPATH becomes empty
11915 # (actually we leave an empty line to preserve line numbers).
11916 if test "x$srcdir" = x.; then
11917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11918 s/:*\$(srcdir):*/:/;
11919 s/:*\${srcdir}:*/:/;
11921 s/^\([^=]*=[ ]*\):*/\1/;
11927 DEFS=-DHAVE_CONFIG_H
11931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11932 # 1. Remove the extension, and $U if already installed.
11933 ac_i=`echo "$ac_i" |
11934 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11936 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11937 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11939 LIBOBJS=$ac_libobjs
11941 LTLIBOBJS=$ac_ltlibobjs
11945 : ${CONFIG_STATUS=./config.status}
11946 ac_clean_files_save=$ac_clean_files
11947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11950 cat >$CONFIG_STATUS <<_ACEOF
11952 # Generated by $as_me.
11953 # Run this file to recreate the current configuration.
11954 # Compiler output produced by configure, useful for debugging
11955 # configure, is in config.log if it exists.
11958 ac_cs_recheck=false
11960 SHELL=\${CONFIG_SHELL-$SHELL}
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 ## --------------------- ##
11965 ## M4sh Initialization. ##
11966 ## --------------------- ##
11968 # Be Bourne compatible
11969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11973 # is contrary to our usage. Disable this feature.
11974 alias -g '${1+"$@"}'='"$@"'
11975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11979 # Support unset when possible.
11980 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11987 # Work around bugs in pre-3.0 UWIN ksh.
11988 $as_unset ENV MAIL MAILPATH
11995 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11996 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11997 LC_TELEPHONE LC_TIME
11999 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12000 eval $as_var=C; export $as_var
12006 # Required to use basename.
12007 if expr a : '\(a\)' >/dev/null 2>&1; then
12013 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12014 as_basename=basename
12020 # Name of the executable.
12021 as_me=`$as_basename "$0" ||
12022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12023 X"$0" : 'X\(//\)$' \| \
12024 X"$0" : 'X\(/\)$' \| \
12025 . : '\(.\)' 2>/dev/null ||
12027 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12028 /^X\/\(\/\/\)$/{ s//\1/; q; }
12029 /^X\/\(\/\).*/{ s//\1/; q; }
12033 # PATH needs CR, and LINENO needs CR and PATH.
12034 # Avoid depending upon Character Ranges.
12035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038 as_cr_digits='0123456789'
12039 as_cr_alnum=$as_cr_Letters$as_cr_digits
12041 # The user is always right.
12042 if test "${PATH_SEPARATOR+set}" != set; then
12043 echo "#! /bin/sh" >conf$$.sh
12044 echo "exit 0" >>conf$$.sh
12046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12055 as_lineno_1=$LINENO
12056 as_lineno_2=$LINENO
12057 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12058 test "x$as_lineno_1" != "x$as_lineno_2" &&
12059 test "x$as_lineno_3" = "x$as_lineno_2" || {
12060 # Find who we are. Look in the path if we contain no path at all
12063 *[\\/]* ) as_myself=$0 ;;
12064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12068 test -z "$as_dir" && as_dir=.
12069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12074 # We did not find ourselves, most probably we were run as `sh COMMAND'
12075 # in which case we are not to be found in the path.
12076 if test "x$as_myself" = x; then
12079 if test ! -f "$as_myself"; then
12080 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12081 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12082 { (exit 1); exit 1; }; }
12084 case $CONFIG_SHELL in
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12090 test -z "$as_dir" && as_dir=.
12091 for as_base in sh bash ksh sh5; do
12094 if ("$as_dir/$as_base" -c '
12095 as_lineno_1=$LINENO
12096 as_lineno_2=$LINENO
12097 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12098 test "x$as_lineno_1" != "x$as_lineno_2" &&
12099 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12100 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12101 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12102 CONFIG_SHELL=$as_dir/$as_base
12103 export CONFIG_SHELL
12104 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12112 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12113 # uniformly replaced by the line number. The first 'sed' inserts a
12114 # line-number line before each line; the second 'sed' does the real
12115 # work. The second script uses 'N' to pair each line-number line
12116 # with the numbered line, and appends trailing '-' during
12117 # substitution so that $LINENO is not a special case at line end.
12118 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12119 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12120 sed '=' <$as_myself |
12125 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12128 s,^['$as_cr_digits']*\n,,
12129 ' >$as_me.lineno &&
12130 chmod +x $as_me.lineno ||
12131 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12132 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12133 { (exit 1); exit 1; }; }
12135 # Don't try to exec as it changes $[0], causing all sort of problems
12136 # (the dirname of $[0] is not the place where we might find the
12137 # original and so on. Autoconf is especially sensible to this).
12139 # Exit status is that of the last command.
12144 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12145 *c*,-n*) ECHO_N= ECHO_C='
12147 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12148 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12151 if expr a : '\(a\)' >/dev/null 2>&1; then
12157 rm -f conf$$ conf$$.exe conf$$.file
12159 if ln -s conf$$.file conf$$ 2>/dev/null; then
12160 # We could just check for DJGPP; but this test a) works b) is more generic
12161 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12162 if test -f conf$$.exe; then
12163 # Don't use ln at all; we don't have any links
12168 elif ln conf$$.file conf$$ 2>/dev/null; then
12173 rm -f conf$$ conf$$.exe conf$$.file
12175 if mkdir -p . 2>/dev/null; then
12181 as_executable_p="test -f"
12183 # Sed expression to map a string onto a valid CPP name.
12184 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12186 # Sed expression to map a string onto a valid variable name.
12187 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12191 # We need space, tab and new line, in precisely that order.
12201 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12202 # report actual input values of CONFIG_FILES etc. instead of their
12203 # values after options handling. Logging --version etc. is OK.
12207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12208 ## Running $as_me. ##
12213 This file was extended by $as_me, which was
12214 generated by GNU Autoconf 2.57. Invocation command line was
12216 CONFIG_FILES = $CONFIG_FILES
12217 CONFIG_HEADERS = $CONFIG_HEADERS
12218 CONFIG_LINKS = $CONFIG_LINKS
12219 CONFIG_COMMANDS = $CONFIG_COMMANDS
12223 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12227 # Files that config.status was made for.
12228 if test -n "$ac_config_files"; then
12229 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12232 if test -n "$ac_config_headers"; then
12233 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12236 if test -n "$ac_config_links"; then
12237 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12240 if test -n "$ac_config_commands"; then
12241 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12244 cat >>$CONFIG_STATUS <<\_ACEOF
12247 \`$as_me' instantiates files from templates according to the
12248 current configuration.
12250 Usage: $0 [OPTIONS] [FILE]...
12252 -h, --help print this help, then exit
12253 -V, --version print version number, then exit
12254 -q, --quiet do not print progress messages
12255 -d, --debug don't remove temporary files
12256 --recheck update $as_me by reconfiguring in the same conditions
12257 --file=FILE[:TEMPLATE]
12258 instantiate the configuration file FILE
12259 --header=FILE[:TEMPLATE]
12260 instantiate the configuration header FILE
12262 Configuration files:
12265 Configuration headers:
12268 Configuration commands:
12271 Report bugs to <bug-autoconf@gnu.org>."
12274 cat >>$CONFIG_STATUS <<_ACEOF
12277 configured by $0, generated by GNU Autoconf 2.57,
12278 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12280 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12281 Free Software Foundation, Inc.
12282 This config.status script is free software; the Free Software Foundation
12283 gives unlimited permission to copy, distribute and modify it."
12288 cat >>$CONFIG_STATUS <<\_ACEOF
12289 # If no file are specified by the user, then we need to provide default
12290 # value. By we need to know if files were specified by the user.
12296 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12297 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12305 *) # This is not an option, so the user has probably given explicit
12308 ac_need_defaults=false;;
12312 # Handling of the options.
12314 cat >>$CONFIG_STATUS <<\_ACEOF
12315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12317 --version | --vers* | -V )
12318 echo "$ac_cs_version"; exit 0 ;;
12320 # Conflict between --help and --header
12321 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12322 Try \`$0 --help' for more information." >&5
12323 echo "$as_me: error: ambiguous option: $1
12324 Try \`$0 --help' for more information." >&2;}
12325 { (exit 1); exit 1; }; };;
12326 --help | --hel | -h )
12327 echo "$ac_cs_usage"; exit 0 ;;
12328 --debug | --d* | -d )
12330 --file | --fil | --fi | --f )
12332 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12333 ac_need_defaults=false;;
12334 --header | --heade | --head | --hea )
12336 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12337 ac_need_defaults=false;;
12338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12339 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12342 # This is an error.
12343 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12344 Try \`$0 --help' for more information." >&5
12345 echo "$as_me: error: unrecognized option: $1
12346 Try \`$0 --help' for more information." >&2;}
12347 { (exit 1); exit 1; }; } ;;
12349 *) ac_config_targets="$ac_config_targets $1" ;;
12355 ac_configure_extra_args=
12357 if $ac_cs_silent; then
12359 ac_configure_extra_args="$ac_configure_extra_args --silent"
12363 cat >>$CONFIG_STATUS <<_ACEOF
12364 if \$ac_cs_recheck; then
12365 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12366 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12371 cat >>$CONFIG_STATUS <<_ACEOF
12373 # INIT-COMMANDS section.
12382 cat >>$CONFIG_STATUS <<\_ACEOF
12383 for ac_config_target in $ac_config_targets
12385 case "$ac_config_target" in
12386 # Handling of arguments.
12387 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12388 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12389 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12392 { (exit 1); exit 1; }; };;
12396 # If the user did not use the arguments to specify the items to instantiate,
12397 # then the envvar interface is used. Set only those that are not.
12398 # We use the long form for the default assignment because of an extremely
12399 # bizarre bug on SunOS 4.1.3.
12400 if $ac_need_defaults; then
12401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12406 # Have a temporary directory for convenience. Make it in the build tree
12407 # simply because there is no reason to put it here, and in addition,
12408 # creating and moving files from /tmp can sometimes cause problems.
12409 # Create a temporary directory, and hook for its removal unless debugging.
12412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12413 trap '{ (exit 1); exit 1; }' 1 2 13 15
12416 # Create a (secure) tmp directory for tmp files.
12419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12420 test -n "$tmp" && test -d "$tmp"
12423 tmp=./confstat$$-$RANDOM
12424 (umask 077 && mkdir $tmp)
12427 echo "$me: cannot create a temporary directory in ." >&2
12428 { (exit 1); exit 1; }
12433 cat >>$CONFIG_STATUS <<_ACEOF
12436 # CONFIG_FILES section.
12439 # No need to generate the scripts if there are no CONFIG_FILES.
12440 # This happens for instance when ./config.status config.h
12441 if test -n "\$CONFIG_FILES"; then
12442 # Protect against being on the right side of a sed subst in config.status.
12443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12445 s,@SHELL@,$SHELL,;t t
12446 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12447 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12448 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12449 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12450 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12451 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12452 s,@exec_prefix@,$exec_prefix,;t t
12453 s,@prefix@,$prefix,;t t
12454 s,@program_transform_name@,$program_transform_name,;t t
12455 s,@bindir@,$bindir,;t t
12456 s,@sbindir@,$sbindir,;t t
12457 s,@libexecdir@,$libexecdir,;t t
12458 s,@datadir@,$datadir,;t t
12459 s,@sysconfdir@,$sysconfdir,;t t
12460 s,@sharedstatedir@,$sharedstatedir,;t t
12461 s,@localstatedir@,$localstatedir,;t t
12462 s,@libdir@,$libdir,;t t
12463 s,@includedir@,$includedir,;t t
12464 s,@oldincludedir@,$oldincludedir,;t t
12465 s,@infodir@,$infodir,;t t
12466 s,@mandir@,$mandir,;t t
12467 s,@build_alias@,$build_alias,;t t
12468 s,@host_alias@,$host_alias,;t t
12469 s,@target_alias@,$target_alias,;t t
12470 s,@DEFS@,$DEFS,;t t
12471 s,@ECHO_C@,$ECHO_C,;t t
12472 s,@ECHO_N@,$ECHO_N,;t t
12473 s,@ECHO_T@,$ECHO_T,;t t
12474 s,@LIBS@,$LIBS,;t t
12475 s,@build@,$build,;t t
12476 s,@build_cpu@,$build_cpu,;t t
12477 s,@build_vendor@,$build_vendor,;t t
12478 s,@build_os@,$build_os,;t t
12479 s,@host@,$host,;t t
12480 s,@host_cpu@,$host_cpu,;t t
12481 s,@host_vendor@,$host_vendor,;t t
12482 s,@host_os@,$host_os,;t t
12483 s,@SHLICC2@,$SHLICC2,;t t
12485 s,@CFLAGS@,$CFLAGS,;t t
12486 s,@LDFLAGS@,$LDFLAGS,;t t
12487 s,@CPPFLAGS@,$CPPFLAGS,;t t
12488 s,@ac_ct_CC@,$ac_ct_CC,;t t
12489 s,@EXEEXT@,$EXEEXT,;t t
12490 s,@OBJEXT@,$OBJEXT,;t t
12492 s,@EGREP@,$EGREP,;t t
12493 s,@LIBOBJS@,$LIBOBJS,;t t
12494 s,@V_CCOPT@,$V_CCOPT,;t t
12495 s,@V_DEFS@,$V_DEFS,;t t
12496 s,@V_GROUP@,$V_GROUP,;t t
12497 s,@V_INCLS@,$V_INCLS,;t t
12498 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12499 s,@LOCALSRC@,$LOCALSRC,;t t
12500 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12501 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12502 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12503 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12508 cat >>$CONFIG_STATUS <<\_ACEOF
12509 # Split the substitutions into bite-sized pieces for seds with
12510 # small command number limits, like on Digital OSF/1 and HP-UX.
12511 ac_max_sed_lines=48
12512 ac_sed_frag=1 # Number of current file.
12513 ac_beg=1 # First line for current file.
12514 ac_end=$ac_max_sed_lines # Line after last line for current file.
12517 while $ac_more_lines; do
12518 if test $ac_beg -gt 1; then
12519 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12521 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12523 if test ! -s $tmp/subs.frag; then
12524 ac_more_lines=false
12526 # The purpose of the label and of the branching condition is to
12527 # speed up the sed processing (if there are no `@' at all, there
12528 # is no need to browse any of the substitutions).
12529 # These are the two extra sed commands mentioned above.
12531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12532 if test -z "$ac_sed_cmds"; then
12533 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12535 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12537 ac_sed_frag=`expr $ac_sed_frag + 1`
12539 ac_end=`expr $ac_end + $ac_max_sed_lines`
12542 if test -z "$ac_sed_cmds"; then
12545 fi # test -n "$CONFIG_FILES"
12548 cat >>$CONFIG_STATUS <<\_ACEOF
12549 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12550 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12552 - | *:- | *:-:* ) # input from stdin
12554 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12556 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12558 * ) ac_file_in=$ac_file.in ;;
12561 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12562 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12564 X"$ac_file" : 'X\(//\)[^/]' \| \
12565 X"$ac_file" : 'X\(//\)$' \| \
12566 X"$ac_file" : 'X\(/\)' \| \
12567 . : '\(.\)' 2>/dev/null ||
12569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12571 /^X\(\/\/\)$/{ s//\1/; q; }
12572 /^X\(\/\).*/{ s//\1/; q; }
12574 { if $as_mkdir_p; then
12579 while test ! -d "$as_dir"; do
12580 as_dirs="$as_dir $as_dirs"
12581 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583 X"$as_dir" : 'X\(//\)[^/]' \| \
12584 X"$as_dir" : 'X\(//\)$' \| \
12585 X"$as_dir" : 'X\(/\)' \| \
12586 . : '\(.\)' 2>/dev/null ||
12588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12590 /^X\(\/\/\)$/{ s//\1/; q; }
12591 /^X\(\/\).*/{ s//\1/; q; }
12594 test ! -n "$as_dirs" || mkdir $as_dirs
12595 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12597 { (exit 1); exit 1; }; }; }
12601 if test "$ac_dir" != .; then
12602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12603 # A "../" for each directory in $ac_dir_suffix.
12604 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12606 ac_dir_suffix= ac_top_builddir=
12610 .) # No --srcdir option. We are building in place.
12612 if test -z "$ac_top_builddir"; then
12615 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12617 [\\/]* | ?:[\\/]* ) # Absolute path.
12618 ac_srcdir=$srcdir$ac_dir_suffix;
12619 ac_top_srcdir=$srcdir ;;
12620 *) # Relative path.
12621 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12622 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12624 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12626 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12627 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12628 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12629 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12634 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12637 if test x"$ac_file" != x-; then
12638 { echo "$as_me:$LINENO: creating $ac_file" >&5
12639 echo "$as_me: creating $ac_file" >&6;}
12642 # Let's still pretend it is `configure' which instantiates (i.e., don't
12643 # use $as_me), people would be surprised to read:
12644 # /* config.h. Generated by config.status. */
12645 if test x"$ac_file" = x-; then
12648 configure_input="$ac_file. "
12650 configure_input=$configure_input"Generated from `echo $ac_file_in |
12651 sed 's,.*/,,'` by configure."
12653 # First look for the input files in the build tree, otherwise in the
12655 ac_file_inputs=`IFS=:
12656 for f in $ac_file_in; do
12658 -) echo $tmp/stdin ;;
12660 # Absolute (can't be DOS-style, as IFS=:)
12661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12662 echo "$as_me: error: cannot find input file: $f" >&2;}
12663 { (exit 1); exit 1; }; }
12666 if test -f "$f"; then
12669 elif test -f "$srcdir/$f"; then
12674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12675 echo "$as_me: error: cannot find input file: $f" >&2;}
12676 { (exit 1); exit 1; }; }
12679 done` || { (exit 1); exit 1; }
12681 cat >>$CONFIG_STATUS <<_ACEOF
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12688 s,@configure_input@,$configure_input,;t t
12689 s,@srcdir@,$ac_srcdir,;t t
12690 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12691 s,@top_srcdir@,$ac_top_srcdir,;t t
12692 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12693 s,@builddir@,$ac_builddir,;t t
12694 s,@abs_builddir@,$ac_abs_builddir,;t t
12695 s,@top_builddir@,$ac_top_builddir,;t t
12696 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12697 s,@INSTALL@,$ac_INSTALL,;t t
12698 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12700 if test x"$ac_file" != x-; then
12701 mv $tmp/out $ac_file
12709 cat >>$CONFIG_STATUS <<\_ACEOF
12712 # CONFIG_HEADER section.
12715 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12716 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12718 # ac_d sets the value in "#define NAME VALUE" lines.
12719 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12720 ac_dB='[ ].*$,\1#\2'
12723 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12724 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12725 ac_uB='$,\1#\2define\3'
12729 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12732 - | *:- | *:-:* ) # input from stdin
12734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12738 * ) ac_file_in=$ac_file.in ;;
12741 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12742 echo "$as_me: creating $ac_file" >&6;}
12744 # First look for the input files in the build tree, otherwise in the
12746 ac_file_inputs=`IFS=:
12747 for f in $ac_file_in; do
12749 -) echo $tmp/stdin ;;
12751 # Absolute (can't be DOS-style, as IFS=:)
12752 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12753 echo "$as_me: error: cannot find input file: $f" >&2;}
12754 { (exit 1); exit 1; }; }
12757 if test -f "$f"; then
12760 elif test -f "$srcdir/$f"; then
12765 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12766 echo "$as_me: error: cannot find input file: $f" >&2;}
12767 { (exit 1); exit 1; }; }
12770 done` || { (exit 1); exit 1; }
12771 # Remove the trailing spaces.
12772 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12776 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12777 # `conftest.undefs', that substitutes the proper values into
12778 # config.h.in to produce config.h. The first handles `#define'
12779 # templates, and the second `#undef' templates.
12780 # And first: Protect against being on the right side of a sed subst in
12781 # config.status. Protect against being in an unquoted here document
12782 # in config.status.
12783 rm -f conftest.defines conftest.undefs
12784 # Using a here document instead of a string reduces the quoting nightmare.
12785 # Putting comments in sed scripts is not portable.
12787 # `end' is used to avoid that the second main sed command (meant for
12788 # 0-ary CPP macros) applies to n-ary macro definitions.
12789 # See the Autoconf documentation for `clear'.
12790 cat >confdef2sed.sed <<\_ACEOF
12795 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12797 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12800 # If some macros were called several times there might be several times
12801 # the same #defines, which is useless. Nevertheless, we may not want to
12802 # sort them, since we want the *last* AC-DEFINE to be honored.
12803 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12804 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12805 rm -f confdef2sed.sed
12807 # This sed command replaces #undef with comments. This is necessary, for
12808 # example, in the case of _POSIX_SOURCE, which is predefined and required
12809 # on some systems where configure will not decide to define it.
12810 cat >>conftest.undefs <<\_ACEOF
12811 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12814 # Break up conftest.defines because some shells have a limit on the size
12815 # of here documents, and old seds have small limits too (100 cmds).
12816 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12817 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12818 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12819 echo ' :' >>$CONFIG_STATUS
12820 rm -f conftest.tail
12821 while grep . conftest.defines >/dev/null
12823 # Write a limited-size here document to $tmp/defines.sed.
12824 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12825 # Speed up: don't consider the non `#define' lines.
12826 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12827 # Work around the forget-to-reset-the-flag bug.
12828 echo 't clr' >>$CONFIG_STATUS
12829 echo ': clr' >>$CONFIG_STATUS
12830 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12832 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12834 mv $tmp/out $tmp/in
12836 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12837 rm -f conftest.defines
12838 mv conftest.tail conftest.defines
12840 rm -f conftest.defines
12841 echo ' fi # grep' >>$CONFIG_STATUS
12842 echo >>$CONFIG_STATUS
12844 # Break up conftest.undefs because some shells have a limit on the size
12845 # of here documents, and old seds have small limits too (100 cmds).
12846 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12847 rm -f conftest.tail
12848 while grep . conftest.undefs >/dev/null
12850 # Write a limited-size here document to $tmp/undefs.sed.
12851 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12852 # Speed up: don't consider the non `#undef'
12853 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12854 # Work around the forget-to-reset-the-flag bug.
12855 echo 't clr' >>$CONFIG_STATUS
12856 echo ': clr' >>$CONFIG_STATUS
12857 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12859 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12861 mv $tmp/out $tmp/in
12863 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12864 rm -f conftest.undefs
12865 mv conftest.tail conftest.undefs
12867 rm -f conftest.undefs
12869 cat >>$CONFIG_STATUS <<\_ACEOF
12870 # Let's still pretend it is `configure' which instantiates (i.e., don't
12871 # use $as_me), people would be surprised to read:
12872 # /* config.h. Generated by config.status. */
12873 if test x"$ac_file" = x-; then
12874 echo "/* Generated by configure. */" >$tmp/config.h
12876 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12878 cat $tmp/in >>$tmp/config.h
12880 if test x"$ac_file" != x-; then
12881 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12883 echo "$as_me: $ac_file is unchanged" >&6;}
12885 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12887 X"$ac_file" : 'X\(//\)[^/]' \| \
12888 X"$ac_file" : 'X\(//\)$' \| \
12889 X"$ac_file" : 'X\(/\)' \| \
12890 . : '\(.\)' 2>/dev/null ||
12892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12894 /^X\(\/\/\)$/{ s//\1/; q; }
12895 /^X\(\/\).*/{ s//\1/; q; }
12897 { if $as_mkdir_p; then
12902 while test ! -d "$as_dir"; do
12903 as_dirs="$as_dir $as_dirs"
12904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$as_dir" : 'X\(//\)[^/]' \| \
12907 X"$as_dir" : 'X\(//\)$' \| \
12908 X"$as_dir" : 'X\(/\)' \| \
12909 . : '\(.\)' 2>/dev/null ||
12911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12913 /^X\(\/\/\)$/{ s//\1/; q; }
12914 /^X\(\/\).*/{ s//\1/; q; }
12917 test ! -n "$as_dirs" || mkdir $as_dirs
12918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12919 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12920 { (exit 1); exit 1; }; }; }
12923 mv $tmp/config.h $ac_file
12927 rm -f $tmp/config.h
12931 cat >>$CONFIG_STATUS <<\_ACEOF
12934 # CONFIG_COMMANDS section.
12936 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12937 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12938 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12939 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12940 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941 X"$ac_dest" : 'X\(//\)[^/]' \| \
12942 X"$ac_dest" : 'X\(//\)$' \| \
12943 X"$ac_dest" : 'X\(/\)' \| \
12944 . : '\(.\)' 2>/dev/null ||
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948 /^X\(\/\/\)$/{ s//\1/; q; }
12949 /^X\(\/\).*/{ s//\1/; q; }
12953 if test "$ac_dir" != .; then
12954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12955 # A "../" for each directory in $ac_dir_suffix.
12956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12958 ac_dir_suffix= ac_top_builddir=
12962 .) # No --srcdir option. We are building in place.
12964 if test -z "$ac_top_builddir"; then
12967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12969 [\\/]* | ?:[\\/]* ) # Absolute path.
12970 ac_srcdir=$srcdir$ac_dir_suffix;
12971 ac_top_srcdir=$srcdir ;;
12972 *) # Relative path.
12973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12984 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12985 echo "$as_me: executing $ac_dest commands" >&6;}
12987 default-1 ) if test -f .devel; then
12988 echo timestamp > stamp-h
12989 cat Makefile-devel-adds >> Makefile
12996 cat >>$CONFIG_STATUS <<\_ACEOF
12998 { (exit 0); exit 0; }
13000 chmod +x $CONFIG_STATUS
13001 ac_clean_files=$ac_clean_files_save
13004 # configure is writing to config.log, and then calls config.status.
13005 # config.status does its own redirection, appending to config.log.
13006 # Unfortunately, on DOS this fails, as config.log is still kept open
13007 # by configure, so config.status won't be able to write to it; its
13008 # output is simply discarded. So we exec the FD to /dev/null,
13009 # effectively closing config.log, so it can be properly (re)opened and
13010 # appended to by config.status. When coming back to configure, we
13011 # need to make the FD available again.
13012 if test "$no_create" != yes; then
13014 ac_config_status_args=
13015 test "$silent" = yes &&
13016 ac_config_status_args="$ac_config_status_args --quiet"
13018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13021 # would make configure fail if this is the last instruction.
13022 $ac_cs_success || { (exit 1); exit 1; }