2 # From configure.in Revision: 1.188.2.4 .
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
/v
6/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
/inet
6/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
/v
6/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
/v
6/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
/v
6/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
8445 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
8448 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8449 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8450 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 cat >conftest.
$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8457 cat confdefs.h
>>conftest.
$ac_ext
8458 cat >>conftest.
$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char pcap_set_datalink (); below.
8462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463 <limits.h> exists even on freestanding compilers. */
8465 # include <limits.h>
8467 # include <assert.h>
8469 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8476 char pcap_set_datalink ();
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8483 char (*f) () = pcap_set_datalink;
8492 return f != pcap_set_datalink;
8497 rm -f conftest.
$ac_objext conftest
$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try
='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_pcap_set_datalink
=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 ac_cv_func_pcap_set_datalink
=no
8516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8519 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8520 if test $ac_cv_func_pcap_set_datalink = yes; then
8521 cat >>confdefs.h
<<\_ACEOF
8522 #define HAVE_PCAP_SET_DATALINK 1
8527 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8528 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8529 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 cat >conftest.
$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8536 cat confdefs.h
>>conftest.
$ac_ext
8537 cat >>conftest.
$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char pcap_datalink_name_to_val (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8544 # include <limits.h>
8546 # include <assert.h>
8548 /* Override any gcc2 internal prototype to avoid an error. */
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8555 char pcap_datalink_name_to_val ();
8556 /* The GNU C library defines this for functions which it implements
8557 to always fail with ENOSYS. Some functions are actually named
8558 something starting with __ and the normal name is an alias. */
8559 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8562 char (*f) () = pcap_datalink_name_to_val;
8571 return f != pcap_datalink_name_to_val;
8576 rm -f conftest.
$ac_objext conftest
$ac_exeext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578 (eval $ac_link) 2>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try
='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_func_pcap_datalink_name_to_val
=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8593 ac_cv_func_pcap_datalink_name_to_val
=no
8595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8598 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8599 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8601 cat >>confdefs.h
<<\_ACEOF
8602 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8605 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8606 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8607 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.
$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8614 cat confdefs.h
>>conftest.
$ac_ext
8615 cat >>conftest.
$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 /* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char pcap_datalink_val_to_description (); below.
8619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620 <limits.h> exists even on freestanding compilers. */
8622 # include <limits.h>
8624 # include <assert.h>
8626 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char pcap_datalink_val_to_description ();
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8640 char (*f) () = pcap_datalink_val_to_description;
8649 return f != pcap_datalink_val_to_description;
8654 rm -f conftest.
$ac_objext conftest
$ac_exeext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try
='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_func_pcap_datalink_val_to_description
=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.
$ac_ext >&5
8671 ac_cv_func_pcap_datalink_val_to_description
=no
8673 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8676 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8677 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8678 cat >>confdefs.h
<<\_ACEOF
8679 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8683 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8688 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8693 for ac_func
in pcap_breakloop
8695 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696 echo "$as_me:$LINENO: checking for $ac_func" >&5
8697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8698 if eval "test \"\${$as_ac_var+set}\" = set"; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 cat >conftest.
$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8705 cat confdefs.h
>>conftest.
$ac_ext
8706 cat >>conftest.
$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char $ac_func (); below.
8710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 <limits.h> exists even on freestanding compilers. */
8713 # include <limits.h>
8715 # include <assert.h>
8717 /* Override any gcc2 internal prototype to avoid an error. */
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8725 /* The GNU C library defines this for functions which it implements
8726 to always fail with ENOSYS. Some functions are actually named
8727 something starting with __ and the normal name is an alias. */
8728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8731 char (*f) () = $ac_func;
8740 return f != $ac_func;
8745 rm -f conftest.
$ac_objext conftest
$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try
='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 eval "$as_ac_var=yes"
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.
$ac_ext >&5
8762 eval "$as_ac_var=no"
8764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8768 if test `eval echo '${'$as_ac_var'}'` = yes; then
8769 cat >>confdefs.h
<<_ACEOF
8770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8779 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8780 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8782 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8783 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8784 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8785 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8786 # it does not ship with a libc symbol "inet_ntop()", it ships with
8787 # "_inet_ntop()", and has a #define macro in one of the system headers
8790 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8791 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8792 cat >conftest.
$ac_ext <<_ACEOF
8793 #line $LINENO "configure"
8796 cat confdefs.h
>>conftest.
$ac_ext
8797 cat >>conftest.
$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 #include <sys/types.h>
8800 #include <sys/socket.h>
8801 #include <netinet/in.h>
8802 #include <arpa/inet.h>
8806 char src[4], dst[128];
8807 inet_ntop(AF_INET, src, dst, sizeof(dst));
8812 rm -f conftest.
$ac_objext conftest
$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try
='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.
$ac_ext >&5
8830 echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6
8832 LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8835 echo "$as_me:$LINENO: checking for inet_pton" >&5
8836 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8837 cat >conftest.
$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8841 cat confdefs.h
>>conftest.
$ac_ext
8842 cat >>conftest.
$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 #include <sys/types.h>
8845 #include <sys/socket.h>
8846 #include <netinet/in.h>
8847 #include <arpa/inet.h>
8851 char src[128], dst[4];
8852 inet_pton(AF_INET, src, dst);
8857 rm -f conftest.
$ac_objext conftest
$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try
='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870 echo "${ECHO_T}yes" >&6
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.
$ac_ext >&5
8875 echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877 LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
8879 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8880 echo "$as_me:$LINENO: checking for inet_aton" >&5
8881 echo $ECHO_N "checking for inet_aton... $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 <netinet/in.h>
8891 #include <arpa/inet.h>
8897 inet_aton(src, &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_aton.$ac_objext"
8924 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8927 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8929 # You are in a twisty little maze of UN*Xes, all different.
8930 # Some might not have ether_ntohost().
8931 # Some might have it, but not declare it in any header file.
8932 # Some might have it, but declare it in <netinet/if_ether.h>.
8933 # Some might have it, but declare it in <netinet/ether.h>
8934 # (And some might have it but document it as something declared in
8935 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8937 # Before you is a C compiler.
8940 for ac_func
in ether_ntohost
8942 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.
$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8952 cat confdefs.h
>>conftest.
$ac_ext
8953 cat >>conftest.
$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8964 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8978 char (*f) () = $ac_func;
8987 return f != $ac_func;
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 eval "$as_ac_var=yes"
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.
$ac_ext >&5
9009 eval "$as_ac_var=no"
9011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9015 if test `eval echo '${'$as_ac_var'}'` = yes; then
9016 cat >>confdefs.h
<<_ACEOF
9017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9020 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9021 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9022 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 if test "$cross_compiling" = yes; then
9027 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
9029 cat >conftest.
$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9033 cat confdefs.h
>>conftest.
$ac_ext
9034 cat >>conftest.
$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9038 #include <sys/types.h>
9039 #include <sys/param.h>
9040 #include <sys/socket.h>
9043 main(int argc, char **argv)
9045 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9046 char name[MAXHOSTNAMELEN];
9048 ether_ntohost(name, (struct ether_addr *)ea);
9053 rm -f conftest
$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_buggy_ether_ntohost
=no
9066 echo "$as_me: program exited with status $ac_status" >&5
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.
$ac_ext >&5
9071 ac_cv_buggy_ether_ntohost
=yes
9073 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9076 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9077 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9078 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9079 cat >>confdefs.h
<<\_ACEOF
9080 #define USE_ETHER_NTOHOST 1
9088 if test "$ac_cv_func_ether_ntohost" = yes -a \
9089 "$ac_cv_buggy_ether_ntohost" = "no"; then
9091 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9093 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9095 # Yes. Does it declare ether_ntohost()?
9097 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9098 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9099 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 cat >conftest.
$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9106 cat confdefs.h
>>conftest.
$ac_ext
9107 cat >>conftest.
$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 #include <sys/types.h>
9111 #include <sys/socket.h>
9112 #include <netinet/in.h>
9113 #include <arpa/inet.h>
9117 #include <netinet/if_ether.h>
9123 #ifndef ether_ntohost
9124 char *p = (char *) ether_ntohost;
9131 rm -f conftest.
$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try
='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_have_decl_ether_ntohost
=yes
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.
$ac_ext >&5
9148 ac_cv_have_decl_ether_ntohost
=no
9150 rm -f conftest.
$ac_objext conftest.
$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9153 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9154 if test $ac_cv_have_decl_ether_ntohost = yes; then
9156 cat >>confdefs.h
<<_ACEOF
9157 #define HAVE_DECL_ETHER_NTOHOST 1
9162 cat >>confdefs.h
<<\_ACEOF
9163 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9168 cat >>confdefs.h
<<_ACEOF
9169 #define HAVE_DECL_ETHER_NTOHOST 0
9180 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9182 # No, how about <netinet/ether.h>, as on Linux?
9185 for ac_header
in netinet
/ether.h
9187 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo "$as_me:$LINENO: checking for $ac_header" >&5
9190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197 # Is the header compilable?
9198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9200 cat >conftest.
$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9204 cat confdefs.h
>>conftest.
$ac_ext
9205 cat >>conftest.
$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 #include <$ac_header>
9210 rm -f conftest.
$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try
='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_header_compiler
=yes
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.
$ac_ext >&5
9227 ac_header_compiler
=no
9229 rm -f conftest.
$ac_objext conftest.
$ac_ext
9230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9231 echo "${ECHO_T}$ac_header_compiler" >&6
9233 # Is the header present?
9234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9236 cat >conftest.
$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9240 cat confdefs.h
>>conftest.
$ac_ext
9241 cat >>conftest.
$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 #include <$ac_header>
9245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9246 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9248 grep -v '^ *+' conftest.er1
>conftest.err
9250 cat conftest.err
>&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev
/null
; then
9253 if test -s conftest.err
; then
9254 ac_cpp_err
=$ac_c_preproc_warn_flag
9261 if test -z "$ac_cpp_err"; then
9262 ac_header_preproc
=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.
$ac_ext >&5
9267 ac_header_preproc
=no
9269 rm -f conftest.err conftest.
$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9271 echo "${ECHO_T}$ac_header_preproc" >&6
9273 # So? What about this header?
9274 case $ac_header_compiler:$ac_header_preproc in
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9282 ## ------------------------------------ ##
9283 ## Report this to bug-autoconf@gnu.org. ##
9284 ## ------------------------------------ ##
9287 sed "s/^/$as_me: WARNING: /" >&2
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9298 ## ------------------------------------ ##
9299 ## Report this to bug-autoconf@gnu.org. ##
9300 ## ------------------------------------ ##
9303 sed "s/^/$as_me: WARNING: /" >&2
9306 echo "$as_me:$LINENO: checking for $ac_header" >&5
9307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 eval "$as_ac_Header=$ac_header_preproc"
9313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9318 cat >>confdefs.h
<<_ACEOF
9319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326 if test "$ac_cv_header_netinet_ether_h" = yes; then
9328 # We have it - does it declare ether_ntohost()?
9329 # Unset ac_cv_have_decl_ether_ntohost so we don't
9330 # treat the previous failure as a cached value and
9331 # suppress the next test.
9333 unset ac_cv_have_decl_ether_ntohost
9334 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9335 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9336 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 cat >conftest.
$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9343 cat confdefs.h
>>conftest.
$ac_ext
9344 cat >>conftest.
$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 #include <netinet/ether.h>
9353 #ifndef ether_ntohost
9354 char *p = (char *) ether_ntohost;
9361 rm -f conftest.
$ac_objext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363 (eval $ac_compile) 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try
='test -s conftest.$ac_objext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 ac_cv_have_decl_ether_ntohost
=yes
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.
$ac_ext >&5
9378 ac_cv_have_decl_ether_ntohost
=no
9380 rm -f conftest.
$ac_objext conftest.
$ac_ext
9382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9383 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9384 if test $ac_cv_have_decl_ether_ntohost = yes; then
9386 cat >>confdefs.h
<<_ACEOF
9387 #define HAVE_DECL_ETHER_NTOHOST 1
9392 cat >>confdefs.h
<<\_ACEOF
9393 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9398 cat >>confdefs.h
<<_ACEOF
9399 #define HAVE_DECL_ETHER_NTOHOST 0
9409 # Is ether_ntohost() declared?
9411 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9413 # No, we'll have to declare it ourselves.
9414 # Do we have "struct ether_addr"?
9416 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9417 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9418 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.
$ac_ext <<_ACEOF
9422 #line $LINENO "configure"
9425 cat confdefs.h
>>conftest.
$ac_ext
9426 cat >>conftest.
$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 #include <sys/types.h>
9430 #include <sys/socket.h>
9431 #include <netinet/in.h>
9432 #include <arpa/inet.h>
9436 #include <netinet/if_ether.h>
9442 if ((struct ether_addr *) 0)
9444 if (sizeof (struct ether_addr))
9450 rm -f conftest.
$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try
='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_struct_ether_addr
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_cv_type_struct_ether_addr
=no
9469 rm -f conftest.
$ac_objext conftest.
$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9472 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9473 if test $ac_cv_type_struct_ether_addr = yes; then
9475 cat >>confdefs.h
<<_ACEOF
9476 #define HAVE_STRUCT_ETHER_ADDR 1
9486 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9487 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9488 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.
$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 # include <sys/types.h>
9500 # include <sys/socket.h>
9504 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9509 rm -f conftest.
$ac_objext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try
='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_sockaddr_has_sa_len
=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.
$ac_ext >&5
9526 ac_cv_sockaddr_has_sa_len
=no
9528 rm -f conftest.
$ac_objext conftest.
$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9532 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9533 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9534 cat >>confdefs.h
<<\_ACEOF
9535 #define HAVE_SOCKADDR_SA_LEN 1
9540 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9541 missing_includes
=yes
9547 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9549 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550 echo "$as_me:$LINENO: checking for $ac_func" >&5
9551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_var+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.
$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9559 cat confdefs.h
>>conftest.
$ac_ext
9560 cat >>conftest.
$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char $ac_func (); below.
9564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565 <limits.h> exists even on freestanding compilers. */
9567 # include <limits.h>
9569 # include <assert.h>
9571 /* Override any gcc2 internal prototype to avoid an error. */
9576 /* We use char because int might match the return type of a gcc2
9577 builtin and then its argument prototype would still apply. */
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9585 char (*f) () = $ac_func;
9594 return f != $ac_func;
9599 rm -f conftest.
$ac_objext conftest
$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try
='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_var=yes"
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.
$ac_ext >&5
9616 eval "$as_ac_var=no"
9618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9622 if test `eval echo '${'$as_ac_var'}'` = yes; then
9623 cat >>confdefs.h
<<_ACEOF
9624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9630 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9631 savedcflags
="$CFLAGS"
9632 CFLAGS
="$CFLAGS $V_INCLS"
9633 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9634 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9635 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 cat >conftest.
$ac_ext <<_ACEOF
9639 #line $LINENO "configure"
9642 cat confdefs.h
>>conftest.
$ac_ext
9643 cat >>conftest.
$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9650 if ((pcap_if_t *) 0)
9652 if (sizeof (pcap_if_t))
9658 rm -f conftest.
$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try
='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_type_pcap_if_t
=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 ac_cv_type_pcap_if_t
=no
9677 rm -f conftest.
$ac_objext conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9680 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9681 if test $ac_cv_type_pcap_if_t = yes; then
9683 cat >>confdefs.h
<<_ACEOF
9684 #define HAVE_PCAP_IF_T 1
9690 CFLAGS
="$savedcflags"
9693 if test $ac_cv_func_pcap_lib_version = "no" ; then
9694 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9695 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9696 cat >conftest.
$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9700 cat confdefs.h
>>conftest.
$ac_ext
9701 cat >>conftest.
$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9708 extern char pcap_version[];
9710 return (int)pcap_version;
9716 rm -f conftest.
$ac_objext conftest
$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try
='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_lbl_cv_pcap_version_defined
=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.
$ac_ext >&5
9733 ac_lbl_cv_pcap_version_defined
=no
9735 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9736 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9737 echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6
9739 cat >>confdefs.h
<<\_ACEOF
9740 #define HAVE_PCAP_VERSION 1
9744 echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9748 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9749 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9750 cat >conftest.
$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9754 cat confdefs.h
>>conftest.
$ac_ext
9755 cat >>conftest.
$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9762 extern int pcap_debug;
9770 rm -f conftest.
$ac_objext conftest
$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try
='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_lbl_cv_pcap_debug_defined
=yes
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.
$ac_ext >&5
9787 ac_lbl_cv_pcap_debug_defined
=no
9789 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9790 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9791 echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6
9793 cat >>confdefs.h
<<\_ACEOF
9794 #define HAVE_PCAP_DEBUG 1
9798 echo "$as_me:$LINENO: result: no" >&5
9799 echo "${ECHO_T}no" >&6
9801 # OK, what about "yydebug"?
9803 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9804 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9805 cat >conftest.
$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9809 cat confdefs.h
>>conftest.
$ac_ext
9810 cat >>conftest.
$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9825 rm -f conftest.
$ac_objext conftest
$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try
='test -s conftest$ac_exeext'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_lbl_cv_yydebug_defined
=yes
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.
$ac_ext >&5
9842 ac_lbl_cv_yydebug_defined
=no
9844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9845 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847 echo "${ECHO_T}yes" >&6
9848 cat >>confdefs.h
<<\_ACEOF
9849 #define HAVE_YYDEBUG 1
9853 echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6
9858 for ac_func
in bpf_dump
9860 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 echo "$as_me:$LINENO: checking for $ac_func" >&5
9862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9863 if eval "test \"\${$as_ac_var+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 cat >conftest.
$ac_ext <<_ACEOF
9867 #line $LINENO "configure"
9870 cat confdefs.h
>>conftest.
$ac_ext
9871 cat >>conftest.
$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char $ac_func (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9878 # include <limits.h>
9880 # include <assert.h>
9882 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896 char (*f) () = $ac_func;
9905 return f != $ac_func;
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try
='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 eval "$as_ac_var=yes"
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.
$ac_ext >&5
9927 eval "$as_ac_var=no"
9929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9933 if test `eval echo '${'$as_ac_var'}'` = yes; then
9934 cat >>confdefs.h
<<_ACEOF
9935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9939 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9945 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9951 cat >>confdefs.h
<<\_ACEOF
9970 if test -f /dev
/bpf0
; then
9975 for ac_header
in sys
/bitypes.h
9977 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979 echo "$as_me:$LINENO: checking for $ac_header" >&5
9980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9987 # Is the header compilable?
9988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9990 cat >conftest.
$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9994 cat confdefs.h
>>conftest.
$ac_ext
9995 cat >>conftest.
$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 #include <$ac_header>
10000 rm -f conftest.
$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try
='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_header_compiler
=yes
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.
$ac_ext >&5
10017 ac_header_compiler
=no
10019 rm -f conftest.
$ac_objext conftest.
$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 echo "${ECHO_T}$ac_header_compiler" >&6
10023 # Is the header present?
10024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10026 cat >conftest.
$ac_ext <<_ACEOF
10027 #line $LINENO "configure"
10030 cat confdefs.h
>>conftest.
$ac_ext
10031 cat >>conftest.
$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <$ac_header>
10035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10038 grep -v '^ *+' conftest.er1
>conftest.err
10040 cat conftest.err
>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } >/dev
/null
; then
10043 if test -s conftest.err
; then
10044 ac_cpp_err
=$ac_c_preproc_warn_flag
10051 if test -z "$ac_cpp_err"; then
10052 ac_header_preproc
=yes
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.
$ac_ext >&5
10057 ac_header_preproc
=no
10059 rm -f conftest.err conftest.
$ac_ext
10060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061 echo "${ECHO_T}$ac_header_preproc" >&6
10063 # So? What about this header?
10064 case $ac_header_compiler:$ac_header_preproc in
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10072 ## ------------------------------------ ##
10073 ## Report this to bug-autoconf@gnu.org. ##
10074 ## ------------------------------------ ##
10077 sed "s/^/$as_me: WARNING: /" >&2
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10088 ## ------------------------------------ ##
10089 ## Report this to bug-autoconf@gnu.org. ##
10090 ## ------------------------------------ ##
10093 sed "s/^/$as_me: WARNING: /" >&2
10096 echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 eval "$as_ac_Header=$ac_header_preproc"
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10108 cat >>confdefs.h
<<_ACEOF
10109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10117 echo "$as_me:$LINENO: checking for int8_t" >&5
10118 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_int8_t+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.
$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10126 cat confdefs.h
>>conftest.
$ac_ext
10127 cat >>conftest.
$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 $ac_includes_default
10135 if (sizeof (int8_t))
10141 rm -f conftest.
$ac_objext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try
='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_type_int8_t
=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 ac_cv_type_int8_t
=no
10160 rm -f conftest.
$ac_objext conftest.
$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10163 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10164 if test $ac_cv_type_int8_t = yes; then
10168 cat >>confdefs.h
<<\_ACEOF
10169 #define int8_t signed char
10174 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10175 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10176 if test "${ac_cv_type_u_int8_t+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 cat >conftest.
$ac_ext <<_ACEOF
10180 #line $LINENO "configure"
10183 cat confdefs.h
>>conftest.
$ac_ext
10184 cat >>conftest.
$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 $ac_includes_default
10187 #ifdef HAVE_SYS_BITYPES_H
10188 #include <sys/bitypes.h>
10194 if ((u_int8_t *) 0)
10196 if (sizeof (u_int8_t))
10202 rm -f conftest.
$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try
='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_type_u_int8_t
=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.
$ac_ext >&5
10219 ac_cv_type_u_int8_t
=no
10221 rm -f conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10224 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10225 if test $ac_cv_type_u_int8_t = yes; then
10229 cat >>confdefs.h
<<\_ACEOF
10230 #define u_int8_t unsigned char
10235 echo "$as_me:$LINENO: checking for int16_t" >&5
10236 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10237 if test "${ac_cv_type_int16_t+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 cat >conftest.
$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10244 cat confdefs.h
>>conftest.
$ac_ext
10245 cat >>conftest.
$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 $ac_includes_default
10253 if (sizeof (int16_t))
10259 rm -f conftest.
$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try
='test -s conftest.$ac_objext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_type_int16_t
=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.
$ac_ext >&5
10276 ac_cv_type_int16_t
=no
10278 rm -f conftest.
$ac_objext conftest.
$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10281 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10282 if test $ac_cv_type_int16_t = yes; then
10286 cat >>confdefs.h
<<\_ACEOF
10287 #define int16_t short
10292 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10293 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10294 if test "${ac_cv_type_u_int16_t+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 cat >conftest.
$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10301 cat confdefs.h
>>conftest.
$ac_ext
10302 cat >>conftest.
$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 $ac_includes_default
10305 #ifdef HAVE_SYS_BITYPES_H
10306 #include <sys/bitypes.h>
10312 if ((u_int16_t *) 0)
10314 if (sizeof (u_int16_t))
10320 rm -f conftest.
$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_type_u_int16_t
=yes
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.
$ac_ext >&5
10337 ac_cv_type_u_int16_t
=no
10339 rm -f conftest.
$ac_objext conftest.
$ac_ext
10341 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10342 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10343 if test $ac_cv_type_u_int16_t = yes; then
10347 cat >>confdefs.h
<<\_ACEOF
10348 #define u_int16_t unsigned short
10353 echo "$as_me:$LINENO: checking for int32_t" >&5
10354 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10355 if test "${ac_cv_type_int32_t+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 cat >conftest.
$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10362 cat confdefs.h
>>conftest.
$ac_ext
10363 cat >>conftest.
$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 $ac_includes_default
10371 if (sizeof (int32_t))
10377 rm -f conftest.
$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try
='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_type_int32_t
=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.
$ac_ext >&5
10394 ac_cv_type_int32_t
=no
10396 rm -f conftest.
$ac_objext conftest.
$ac_ext
10398 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10399 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10400 if test $ac_cv_type_int32_t = yes; then
10404 cat >>confdefs.h
<<\_ACEOF
10405 #define int32_t int
10410 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10411 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10412 if test "${ac_cv_type_u_int32_t+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 cat >conftest.
$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10419 cat confdefs.h
>>conftest.
$ac_ext
10420 cat >>conftest.
$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 $ac_includes_default
10423 #ifdef HAVE_SYS_BITYPES_H
10424 #include <sys/bitypes.h>
10430 if ((u_int32_t *) 0)
10432 if (sizeof (u_int32_t))
10438 rm -f conftest.
$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try
='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_type_u_int32_t
=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 ac_cv_type_u_int32_t
=no
10457 rm -f conftest.
$ac_objext conftest.
$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10460 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10461 if test $ac_cv_type_u_int32_t = yes; then
10465 cat >>confdefs.h
<<\_ACEOF
10466 #define u_int32_t unsigned int
10471 echo "$as_me:$LINENO: checking for int64_t" >&5
10472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10473 if test "${ac_cv_type_int64_t+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.
$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10489 if (sizeof (int64_t))
10495 rm -f conftest.
$ac_objext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try
='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_type_int64_t
=yes
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.
$ac_ext >&5
10512 ac_cv_type_int64_t
=no
10514 rm -f conftest.
$ac_objext conftest.
$ac_ext
10516 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10517 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10518 if test $ac_cv_type_int64_t = yes; then
10522 cat >>confdefs.h
<<\_ACEOF
10523 #define int64_t long long
10528 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10529 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10530 if test "${ac_cv_type_u_int64_t+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 cat >conftest.
$ac_ext <<_ACEOF
10534 #line $LINENO "configure"
10537 cat confdefs.h
>>conftest.
$ac_ext
10538 cat >>conftest.
$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540 $ac_includes_default
10541 #ifdef HAVE_SYS_BITYPES_H
10542 #include <sys/bitypes.h>
10548 if ((u_int64_t *) 0)
10550 if (sizeof (u_int64_t))
10556 rm -f conftest.
$ac_objext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558 (eval $ac_compile) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try
='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_type_u_int64_t
=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.
$ac_ext >&5
10573 ac_cv_type_u_int64_t
=no
10575 rm -f conftest.
$ac_objext conftest.
$ac_ext
10577 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10578 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10579 if test $ac_cv_type_u_int64_t = yes; then
10583 cat >>confdefs.h
<<\_ACEOF
10584 #define u_int64_t unsigned long long
10591 # We can't just check for <inttypes.h> - some systems have one that
10592 # doesn't define all the PRI[doxu]64 macros.
10595 for ac_header
in inttypes.h
10597 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10607 # Is the header compilable?
10608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10609 echo $ECHO_N "checking $ac_header usability... $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 #include <$ac_header>
10620 rm -f conftest.
$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try
='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_header_compiler
=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.
$ac_ext >&5
10637 ac_header_compiler
=no
10639 rm -f conftest.
$ac_objext conftest.
$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 echo "${ECHO_T}$ac_header_compiler" >&6
10643 # Is the header present?
10644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10646 cat >conftest.
$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10650 cat confdefs.h
>>conftest.
$ac_ext
10651 cat >>conftest.
$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10658 grep -v '^ *+' conftest.er1
>conftest.err
10660 cat conftest.err
>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev
/null
; then
10663 if test -s conftest.err
; then
10664 ac_cpp_err
=$ac_c_preproc_warn_flag
10671 if test -z "$ac_cpp_err"; then
10672 ac_header_preproc
=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.
$ac_ext >&5
10677 ac_header_preproc
=no
10679 rm -f conftest.err conftest.
$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 echo "${ECHO_T}$ac_header_preproc" >&6
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc in
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10692 ## ------------------------------------ ##
10693 ## Report this to bug-autoconf@gnu.org. ##
10694 ## ------------------------------------ ##
10697 sed "s/^/$as_me: WARNING: /" >&2
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10708 ## ------------------------------------ ##
10709 ## Report this to bug-autoconf@gnu.org. ##
10710 ## ------------------------------------ ##
10713 sed "s/^/$as_me: WARNING: /" >&2
10716 echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 eval "$as_ac_Header=$ac_header_preproc"
10723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h
<<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10733 # OK, we have inttypes.h, but does it define those macros?
10735 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10736 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10737 cat >conftest.
$ac_ext <<_ACEOF
10739 #line $LINENO "configure"
10742 cat confdefs.h
>>conftest.
$ac_ext
10743 cat >>conftest.
$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 #include <inttypes.h>
10748 #include <sys/types.h>
10749 #ifdef HAVE_SYS_BITYPES_H
10750 #include <sys/bitypes.h>
10755 printf("%" PRId64 "\n", (u_int64_t)1);
10756 printf("%" PRIo64 "\n", (u_int64_t)1);
10757 printf("%" PRIx64 "\n", (u_int64_t)1);
10758 printf("%" PRIu64 "\n", (u_int64_t)1);
10763 rm -f conftest.
$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try
='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10776 echo "$as_me:$LINENO: result: yes" >&5
10777 echo "${ECHO_T}yes" >&6
10778 ac_lbl_inttypes_h_defines_formats
=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10787 ac_lbl_inttypes_h_defines_formats
=no
10790 rm -f conftest.
$ac_objext conftest.
$ac_ext
10795 # We don't have inttypes.h, so it obviously can't define those
10798 ac_lbl_inttypes_h_defines_formats
=no
10804 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
10806 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10807 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10808 if test "$cross_compiling" = yes; then
10809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10810 See \`config.log' for more details." >&5
10811 echo "$as_me: error: cannot run test program while cross compiling
10812 See \`config.log' for more details." >&2;}
10813 { (exit 1); exit 1; }; }
10815 cat >conftest.
$ac_ext <<_ACEOF
10817 #line $LINENO "configure"
10820 cat confdefs.h
>>conftest.
$ac_ext
10821 cat >>conftest.
$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10824 # ifdef HAVE_INTTYPES_H
10825 #include <inttypes.h>
10827 # ifdef HAVE_SYS_BITYPES_H
10828 #include <sys/bitypes.h>
10831 #include <sys/types.h>
10837 sprintf(strbuf, "%016lx", t << 32);
10838 if (strcmp(strbuf, "0000000100000000") == 0)
10846 rm -f conftest
$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10858 cat >>confdefs.h
<<\_ACEOF
10859 #define PRId64 "ld"
10862 cat >>confdefs.h
<<\_ACEOF
10863 #define PRIo64 "lo"
10866 cat >>confdefs.h
<<\_ACEOF
10867 #define PRIx64 "lx"
10870 cat >>confdefs.h
<<\_ACEOF
10871 #define PRIu64 "lu"
10874 echo "$as_me:$LINENO: result: yes" >&5
10875 echo "${ECHO_T}yes" >&6
10878 echo "$as_me: program exited with status $ac_status" >&5
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.
$ac_ext >&5
10882 ( exit $ac_status )
10884 echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6
10888 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10889 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10890 if test "$cross_compiling" = yes; then
10891 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10892 See \`config.log' for more details." >&5
10893 echo "$as_me: error: cannot run test program while cross compiling
10894 See \`config.log' for more details." >&2;}
10895 { (exit 1); exit 1; }; }
10897 cat >conftest.
$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10902 cat confdefs.h
>>conftest.
$ac_ext
10903 cat >>conftest.
$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 # ifdef HAVE_INTTYPES_H
10907 #include <inttypes.h>
10909 # ifdef HAVE_SYS_BITYPES_H
10910 #include <sys/bitypes.h>
10913 #include <sys/types.h>
10919 sprintf(strbuf, "%016llx", t << 32);
10920 if (strcmp(strbuf, "0000000100000000") == 0)
10928 rm -f conftest
$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10940 cat >>confdefs.h
<<\_ACEOF
10941 #define PRId64 "lld"
10944 cat >>confdefs.h
<<\_ACEOF
10945 #define PRIo64 "llo"
10948 cat >>confdefs.h
<<\_ACEOF
10949 #define PRIx64 "llx"
10952 cat >>confdefs.h
<<\_ACEOF
10953 #define PRIu64 "llu"
10956 echo "$as_me:$LINENO: result: yes" >&5
10957 echo "${ECHO_T}yes" >&6
10960 echo "$as_me: program exited with status $ac_status" >&5
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.
$ac_ext >&5
10964 ( exit $ac_status )
10966 echo "$as_me:$LINENO: result: no" >&5
10967 echo "${ECHO_T}no" >&6
10970 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10971 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10972 if test "$cross_compiling" = yes; then
10973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10974 See \`config.log' for more details." >&5
10975 echo "$as_me: error: cannot run test program while cross compiling
10976 See \`config.log' for more details." >&2;}
10977 { (exit 1); exit 1; }; }
10979 cat >conftest.
$ac_ext <<_ACEOF
10981 #line $LINENO "configure"
10984 cat confdefs.h
>>conftest.
$ac_ext
10985 cat >>conftest.
$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10988 # ifdef HAVE_INTTYPES_H
10989 #include <inttypes.h>
10991 # ifdef HAVE_SYS_BITYPES_H
10992 #include <sys/bitypes.h>
10995 #include <sys/types.h>
11001 sprintf(strbuf, "%016Lx", t << 32);
11002 if (strcmp(strbuf, "0000000100000000") == 0)
11010 rm -f conftest
$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11022 cat >>confdefs.h
<<\_ACEOF
11023 #define PRId64 "Ld"
11026 cat >>confdefs.h
<<\_ACEOF
11027 #define PRIo64 "Lo"
11030 cat >>confdefs.h
<<\_ACEOF
11031 #define PRIx64 "Lx"
11034 cat >>confdefs.h
<<\_ACEOF
11035 #define PRIu64 "Lu"
11038 echo "$as_me:$LINENO: result: yes" >&5
11039 echo "${ECHO_T}yes" >&6
11042 echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.
$ac_ext >&5
11046 ( exit $ac_status )
11048 echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6
11052 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11053 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11054 if test "$cross_compiling" = yes; then
11055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11056 See \`config.log' for more details." >&5
11057 echo "$as_me: error: cannot run test program while cross compiling
11058 See \`config.log' for more details." >&2;}
11059 { (exit 1); exit 1; }; }
11061 cat >conftest.
$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11066 cat confdefs.h
>>conftest.
$ac_ext
11067 cat >>conftest.
$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 # ifdef HAVE_INTTYPES_H
11071 #include <inttypes.h>
11073 # ifdef HAVE_SYS_BITYPES_H
11074 #include <sys/bitypes.h>
11077 #include <sys/types.h>
11083 sprintf(strbuf, "%016qx", t << 32);
11084 if (strcmp(strbuf, "0000000100000000") == 0)
11092 rm -f conftest
$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11104 cat >>confdefs.h
<<\_ACEOF
11105 #define PRId64 "qd"
11108 cat >>confdefs.h
<<\_ACEOF
11109 #define PRIo64 "qo"
11112 cat >>confdefs.h
<<\_ACEOF
11113 #define PRIx64 "qx"
11116 cat >>confdefs.h
<<\_ACEOF
11117 #define PRIu64 "qu"
11120 echo "$as_me:$LINENO: result: yes" >&5
11121 echo "${ECHO_T}yes" >&6
11124 echo "$as_me: program exited with status $ac_status" >&5
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.
$ac_ext >&5
11128 ( exit $ac_status )
11130 echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6
11133 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11134 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11135 { (exit 1); exit 1; }; }
11139 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11145 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11151 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11157 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11163 if test "${LBL_CFLAGS+set}" = set; then
11164 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
11166 if test -f .devel
; then
11167 if test "$GCC" = yes ; then
11168 if test "${LBL_CFLAGS+set}" != set; then
11169 if test "$ac_cv_prog_cc_g" = yes ; then
11170 V_CCOPT
="-g $V_CCOPT"
11172 V_CCOPT
="$V_CCOPT -Wall"
11173 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11174 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11181 V_CCOPT
="$V_CCOPT -n32"
11188 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11189 name
="lbl/os-$os.h"
11190 if test -f $name ; then
11191 ln -s $name os-proto.h
11192 cat >>confdefs.h
<<\_ACEOF
11193 #define HAVE_OS_PROTO_H 1
11197 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11198 echo "$as_me: WARNING: can't find $name" >&2;}
11202 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11203 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11204 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 cat >conftest.
$ac_ext <<_ACEOF
11208 #line $LINENO "configure"
11211 cat confdefs.h
>>conftest.
$ac_ext
11212 cat >>conftest.
$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11215 # include <sys/types.h>
11216 # include <sys/socket.h>
11220 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11225 rm -f conftest.
$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_lbl_sockaddr_has_sa_len
=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11242 ac_cv_lbl_sockaddr_has_sa_len
=no
11244 rm -f conftest.
$ac_objext conftest.
$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11248 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11249 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11250 cat >>confdefs.h
<<\_ACEOF
11251 #define HAVE_SOCKADDR_SA_LEN 1
11256 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11257 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11258 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 case "$host_cpu" in
11264 # These are CPU types where:
11266 # the CPU faults on an unaligned access, but at least some
11267 # OSes that support that CPU catch the fault and simulate
11268 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11269 # the simulation is slow, so we don't want to use it;
11271 # the CPU, I infer (from the old
11273 # XXX: should also check that they don't do weird things (like on arm)
11275 # comment) doesn't fault on unaligned accesses, but doesn't
11276 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11278 # for whatever reason, the test program doesn't work
11279 # (this has been claimed to be the case for several of those
11280 # CPUs - I don't know what the problem is; the problem
11281 # was reported as "the test program dumps core" for SuperH,
11282 # but that's what the test program is *supposed* to do -
11283 # it dumps core before it writes anything, so the test
11284 # for an empty output file should find an empty output
11285 # file and conclude that unaligned accesses don't work).
11287 # This run-time test won't work if you're cross-compiling, so
11288 # in order to support cross-compiling for a particular CPU,
11289 # we have to wire in the list of CPU types anyway, as far as
11290 # I know, so perhaps we should just have a set of CPUs on
11291 # which we know it doesn't work, a set of CPUs on which we
11292 # know it does work, and have the script just fail on other
11293 # cpu types and update it when such a failure occurs.
11295 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
11296 ac_cv_lbl_unaligned_fail
=yes
11300 cat >conftest.c
<<EOF
11301 # include <sys/types.h>
11302 # include <sys/wait.h>
11303 # include <stdio.h>
11304 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11309 /* avoid "core dumped" message */
11315 pid = waitpid(pid, &status, 0);
11318 exit(!WIFEXITED(status));
11321 i = *(unsigned int *)&a[1];
11326 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
11327 conftest.c
$LIBS >/dev
/null
2>&1
11328 if test ! -x conftest
; then
11329 ac_cv_lbl_unaligned_fail
=yes
11331 .
/conftest
>conftest.out
11332 if test ! -s conftest.out
; then
11333 ac_cv_lbl_unaligned_fail
=yes
11335 ac_cv_lbl_unaligned_fail
=no
11338 rm -f conftest
* core core.conftest
11343 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11344 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11345 if test $ac_cv_lbl_unaligned_fail = yes ; then
11346 cat >>confdefs.h
<<\_ACEOF
11347 #define LBL_ALIGN 1
11353 echo "$as_me:$LINENO: checking for h_errno" >&5
11354 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11355 if test "${ac_cv_var_h_errno+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 cat >conftest.
$ac_ext <<_ACEOF
11359 #line $LINENO "configure"
11362 cat confdefs.h
>>conftest.
$ac_ext
11363 cat >>conftest.
$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11366 # include <sys/types.h>
11367 # include <netdb.h>
11376 rm -f conftest.
$ac_objext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_var_h_errno
=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.
$ac_ext >&5
11393 ac_cv_var_h_errno
=no
11395 rm -f conftest.
$ac_objext conftest.
$ac_ext
11398 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11399 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11400 if test "$ac_cv_var_h_errno" = "yes"; then
11401 cat >>confdefs.h
<<\_ACEOF
11402 #define HAVE_H_ERRNO 1
11409 # Check whether --with-crypto or --without-crypto was given.
11410 if test "${with_crypto+set}" = set; then
11411 withval
="$with_crypto"
11415 echo "$as_me:$LINENO: checking for SSLeay" >&5
11416 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11417 ac_cv_ssleay_path
=no
11420 Xprefix
=`eval echo $prefix`
11422 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
11424 # XXX - is there a better way to check if a given library is
11425 # in a given directory than checking each of the possible
11426 # shared library suffixes?
11428 # Are there any other suffixes we need to look for? Do we have to
11429 # worry about ".so.{version}"?
11431 # Or should we just look for "libcrypto.*"?
11433 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
11434 -f $dir/lib
/libcrypto.so
-o \
11435 -f $dir/lib
/libcrypto.sl
-o \
11436 -f $dir/lib
/libcrypto.dylib \
); then
11437 ac_cv_ssleay_path
=$dir
11439 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
11440 incdir
="-I$dir/include"
11442 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11445 ac_cv_ssleay_path
=no
11449 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11450 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11451 if test "$ac_cv_ssleay_path" != no
; then
11452 V_INCLS
="$V_INCLS $incdir"
11453 LDFLAGS
="-L$dir/lib $LDFLAGS"
11454 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
11455 LIBS
="$LIBS -lRSAglue"
11457 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
11458 LIBS
="$LIBS -lrsaref"
11461 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11462 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11463 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_check_lib_save_LIBS
=$LIBS
11467 LIBS
="-lcrypto $LIBS"
11468 cat >conftest.
$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11472 cat confdefs.h
>>conftest.
$ac_ext
11473 cat >>conftest.
$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11476 /* Override any gcc2 internal prototype to avoid an error. */
11480 /* We use char because int might match the return type of a gcc2
11481 builtin and then its argument prototype would still apply. */
11482 char DES_cbc_encrypt ();
11486 DES_cbc_encrypt ();
11491 rm -f conftest.
$ac_objext conftest
$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.
$ac_ext >&5
11508 ac_cv_lib_crypto_DES_cbc_encrypt
=no
11510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11511 LIBS
=$ac_check_lib_save_LIBS
11513 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11514 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11515 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11516 cat >>confdefs.h
<<_ACEOF
11517 #define HAVE_LIBCRYPTO 1
11520 LIBS
="-lcrypto $LIBS"
11525 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11527 for ac_header
in openssl
/evp.h
11529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11539 # Is the header compilable?
11540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11542 cat >conftest.
$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11546 cat confdefs.h
>>conftest.
$ac_ext
11547 cat >>conftest.
$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_includes_default
11550 #include <$ac_header>
11552 rm -f conftest.
$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554 (eval $ac_compile) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try
='test -s conftest.$ac_objext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_header_compiler
=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.
$ac_ext >&5
11569 ac_header_compiler
=no
11571 rm -f conftest.
$ac_objext conftest.
$ac_ext
11572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11573 echo "${ECHO_T}$ac_header_compiler" >&6
11575 # Is the header present?
11576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11578 cat >conftest.
$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11582 cat confdefs.h
>>conftest.
$ac_ext
11583 cat >>conftest.
$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 #include <$ac_header>
11587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11590 grep -v '^ *+' conftest.er1
>conftest.err
11592 cat conftest.err
>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } >/dev
/null
; then
11595 if test -s conftest.err
; then
11596 ac_cpp_err
=$ac_c_preproc_warn_flag
11603 if test -z "$ac_cpp_err"; then
11604 ac_header_preproc
=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.
$ac_ext >&5
11609 ac_header_preproc
=no
11611 rm -f conftest.err conftest.
$ac_ext
11612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11613 echo "${ECHO_T}$ac_header_preproc" >&6
11615 # So? What about this header?
11616 case $ac_header_compiler:$ac_header_preproc in
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 ## ------------------------------------ ##
11625 ## Report this to bug-autoconf@gnu.org. ##
11626 ## ------------------------------------ ##
11629 sed "s/^/$as_me: WARNING: /" >&2
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11640 ## ------------------------------------ ##
11641 ## Report this to bug-autoconf@gnu.org. ##
11642 ## ------------------------------------ ##
11645 sed "s/^/$as_me: WARNING: /" >&2
11648 echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 eval "$as_ac_Header=$ac_header_preproc"
11655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11660 cat >>confdefs.h
<<_ACEOF
11661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672 if test "$missing_includes" = "yes"; then
11673 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
11674 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
11684 # Find a good install program. We prefer a C program (faster),
11685 # so one script is as good as another. But avoid the broken or
11686 # incompatible versions:
11687 # SysV /etc/install, /usr/sbin/install
11688 # SunOS /usr/etc/install
11689 # IRIX /sbin/install
11691 # AmigaOS /C/install, which installs bootblocks on floppy discs
11692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11695 # ./install, which can be erroneously created by make from ./install.sh.
11696 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11697 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11698 if test -z "$INSTALL"; then
11699 if test "${ac_cv_path_install+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11703 for as_dir
in $PATH
11706 test -z "$as_dir" && as_dir
=.
11707 # Account for people who put trailing slashes in PATH elements.
11709 .
/ | .
// |
/cC
/* | \
11710 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11713 # OSF1 and SCO ODT 3.0 have their own names for install.
11714 # Don't use installbsd from OSF since it installs stuff as root
11716 for ac_prog
in ginstall scoinst
install; do
11717 for ac_exec_ext
in '' $ac_executable_extensions; do
11718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11719 if test $ac_prog = install &&
11720 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11721 # AIX install. It has an incompatible calling convention.
11723 elif test $ac_prog = install &&
11724 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11725 # program-specific install script used by HP pwplus--don't use.
11728 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11740 if test "${ac_cv_path_install+set}" = set; then
11741 INSTALL
=$ac_cv_path_install
11743 # As a last resort, use the slow shell script. We don't cache a
11744 # path for INSTALL within a source directory, because that will
11745 # break other packages using the cache if that directory is
11746 # removed, or if the path is relative.
11747 INSTALL
=$ac_install_sh
11750 echo "$as_me:$LINENO: result: $INSTALL" >&5
11751 echo "${ECHO_T}$INSTALL" >&6
11753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754 # It thinks the first close brace ends the variable substitution.
11755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11759 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11762 ac_config_headers
="$ac_config_headers config.h"
11765 ac_config_commands
="$ac_config_commands default-1"
11767 ac_config_files
="$ac_config_files Makefile"
11768 cat >confcache
<<\_ACEOF
11769 # This file is a shell script that caches the results of configure
11770 # tests run on this system so they can be shared between configure
11771 # scripts and configure runs, see configure's option --config-cache.
11772 # It is not useful on other systems. If it contains results you don't
11773 # want to keep, you may remove or edit it.
11775 # config.status only pays attention to the cache file if you give it
11776 # the --recheck option to rerun configure.
11778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11780 # following values.
11784 # The following way of writing the cache mishandles newlines in values,
11785 # but we know of no workaround that is simple, portable, and efficient.
11786 # So, don't put newlines in cache variables' values.
11787 # Ultrix sh set writes to stderr and can't be redirected directly,
11788 # and sets the high bit in the cache file unless we assign to the vars.
11791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11793 # `set' does not quote correctly, so add quotes (double-quote
11794 # substitution turns \\\\ into \\, and sed turns \\ into \).
11797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11800 # `set' quotes correctly as required by POSIX, so do not add quotes.
11802 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11811 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11813 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11814 if test -w $cache_file; then
11815 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11816 cat confcache
>$cache_file
11818 echo "not updating unwritable cache $cache_file"
11823 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11824 # Let make expand exec_prefix.
11825 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11829 # trailing colons and then remove the whole line if VPATH becomes empty
11830 # (actually we leave an empty line to preserve line numbers).
11831 if test "x$srcdir" = x.
; then
11832 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11833 s/:*\$(srcdir):*/:/;
11834 s/:*\${srcdir}:*/:/;
11836 s/^\([^=]*=[ ]*\):*/\1/;
11842 DEFS
=-DHAVE_CONFIG_H
11846 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11847 # 1. Remove the extension, and $U if already installed.
11848 ac_i
=`echo "$ac_i" |
11849 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11851 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11852 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11854 LIBOBJS
=$ac_libobjs
11856 LTLIBOBJS
=$ac_ltlibobjs
11860 : ${CONFIG_STATUS=./config.status}
11861 ac_clean_files_save
=$ac_clean_files
11862 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11863 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11864 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11865 cat >$CONFIG_STATUS <<_ACEOF
11867 # Generated by $as_me.
11868 # Run this file to recreate the current configuration.
11869 # Compiler output produced by configure, useful for debugging
11870 # configure, is in config.log if it exists.
11873 ac_cs_recheck=false
11875 SHELL=\${CONFIG_SHELL-$SHELL}
11878 cat >>$CONFIG_STATUS <<\_ACEOF
11879 ## --------------------- ##
11880 ## M4sh Initialization. ##
11881 ## --------------------- ##
11883 # Be Bourne compatible
11884 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11887 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11888 # is contrary to our usage. Disable this feature.
11889 alias -g '${1+"$@"}'='"$@"'
11890 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11894 # Support unset when possible.
11895 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11902 # Work around bugs in pre-3.0 UWIN ksh.
11903 $as_unset ENV MAIL MAILPATH
11910 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11911 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11912 LC_TELEPHONE LC_TIME
11914 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11915 eval $as_var=C
; export $as_var
11921 # Required to use basename.
11922 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11928 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11929 as_basename
=basename
11935 # Name of the executable.
11936 as_me
=`$as_basename "$0" ||
11937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11938 X"$0" : 'X\(//\)$' \| \
11939 X"$0" : 'X\(/\)$' \| \
11940 . : '\(.\)' 2>/dev/null ||
11942 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11943 /^X\/\(\/\/\)$/{ s//\1/; q; }
11944 /^X\/\(\/\).*/{ s//\1/; q; }
11948 # PATH needs CR, and LINENO needs CR and PATH.
11949 # Avoid depending upon Character Ranges.
11950 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11951 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11952 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11953 as_cr_digits
='0123456789'
11954 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11956 # The user is always right.
11957 if test "${PATH_SEPARATOR+set}" != set; then
11958 echo "#! /bin/sh" >conf$$.sh
11959 echo "exit 0" >>conf$$.sh
11961 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11970 as_lineno_1
=$LINENO
11971 as_lineno_2
=$LINENO
11972 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11973 test "x$as_lineno_1" != "x$as_lineno_2" &&
11974 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11975 # Find who we are. Look in the path if we contain no path at all
11978 *[\\/]* ) as_myself
=$0 ;;
11979 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11980 for as_dir
in $PATH
11983 test -z "$as_dir" && as_dir
=.
11984 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11989 # We did not find ourselves, most probably we were run as `sh COMMAND'
11990 # in which case we are not to be found in the path.
11991 if test "x$as_myself" = x
; then
11994 if test ! -f "$as_myself"; then
11995 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11996 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11997 { (exit 1); exit 1; }; }
11999 case $CONFIG_SHELL in
12001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12002 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12005 test -z "$as_dir" && as_dir
=.
12006 for as_base
in sh bash ksh sh5
; do
12009 if ("$as_dir/$as_base" -c '
12010 as_lineno_1=$LINENO
12011 as_lineno_2=$LINENO
12012 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12013 test "x$as_lineno_1" != "x$as_lineno_2" &&
12014 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12015 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12016 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12017 CONFIG_SHELL
=$as_dir/$as_base
12018 export CONFIG_SHELL
12019 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12027 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12028 # uniformly replaced by the line number. The first 'sed' inserts a
12029 # line-number line before each line; the second 'sed' does the real
12030 # work. The second script uses 'N' to pair each line-number line
12031 # with the numbered line, and appends trailing '-' during
12032 # substitution so that $LINENO is not a special case at line end.
12033 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12034 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12035 sed '=' <$as_myself |
12040 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12043 s,^['$as_cr_digits']*\n,,
12044 ' >$as_me.lineno
&&
12045 chmod +x
$as_me.lineno ||
12046 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12047 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12048 { (exit 1); exit 1; }; }
12050 # Don't try to exec as it changes $[0], causing all sort of problems
12051 # (the dirname of $[0] is not the place where we might find the
12052 # original and so on. Autoconf is especially sensible to this).
12054 # Exit status is that of the last command.
12059 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12060 *c
*,-n*) ECHO_N
= ECHO_C
='
12062 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12063 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12066 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12072 rm -f conf$$ conf$$.exe conf$$.
file
12074 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12075 # We could just check for DJGPP; but this test a) works b) is more generic
12076 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12077 if test -f conf$$.exe
; then
12078 # Don't use ln at all; we don't have any links
12083 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12088 rm -f conf$$ conf$$.exe conf$$.
file
12090 if mkdir
-p .
2>/dev
/null
; then
12096 as_executable_p
="test -f"
12098 # Sed expression to map a string onto a valid CPP name.
12099 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12101 # Sed expression to map a string onto a valid variable name.
12102 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12106 # We need space, tab and new line, in precisely that order.
12116 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12117 # report actual input values of CONFIG_FILES etc. instead of their
12118 # values after options handling. Logging --version etc. is OK.
12122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12123 ## Running $as_me. ##
12128 This file was extended by $as_me, which was
12129 generated by GNU Autoconf 2.57. Invocation command line was
12131 CONFIG_FILES = $CONFIG_FILES
12132 CONFIG_HEADERS = $CONFIG_HEADERS
12133 CONFIG_LINKS = $CONFIG_LINKS
12134 CONFIG_COMMANDS = $CONFIG_COMMANDS
12138 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12142 # Files that config.status was made for.
12143 if test -n "$ac_config_files"; then
12144 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12147 if test -n "$ac_config_headers"; then
12148 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12151 if test -n "$ac_config_links"; then
12152 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12155 if test -n "$ac_config_commands"; then
12156 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12159 cat >>$CONFIG_STATUS <<\_ACEOF
12162 \`$as_me' instantiates files from templates according to the
12163 current configuration.
12165 Usage: $0 [OPTIONS] [FILE]...
12167 -h, --help print this help, then exit
12168 -V, --version print version number, then exit
12169 -q, --quiet do not print progress messages
12170 -d, --debug don't remove temporary files
12171 --recheck update $as_me by reconfiguring in the same conditions
12172 --file=FILE[:TEMPLATE]
12173 instantiate the configuration file FILE
12174 --header=FILE[:TEMPLATE]
12175 instantiate the configuration header FILE
12177 Configuration files:
12180 Configuration headers:
12183 Configuration commands:
12186 Report bugs to <bug-autoconf@gnu.org>."
12189 cat >>$CONFIG_STATUS <<_ACEOF
12192 configured by $0, generated by GNU Autoconf 2.57,
12193 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12195 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12196 Free Software Foundation, Inc.
12197 This config.status script is free software; the Free Software Foundation
12198 gives unlimited permission to copy, distribute and modify it."
12203 cat >>$CONFIG_STATUS <<\_ACEOF
12204 # If no file are specified by the user, then we need to provide default
12205 # value. By we need to know if files were specified by the user.
12211 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12212 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12220 *) # This is not an option, so the user has probably given explicit
12223 ac_need_defaults
=false
;;
12227 # Handling of the options.
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12232 --version |
--vers* |
-V )
12233 echo "$ac_cs_version"; exit 0 ;;
12235 # Conflict between --help and --header
12236 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12237 Try \`$0 --help' for more information." >&5
12238 echo "$as_me: error: ambiguous option: $1
12239 Try \`$0 --help' for more information." >&2;}
12240 { (exit 1); exit 1; }; };;
12241 --help |
--hel |
-h )
12242 echo "$ac_cs_usage"; exit 0 ;;
12243 --debug |
--d* |
-d )
12245 --file |
--fil |
--fi |
--f )
12247 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12248 ac_need_defaults
=false
;;
12249 --header |
--heade |
--head |
--hea )
12251 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12252 ac_need_defaults
=false
;;
12253 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12254 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12257 # This is an error.
12258 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12259 Try \`$0 --help' for more information." >&5
12260 echo "$as_me: error: unrecognized option: $1
12261 Try \`$0 --help' for more information." >&2;}
12262 { (exit 1); exit 1; }; } ;;
12264 *) ac_config_targets
="$ac_config_targets $1" ;;
12270 ac_configure_extra_args
=
12272 if $ac_cs_silent; then
12274 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12278 cat >>$CONFIG_STATUS <<_ACEOF
12279 if \$ac_cs_recheck; then
12280 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12281 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12286 cat >>$CONFIG_STATUS <<_ACEOF
12288 # INIT-COMMANDS section.
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298 for ac_config_target
in $ac_config_targets
12300 case "$ac_config_target" in
12301 # Handling of arguments.
12302 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12303 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12304 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12305 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12306 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12307 { (exit 1); exit 1; }; };;
12311 # If the user did not use the arguments to specify the items to instantiate,
12312 # then the envvar interface is used. Set only those that are not.
12313 # We use the long form for the default assignment because of an extremely
12314 # bizarre bug on SunOS 4.1.3.
12315 if $ac_need_defaults; then
12316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12321 # Have a temporary directory for convenience. Make it in the build tree
12322 # simply because there is no reason to put it here, and in addition,
12323 # creating and moving files from /tmp can sometimes cause problems.
12324 # Create a temporary directory, and hook for its removal unless debugging.
12327 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12328 trap '{ (exit 1); exit 1; }' 1 2 13 15
12331 # Create a (secure) tmp directory for tmp files.
12334 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12335 test -n "$tmp" && test -d "$tmp"
12338 tmp
=.
/confstat$$
-$RANDOM
12339 (umask 077 && mkdir
$tmp)
12342 echo "$me: cannot create a temporary directory in ." >&2
12343 { (exit 1); exit 1; }
12348 cat >>$CONFIG_STATUS <<_ACEOF
12351 # CONFIG_FILES section.
12354 # No need to generate the scripts if there are no CONFIG_FILES.
12355 # This happens for instance when ./config.status config.h
12356 if test -n "\$CONFIG_FILES"; then
12357 # Protect against being on the right side of a sed subst in config.status.
12358 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12359 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12360 s,@SHELL@,$SHELL,;t t
12361 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12362 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12363 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12364 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12365 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12366 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12367 s,@exec_prefix@,$exec_prefix,;t t
12368 s,@prefix@,$prefix,;t t
12369 s,@program_transform_name@,$program_transform_name,;t t
12370 s,@bindir@,$bindir,;t t
12371 s,@sbindir@,$sbindir,;t t
12372 s,@libexecdir@,$libexecdir,;t t
12373 s,@datadir@,$datadir,;t t
12374 s,@sysconfdir@,$sysconfdir,;t t
12375 s,@sharedstatedir@,$sharedstatedir,;t t
12376 s,@localstatedir@,$localstatedir,;t t
12377 s,@libdir@,$libdir,;t t
12378 s,@includedir@,$includedir,;t t
12379 s,@oldincludedir@,$oldincludedir,;t t
12380 s,@infodir@,$infodir,;t t
12381 s,@mandir@,$mandir,;t t
12382 s,@build_alias@,$build_alias,;t t
12383 s,@host_alias@,$host_alias,;t t
12384 s,@target_alias@,$target_alias,;t t
12385 s,@DEFS@,$DEFS,;t t
12386 s,@ECHO_C@,$ECHO_C,;t t
12387 s,@ECHO_N@,$ECHO_N,;t t
12388 s,@ECHO_T@,$ECHO_T,;t t
12389 s,@LIBS@,$LIBS,;t t
12390 s,@build@,$build,;t t
12391 s,@build_cpu@,$build_cpu,;t t
12392 s,@build_vendor@,$build_vendor,;t t
12393 s,@build_os@,$build_os,;t t
12394 s,@host@,$host,;t t
12395 s,@host_cpu@,$host_cpu,;t t
12396 s,@host_vendor@,$host_vendor,;t t
12397 s,@host_os@,$host_os,;t t
12398 s,@SHLICC2@,$SHLICC2,;t t
12400 s,@CFLAGS@,$CFLAGS,;t t
12401 s,@LDFLAGS@,$LDFLAGS,;t t
12402 s,@CPPFLAGS@,$CPPFLAGS,;t t
12403 s,@ac_ct_CC@,$ac_ct_CC,;t t
12404 s,@EXEEXT@,$EXEEXT,;t t
12405 s,@OBJEXT@,$OBJEXT,;t t
12407 s,@EGREP@,$EGREP,;t t
12408 s,@LIBOBJS@,$LIBOBJS,;t t
12409 s,@V_CCOPT@,$V_CCOPT,;t t
12410 s,@V_DEFS@,$V_DEFS,;t t
12411 s,@V_GROUP@,$V_GROUP,;t t
12412 s,@V_INCLS@,$V_INCLS,;t t
12413 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12414 s,@LOCALSRC@,$LOCALSRC,;t t
12415 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12416 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12417 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12423 cat >>$CONFIG_STATUS <<\_ACEOF
12424 # Split the substitutions into bite-sized pieces for seds with
12425 # small command number limits, like on Digital OSF/1 and HP-UX.
12426 ac_max_sed_lines
=48
12427 ac_sed_frag
=1 # Number of current file.
12428 ac_beg
=1 # First line for current file.
12429 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12432 while $ac_more_lines; do
12433 if test $ac_beg -gt 1; then
12434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12436 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12438 if test ! -s $tmp/subs.frag
; then
12439 ac_more_lines
=false
12441 # The purpose of the label and of the branching condition is to
12442 # speed up the sed processing (if there are no `@' at all, there
12443 # is no need to browse any of the substitutions).
12444 # These are the two extra sed commands mentioned above.
12446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12447 if test -z "$ac_sed_cmds"; then
12448 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12450 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12452 ac_sed_frag
=`expr $ac_sed_frag + 1`
12454 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12457 if test -z "$ac_sed_cmds"; then
12460 fi # test -n "$CONFIG_FILES"
12463 cat >>$CONFIG_STATUS <<\_ACEOF
12464 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12467 - |
*:- |
*:-:* ) # input from stdin
12469 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12470 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12471 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12472 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12473 * ) ac_file_in
=$ac_file.
in ;;
12476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12477 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12479 X"$ac_file" : 'X\(//\)[^/]' \| \
12480 X"$ac_file" : 'X\(//\)$' \| \
12481 X"$ac_file" : 'X\(/\)' \| \
12482 . : '\(.\)' 2>/dev/null ||
12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12486 /^X\(\/\/\)$/{ s//\1/; q; }
12487 /^X\(\/\).*/{ s//\1/; q; }
12489 { if $as_mkdir_p; then
12494 while test ! -d "$as_dir"; do
12495 as_dirs
="$as_dir $as_dirs"
12496 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498 X"$as_dir" : 'X\(//\)[^/]' \| \
12499 X"$as_dir" : 'X\(//\)$' \| \
12500 X"$as_dir" : 'X\(/\)' \| \
12501 . : '\(.\)' 2>/dev/null ||
12503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12505 /^X\(\/\/\)$/{ s//\1/; q; }
12506 /^X\(\/\).*/{ s//\1/; q; }
12509 test ! -n "$as_dirs" || mkdir
$as_dirs
12510 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12512 { (exit 1); exit 1; }; }; }
12516 if test "$ac_dir" != .
; then
12517 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12518 # A "../" for each directory in $ac_dir_suffix.
12519 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12521 ac_dir_suffix
= ac_top_builddir
=
12525 .
) # No --srcdir option. We are building in place.
12527 if test -z "$ac_top_builddir"; then
12530 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12532 [\\/]* | ?
:[\\/]* ) # Absolute path.
12533 ac_srcdir
=$srcdir$ac_dir_suffix;
12534 ac_top_srcdir
=$srcdir ;;
12535 *) # Relative path.
12536 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12537 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12539 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12541 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12542 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12543 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12544 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12548 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12549 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
12552 if test x
"$ac_file" != x-
; then
12553 { echo "$as_me:$LINENO: creating $ac_file" >&5
12554 echo "$as_me: creating $ac_file" >&6;}
12557 # Let's still pretend it is `configure' which instantiates (i.e., don't
12558 # use $as_me), people would be surprised to read:
12559 # /* config.h. Generated by config.status. */
12560 if test x
"$ac_file" = x-
; then
12563 configure_input
="$ac_file. "
12565 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12566 sed 's,.*/,,'` by configure."
12568 # First look for the input files in the build tree, otherwise in the
12570 ac_file_inputs
=`IFS=:
12571 for f in $ac_file_in; do
12573 -) echo $tmp/stdin ;;
12575 # Absolute (can't be DOS-style, as IFS=:)
12576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12577 echo "$as_me: error: cannot find input file: $f" >&2;}
12578 { (exit 1); exit 1; }; }
12581 if test -f "$f"; then
12584 elif test -f "$srcdir/$f"; then
12589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12590 echo "$as_me: error: cannot find input file: $f" >&2;}
12591 { (exit 1); exit 1; }; }
12594 done` ||
{ (exit 1); exit 1; }
12596 cat >>$CONFIG_STATUS <<_ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF
12602 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12603 s
,@configure_input@
,$configure_input,;t t
12604 s
,@srcdir@
,$ac_srcdir,;t t
12605 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12606 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12607 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12608 s
,@builddir@
,$ac_builddir,;t t
12609 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12610 s
,@top_builddir@
,$ac_top_builddir,;t t
12611 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12612 s
,@INSTALL@
,$ac_INSTALL,;t t
12613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12615 if test x"$ac_file" != x-; then
12616 mv $tmp/out $ac_file
12624 cat >>$CONFIG_STATUS <<\_ACEOF
12627 # CONFIG_HEADER section.
12630 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12631 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12633 # ac_d sets the value in "#define NAME VALUE" lines.
12634 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12635 ac_dB
='[ ].*$,\1#\2'
12638 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12639 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12640 ac_uB
='$,\1#\2define\3'
12644 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12647 - |
*:- |
*:-:* ) # input from stdin
12649 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12650 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12651 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12652 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12653 * ) ac_file_in
=$ac_file.
in ;;
12656 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12657 echo "$as_me: creating $ac_file" >&6;}
12659 # First look for the input files in the build tree, otherwise in the
12661 ac_file_inputs
=`IFS=:
12662 for f in $ac_file_in; do
12664 -) echo $tmp/stdin ;;
12666 # Absolute (can't be DOS-style, as IFS=:)
12667 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12668 echo "$as_me: error: cannot find input file: $f" >&2;}
12669 { (exit 1); exit 1; }; }
12672 if test -f "$f"; then
12675 elif test -f "$srcdir/$f"; then
12680 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12681 echo "$as_me: error: cannot find input file: $f" >&2;}
12682 { (exit 1); exit 1; }; }
12685 done` ||
{ (exit 1); exit 1; }
12686 # Remove the trailing spaces.
12687 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12691 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12692 # `conftest.undefs', that substitutes the proper values into
12693 # config.h.in to produce config.h. The first handles `#define'
12694 # templates, and the second `#undef' templates.
12695 # And first: Protect against being on the right side of a sed subst in
12696 # config.status. Protect against being in an unquoted here document
12697 # in config.status.
12698 rm -f conftest.defines conftest.undefs
12699 # Using a here document instead of a string reduces the quoting nightmare.
12700 # Putting comments in sed scripts is not portable.
12702 # `end' is used to avoid that the second main sed command (meant for
12703 # 0-ary CPP macros) applies to n-ary macro definitions.
12704 # See the Autoconf documentation for `clear'.
12705 cat >confdef2sed.
sed <<\_ACEOF
12710 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12712 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12715 # If some macros were called several times there might be several times
12716 # the same #defines, which is useless. Nevertheless, we may not want to
12717 # sort them, since we want the *last* AC-DEFINE to be honored.
12718 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12719 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12720 rm -f confdef2sed.sed
12722 # This sed command replaces #undef with comments. This is necessary, for
12723 # example, in the case of _POSIX_SOURCE, which is predefined and required
12724 # on some systems where configure will not decide to define it.
12725 cat >>conftest.undefs <<\_ACEOF
12726 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12729 # Break up conftest.defines because some shells have a limit on the size
12730 # of here documents, and old seds have small limits too (100 cmds).
12731 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12732 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12733 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12734 echo ' :' >>$CONFIG_STATUS
12735 rm -f conftest.tail
12736 while grep . conftest.defines >/dev/null
12738 # Write a limited-size here document to $tmp/defines.sed.
12739 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12740 # Speed up: don't consider the non `#define' lines.
12741 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12742 # Work around the forget-to-reset-the-flag bug.
12743 echo 't clr' >>$CONFIG_STATUS
12744 echo ': clr' >>$CONFIG_STATUS
12745 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12747 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12749 mv $tmp/out $tmp/in
12751 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12752 rm -f conftest.defines
12753 mv conftest.
tail conftest.defines
12755 rm -f conftest.defines
12756 echo ' fi # grep' >>$CONFIG_STATUS
12757 echo >>$CONFIG_STATUS
12759 # Break up conftest.undefs because some shells have a limit on the size
12760 # of here documents, and old seds have small limits too (100 cmds).
12761 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12762 rm -f conftest.
tail
12763 while grep . conftest.undefs
>/dev
/null
12765 # Write a limited-size here document to $tmp/undefs.sed.
12766 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12767 # Speed up: don't consider the non
`#undef'
12768 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12769 # Work around the forget-to-reset-the-flag bug.
12770 echo 't clr' >>$CONFIG_STATUS
12771 echo ': clr' >>$CONFIG_STATUS
12772 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12774 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12776 mv $tmp/out $tmp/in
12778 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12779 rm -f conftest.undefs
12780 mv conftest.tail conftest.undefs
12782 rm -f conftest.undefs
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12785 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12786 # use $as_me), people would be surprised to read:
12787 # /* config.h. Generated by config.status. */
12788 if test x
"$ac_file" = x-
; then
12789 echo "/* Generated by configure. */" >$tmp/config.h
12791 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12793 cat $tmp/in >>$tmp/config.h
12795 if test x
"$ac_file" != x-
; then
12796 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12797 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12798 echo "$as_me: $ac_file is unchanged" >&6;}
12800 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12802 X"$ac_file" : 'X\(//\)[^/]' \| \
12803 X"$ac_file" : 'X\(//\)$' \| \
12804 X"$ac_file" : 'X\(/\)' \| \
12805 . : '\(.\)' 2>/dev/null ||
12807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12809 /^X\(\/\/\)$/{ s//\1/; q; }
12810 /^X\(\/\).*/{ s//\1/; q; }
12812 { if $as_mkdir_p; then
12817 while test ! -d "$as_dir"; do
12818 as_dirs
="$as_dir $as_dirs"
12819 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12821 X"$as_dir" : 'X\(//\)[^/]' \| \
12822 X"$as_dir" : 'X\(//\)$' \| \
12823 X"$as_dir" : 'X\(/\)' \| \
12824 . : '\(.\)' 2>/dev/null ||
12826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12828 /^X\(\/\/\)$/{ s//\1/; q; }
12829 /^X\(\/\).*/{ s//\1/; q; }
12832 test ! -n "$as_dirs" || mkdir
$as_dirs
12833 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12835 { (exit 1); exit 1; }; }; }
12838 mv $tmp/config.h
$ac_file
12842 rm -f $tmp/config.h
12846 cat >>$CONFIG_STATUS <<\_ACEOF
12849 # CONFIG_COMMANDS section.
12851 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12852 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12853 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12854 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12855 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12856 X"$ac_dest" : 'X\(//\)[^/]' \| \
12857 X"$ac_dest" : 'X\(//\)$' \| \
12858 X"$ac_dest" : 'X\(/\)' \| \
12859 . : '\(.\)' 2>/dev/null ||
12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12863 /^X\(\/\/\)$/{ s//\1/; q; }
12864 /^X\(\/\).*/{ s//\1/; q; }
12868 if test "$ac_dir" != .
; then
12869 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12870 # A "../" for each directory in $ac_dir_suffix.
12871 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12873 ac_dir_suffix
= ac_top_builddir
=
12877 .
) # No --srcdir option. We are building in place.
12879 if test -z "$ac_top_builddir"; then
12882 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12884 [\\/]* | ?
:[\\/]* ) # Absolute path.
12885 ac_srcdir
=$srcdir$ac_dir_suffix;
12886 ac_top_srcdir
=$srcdir ;;
12887 *) # Relative path.
12888 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12889 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12891 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12893 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12894 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12895 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12896 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12899 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12900 echo "$as_me: executing $ac_dest commands" >&6;}
12902 default-1
) if test -f .devel
; then
12903 echo timestamp
> stamp-h
12904 cat Makefile-devel-adds
>> Makefile
12911 cat >>$CONFIG_STATUS <<\_ACEOF
12913 { (exit 0); exit 0; }
12915 chmod +x
$CONFIG_STATUS
12916 ac_clean_files
=$ac_clean_files_save
12919 # configure is writing to config.log, and then calls config.status.
12920 # config.status does its own redirection, appending to config.log.
12921 # Unfortunately, on DOS this fails, as config.log is still kept open
12922 # by configure, so config.status won't be able to write to it; its
12923 # output is simply discarded. So we exec the FD to /dev/null,
12924 # effectively closing config.log, so it can be properly (re)opened and
12925 # appended to by config.status. When coming back to configure, we
12926 # need to make the FD available again.
12927 if test "$no_create" != yes; then
12929 ac_config_status_args
=
12930 test "$silent" = yes &&
12931 ac_config_status_args
="$ac_config_status_args --quiet"
12933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12936 # would make configure fail if this is the last instruction.
12937 $ac_cs_success ||
{ (exit 1); exit 1; }