2 # From configure.in Revision: 1.183 .
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. */
2604 static void foo(void) __attribute__ ((noreturn));
2616 rm -f conftest.
$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try
='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv___attribute__
=yes
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.
$ac_ext >&5
2633 ac_cv___attribute__
=no
2635 rm -f conftest.
$ac_objext conftest.
$ac_ext
2638 if test "$ac_cv___attribute__" = "yes"; then
2640 cat >>confdefs.h
<<\_ACEOF
2641 #define HAVE___ATTRIBUTE__ 1
2644 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2646 V_DEFS
="$V_DEFS -D_U_=\"\""
2648 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2649 echo "${ECHO_T}$ac_cv___attribute__" >&6
2652 ac_cpp
='$CPP $CPPFLAGS'
2653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2656 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2658 # On Suns, sometimes $CPP names a directory.
2659 if test -n "$CPP" && test -d "$CPP"; then
2662 if test -z "$CPP"; then
2663 if test "${ac_cv_prog_CPP+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 # Double quotes because CPP needs to be expanded
2667 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2670 for ac_c_preproc_warn_flag
in '' yes
2672 # Use a header file that comes with gcc, so configuring glibc
2673 # with a fresh cross-compiler works.
2674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2675 # <limits.h> exists even on freestanding compilers.
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp. "Syntax error" is here to catch this case.
2678 cat >conftest.
$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2682 cat confdefs.h
>>conftest.
$ac_ext
2683 cat >>conftest.
$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2686 # include <limits.h>
2688 # include <assert.h>
2692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2693 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1
>conftest.err
2697 cat conftest.err
>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } >/dev
/null
; then
2700 if test -s conftest.err
; then
2701 ac_cpp_err
=$ac_c_preproc_warn_flag
2708 if test -z "$ac_cpp_err"; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2714 # Broken: fails on valid input.
2717 rm -f conftest.err conftest.
$ac_ext
2719 # OK, works on sane cases. Now check whether non-existent headers
2720 # can be detected and how.
2721 cat >conftest.
$ac_ext <<_ACEOF
2722 #line $LINENO "configure"
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #include <ac_nonexistent.h>
2730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1
>conftest.err
2735 cat conftest.err
>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } >/dev
/null
; then
2738 if test -s conftest.err
; then
2739 ac_cpp_err
=$ac_c_preproc_warn_flag
2746 if test -z "$ac_cpp_err"; then
2747 # Broken: success on invalid input.
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.
$ac_ext >&5
2753 # Passes both tests.
2757 rm -f conftest.err conftest.
$ac_ext
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.
$ac_ext
2762 if $ac_preproc_ok; then
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2777 for ac_c_preproc_warn_flag
in '' yes
2779 # Use a header file that comes with gcc, so configuring glibc
2780 # with a fresh cross-compiler works.
2781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2782 # <limits.h> exists even on freestanding compilers.
2783 # On the NeXT, cc -E runs the code through the compiler's parser,
2784 # not just through cpp. "Syntax error" is here to catch this case.
2785 cat >conftest.
$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2789 cat confdefs.h
>>conftest.
$ac_ext
2790 cat >>conftest.
$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2793 # include <limits.h>
2795 # include <assert.h>
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2802 grep -v '^ *+' conftest.er1
>conftest.err
2804 cat conftest.err
>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev
/null
; then
2807 if test -s conftest.err
; then
2808 ac_cpp_err
=$ac_c_preproc_warn_flag
2815 if test -z "$ac_cpp_err"; then
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2821 # Broken: fails on valid input.
2824 rm -f conftest.err conftest.
$ac_ext
2826 # OK, works on sane cases. Now check whether non-existent headers
2827 # can be detected and how.
2828 cat >conftest.
$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h
>>conftest.
$ac_ext
2833 cat >>conftest.
$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #include <ac_nonexistent.h>
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1
>conftest.err
2842 cat conftest.err
>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev
/null
; then
2845 if test -s conftest.err
; then
2846 ac_cpp_err
=$ac_c_preproc_warn_flag
2853 if test -z "$ac_cpp_err"; then
2854 # Broken: success on invalid input.
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.
$ac_ext >&5
2860 # Passes both tests.
2864 rm -f conftest.err conftest.
$ac_ext
2867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868 rm -f conftest.err conftest.
$ac_ext
2869 if $ac_preproc_ok; then
2872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2880 ac_cpp
='$CPP $CPPFLAGS'
2881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2886 echo "$as_me:$LINENO: checking for egrep" >&5
2887 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2888 if test "${ac_cv_prog_egrep+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2892 then ac_cv_prog_egrep
='grep -E'
2893 else ac_cv_prog_egrep
='egrep'
2896 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2897 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2898 EGREP
=$ac_cv_prog_egrep
2901 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2902 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2903 if test "${ac_cv_header_stdc+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 cat >conftest.
$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2910 cat confdefs.h
>>conftest.
$ac_ext
2911 cat >>conftest.
$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2926 rm -f conftest.
$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try
='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_header_stdc
=yes
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2943 ac_cv_header_stdc
=no
2945 rm -f conftest.
$ac_objext conftest.
$ac_ext
2947 if test $ac_cv_header_stdc = yes; then
2948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2949 cat >conftest.
$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 $EGREP "memchr" >/dev
/null
2>&1; then
2963 ac_cv_header_stdc
=no
2969 if test $ac_cv_header_stdc = yes; then
2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2971 cat >conftest.
$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2975 cat confdefs.h
>>conftest.
$ac_ext
2976 cat >>conftest.
$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 $EGREP "free" >/dev
/null
2>&1; then
2985 ac_cv_header_stdc
=no
2991 if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2996 cat >conftest.
$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h
>>conftest.
$ac_ext
3001 cat >>conftest.
$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 #if ((' ' & 0x0FF) == 0x020)
3005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3008 # define ISLOWER(c) \
3009 (('a' <= (c) && (c) <= 'i') \
3010 || ('j' <= (c) && (c) <= 'r') \
3011 || ('s' <= (c) && (c) <= 'z'))
3012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3020 for (i = 0; i < 256; i++)
3021 if (XOR (islower (i), ISLOWER (i))
3022 || toupper (i) != TOUPPER (i))
3027 rm -f conftest
$ac_exeext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029 (eval $ac_link) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: program exited with status $ac_status" >&5
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3045 ac_cv_header_stdc
=no
3047 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3051 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3052 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3053 if test $ac_cv_header_stdc = yes; then
3055 cat >>confdefs.h
<<\_ACEOF
3056 #define STDC_HEADERS 1
3061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3071 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3072 inttypes.h stdint.h unistd.h
3074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3075 echo "$as_me:$LINENO: checking for $ac_header" >&5
3076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 cat >conftest.
$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 $ac_includes_default
3089 #include <$ac_header>
3091 rm -f conftest.
$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try
='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_Header=yes"
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.
$ac_ext >&5
3108 eval "$as_ac_Header=no"
3110 rm -f conftest.
$ac_objext conftest.
$ac_ext
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3115 cat >>confdefs.h
<<_ACEOF
3116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3128 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h netinet
/ether.h
3130 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3132 echo "$as_me:$LINENO: checking for $ac_header" >&5
3133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3140 # Is the header compilable?
3141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3143 cat >conftest.
$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 $ac_includes_default
3151 #include <$ac_header>
3153 rm -f conftest.
$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try
='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_header_compiler
=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.
$ac_ext >&5
3170 ac_header_compiler
=no
3172 rm -f conftest.
$ac_objext conftest.
$ac_ext
3173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3174 echo "${ECHO_T}$ac_header_compiler" >&6
3176 # Is the header present?
3177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3179 cat >conftest.
$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <$ac_header>
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev
/null
; then
3196 if test -s conftest.err
; then
3197 ac_cpp_err
=$ac_c_preproc_warn_flag
3204 if test -z "$ac_cpp_err"; then
3205 ac_header_preproc
=yes
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.
$ac_ext >&5
3210 ac_header_preproc
=no
3212 rm -f conftest.err conftest.
$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3214 echo "${ECHO_T}$ac_header_preproc" >&6
3216 # So? What about this header?
3217 case $ac_header_compiler:$ac_header_preproc in
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3225 ## ------------------------------------ ##
3226 ## Report this to bug-autoconf@gnu.org. ##
3227 ## ------------------------------------ ##
3230 sed "s/^/$as_me: WARNING: /" >&2
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3241 ## ------------------------------------ ##
3242 ## Report this to bug-autoconf@gnu.org. ##
3243 ## ------------------------------------ ##
3246 sed "s/^/$as_me: WARNING: /" >&2
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 eval "$as_ac_Header=$ac_header_preproc"
3256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3261 cat >>confdefs.h
<<_ACEOF
3262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3270 for ac_header
in netinet
/if_ether.h
3272 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3273 echo "$as_me:$LINENO: checking for $ac_header" >&5
3274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.
$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3282 cat confdefs.h
>>conftest.
$ac_ext
3283 cat >>conftest.
$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/socket.h>
3288 #include <$ac_header>
3290 rm -f conftest.
$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try
='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 eval "$as_ac_Header=yes"
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.
$ac_ext >&5
3307 eval "$as_ac_Header=no"
3309 rm -f conftest.
$ac_objext conftest.
$ac_ext
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3314 cat >>confdefs.h
<<_ACEOF
3315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3322 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3323 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3324 if test "${ac_cv_header_time+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.
$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3331 cat confdefs.h
>>conftest.
$ac_ext
3332 cat >>conftest.
$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #include <sys/types.h>
3335 #include <sys/time.h>
3341 if ((struct tm *) 0)
3347 rm -f conftest.
$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try
='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 ac_cv_header_time
=yes
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.
$ac_ext >&5
3364 ac_cv_header_time
=no
3366 rm -f conftest.
$ac_objext conftest.
$ac_ext
3368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3369 echo "${ECHO_T}$ac_cv_header_time" >&6
3370 if test $ac_cv_header_time = yes; then
3372 cat >>confdefs.h
<<\_ACEOF
3373 #define TIME_WITH_SYS_TIME 1
3382 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3383 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3384 if test "$cross_compiling" = yes; then
3385 if test "${ac_cv_linux_vers+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_cv_linux_vers
=unknown
3392 if test "${ac_cv_linux_vers+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_cv_linux_vers
=`uname -r 2>&1 | \
3396 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3400 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3401 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3402 if test $ac_cv_linux_vers = unknown
; then
3403 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3404 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3405 { (exit 1); exit 1; }; }
3407 if test $ac_cv_linux_vers -lt 2 ; then
3408 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3409 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3410 { (exit 1); exit 1; }; }
3420 for ac_header
in smi.h
3422 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 # Is the header compilable?
3433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3435 cat >conftest.
$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3439 cat confdefs.h
>>conftest.
$ac_ext
3440 cat >>conftest.
$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 $ac_includes_default
3443 #include <$ac_header>
3445 rm -f conftest.
$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try
='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_header_compiler
=yes
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.
$ac_ext >&5
3462 ac_header_compiler
=no
3464 rm -f conftest.
$ac_objext conftest.
$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3466 echo "${ECHO_T}$ac_header_compiler" >&6
3468 # Is the header present?
3469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3471 cat >conftest.
$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <$ac_header>
3480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3481 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3483 grep -v '^ *+' conftest.er1
>conftest.err
3485 cat conftest.err
>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev
/null
; then
3488 if test -s conftest.err
; then
3489 ac_cpp_err
=$ac_c_preproc_warn_flag
3496 if test -z "$ac_cpp_err"; then
3497 ac_header_preproc
=yes
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.
$ac_ext >&5
3502 ac_header_preproc
=no
3504 rm -f conftest.err conftest.
$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3506 echo "${ECHO_T}$ac_header_preproc" >&6
3508 # So? What about this header?
3509 case $ac_header_compiler:$ac_header_preproc in
3511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3517 ## ------------------------------------ ##
3518 ## Report this to bug-autoconf@gnu.org. ##
3519 ## ------------------------------------ ##
3522 sed "s/^/$as_me: WARNING: /" >&2
3525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3533 ## ------------------------------------ ##
3534 ## Report this to bug-autoconf@gnu.org. ##
3535 ## ------------------------------------ ##
3538 sed "s/^/$as_me: WARNING: /" >&2
3541 echo "$as_me:$LINENO: checking for $ac_header" >&5
3542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 eval "$as_ac_Header=$ac_header_preproc"
3548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3553 cat >>confdefs.h
<<_ACEOF
3554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3562 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3563 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3564 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 ac_check_lib_save_LIBS
=$LIBS
3569 cat >conftest.
$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3573 cat confdefs.h
>>conftest.
$ac_ext
3574 cat >>conftest.
$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3577 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3592 rm -f conftest.
$ac_objext conftest
$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try
='test -s conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_cv_lib_smi_smiInit
=yes
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.
$ac_ext >&5
3609 ac_cv_lib_smi_smiInit
=no
3611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3612 LIBS
=$ac_check_lib_save_LIBS
3614 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3615 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3616 if test $ac_cv_lib_smi_smiInit = yes; then
3617 cat >>confdefs.h
<<_ACEOF
3618 #define HAVE_LIBSMI 1
3625 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3627 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3628 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3629 if test "$cross_compiling" = yes; then
3630 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3631 echo "${ECHO_T}not when cross-compiling" >&6
3635 cat >conftest.
$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3639 cat confdefs.h
>>conftest.
$ac_ext
3640 cat >>conftest.
$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 /* libsmi available check */
3646 int current, revision, age, n;
3647 const int required = 2;
3650 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3652 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3655 if (required < current - age || required > current)
3661 rm -f conftest
$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && { ac_try
='./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 echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6
3674 cat >>confdefs.h
<<\_ACEOF
3680 echo "$as_me: program exited with status $ac_status" >&5
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3686 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3687 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3688 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3689 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3690 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3691 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3692 4) echo "$as_me:$LINENO: result: no - too old" >&5
3693 echo "${ECHO_T}no - too old" >&6 ;;
3694 *) echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6 ;;
3699 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3703 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3704 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3705 # Check whether --enable-smb or --disable-smb was given.
3706 if test "${enable_smb+set}" = set; then
3707 enableval
="$enable_smb"
3712 case "$enableval" in
3713 yes) echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6
3715 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3716 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3717 cat >>confdefs.h
<<\_ACEOF
3718 #define TCPDUMP_DO_SMB 1
3721 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3723 *) echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3729 # Check whether --with-user or --without-user was given.
3730 if test "${with_user+set}" = set; then
3731 withval
="$with_user"
3734 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3735 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3736 if test ! -z "$with_user" ; then
3737 cat >>confdefs.h
<<_ACEOF
3738 #define WITH_USER "$withval"
3741 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3742 echo "${ECHO_T}to \"$withval\"" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3749 # Check whether --with-chroot or --without-chroot was given.
3750 if test "${with_chroot+set}" = set; then
3751 withval
="$with_chroot"
3754 echo "$as_me:$LINENO: checking whether to chroot" >&5
3755 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3756 if test ! -z "$with_chroot" ; then
3757 cat >>confdefs.h
<<_ACEOF
3758 #define WITH_CHROOT "$withval"
3761 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3762 echo "${ECHO_T}to \"$withval\"" >&6
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3769 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3770 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3771 if test "${enable_ipv6+set}" = set; then
3772 enableval
="$enable_ipv6"
3773 case "$enableval" in
3774 yes) echo "$as_me:$LINENO: result: yes" >&5
3775 echo "${ECHO_T}yes" >&6
3776 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"
3777 cat >>confdefs.h
<<\_ACEOF
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3790 if test "$cross_compiling" = yes; then
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3796 cat >conftest.
$ac_ext <<_ACEOF
3797 #line $LINENO "configure"
3800 cat confdefs.h
>>conftest.
$ac_ext
3801 cat >>conftest.
$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 /* AF_INET6 available check */
3804 #include <sys/types.h>
3805 #include <sys/socket.h>
3808 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3815 rm -f conftest
$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 echo "$as_me:$LINENO: result: yes" >&5
3827 echo "${ECHO_T}yes" >&6
3828 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"
3829 cat >>confdefs.h
<<\_ACEOF
3835 echo "$as_me: program exited with status $ac_status" >&5
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.
$ac_ext >&5
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3844 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3852 if test "$ipv6" = "yes"; then
3853 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3854 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3855 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
3858 cat >conftest.
$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <netinet/in.h>
3866 #ifdef IPV6_INRIA_VERSION
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "yes" >/dev
/null
2>&1; then
3873 CFLAGS
="-DINET6 $CFLAGS"
3879 cat >conftest.
$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3883 cat confdefs.h
>>conftest.
$ac_ext
3884 cat >>conftest.
$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <netinet/in.h>
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 $EGREP "yes" >/dev
/null
2>&1; then
3895 ipv6libdir
=/usr
/local
/v
6/lib
;
3897 CFLAGS
="-DINET6 $CFLAGS"
3903 cat >conftest.
$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3907 cat confdefs.h
>>conftest.
$ac_ext
3908 cat >>conftest.
$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <features.h>
3911 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "yes" >/dev
/null
2>&1; then
3918 CFLAGS
="-DINET6 $CFLAGS"
3924 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
3927 ipv6libdir
=/usr
/inet
6/lib
3929 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
3933 cat >conftest.
$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3937 cat confdefs.h
>>conftest.
$ac_ext
3938 cat >>conftest.
$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <sys/param.h>
3941 #ifdef _TOSHIBA_INET6
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "yes" >/dev
/null
2>&1; then
3949 ipv6libdir
=/usr
/local
/v
6/lib
;
3950 CFLAGS
="-DINET6 $CFLAGS"
3956 cat >conftest.
$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3960 cat confdefs.h
>>conftest.
$ac_ext
3961 cat >>conftest.
$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include </usr/local/v6/include/sys/v6config.h>
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 $EGREP "yes" >/dev
/null
2>&1; then
3972 ipv6libdir
=/usr
/local
/v
6/lib
;
3973 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
3979 cat >conftest.
$ac_ext <<_ACEOF
3980 #line $LINENO "configure"
3983 cat confdefs.h
>>conftest.
$ac_ext
3984 cat >>conftest.
$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <sys/param.h>
3987 #ifdef _ZETA_MINAMI_INET6
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "yes" >/dev
/null
2>&1; then
3995 ipv6libdir
=/usr
/local
/v
6/lib
;
3996 CFLAGS
="-DINET6 $CFLAGS"
4002 if test "$ipv6type" != "unknown"; then
4006 echo "$as_me:$LINENO: result: $ipv6type" >&5
4007 echo "${ECHO_T}$ipv6type" >&6
4010 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4011 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4012 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4013 echo "You have $ipv6lib library, using it"
4015 if test "$ipv6trylibc" = "yes"; then
4016 echo "You do not have $ipv6lib library, using libc"
4018 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4019 echo "You need to fetch lib$ipv6lib.a from appropriate"
4020 echo 'ipv6 kit and compile beforehand.'
4027 if test "$ipv6" = "yes"; then
4029 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4030 # function in libc; there are "ngetaddrinfo()" and
4031 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4032 # "getaddrinfo" to be either "ngetaddrinfo" or
4033 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4034 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4036 # So this test doesn't work on Tru64 5.1, and possibly
4037 # on other 5.x releases. This causes the configure
4038 # script to become confused, and results in libpcap
4039 # being unbuildable.
4041 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4042 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4043 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 ac_func_search_save_LIBS
=$LIBS
4047 ac_cv_search_getaddrinfo
=no
4048 cat >conftest.
$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4052 cat confdefs.h
>>conftest.
$ac_ext
4053 cat >>conftest.
$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4056 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4062 char getaddrinfo ();
4071 rm -f conftest.
$ac_objext conftest
$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try
='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_search_getaddrinfo
="none required"
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.
$ac_ext >&5
4089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4090 if test "$ac_cv_search_getaddrinfo" = no
; then
4091 for ac_lib
in socket
; do
4092 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4093 cat >conftest.
$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4107 char getaddrinfo ();
4116 rm -f conftest.
$ac_objext conftest
$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118 (eval $ac_link) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try
='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_search_getaddrinfo
="-l$ac_lib"
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.
$ac_ext >&5
4135 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4138 LIBS
=$ac_func_search_save_LIBS
4140 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4141 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4142 if test "$ac_cv_search_getaddrinfo" != no
; then
4143 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4144 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4145 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4146 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test "$cross_compiling" = yes; then
4150 td_cv_buggygetaddrinfo
=yes
4152 cat >conftest.
$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4160 #include <sys/types.h>
4163 #include <sys/socket.h>
4164 #include <netinet/in.h>
4168 int passive, gaierr, inet4 = 0, inet6 = 0;
4169 struct addrinfo hints, *ai, *aitop;
4170 char straddr[INET6_ADDRSTRLEN], strport[16];
4172 for (passive = 0; passive <= 1; passive++) {
4173 memset(&hints, 0, sizeof(hints));
4174 hints.ai_family = AF_UNSPEC;
4175 hints.ai_flags = passive ? AI_PASSIVE : 0;
4176 hints.ai_socktype = SOCK_STREAM;
4177 hints.ai_protocol = IPPROTO_TCP;
4178 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4179 (void)gai_strerror(gaierr);
4182 for (ai = aitop; ai; ai = ai->ai_next) {
4183 if (ai->ai_addr == NULL ||
4184 ai->ai_addrlen == 0 ||
4185 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4186 straddr, sizeof(straddr), strport, sizeof(strport),
4187 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4190 switch (ai->ai_family) {
4192 if (strcmp(strport, "54321") != 0) {
4196 if (strcmp(straddr, "0.0.0.0") != 0) {
4200 if (strcmp(straddr, "127.0.0.1") != 0) {
4207 if (strcmp(strport, "54321") != 0) {
4211 if (strcmp(straddr, "::") != 0) {
4215 if (strcmp(straddr, "::1") != 0) {
4232 /* another family support? */
4238 /* supported family should be 2, unsupported family should be 0 */
4239 if (!(inet4 == 0 || inet4 == 2))
4241 if (!(inet6 == 0 || inet6 == 2))
4245 freeaddrinfo(aitop);
4250 freeaddrinfo(aitop);
4255 rm -f conftest
$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 td_cv_buggygetaddrinfo
=no
4268 echo "$as_me: program exited with status $ac_status" >&5
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.
$ac_ext >&5
4273 td_cv_buggygetaddrinfo
=yes
4275 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4279 if test "$td_cv_buggygetaddrinfo" = no
; then
4280 echo "$as_me:$LINENO: result: good" >&5
4281 echo "${ECHO_T}good" >&6
4283 echo "$as_me:$LINENO: result: buggy" >&5
4284 echo "${ECHO_T}buggy" >&6
4287 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4289 # XXX - it doesn't appear that "ipv6type" can ever be
4290 # set to "linux". Should this be testing for
4291 # "linux-glibc", or for that *or* "linux-libinet6"?
4292 # If the latter, note that "linux-libinet6" is also
4293 # the type given to some non-Linux OSes.
4295 if test "$ipv6type" != "linux"; then
4296 echo 'Fatal: You must get working getaddrinfo() function.'
4297 echo ' or you can specify "--disable-ipv6"'.
4300 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4301 echo ' Better upgrade your system library to newest version'
4302 echo ' of GNU C library (aka glibc).'
4310 for ac_func
in getaddrinfo getnameinfo
4312 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4313 echo "$as_me:$LINENO: checking for $ac_func" >&5
4314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_var+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 cat >conftest.
$ac_ext <<_ACEOF
4319 #line $LINENO "configure"
4322 cat confdefs.h
>>conftest.
$ac_ext
4323 cat >>conftest.
$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4330 # include <limits.h>
4332 # include <assert.h>
4334 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4348 char (*f) () = $ac_func;
4357 return f != $ac_func;
4362 rm -f conftest.
$ac_objext conftest
$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -s conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_var=yes"
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.
$ac_ext >&5
4379 eval "$as_ac_var=no"
4381 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4385 if test `eval echo '${'$as_ac_var'}'` = yes; then
4386 cat >>confdefs.h
<<_ACEOF
4387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4391 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4398 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4399 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4400 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 cat >conftest.
$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <netdnet/dnetdb.h>
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4415 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4417 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4422 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4423 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4424 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4425 cat >>confdefs.h
<<\_ACEOF
4426 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4431 echo "$as_me:$LINENO: checking for char" >&5
4432 echo $ECHO_N "checking for char... $ECHO_C" >&6
4433 if test "${ac_cv_type_char+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 cat >conftest.
$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4455 rm -f conftest.
$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try
='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.
$ac_ext >&5
4474 rm -f conftest.
$ac_objext conftest.
$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4477 echo "${ECHO_T}$ac_cv_type_char" >&6
4479 echo "$as_me:$LINENO: checking size of char" >&5
4480 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4481 if test "${ac_cv_sizeof_char+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test "$ac_cv_type_char" = yes; then
4485 # The cast to unsigned long works around a bug in the HP C Compiler
4486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4488 # This bug is HP SR number 8606223364.
4489 if test "$cross_compiling" = yes; then
4490 # Depending upon the size, compute the lo and hi bounds.
4491 cat >conftest.
$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4495 cat confdefs.h
>>conftest.
$ac_ext
4496 cat >>conftest.
$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4502 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4509 rm -f conftest.
$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4523 cat >conftest.
$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4527 cat confdefs.h
>>conftest.
$ac_ext
4528 cat >>conftest.
$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4534 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4541 rm -f conftest.
$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_hi
=$ac_mid; break
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_lo
=`expr $ac_mid + 1`
4559 if test $ac_lo -le $ac_mid; then
4563 ac_mid
=`expr 2 '*' $ac_mid + 1`
4565 rm -f conftest.
$ac_objext conftest.
$ac_ext
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.
$ac_ext >&5
4571 cat >conftest.
$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4575 cat confdefs.h
>>conftest.
$ac_ext
4576 cat >>conftest.
$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4589 rm -f conftest.
$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try
='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4603 cat >conftest.
$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4607 cat confdefs.h
>>conftest.
$ac_ext
4608 cat >>conftest.
$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4614 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4621 rm -f conftest.
$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try
='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_lo
=$ac_mid; break
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4638 ac_hi
=`expr '(' $ac_mid ')' - 1`
4639 if test $ac_mid -le $ac_hi; then
4643 ac_mid
=`expr 2 '*' $ac_mid`
4645 rm -f conftest.
$ac_objext conftest.
$ac_ext
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4653 rm -f conftest.
$ac_objext conftest.
$ac_ext
4655 rm -f conftest.
$ac_objext conftest.
$ac_ext
4656 # Binary search between lo and hi bounds.
4657 while test "x$ac_lo" != "x$ac_hi"; do
4658 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4659 cat >conftest.
$ac_ext <<_ACEOF
4660 #line $LINENO "configure"
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4670 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4677 rm -f conftest.
$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try
='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.
$ac_ext >&5
4694 ac_lo
=`expr '(' $ac_mid ')' + 1`
4696 rm -f conftest.
$ac_objext conftest.
$ac_ext
4699 ?
*) ac_cv_sizeof_char
=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (char), 77
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; } ;;
4707 if test "$cross_compiling" = yes; then
4708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4714 cat >conftest.
$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4718 cat confdefs.h
>>conftest.
$ac_ext
4719 cat >>conftest.
$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 $ac_includes_default
4722 long longval () { return (long) (sizeof (char)); }
4723 unsigned long ulongval () { return (long) (sizeof (char)); }
4730 FILE *f = fopen ("conftest.val", "w");
4733 if (((long) (sizeof (char))) < 0)
4735 long i = longval ();
4736 if (i != ((long) (sizeof (char))))
4738 fprintf (f, "%ld\n", i);
4742 unsigned long i = ulongval ();
4743 if (i != ((long) (sizeof (char))))
4745 fprintf (f, "%lu\n", i);
4747 exit (ferror (f) || fclose (f) != 0);
4753 rm -f conftest
$ac_exeext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_sizeof_char
=`cat conftest.val`
4766 echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.
$ac_ext >&5
4771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4772 See \`config.log' for more details." >&5
4773 echo "$as_me: error: cannot compute sizeof (char), 77
4774 See \`config.log' for more details." >&2;}
4775 { (exit 1); exit 1; }; }
4777 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4786 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4787 cat >>confdefs.h
<<_ACEOF
4788 #define SIZEOF_CHAR $ac_cv_sizeof_char
4792 echo "$as_me:$LINENO: checking for short" >&5
4793 echo $ECHO_N "checking for short... $ECHO_C" >&6
4794 if test "${ac_cv_type_short+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cat >conftest.
$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4801 cat confdefs.h
>>conftest.
$ac_ext
4802 cat >>conftest.
$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4816 rm -f conftest.
$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try
='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_type_short
=yes
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.
$ac_ext >&5
4835 rm -f conftest.
$ac_objext conftest.
$ac_ext
4837 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4838 echo "${ECHO_T}$ac_cv_type_short" >&6
4840 echo "$as_me:$LINENO: checking size of short" >&5
4841 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4842 if test "${ac_cv_sizeof_short+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test "$ac_cv_type_short" = yes; then
4846 # The cast to unsigned long works around a bug in the HP C Compiler
4847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849 # This bug is HP SR number 8606223364.
4850 if test "$cross_compiling" = yes; then
4851 # Depending upon the size, compute the lo and hi bounds.
4852 cat >conftest.
$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4856 cat confdefs.h
>>conftest.
$ac_ext
4857 cat >>conftest.
$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4863 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4870 rm -f conftest.
$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try
='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4884 cat >conftest.
$ac_ext <<_ACEOF
4885 #line $LINENO "configure"
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try
='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_hi
=$ac_mid; break
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.
$ac_ext >&5
4919 ac_lo
=`expr $ac_mid + 1`
4920 if test $ac_lo -le $ac_mid; then
4924 ac_mid
=`expr 2 '*' $ac_mid + 1`
4926 rm -f conftest.
$ac_objext conftest.
$ac_ext
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.
$ac_ext >&5
4932 cat >conftest.
$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4936 cat confdefs.h
>>conftest.
$ac_ext
4937 cat >>conftest.
$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4950 rm -f conftest.
$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try
='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4964 cat >conftest.
$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4968 cat confdefs.h
>>conftest.
$ac_ext
4969 cat >>conftest.
$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4975 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4982 rm -f conftest.
$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try
='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_lo
=$ac_mid; break
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
4999 ac_hi
=`expr '(' $ac_mid ')' - 1`
5000 if test $ac_mid -le $ac_hi; then
5004 ac_mid
=`expr 2 '*' $ac_mid`
5006 rm -f conftest.
$ac_objext conftest.
$ac_ext
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.
$ac_ext >&5
5014 rm -f conftest.
$ac_objext conftest.
$ac_ext
5016 rm -f conftest.
$ac_objext conftest.
$ac_ext
5017 # Binary search between lo and hi bounds.
5018 while test "x$ac_lo" != "x$ac_hi"; do
5019 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5020 cat >conftest.
$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5031 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5038 rm -f conftest.
$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try
='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.
$ac_ext >&5
5055 ac_lo
=`expr '(' $ac_mid ')' + 1`
5057 rm -f conftest.
$ac_objext conftest.
$ac_ext
5060 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5061 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5062 See \`config.log' for more details." >&5
5063 echo "$as_me: error: cannot compute sizeof (short), 77
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; } ;;
5068 if test "$cross_compiling" = yes; then
5069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5070 See \`config.log' for more details." >&5
5071 echo "$as_me: error: cannot run test program while cross compiling
5072 See \`config.log' for more details." >&2;}
5073 { (exit 1); exit 1; }; }
5075 cat >conftest.
$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5079 cat confdefs.h
>>conftest.
$ac_ext
5080 cat >>conftest.
$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 long longval () { return (long) (sizeof (short)); }
5084 unsigned long ulongval () { return (long) (sizeof (short)); }
5091 FILE *f = fopen ("conftest.val", "w");
5094 if (((long) (sizeof (short))) < 0)
5096 long i = longval ();
5097 if (i != ((long) (sizeof (short))))
5099 fprintf (f, "%ld\n", i);
5103 unsigned long i = ulongval ();
5104 if (i != ((long) (sizeof (short))))
5106 fprintf (f, "%lu\n", i);
5108 exit (ferror (f) || fclose (f) != 0);
5114 rm -f conftest
$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_sizeof_short
=`cat conftest.val`
5127 echo "$as_me: program exited with status $ac_status" >&5
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.
$ac_ext >&5
5132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot compute sizeof (short), 77
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }
5138 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5143 ac_cv_sizeof_short
=0
5146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5147 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5148 cat >>confdefs.h
<<_ACEOF
5149 #define SIZEOF_SHORT $ac_cv_sizeof_short
5153 echo "$as_me:$LINENO: checking for int" >&5
5154 echo $ECHO_N "checking for int... $ECHO_C" >&6
5155 if test "${ac_cv_type_int+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 cat >conftest.
$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5162 cat confdefs.h
>>conftest.
$ac_ext
5163 cat >>conftest.
$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5177 rm -f conftest.
$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try
='test -s conftest.$ac_objext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.
$ac_ext >&5
5196 rm -f conftest.
$ac_objext conftest.
$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5199 echo "${ECHO_T}$ac_cv_type_int" >&6
5201 echo "$as_me:$LINENO: checking size of int" >&5
5202 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5203 if test "${ac_cv_sizeof_int+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 if test "$ac_cv_type_int" = yes; then
5207 # The cast to unsigned long works around a bug in the HP C Compiler
5208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5210 # This bug is HP SR number 8606223364.
5211 if test "$cross_compiling" = yes; then
5212 # Depending upon the size, compute the lo and hi bounds.
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5217 cat confdefs.h
>>conftest.
$ac_ext
5218 cat >>conftest.
$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5224 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5231 rm -f conftest.
$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try
='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5245 cat >conftest.
$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5249 cat confdefs.h
>>conftest.
$ac_ext
5250 cat >>conftest.
$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5256 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5263 rm -f conftest.
$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try
='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_hi
=$ac_mid; break
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.
$ac_ext >&5
5280 ac_lo
=`expr $ac_mid + 1`
5281 if test $ac_lo -le $ac_mid; then
5285 ac_mid
=`expr 2 '*' $ac_mid + 1`
5287 rm -f conftest.
$ac_objext conftest.
$ac_ext
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.
$ac_ext >&5
5293 cat >conftest.
$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5311 rm -f conftest.
$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5325 cat >conftest.
$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5329 cat confdefs.h
>>conftest.
$ac_ext
5330 cat >>conftest.
$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5343 rm -f conftest.
$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_lo
=$ac_mid; break
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.
$ac_ext >&5
5360 ac_hi
=`expr '(' $ac_mid ')' - 1`
5361 if test $ac_mid -le $ac_hi; then
5365 ac_mid
=`expr 2 '*' $ac_mid`
5367 rm -f conftest.
$ac_objext conftest.
$ac_ext
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5375 rm -f conftest.
$ac_objext conftest.
$ac_ext
5377 rm -f conftest.
$ac_objext conftest.
$ac_ext
5378 # Binary search between lo and hi bounds.
5379 while test "x$ac_lo" != "x$ac_hi"; do
5380 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5381 cat >conftest.
$ac_ext <<_ACEOF
5382 #line $LINENO "configure"
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5392 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5399 rm -f conftest.
$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.
$ac_ext >&5
5416 ac_lo
=`expr '(' $ac_mid ')' + 1`
5418 rm -f conftest.
$ac_objext conftest.
$ac_ext
5421 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5423 See \`config.log' for more details." >&5
5424 echo "$as_me: error: cannot compute sizeof (int), 77
5425 See \`config.log' for more details." >&2;}
5426 { (exit 1); exit 1; }; } ;;
5429 if test "$cross_compiling" = yes; then
5430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5431 See \`config.log' for more details." >&5
5432 echo "$as_me: error: cannot run test program while cross compiling
5433 See \`config.log' for more details." >&2;}
5434 { (exit 1); exit 1; }; }
5436 cat >conftest.
$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5440 cat confdefs.h
>>conftest.
$ac_ext
5441 cat >>conftest.
$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 long longval () { return (long) (sizeof (int)); }
5445 unsigned long ulongval () { return (long) (sizeof (int)); }
5452 FILE *f = fopen ("conftest.val", "w");
5455 if (((long) (sizeof (int))) < 0)
5457 long i = longval ();
5458 if (i != ((long) (sizeof (int))))
5460 fprintf (f, "%ld\n", i);
5464 unsigned long i = ulongval ();
5465 if (i != ((long) (sizeof (int))))
5467 fprintf (f, "%lu\n", i);
5469 exit (ferror (f) || fclose (f) != 0);
5475 rm -f conftest
$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_sizeof_int
=`cat conftest.val`
5488 echo "$as_me: program exited with status $ac_status" >&5
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.
$ac_ext >&5
5493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot compute sizeof (int), 77
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; }
5499 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5508 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5509 cat >>confdefs.h
<<_ACEOF
5510 #define SIZEOF_INT $ac_cv_sizeof_int
5514 echo "$as_me:$LINENO: checking for long" >&5
5515 echo $ECHO_N "checking for long... $ECHO_C" >&6
5516 if test "${ac_cv_type_long+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 cat >conftest.
$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5523 cat confdefs.h
>>conftest.
$ac_ext
5524 cat >>conftest.
$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5538 rm -f conftest.
$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try
='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5557 rm -f conftest.
$ac_objext conftest.
$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5560 echo "${ECHO_T}$ac_cv_type_long" >&6
5562 echo "$as_me:$LINENO: checking size of long" >&5
5563 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5564 if test "${ac_cv_sizeof_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 if test "$ac_cv_type_long" = yes; then
5568 # The cast to unsigned long works around a bug in the HP C Compiler
5569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5571 # This bug is HP SR number 8606223364.
5572 if test "$cross_compiling" = yes; then
5573 # Depending upon the size, compute the lo and hi bounds.
5574 cat >conftest.
$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5585 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5592 rm -f conftest.
$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try
='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5606 cat >conftest.
$ac_ext <<_ACEOF
5607 #line $LINENO "configure"
5610 cat confdefs.h
>>conftest.
$ac_ext
5611 cat >>conftest.
$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5617 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5624 rm -f conftest.
$ac_objext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try
='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_hi
=$ac_mid; break
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.
$ac_ext >&5
5641 ac_lo
=`expr $ac_mid + 1`
5642 if test $ac_lo -le $ac_mid; then
5646 ac_mid
=`expr 2 '*' $ac_mid + 1`
5648 rm -f conftest.
$ac_objext conftest.
$ac_ext
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.
$ac_ext >&5
5654 cat >conftest.
$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 cat >conftest.
$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5697 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5704 rm -f conftest.
$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try
='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_lo
=$ac_mid; break
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.
$ac_ext >&5
5721 ac_hi
=`expr '(' $ac_mid ')' - 1`
5722 if test $ac_mid -le $ac_hi; then
5726 ac_mid
=`expr 2 '*' $ac_mid`
5728 rm -f conftest.
$ac_objext conftest.
$ac_ext
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.
$ac_ext >&5
5736 rm -f conftest.
$ac_objext conftest.
$ac_ext
5738 rm -f conftest.
$ac_objext conftest.
$ac_ext
5739 # Binary search between lo and hi bounds.
5740 while test "x$ac_lo" != "x$ac_hi"; do
5741 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5742 cat >conftest.
$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5753 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5760 rm -f conftest.
$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try
='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.
$ac_ext >&5
5777 ac_lo
=`expr '(' $ac_mid ')' + 1`
5779 rm -f conftest.
$ac_objext conftest.
$ac_ext
5782 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5783 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: cannot compute sizeof (long), 77
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; } ;;
5790 if test "$cross_compiling" = yes; then
5791 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: cannot run test program while cross compiling
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5797 cat >conftest.
$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 long longval () { return (long) (sizeof (long)); }
5806 unsigned long ulongval () { return (long) (sizeof (long)); }
5813 FILE *f = fopen ("conftest.val", "w");
5816 if (((long) (sizeof (long))) < 0)
5818 long i = longval ();
5819 if (i != ((long) (sizeof (long))))
5821 fprintf (f, "%ld\n", i);
5825 unsigned long i = ulongval ();
5826 if (i != ((long) (sizeof (long))))
5828 fprintf (f, "%lu\n", i);
5830 exit (ferror (f) || fclose (f) != 0);
5836 rm -f conftest
$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_sizeof_long
=`cat conftest.val`
5849 echo "$as_me: program exited with status $ac_status" >&5
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.
$ac_ext >&5
5854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5855 See \`config.log' for more details." >&5
5856 echo "$as_me: error: cannot compute sizeof (long), 77
5857 See \`config.log' for more details." >&2;}
5858 { (exit 1); exit 1; }; }
5860 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5869 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5870 cat >>confdefs.h
<<_ACEOF
5871 #define SIZEOF_LONG $ac_cv_sizeof_long
5875 echo "$as_me:$LINENO: checking for long long" >&5
5876 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5877 if test "${ac_cv_type_long_long+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.
$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5884 cat confdefs.h
>>conftest.
$ac_ext
5885 cat >>conftest.
$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5891 if ((long long *) 0)
5893 if (sizeof (long long))
5899 rm -f conftest.
$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try
='test -s conftest.$ac_objext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_type_long_long
=yes
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.
$ac_ext >&5
5916 ac_cv_type_long_long
=no
5918 rm -f conftest.
$ac_objext conftest.
$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5921 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5923 echo "$as_me:$LINENO: checking size of long long" >&5
5924 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5925 if test "${ac_cv_sizeof_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test "$ac_cv_type_long_long" = yes; then
5929 # The cast to unsigned long works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 if test "$cross_compiling" = yes; then
5934 # Depending upon the size, compute the lo and hi bounds.
5935 cat >conftest.
$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5939 cat confdefs.h
>>conftest.
$ac_ext
5940 cat >>conftest.
$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5946 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5953 rm -f conftest.
$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5967 cat >conftest.
$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5971 cat confdefs.h
>>conftest.
$ac_ext
5972 cat >>conftest.
$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5978 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5985 rm -f conftest.
$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try
='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_hi
=$ac_mid; break
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.
$ac_ext >&5
6002 ac_lo
=`expr $ac_mid + 1`
6003 if test $ac_lo -le $ac_mid; then
6007 ac_mid
=`expr 2 '*' $ac_mid + 1`
6009 rm -f conftest.
$ac_objext conftest.
$ac_ext
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.
$ac_ext >&5
6015 cat >conftest.
$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6033 rm -f conftest.
$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try
='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6047 cat >conftest.
$ac_ext <<_ACEOF
6048 #line $LINENO "configure"
6051 cat confdefs.h
>>conftest.
$ac_ext
6052 cat >>conftest.
$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6058 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6065 rm -f conftest.
$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try
='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_lo
=$ac_mid; break
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.
$ac_ext >&5
6082 ac_hi
=`expr '(' $ac_mid ')' - 1`
6083 if test $ac_mid -le $ac_hi; then
6087 ac_mid
=`expr 2 '*' $ac_mid`
6089 rm -f conftest.
$ac_objext conftest.
$ac_ext
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6097 rm -f conftest.
$ac_objext conftest.
$ac_ext
6099 rm -f conftest.
$ac_objext conftest.
$ac_ext
6100 # Binary search between lo and hi bounds.
6101 while test "x$ac_lo" != "x$ac_hi"; do
6102 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6103 cat >conftest.
$ac_ext <<_ACEOF
6104 #line $LINENO "configure"
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6114 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6121 rm -f conftest.
$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try
='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.
$ac_ext >&5
6138 ac_lo
=`expr '(' $ac_mid ')' + 1`
6140 rm -f conftest.
$ac_objext conftest.
$ac_ext
6143 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6144 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6145 See \`config.log' for more details." >&5
6146 echo "$as_me: error: cannot compute sizeof (long long), 77
6147 See \`config.log' for more details." >&2;}
6148 { (exit 1); exit 1; }; } ;;
6151 if test "$cross_compiling" = yes; then
6152 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6153 See \`config.log' for more details." >&5
6154 echo "$as_me: error: cannot run test program while cross compiling
6155 See \`config.log' for more details." >&2;}
6156 { (exit 1); exit 1; }; }
6158 cat >conftest.
$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6162 cat confdefs.h
>>conftest.
$ac_ext
6163 cat >>conftest.
$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 $ac_includes_default
6166 long longval () { return (long) (sizeof (long long)); }
6167 unsigned long ulongval () { return (long) (sizeof (long long)); }
6174 FILE *f = fopen ("conftest.val", "w");
6177 if (((long) (sizeof (long long))) < 0)
6179 long i = longval ();
6180 if (i != ((long) (sizeof (long long))))
6182 fprintf (f, "%ld\n", i);
6186 unsigned long i = ulongval ();
6187 if (i != ((long) (sizeof (long long))))
6189 fprintf (f, "%lu\n", i);
6191 exit (ferror (f) || fclose (f) != 0);
6197 rm -f conftest
$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_sizeof_long_long
=`cat conftest.val`
6210 echo "$as_me: program exited with status $ac_status" >&5
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.
$ac_ext >&5
6215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6216 See \`config.log' for more details." >&5
6217 echo "$as_me: error: cannot compute sizeof (long long), 77
6218 See \`config.log' for more details." >&2;}
6219 { (exit 1); exit 1; }; }
6221 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6226 ac_cv_sizeof_long_long
=0
6229 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6230 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6231 cat >>confdefs.h
<<_ACEOF
6232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6239 echo "$as_me:$LINENO: checking for addrinfo" >&5
6240 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6241 if test "${ac_cv_addrinfo+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 cat >conftest.
$ac_ext <<_ACEOF
6245 #line $LINENO "configure"
6248 cat confdefs.h
>>conftest.
$ac_ext
6249 cat >>conftest.
$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6261 rm -f conftest.
$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try
='test -s conftest.$ac_objext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.
$ac_ext >&5
6280 rm -f conftest.
$ac_objext conftest.
$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6284 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6285 if test $ac_cv_addrinfo = yes; then
6286 cat >>confdefs.h
<<\_ACEOF
6287 #define HAVE_ADDRINFO 1
6291 cat >>confdefs.h
<<\_ACEOF
6292 #define NEED_ADDRINFO_H 1
6297 if test "$ac_cv_addrinfo" = no
; then
6298 missing_includes
=yes
6302 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6303 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6304 if test "${ac_cv_maxserv+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6311 cat confdefs.h
>>conftest.
$ac_ext
6312 cat >>conftest.
$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "yes" >/dev
/null
2>&1; then
6329 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6330 echo "${ECHO_T}$ac_cv_maxserv" >&6
6331 if test $ac_cv_maxserv != yes; then
6332 cat >>confdefs.h
<<\_ACEOF
6333 #define NEED_ADDRINFO_H 1
6338 if test "$ac_cv_maxserv" = no
; then
6339 missing_includes
=yes
6343 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6344 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6345 if test "${ac_cv_namereqd+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 cat >conftest.
$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6352 cat confdefs.h
>>conftest.
$ac_ext
6353 cat >>conftest.
$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 $EGREP "yes" >/dev
/null
2>&1; then
6370 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6371 echo "${ECHO_T}$ac_cv_namereqd" >&6
6372 if test $ac_cv_namereqd != yes; then
6373 cat >>confdefs.h
<<\_ACEOF
6374 #define NEED_ADDRINFO_H 1
6379 if test "$ac_cv_namereqd" = no
; then
6380 missing_includes
=yes
6384 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6385 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6386 if test "${ac_cv_sa_storage+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 cat >conftest.
$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 # include <sys/types.h>
6398 # include <sys/socket.h>
6402 struct sockaddr_storage s
6407 rm -f conftest.
$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try
='test -s conftest.$ac_objext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 ac_cv_sa_storage
=yes
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.
$ac_ext >&5
6426 rm -f conftest.
$ac_objext conftest.
$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6430 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6431 if test $ac_cv_sa_storage = yes; then
6432 cat >>confdefs.h
<<\_ACEOF
6433 #define HAVE_SOCKADDR_STORAGE 1
6438 if test "$ac_cv_sa_storage" = no
; then
6439 missing_includes
=yes
6444 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6445 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6446 if test "${ac_cv_inaddrsz+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 cat >conftest.
$ac_ext <<_ACEOF
6450 #line $LINENO "configure"
6453 cat confdefs.h
>>conftest.
$ac_ext
6454 cat >>conftest.
$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6457 # include <arpa/nameser.h>
6466 rm -f conftest.
$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try
='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6485 rm -f conftest.
$ac_objext conftest.
$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6489 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6490 if test $ac_cv_inaddrsz = yes; then
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define HAVE_INADDRSZ 1
6498 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6499 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6500 if test "${ac_cv_in6addrsz+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6511 # include <arpa/nameser.h>
6520 rm -f conftest.
$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6539 rm -f conftest.
$ac_objext conftest.
$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6543 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6544 if test $ac_cv_in6addrsz = yes; then
6545 cat >>confdefs.h
<<\_ACEOF
6546 #define HAVE_IN6ADDRSZ 1
6553 if test "$ac_cv_addrsz" = no
; then
6554 missing_includes
=yes
6558 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6559 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6560 if test "${ac_cv_res_inet6+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.
$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 # include <sys/types.h>
6572 # include <netinet/in.h>
6573 # include <resolv.h>
6577 int a = RES_USE_INET6
6582 rm -f conftest.
$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try
='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.
$ac_ext >&5
6601 rm -f conftest.
$ac_objext conftest.
$ac_ext
6604 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6605 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6606 if test $ac_cv_res_inet6 = yes; then
6607 cat >>confdefs.h
<<\_ACEOF
6608 #define HAVE_RES_USE_INET6 1
6613 if test "$ac_cv_res_inet6" = no
; then
6614 missing_includes
=yes
6618 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6619 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6620 if test "${ac_cv_res_state_ext+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.
$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6627 cat confdefs.h
>>conftest.
$ac_ext
6628 cat >>conftest.
$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6631 # include <sys/types.h>
6632 # include <netinet/in.h>
6633 # include <netinet6/in6.h>
6634 # include <resolv.h>
6638 struct __res_state_ext e
6643 rm -f conftest.
$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try
='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_res_state_ext
=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.
$ac_ext >&5
6660 ac_cv_res_state_ext
=no
6662 rm -f conftest.
$ac_objext conftest.
$ac_ext
6665 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6666 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6667 if test $ac_cv_res_state_ext = yes; then
6668 cat >>confdefs.h
<<\_ACEOF
6669 #define HAVE_RES_STATE_EXT 1
6674 if test "$ac_cv_res_state_ext" = no
; then
6675 missing_includes
=yes
6679 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6680 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6681 if test "${ac_cv_res_state+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.
$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6688 cat confdefs.h
>>conftest.
$ac_ext
6689 cat >>conftest.
$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 # include <sys/types.h>
6693 # include <netinet/in.h>
6694 # include <netinet6/in6.h>
6695 # include <resolv.h>
6699 struct __res_state e; e.nsort = 0
6704 rm -f conftest.
$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try
='test -s conftest.$ac_objext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.
$ac_ext >&5
6723 rm -f conftest.
$ac_objext conftest.
$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6727 echo "${ECHO_T}$ac_cv_res_state" >&6
6728 if test $ac_cv_res_state = yes; then
6729 cat >>confdefs.h
<<\_ACEOF
6730 #define HAVE_NEW_RES_STATE 1
6743 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6746 echo "$as_me:$LINENO: checking for $ac_func" >&5
6747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6748 if eval "test \"\${$as_ac_var+set}\" = set"; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.
$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6755 cat confdefs.h
>>conftest.
$ac_ext
6756 cat >>conftest.
$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func (); below.
6760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761 <limits.h> exists even on freestanding compilers. */
6763 # include <limits.h>
6765 # include <assert.h>
6767 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6781 char (*f) () = $ac_func;
6790 return f != $ac_func;
6795 rm -f conftest.
$ac_objext conftest
$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try
='test -s conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 eval "$as_ac_var=yes"
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.
$ac_ext >&5
6812 eval "$as_ac_var=no"
6814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6818 if test `eval echo '${'$as_ac_var'}'` = yes; then
6819 cat >>confdefs.h
<<_ACEOF
6820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6824 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6830 for ac_func
in strftime
6832 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833 echo "$as_me:$LINENO: checking for $ac_func" >&5
6834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 cat >conftest.
$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6842 cat confdefs.h
>>conftest.
$ac_ext
6843 cat >>conftest.
$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 /* System header to define __stub macros and hopefully few prototypes,
6846 which can conflict with char $ac_func (); below.
6847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848 <limits.h> exists even on freestanding compilers. */
6850 # include <limits.h>
6852 # include <assert.h>
6854 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6868 char (*f) () = $ac_func;
6877 return f != $ac_func;
6882 rm -f conftest.
$ac_objext conftest
$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try
='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 eval "$as_ac_var=no"
6901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6905 if test `eval echo '${'$as_ac_var'}'` = yes; then
6906 cat >>confdefs.h
<<_ACEOF
6907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6914 for ac_func
in ether_ntohost
6916 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6917 echo "$as_me:$LINENO: checking for $ac_func" >&5
6918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_var+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 cat >conftest.
$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6926 cat confdefs.h
>>conftest.
$ac_ext
6927 cat >>conftest.
$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6934 # include <limits.h>
6936 # include <assert.h>
6938 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6952 char (*f) () = $ac_func;
6961 return f != $ac_func;
6966 rm -f conftest.
$ac_objext conftest
$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try
='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.
$ac_ext >&5
6983 eval "$as_ac_var=no"
6985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6989 if test `eval echo '${'$as_ac_var'}'` = yes; then
6990 cat >>confdefs.h
<<_ACEOF
6991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6994 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6995 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6996 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
7003 cat >conftest.
$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7007 cat confdefs.h
>>conftest.
$ac_ext
7008 cat >>conftest.
$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7012 #include <sys/types.h>
7013 #include <sys/param.h>
7014 #include <sys/socket.h>
7017 main(int argc, char **argv)
7019 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
7020 char name[MAXHOSTNAMELEN];
7022 ether_ntohost(name, (struct ether_addr *)ea);
7027 rm -f conftest
$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_buggy_ether_ntohost
=no
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.
$ac_ext >&5
7045 ac_cv_buggy_ether_ntohost
=yes
7047 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
7051 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
7052 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
7053 cat >>confdefs.h
<<\_ACEOF
7054 #define USE_ETHER_NTOHOST 1
7064 for ac_func
in setlinebuf alarm
7066 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7067 echo "$as_me:$LINENO: checking for $ac_func" >&5
7068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7069 if eval "test \"\${$as_ac_var+set}\" = set"; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 cat >conftest.
$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7076 cat confdefs.h
>>conftest.
$ac_ext
7077 cat >>conftest.
$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func (); below.
7081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 <limits.h> exists even on freestanding compilers. */
7084 # include <limits.h>
7086 # include <assert.h>
7088 /* Override any gcc2 internal prototype to avoid an error. */
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7096 /* The GNU C library defines this for functions which it implements
7097 to always fail with ENOSYS. Some functions are actually named
7098 something starting with __ and the normal name is an alias. */
7099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7102 char (*f) () = $ac_func;
7111 return f != $ac_func;
7116 rm -f conftest.
$ac_objext conftest
$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try
='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 eval "$as_ac_var=yes"
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 eval "$as_ac_var=no"
7135 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7139 if test `eval echo '${'$as_ac_var'}'` = yes; then
7140 cat >>confdefs.h
<<_ACEOF
7141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7151 for ac_func
in vsnprintf snprintf
7153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7154 echo "$as_me:$LINENO: checking for $ac_func" >&5
7155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7156 if eval "test \"\${$as_ac_var+set}\" = set"; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 cat >conftest.
$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7163 cat confdefs.h
>>conftest.
$ac_ext
7164 cat >>conftest.
$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func (); below.
7168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7169 <limits.h> exists even on freestanding compilers. */
7171 # include <limits.h>
7173 # include <assert.h>
7175 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7183 /* The GNU C library defines this for functions which it implements
7184 to always fail with ENOSYS. Some functions are actually named
7185 something starting with __ and the normal name is an alias. */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7189 char (*f) () = $ac_func;
7198 return f != $ac_func;
7203 rm -f conftest.
$ac_objext conftest
$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try
='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 eval "$as_ac_var=yes"
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.
$ac_ext >&5
7220 eval "$as_ac_var=no"
7222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7226 if test `eval echo '${'$as_ac_var'}'` = yes; then
7227 cat >>confdefs.h
<<_ACEOF
7228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7236 if test $needsnprintf = yes; then
7237 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
7241 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7242 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7243 if test "${ac_cv_type_signal+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 cat >conftest.
$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7259 extern "C" void (*signal (int, void (*)(int)))(int);
7261 void (*signal ()) ();
7272 rm -f conftest.
$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try
='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_type_signal
=void
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.
$ac_ext >&5
7289 ac_cv_type_signal
=int
7291 rm -f conftest.
$ac_objext conftest.
$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7294 echo "${ECHO_T}$ac_cv_type_signal" >&6
7296 cat >>confdefs.h
<<_ACEOF
7297 #define RETSIGTYPE $ac_cv_type_signal
7301 if test "$ac_cv_type_signal" = void
; then
7302 cat >>confdefs.h
<<\_ACEOF
7307 cat >>confdefs.h
<<\_ACEOF
7308 #define RETSIGVAL (0)
7315 cat >>confdefs.h
<<\_ACEOF
7316 #define _BSD_SIGNALS 1
7323 for ac_func
in sigaction
7325 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7326 echo "$as_me:$LINENO: checking for $ac_func" >&5
7327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_var+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func (); below.
7340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 <limits.h> exists even on freestanding compilers. */
7343 # include <limits.h>
7345 # include <assert.h>
7347 /* Override any gcc2 internal prototype to avoid an error. */
7352 /* We use char because int might match the return type of a gcc2
7353 builtin and then its argument prototype would still apply. */
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7361 char (*f) () = $ac_func;
7370 return f != $ac_func;
7375 rm -f conftest.
$ac_objext conftest
$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try
='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 eval "$as_ac_var=yes"
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.
$ac_ext >&5
7392 eval "$as_ac_var=no"
7394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7398 if test `eval echo '${'$as_ac_var'}'` = yes; then
7399 cat >>confdefs.h
<<_ACEOF
7400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7406 if test $ac_cv_func_sigaction = no
; then
7408 for ac_func
in sigset
7410 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_var+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.
$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7420 cat confdefs.h
>>conftest.
$ac_ext
7421 cat >>conftest.
$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 /* System header to define __stub macros and hopefully few prototypes,
7424 which can conflict with char $ac_func (); below.
7425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426 <limits.h> exists even on freestanding compilers. */
7428 # include <limits.h>
7430 # include <assert.h>
7432 /* Override any gcc2 internal prototype to avoid an error. */
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7446 char (*f) () = $ac_func;
7455 return f != $ac_func;
7460 rm -f conftest.
$ac_objext conftest
$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try
='test -s conftest$ac_exeext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 eval "$as_ac_var=yes"
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.
$ac_ext >&5
7477 eval "$as_ac_var=no"
7479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7483 if test `eval echo '${'$as_ac_var'}'` = yes; then
7484 cat >>confdefs.h
<<_ACEOF
7485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7496 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7497 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_func_search_save_LIBS
=$LIBS
7501 ac_cv_search_dnet_htoa
=no
7502 cat >conftest.
$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any gcc2 internal prototype to avoid an error. */
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7525 rm -f conftest.
$ac_objext conftest
$ac_exeext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527 (eval $ac_link) 2>&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try
='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_search_dnet_htoa
="none required"
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.
$ac_ext >&5
7543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7544 if test "$ac_cv_search_dnet_htoa" = no
; then
7545 for ac_lib
in dnet
; do
7546 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7547 cat >conftest.
$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7551 cat confdefs.h
>>conftest.
$ac_ext
7552 cat >>conftest.
$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7555 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7570 rm -f conftest.
$ac_objext conftest
$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try
='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_search_dnet_htoa
="-l$ac_lib"
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.
$ac_ext >&5
7589 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7592 LIBS
=$ac_func_search_save_LIBS
7594 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7595 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7596 if test "$ac_cv_search_dnet_htoa" != no
; then
7597 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
7598 cat >>confdefs.h
<<\_ACEOF
7599 #define HAVE_DNET_HTOA 1
7606 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7607 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7608 if test "${ac_cv_lib_rpc_main+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_check_lib_save_LIBS
=$LIBS
7613 cat >conftest.
$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7617 cat confdefs.h
>>conftest.
$ac_ext
7618 cat >>conftest.
$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7630 rm -f conftest.
$ac_objext conftest
$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try
='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_lib_rpc_main
=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.
$ac_ext >&5
7647 ac_cv_lib_rpc_main
=no
7649 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7650 LIBS
=$ac_check_lib_save_LIBS
7652 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7653 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7654 if test $ac_cv_lib_rpc_main = yes; then
7655 cat >>confdefs.h
<<_ACEOF
7656 #define HAVE_LIBRPC 1
7663 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7664 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7665 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_func_search_save_LIBS
=$LIBS
7669 ac_cv_search_getrpcbynumber
=no
7670 cat >conftest.
$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char getrpcbynumber ();
7693 rm -f conftest.
$ac_objext conftest
$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try
='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_search_getrpcbynumber
="none required"
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.
$ac_ext >&5
7711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7712 if test "$ac_cv_search_getrpcbynumber" = no
; then
7713 for ac_lib
in nsl
; do
7714 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7715 cat >conftest.
$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7719 cat confdefs.h
>>conftest.
$ac_ext
7720 cat >>conftest.
$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729 char getrpcbynumber ();
7738 rm -f conftest.
$ac_objext conftest
$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try
='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_search_getrpcbynumber
="-l$ac_lib"
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.
$ac_ext >&5
7757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7760 LIBS
=$ac_func_search_save_LIBS
7762 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7763 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7764 if test "$ac_cv_search_getrpcbynumber" != no
; then
7765 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
7766 cat >>confdefs.h
<<\_ACEOF
7767 #define HAVE_GETRPCBYNUMBER 1
7775 # Most operating systems have gethostbyname() in the default searched
7776 # libraries (i.e. libc):
7777 # Some OSes (eg. Solaris) place it in libnsl
7778 # Some strange OSes (SINIX) have it in libsocket:
7779 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7780 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7781 if test "${ac_cv_search_gethostbyname+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 ac_func_search_save_LIBS
=$LIBS
7785 ac_cv_search_gethostbyname
=no
7786 cat >conftest.
$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7794 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7800 char gethostbyname ();
7809 rm -f conftest.
$ac_objext conftest
$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try
='test -s conftest$ac_exeext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_search_gethostbyname
="none required"
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.
$ac_ext >&5
7827 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7828 if test "$ac_cv_search_gethostbyname" = no
; then
7829 for ac_lib
in nsl socket resolv
; do
7830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7831 cat >conftest.
$ac_ext <<_ACEOF
7832 #line $LINENO "configure"
7835 cat confdefs.h
>>conftest.
$ac_ext
7836 cat >>conftest.
$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7839 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845 char gethostbyname ();
7854 rm -f conftest.
$ac_objext conftest
$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try
='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_search_gethostbyname
="-l$ac_lib"
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.
$ac_ext >&5
7873 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7876 LIBS
=$ac_func_search_save_LIBS
7878 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7879 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7880 if test "$ac_cv_search_gethostbyname" != no
; then
7881 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7885 # Unfortunately libsocket sometimes depends on libnsl and
7886 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7887 if test "$ac_cv_search_gethostbyname" = "no"
7889 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7890 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7891 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 ac_check_lib_save_LIBS
=$LIBS
7895 LIBS
="-lsocket -lnsl $LIBS"
7896 cat >conftest.
$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 /* Override any gcc2 internal prototype to avoid an error. */
7908 /* We use char because int might match the return type of a gcc2
7909 builtin and then its argument prototype would still apply. */
7910 char gethostbyname ();
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try
='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_lib_socket_gethostbyname
=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.
$ac_ext >&5
7936 ac_cv_lib_socket_gethostbyname
=no
7938 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7939 LIBS
=$ac_check_lib_save_LIBS
7941 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7942 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7943 if test $ac_cv_lib_socket_gethostbyname = yes; then
7944 LIBS
="-lsocket -lnsl $LIBS"
7948 echo "$as_me:$LINENO: checking for library containing socket" >&5
7949 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7950 if test "${ac_cv_search_socket+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 ac_func_search_save_LIBS
=$LIBS
7954 ac_cv_search_socket
=no
7955 cat >conftest.
$ac_ext <<_ACEOF
7956 #line $LINENO "configure"
7959 cat confdefs.h
>>conftest.
$ac_ext
7960 cat >>conftest.
$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7963 /* Override any gcc2 internal prototype to avoid an error. */
7967 /* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7978 rm -f conftest.
$ac_objext conftest
$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try
='test -s conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_search_socket
="none required"
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.
$ac_ext >&5
7996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7997 if test "$ac_cv_search_socket" = no
; then
7998 for ac_lib
in socket
; do
7999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8000 cat >conftest.
$ac_ext <<_ACEOF
8001 #line $LINENO "configure"
8004 cat confdefs.h
>>conftest.
$ac_ext
8005 cat >>conftest.
$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try
='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_search_socket
="-l$ac_lib"
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.
$ac_ext >&5
8042 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8045 LIBS
=$ac_func_search_save_LIBS
8047 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8048 echo "${ECHO_T}$ac_cv_search_socket" >&6
8049 if test "$ac_cv_search_socket" != no
; then
8050 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
8053 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8054 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8055 if test "${ac_cv_lib_socket_socket+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_check_lib_save_LIBS
=$LIBS
8059 LIBS
="-lsocket -lnsl $LIBS"
8060 cat >conftest.
$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8083 rm -f conftest.
$ac_objext conftest
$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try
='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_socket_socket
=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_cv_lib_socket_socket
=no
8102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8103 LIBS
=$ac_check_lib_save_LIBS
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8106 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8107 if test $ac_cv_lib_socket_socket = yes; then
8108 LIBS
="-lsocket -lnsl $LIBS"
8113 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8114 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8115 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8116 if test "${ac_cv_search_putmsg+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_func_search_save_LIBS
=$LIBS
8120 ac_cv_search_putmsg
=no
8121 cat >conftest.
$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8129 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8144 rm -f conftest.
$ac_objext conftest
$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try
='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_search_putmsg
="none required"
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.
$ac_ext >&5
8162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8163 if test "$ac_cv_search_putmsg" = no
; then
8164 for ac_lib
in str
; do
8165 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8166 cat >conftest.
$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8170 cat confdefs.h
>>conftest.
$ac_ext
8171 cat >>conftest.
$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.
$ac_objext conftest
$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try
='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_search_putmsg
="-l$ac_lib"
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.
$ac_ext >&5
8208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8211 LIBS
=$ac_func_search_save_LIBS
8213 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8214 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8215 if test "$ac_cv_search_putmsg" != no
; then
8216 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
8223 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
8224 if test -f $pfopen ; then
8226 for ac_func
in pfopen
8228 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.
$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* System header to define __stub macros and hopefully few prototypes,
8242 which can conflict with char $ac_func (); below.
8243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8244 <limits.h> exists even on freestanding compilers. */
8246 # include <limits.h>
8248 # include <assert.h>
8250 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8258 /* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8264 char (*f) () = $ac_func;
8273 return f != $ac_func;
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 eval "$as_ac_var=yes"
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.
$ac_ext >&5
8295 eval "$as_ac_var=no"
8297 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8301 if test `eval echo '${'$as_ac_var'}'` = yes; then
8302 cat >>confdefs.h
<<_ACEOF
8303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8309 if test $ac_cv_func_pfopen = "no" ; then
8310 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8311 echo "${ECHO_T}Using $pfopen" >&6
8312 LIBS
="$LIBS $pfopen"
8315 echo "$as_me:$LINENO: checking for local pcap library" >&5
8316 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8319 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8320 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8321 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
8322 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8323 if test $lastdir = $basedir ; then
8327 if test -r $dir/libpcap.a
; then
8328 libpcap
=$dir/libpcap.a
8332 if test $libpcap = FAIL
; then
8333 echo "$as_me:$LINENO: result: not found" >&5
8334 echo "${ECHO_T}not found" >&6
8335 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8336 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8337 if test "${ac_cv_lib_pcap_main+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_check_lib_save_LIBS
=$LIBS
8342 cat >conftest.
$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8346 cat confdefs.h
>>conftest.
$ac_ext
8347 cat >>conftest.
$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8359 rm -f conftest.
$ac_objext conftest
$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try
='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_lib_pcap_main
=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_lib_pcap_main
=no
8378 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8379 LIBS
=$ac_check_lib_save_LIBS
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8382 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8383 if test $ac_cv_lib_pcap_main = yes; then
8387 if test $libpcap = FAIL
; then
8388 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8389 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8390 { (exit 1); exit 1; }; }
8392 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8393 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8394 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
8395 \
( ! -r /usr
/include
/pcap.h \
); then
8396 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
8397 d
="/usr/local/include/pcap"
8398 elif test -r /usr
/include
/pcap
/pcap.h
; then
8399 d
="/usr/include/pcap"
8402 if test -z "$d" ; then
8403 echo "$as_me:$LINENO: result: not found" >&5
8404 echo "${ECHO_T}not found" >&6
8406 V_INCLS
="-I$d $V_INCLS"
8407 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8408 echo "${ECHO_T}found -- -I$d added" >&6
8412 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8413 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8414 if test -r $d/pcap.h
; then
8415 V_INCLS
="-I$d $V_INCLS"
8416 elif test -r $places/pcap.h
; then
8417 V_INCLS
="-I$places $V_INCLS"
8419 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8420 echo "$as_me: error: cannot find pcap.h" >&2;}
8421 { (exit see INSTALL
); exit see INSTALL
; }; }
8423 echo "$as_me:$LINENO: result: $libpcap" >&5
8424 echo "${ECHO_T}$libpcap" >&6
8426 LIBS
="$libpcap $LIBS"
8430 pseexe
="/lib/pse.exp"
8431 echo "$as_me:$LINENO: checking for $pseexe" >&5
8432 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8433 if test -f $pseexe ; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435 echo "${ECHO_T}yes" >&6
8436 LIBS
="$LIBS -I:$pseexe"
8439 # We need "-lodm" and "-lcfg", as libpcap requires them on
8440 # AIX, and we just build a static libpcap.a and thus can't
8441 # arrange that when you link with libpcap you automatically
8442 # link with those libraries.
8444 LIBS
="$LIBS -lodm -lcfg"
8448 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8449 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8450 if test "${ac_cv_func_pcap_list_datalinks+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_list_datalinks (); 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_list_datalinks ();
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_list_datalinks) || defined (__stub___pcap_list_datalinks)
8483 char (*f) () = pcap_list_datalinks;
8492 return f != pcap_list_datalinks;
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_list_datalinks
=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 ac_cv_func_pcap_list_datalinks
=no
8516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8519 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8520 if test $ac_cv_func_pcap_list_datalinks = yes; then
8521 cat >>confdefs.h
<<\_ACEOF
8522 #define HAVE_PCAP_LIST_DATALINKS 1
8526 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
8529 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8530 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8531 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 cat >conftest.
$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8538 cat confdefs.h
>>conftest.
$ac_ext
8539 cat >>conftest.
$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char pcap_set_datalink (); below.
8543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544 <limits.h> exists even on freestanding compilers. */
8546 # include <limits.h>
8548 # include <assert.h>
8550 /* Override any gcc2 internal prototype to avoid an error. */
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char pcap_set_datalink ();
8558 /* The GNU C library defines this for functions which it implements
8559 to always fail with ENOSYS. Some functions are actually named
8560 something starting with __ and the normal name is an alias. */
8561 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8564 char (*f) () = pcap_set_datalink;
8573 return f != pcap_set_datalink;
8578 rm -f conftest.
$ac_objext conftest
$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try
='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_func_pcap_set_datalink
=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.
$ac_ext >&5
8595 ac_cv_func_pcap_set_datalink
=no
8597 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8600 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8601 if test $ac_cv_func_pcap_set_datalink = yes; then
8602 cat >>confdefs.h
<<\_ACEOF
8603 #define HAVE_PCAP_SET_DATALINK 1
8608 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8609 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8610 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.
$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char pcap_datalink_name_to_val (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8625 # include <limits.h>
8627 # include <assert.h>
8629 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8636 char pcap_datalink_name_to_val ();
8637 /* The GNU C library defines this for functions which it implements
8638 to always fail with ENOSYS. Some functions are actually named
8639 something starting with __ and the normal name is an alias. */
8640 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8643 char (*f) () = pcap_datalink_name_to_val;
8652 return f != pcap_datalink_name_to_val;
8657 rm -f conftest.
$ac_objext conftest
$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try
='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_func_pcap_datalink_name_to_val
=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.
$ac_ext >&5
8674 ac_cv_func_pcap_datalink_name_to_val
=no
8676 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8679 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8680 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8682 cat >>confdefs.h
<<\_ACEOF
8683 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8686 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8687 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8688 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 cat >conftest.
$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char pcap_datalink_val_to_description (); below.
8700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 <limits.h> exists even on freestanding compilers. */
8703 # include <limits.h>
8705 # include <assert.h>
8707 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714 char pcap_datalink_val_to_description ();
8715 /* The GNU C library defines this for functions which it implements
8716 to always fail with ENOSYS. Some functions are actually named
8717 something starting with __ and the normal name is an alias. */
8718 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8721 char (*f) () = pcap_datalink_val_to_description;
8730 return f != pcap_datalink_val_to_description;
8735 rm -f conftest.
$ac_objext conftest
$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try
='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_func_pcap_datalink_val_to_description
=yes
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8752 ac_cv_func_pcap_datalink_val_to_description
=no
8754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8757 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8758 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8759 cat >>confdefs.h
<<\_ACEOF
8760 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8764 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8769 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8774 for ac_func
in pcap_breakloop
8776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8777 echo "$as_me:$LINENO: checking for $ac_func" >&5
8778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8779 if eval "test \"\${$as_ac_var+set}\" = set"; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 cat >conftest.
$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8786 cat confdefs.h
>>conftest.
$ac_ext
8787 cat >>conftest.
$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char $ac_func (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8794 # include <limits.h>
8796 # include <assert.h>
8798 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8806 /* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8812 char (*f) () = $ac_func;
8821 return f != $ac_func;
8826 rm -f conftest.
$ac_objext conftest
$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try
='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.
$ac_ext >&5
8843 eval "$as_ac_var=no"
8845 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8849 if test `eval echo '${'$as_ac_var'}'` = yes; then
8850 cat >>confdefs.h
<<_ACEOF
8851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8860 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8861 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8863 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8864 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8865 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8866 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8867 # it does not ship with a libc symbol "inet_ntop()", it ships with
8868 # "_inet_ntop()", and has a #define macro in one of the system headers
8871 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8872 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8873 cat >conftest.
$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8877 cat confdefs.h
>>conftest.
$ac_ext
8878 cat >>conftest.
$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <sys/types.h>
8881 #include <sys/socket.h>
8882 #include <netinet/in.h>
8883 #include <arpa/inet.h>
8887 char src[4], dst[128];
8888 inet_ntop(AF_INET, src, dst, sizeof(dst));
8893 rm -f conftest.
$ac_objext conftest
$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try
='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 echo "$as_me:$LINENO: result: yes" >&5
8906 echo "${ECHO_T}yes" >&6
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.
$ac_ext >&5
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913 LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8915 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8916 echo "$as_me:$LINENO: checking for inet_pton" >&5
8917 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8918 cat >conftest.
$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8922 cat confdefs.h
>>conftest.
$ac_ext
8923 cat >>conftest.
$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <sys/socket.h>
8927 #include <netinet/in.h>
8928 #include <arpa/inet.h>
8932 char src[128], dst[4];
8933 inet_pton(AF_INET, src, dst);
8938 rm -f conftest.
$ac_objext conftest
$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try
='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8956 echo "$as_me:$LINENO: result: no" >&5
8957 echo "${ECHO_T}no" >&6
8958 LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
8960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8961 echo "$as_me:$LINENO: checking for inet_aton" >&5
8962 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8963 cat >conftest.
$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8967 cat confdefs.h
>>conftest.
$ac_ext
8968 cat >>conftest.
$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 #include <sys/types.h>
8971 #include <netinet/in.h>
8972 #include <arpa/inet.h>
8978 inet_aton(src, &dst);
8983 rm -f conftest.
$ac_objext conftest
$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try
='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 echo "$as_me:$LINENO: result: yes" >&5
8996 echo "${ECHO_T}yes" >&6
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9003 LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
9005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9008 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9009 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9010 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.
$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9017 cat confdefs.h
>>conftest.
$ac_ext
9018 cat >>conftest.
$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 # include <sys/types.h>
9022 # include <sys/socket.h>
9026 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9031 rm -f conftest.
$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033 (eval $ac_compile) 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try
='test -s conftest.$ac_objext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_sockaddr_has_sa_len
=yes
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.
$ac_ext >&5
9048 ac_cv_sockaddr_has_sa_len
=no
9050 rm -f conftest.
$ac_objext conftest.
$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9054 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9055 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9056 cat >>confdefs.h
<<\_ACEOF
9057 #define HAVE_SOCKADDR_SA_LEN 1
9062 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9063 missing_includes
=yes
9069 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9071 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9072 echo "$as_me:$LINENO: checking for $ac_func" >&5
9073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9074 if eval "test \"\${$as_ac_var+set}\" = set"; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 cat >conftest.
$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9081 cat confdefs.h
>>conftest.
$ac_ext
9082 cat >>conftest.
$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 /* System header to define __stub macros and hopefully few prototypes,
9085 which can conflict with char $ac_func (); below.
9086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9087 <limits.h> exists even on freestanding compilers. */
9089 # include <limits.h>
9091 # include <assert.h>
9093 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9101 /* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9107 char (*f) () = $ac_func;
9116 return f != $ac_func;
9121 rm -f conftest.
$ac_objext conftest
$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try
='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 eval "$as_ac_var=yes"
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9138 eval "$as_ac_var=no"
9140 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9144 if test `eval echo '${'$as_ac_var'}'` = yes; then
9145 cat >>confdefs.h
<<_ACEOF
9146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9152 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9153 savedcflags
="$CFLAGS"
9154 CFLAGS
="$CFLAGS $V_INCLS"
9155 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9156 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9157 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.
$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9164 cat confdefs.h
>>conftest.
$ac_ext
9165 cat >>conftest.
$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9172 if ((pcap_if_t *) 0)
9174 if (sizeof (pcap_if_t))
9180 rm -f conftest.
$ac_objext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182 (eval $ac_compile) 2>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_type_pcap_if_t
=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.
$ac_ext >&5
9197 ac_cv_type_pcap_if_t
=no
9199 rm -f conftest.
$ac_objext conftest.
$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9202 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9203 if test $ac_cv_type_pcap_if_t = yes; then
9205 cat >>confdefs.h
<<_ACEOF
9206 #define HAVE_PCAP_IF_T 1
9212 CFLAGS
="$savedcflags"
9215 if test $ac_cv_func_pcap_lib_version = "no" ; then
9216 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9217 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9218 cat >conftest.
$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9222 cat confdefs.h
>>conftest.
$ac_ext
9223 cat >>conftest.
$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9230 extern char pcap_version[];
9232 return (int)pcap_version;
9238 rm -f conftest.
$ac_objext conftest
$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try
='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_lbl_cv_pcap_version_defined
=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.
$ac_ext >&5
9255 ac_lbl_cv_pcap_version_defined
=no
9257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9258 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260 echo "${ECHO_T}yes" >&6
9261 cat >>confdefs.h
<<\_ACEOF
9262 #define HAVE_PCAP_VERSION 1
9266 echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9270 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9271 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9272 cat >conftest.
$ac_ext <<_ACEOF
9273 #line $LINENO "configure"
9276 cat confdefs.h
>>conftest.
$ac_ext
9277 cat >>conftest.
$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9284 extern int pcap_debug;
9292 rm -f conftest.
$ac_objext conftest
$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try
='test -s conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_lbl_cv_pcap_debug_defined
=yes
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.
$ac_ext >&5
9309 ac_lbl_cv_pcap_debug_defined
=no
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9312 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9313 echo "$as_me:$LINENO: result: yes" >&5
9314 echo "${ECHO_T}yes" >&6
9315 cat >>confdefs.h
<<\_ACEOF
9316 #define HAVE_PCAP_DEBUG 1
9320 echo "$as_me:$LINENO: result: no" >&5
9321 echo "${ECHO_T}no" >&6
9323 # OK, what about "yydebug"?
9325 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9326 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9327 cat >conftest.
$ac_ext <<_ACEOF
9328 #line $LINENO "configure"
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9347 rm -f conftest.
$ac_objext conftest
$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try
='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_lbl_cv_yydebug_defined
=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.
$ac_ext >&5
9364 ac_lbl_cv_yydebug_defined
=no
9366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9367 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9368 echo "$as_me:$LINENO: result: yes" >&5
9369 echo "${ECHO_T}yes" >&6
9370 cat >>confdefs.h
<<\_ACEOF
9371 #define HAVE_YYDEBUG 1
9375 echo "$as_me:$LINENO: result: no" >&5
9376 echo "${ECHO_T}no" >&6
9380 for ac_func
in bpf_dump
9382 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383 echo "$as_me:$LINENO: checking for $ac_func" >&5
9384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_var+set}\" = set"; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 cat >conftest.
$ac_ext <<_ACEOF
9389 #line $LINENO "configure"
9392 cat confdefs.h
>>conftest.
$ac_ext
9393 cat >>conftest.
$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9395 /* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func (); below.
9397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9398 <limits.h> exists even on freestanding compilers. */
9400 # include <limits.h>
9402 # include <assert.h>
9404 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9418 char (*f) () = $ac_func;
9427 return f != $ac_func;
9432 rm -f conftest.
$ac_objext conftest
$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try
='test -s conftest$ac_exeext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 eval "$as_ac_var=yes"
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.
$ac_ext >&5
9449 eval "$as_ac_var=no"
9451 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9455 if test `eval echo '${'$as_ac_var'}'` = yes; then
9456 cat >>confdefs.h
<<_ACEOF
9457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9467 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9473 cat >>confdefs.h
<<\_ACEOF
9492 if test -f /dev
/bpf0
; then
9496 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9497 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9498 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 cat >conftest.
$ac_ext <<_ACEOF
9502 #line $LINENO "configure"
9505 cat confdefs.h
>>conftest.
$ac_ext
9506 cat >>conftest.
$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9509 # include "confdefs.h"
9510 # include <sys/types.h>
9512 # include <stdlib.h>
9513 # include <stddef.h>
9523 rm -f conftest.
$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try
='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_lbl_have_int8_t
=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.
$ac_ext >&5
9540 ac_cv_lbl_have_int8_t
=no
9542 rm -f conftest.
$ac_objext conftest.
$ac_ext
9545 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9546 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9547 if test $ac_cv_lbl_have_int8_t = no
; then
9548 cat >>confdefs.h
<<\_ACEOF
9549 #define int8_t signed char
9553 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9554 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9555 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.
$ac_ext <<_ACEOF
9559 #line $LINENO "configure"
9562 cat confdefs.h
>>conftest.
$ac_ext
9563 cat >>conftest.
$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9566 # include "confdefs.h"
9567 # include <sys/types.h>
9569 # include <stdlib.h>
9570 # include <stddef.h>
9580 rm -f conftest.
$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try
='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lbl_have_u_int8_t
=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_cv_lbl_have_u_int8_t
=no
9599 rm -f conftest.
$ac_objext conftest.
$ac_ext
9602 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9603 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9604 if test $ac_cv_lbl_have_u_int8_t = no
; then
9605 cat >>confdefs.h
<<\_ACEOF
9606 #define u_int8_t u_char
9610 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9611 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9612 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 cat >conftest.
$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9623 # include "confdefs.h"
9624 # include <sys/types.h>
9626 # include <stdlib.h>
9627 # include <stddef.h>
9637 rm -f conftest.
$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try
='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_lbl_have_int16_t
=yes
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.
$ac_ext >&5
9654 ac_cv_lbl_have_int16_t
=no
9656 rm -f conftest.
$ac_objext conftest.
$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9660 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9661 if test $ac_cv_lbl_have_int16_t = no
; then
9662 cat >>confdefs.h
<<\_ACEOF
9663 #define int16_t short
9667 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9668 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9669 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 cat >conftest.
$ac_ext <<_ACEOF
9673 #line $LINENO "configure"
9676 cat confdefs.h
>>conftest.
$ac_ext
9677 cat >>conftest.
$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9680 # include "confdefs.h"
9681 # include <sys/types.h>
9683 # include <stdlib.h>
9684 # include <stddef.h>
9694 rm -f conftest.
$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try
='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lbl_have_u_int16_t
=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.
$ac_ext >&5
9711 ac_cv_lbl_have_u_int16_t
=no
9713 rm -f conftest.
$ac_objext conftest.
$ac_ext
9716 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9717 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9718 if test $ac_cv_lbl_have_u_int16_t = no
; then
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define u_int16_t u_short
9724 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9725 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9726 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 cat >conftest.
$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9733 cat confdefs.h
>>conftest.
$ac_ext
9734 cat >>conftest.
$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 # include "confdefs.h"
9738 # include <sys/types.h>
9740 # include <stdlib.h>
9741 # include <stddef.h>
9751 rm -f conftest.
$ac_objext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try
='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lbl_have_int32_t
=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.
$ac_ext >&5
9768 ac_cv_lbl_have_int32_t
=no
9770 rm -f conftest.
$ac_objext conftest.
$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9774 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9775 if test $ac_cv_lbl_have_int32_t = no
; then
9776 cat >>confdefs.h
<<\_ACEOF
9781 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9782 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9783 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.
$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9790 cat confdefs.h
>>conftest.
$ac_ext
9791 cat >>conftest.
$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9794 # include "confdefs.h"
9795 # include <sys/types.h>
9797 # include <stdlib.h>
9798 # include <stddef.h>
9808 rm -f conftest.
$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try
='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lbl_have_u_int32_t
=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.
$ac_ext >&5
9825 ac_cv_lbl_have_u_int32_t
=no
9827 rm -f conftest.
$ac_objext conftest.
$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9831 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9832 if test $ac_cv_lbl_have_u_int32_t = no
; then
9833 cat >>confdefs.h
<<\_ACEOF
9834 #define u_int32_t u_int
9838 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
9839 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
9840 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 cat >conftest.
$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9847 cat confdefs.h
>>conftest.
$ac_ext
9848 cat >>conftest.
$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9851 # include "confdefs.h"
9852 # include <sys/types.h>
9854 # include <stdlib.h>
9855 # include <stddef.h>
9865 rm -f conftest.
$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try
='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_lbl_have_int64_t
=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.
$ac_ext >&5
9882 ac_cv_lbl_have_int64_t
=no
9884 rm -f conftest.
$ac_objext conftest.
$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
9888 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
9889 if test $ac_cv_lbl_have_int64_t = no
; then
9890 cat >>confdefs.h
<<\_ACEOF
9891 #define int64_t long long
9895 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
9896 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
9897 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 cat >conftest.
$ac_ext <<_ACEOF
9901 #line $LINENO "configure"
9904 cat confdefs.h
>>conftest.
$ac_ext
9905 cat >>conftest.
$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 # include "confdefs.h"
9909 # include <sys/types.h>
9911 # include <stdlib.h>
9912 # include <stddef.h>
9922 rm -f conftest.
$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try
='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lbl_have_u_int64_t
=yes
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.
$ac_ext >&5
9939 ac_cv_lbl_have_u_int64_t
=no
9941 rm -f conftest.
$ac_objext conftest.
$ac_ext
9944 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
9945 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
9946 if test $ac_cv_lbl_have_u_int64_t = no
; then
9947 cat >>confdefs.h
<<\_ACEOF
9948 #define u_int64_t unsigned long long
9954 # We can't just check for <inttypes.h> - some systems have one that
9955 # doesn't define all the PRI[doxu]64 macros.
9958 for ac_header
in inttypes.h
9960 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo "$as_me:$LINENO: checking for $ac_header" >&5
9963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 # Is the header compilable?
9971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9973 cat >conftest.
$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9977 cat confdefs.h
>>conftest.
$ac_ext
9978 cat >>conftest.
$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9981 #include <$ac_header>
9983 rm -f conftest.
$ac_objext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9985 (eval $ac_compile) 2>&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try
='test -s conftest.$ac_objext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_header_compiler
=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.
$ac_ext >&5
10000 ac_header_compiler
=no
10002 rm -f conftest.
$ac_objext conftest.
$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 echo "${ECHO_T}$ac_header_compiler" >&6
10006 # Is the header present?
10007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10009 cat >conftest.
$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10013 cat confdefs.h
>>conftest.
$ac_ext
10014 cat >>conftest.
$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <$ac_header>
10018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1
>conftest.err
10023 cat conftest.err
>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } >/dev
/null
; then
10026 if test -s conftest.err
; then
10027 ac_cpp_err
=$ac_c_preproc_warn_flag
10034 if test -z "$ac_cpp_err"; then
10035 ac_header_preproc
=yes
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.
$ac_ext >&5
10040 ac_header_preproc
=no
10042 rm -f conftest.err conftest.
$ac_ext
10043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 echo "${ECHO_T}$ac_header_preproc" >&6
10046 # So? What about this header?
10047 case $ac_header_compiler:$ac_header_preproc in
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10055 ## ------------------------------------ ##
10056 ## Report this to bug-autoconf@gnu.org. ##
10057 ## ------------------------------------ ##
10060 sed "s/^/$as_me: WARNING: /" >&2
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10071 ## ------------------------------------ ##
10072 ## Report this to bug-autoconf@gnu.org. ##
10073 ## ------------------------------------ ##
10076 sed "s/^/$as_me: WARNING: /" >&2
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 eval "$as_ac_Header=$ac_header_preproc"
10086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10091 cat >>confdefs.h
<<_ACEOF
10092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10096 # OK, we have inttypes.h, but does it define those macros?
10098 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10099 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10100 cat >conftest.
$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10105 cat confdefs.h
>>conftest.
$ac_ext
10106 cat >>conftest.
$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10109 #include <inttypes.h>
10111 #include <sys/types.h>
10115 printf("%" PRId64 "\n", (u_int64_t)1);
10116 printf("%" PRIo64 "\n", (u_int64_t)1);
10117 printf("%" PRIx64 "\n", (u_int64_t)1);
10118 printf("%" PRIu64 "\n", (u_int64_t)1);
10123 rm -f conftest.
$ac_objext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try
='test -s conftest.$ac_objext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137 echo "${ECHO_T}yes" >&6
10138 ac_lbl_inttypes_h_defines_formats
=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10145 echo "$as_me:$LINENO: result: no" >&5
10146 echo "${ECHO_T}no" >&6
10147 ac_lbl_inttypes_h_defines_formats
=no
10150 rm -f conftest.
$ac_objext conftest.
$ac_ext
10155 # We don't have inttypes.h, so it obviously can't define those
10158 ac_lbl_inttypes_h_defines_formats
=no
10164 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10165 cat >>confdefs.h
<<\_ACEOF
10166 #define INTTYPES_H_DEFINES_FORMATS 1
10171 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10172 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10173 if test "$cross_compiling" = yes; then
10174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10175 See \`config.log' for more details." >&5
10176 echo "$as_me: error: cannot run test program while cross compiling
10177 See \`config.log' for more details." >&2;}
10178 { (exit 1); exit 1; }; }
10180 cat >conftest.
$ac_ext <<_ACEOF
10182 #line $LINENO "configure"
10185 cat confdefs.h
>>conftest.
$ac_ext
10186 cat >>conftest.
$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10189 # ifdef HAVE_INTTYPES_H
10190 #include <inttypes.h>
10193 #include <sys/types.h>
10199 sprintf(strbuf, "%016llx", t << 32);
10200 if (strcmp(strbuf, "0000000100000000") == 0)
10208 rm -f conftest
$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10220 cat >>confdefs.h
<<\_ACEOF
10221 #define PRId64 "lld"
10224 cat >>confdefs.h
<<\_ACEOF
10225 #define PRIo64 "llo"
10228 cat >>confdefs.h
<<\_ACEOF
10229 #define PRIx64 "llx"
10232 cat >>confdefs.h
<<\_ACEOF
10233 #define PRIu64 "llu"
10236 echo "$as_me:$LINENO: result: yes" >&5
10237 echo "${ECHO_T}yes" >&6
10240 echo "$as_me: program exited with status $ac_status" >&5
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.
$ac_ext >&5
10244 ( exit $ac_status )
10246 echo "$as_me:$LINENO: result: no" >&5
10247 echo "${ECHO_T}no" >&6
10250 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10251 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10252 if test "$cross_compiling" = yes; then
10253 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10254 See \`config.log' for more details." >&5
10255 echo "$as_me: error: cannot run test program while cross compiling
10256 See \`config.log' for more details." >&2;}
10257 { (exit 1); exit 1; }; }
10259 cat >conftest.
$ac_ext <<_ACEOF
10261 #line $LINENO "configure"
10264 cat confdefs.h
>>conftest.
$ac_ext
10265 cat >>conftest.
$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10268 # ifdef HAVE_INTTYPES_H
10269 #include <inttypes.h>
10272 #include <sys/types.h>
10278 sprintf(strbuf, "%016Lx", t << 32);
10279 if (strcmp(strbuf, "0000000100000000") == 0)
10287 rm -f conftest
$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10299 cat >>confdefs.h
<<\_ACEOF
10300 #define PRId64 "Ld"
10303 cat >>confdefs.h
<<\_ACEOF
10304 #define PRIo64 "Lo"
10307 cat >>confdefs.h
<<\_ACEOF
10308 #define PRIx64 "Lx"
10311 cat >>confdefs.h
<<\_ACEOF
10312 #define PRIu64 "Lu"
10315 echo "$as_me:$LINENO: result: yes" >&5
10316 echo "${ECHO_T}yes" >&6
10319 echo "$as_me: program exited with status $ac_status" >&5
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.
$ac_ext >&5
10323 ( exit $ac_status )
10325 echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10329 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10330 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10331 if test "$cross_compiling" = yes; then
10332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10333 See \`config.log' for more details." >&5
10334 echo "$as_me: error: cannot run test program while cross compiling
10335 See \`config.log' for more details." >&2;}
10336 { (exit 1); exit 1; }; }
10338 cat >conftest.
$ac_ext <<_ACEOF
10340 #line $LINENO "configure"
10343 cat confdefs.h
>>conftest.
$ac_ext
10344 cat >>conftest.
$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10347 # ifdef HAVE_INTTYPES_H
10348 #include <inttypes.h>
10351 #include <sys/types.h>
10357 sprintf(strbuf, "%016qx", t << 32);
10358 if (strcmp(strbuf, "0000000100000000") == 0)
10366 rm -f conftest
$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10378 cat >>confdefs.h
<<\_ACEOF
10379 #define PRId64 "qd"
10382 cat >>confdefs.h
<<\_ACEOF
10383 #define PRIo64 "qo"
10386 cat >>confdefs.h
<<\_ACEOF
10387 #define PRIx64 "qx"
10390 cat >>confdefs.h
<<\_ACEOF
10391 #define PRIu64 "qu"
10394 echo "$as_me:$LINENO: result: yes" >&5
10395 echo "${ECHO_T}yes" >&6
10398 echo "$as_me: program exited with status $ac_status" >&5
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.
$ac_ext >&5
10402 ( exit $ac_status )
10404 echo "$as_me:$LINENO: result: no" >&5
10405 echo "${ECHO_T}no" >&6
10407 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10408 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10409 { (exit 1); exit 1; }; }
10413 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10419 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10425 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10431 if test "${LBL_CFLAGS+set}" = set; then
10432 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
10434 if test -f .devel
; then
10435 if test "$GCC" = yes ; then
10436 if test "${LBL_CFLAGS+set}" != set; then
10437 if test "$ac_cv_prog_cc_g" = yes ; then
10438 V_CCOPT
="-g $V_CCOPT"
10440 V_CCOPT
="$V_CCOPT -Wall"
10441 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10442 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10449 V_CCOPT
="$V_CCOPT -n32"
10456 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10457 name
="lbl/os-$os.h"
10458 if test -f $name ; then
10459 ln -s $name os-proto.h
10460 cat >>confdefs.h
<<\_ACEOF
10461 #define HAVE_OS_PROTO_H 1
10465 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10466 echo "$as_me: WARNING: can't find $name" >&2;}
10470 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10471 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10472 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 cat >conftest.
$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10479 cat confdefs.h
>>conftest.
$ac_ext
10480 cat >>conftest.
$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10483 # include <sys/types.h>
10484 # include <sys/socket.h>
10488 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10493 rm -f conftest.
$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try
='test -s conftest.$ac_objext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lbl_sockaddr_has_sa_len
=yes
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.
$ac_ext >&5
10510 ac_cv_lbl_sockaddr_has_sa_len
=no
10512 rm -f conftest.
$ac_objext conftest.
$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10516 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10517 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10518 cat >>confdefs.h
<<\_ACEOF
10519 #define HAVE_SOCKADDR_SA_LEN 1
10524 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10525 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10526 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 case "$host_cpu" in
10532 # These are CPU types where:
10534 # the CPU faults on an unaligned access, but at least some
10535 # OSes that support that CPU catch the fault and simulate
10536 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10537 # the simulation is slow, so we don't want to use it;
10539 # the CPU, I infer (from the old
10541 # XXX: should also check that they don't do weird things (like on arm)
10543 # comment) doesn't fault on unaligned accesses, but doesn't
10544 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10546 # for whatever reason, the test program doesn't work
10547 # (this has been claimed to be the case for several of those
10548 # CPUs - I don't know what the problem is; the problem
10549 # was reported as "the test program dumps core" for SuperH,
10550 # but that's what the test program is *supposed* to do -
10551 # it dumps core before it writes anything, so the test
10552 # for an empty output file should find an empty output
10553 # file and conclude that unaligned accesses don't work).
10555 # This run-time test won't work if you're cross-compiling, so
10556 # in order to support cross-compiling for a particular CPU,
10557 # we have to wire in the list of CPU types anyway, as far as
10558 # I know, so perhaps we should just have a set of CPUs on
10559 # which we know it doesn't work, a set of CPUs on which we
10560 # know it does work, and have the script just fail on other
10561 # cpu types and update it when such a failure occurs.
10563 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
10564 ac_cv_lbl_unaligned_fail
=yes
10568 cat >conftest.c
<<EOF
10569 # include <sys/types.h>
10570 # include <sys/wait.h>
10571 # include <stdio.h>
10572 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10577 /* avoid "core dumped" message */
10583 pid = waitpid(pid, &status, 0);
10586 exit(!WIFEXITED(status));
10589 i = *(unsigned int *)&a[1];
10594 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
10595 conftest.c
$LIBS >/dev
/null
2>&1
10596 if test ! -x conftest
; then
10597 ac_cv_lbl_unaligned_fail
=yes
10599 .
/conftest
>conftest.out
10600 if test ! -s conftest.out
; then
10601 ac_cv_lbl_unaligned_fail
=yes
10603 ac_cv_lbl_unaligned_fail
=no
10606 rm -f conftest
* core core.conftest
10611 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10612 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
10613 if test $ac_cv_lbl_unaligned_fail = yes ; then
10614 cat >>confdefs.h
<<\_ACEOF
10615 #define LBL_ALIGN 1
10621 echo "$as_me:$LINENO: checking for h_errno" >&5
10622 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
10623 if test "${ac_cv_var_h_errno+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10630 cat confdefs.h
>>conftest.
$ac_ext
10631 cat >>conftest.
$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10634 # include <sys/types.h>
10635 # include <netdb.h>
10644 rm -f conftest.
$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try
='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_var_h_errno
=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.
$ac_ext >&5
10661 ac_cv_var_h_errno
=no
10663 rm -f conftest.
$ac_objext conftest.
$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
10667 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
10668 if test "$ac_cv_var_h_errno" = "yes"; then
10669 cat >>confdefs.h
<<\_ACEOF
10670 #define HAVE_H_ERRNO 1
10677 # Check whether --with-crypto or --without-crypto was given.
10678 if test "${with_crypto+set}" = set; then
10679 withval
="$with_crypto"
10683 echo "$as_me:$LINENO: checking for SSLeay" >&5
10684 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
10685 ac_cv_ssleay_path
=no
10688 Xprefix
=`eval echo $prefix`
10690 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
10692 # XXX - is there a better way to check if a given library is
10693 # in a given directory than checking each of the possible
10694 # shared library suffixes?
10696 # Are there any other suffixes we need to look for? Do we have to
10697 # worry about ".so.{version}"?
10699 # Or should we just look for "libcrypto.*"?
10701 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
10702 -f $dir/lib
/libcrypto.so
-o \
10703 -f $dir/lib
/libcrypto.sl
-o \
10704 -f $dir/lib
/libcrypto.dylib \
); then
10705 ac_cv_ssleay_path
=$dir
10707 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
10708 incdir
="-I$dir/include"
10710 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
10713 ac_cv_ssleay_path
=no
10717 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
10718 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
10719 if test "$ac_cv_ssleay_path" != no
; then
10720 V_INCLS
="$V_INCLS $incdir"
10721 LDFLAGS
="-L$dir/lib $LDFLAGS"
10722 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
10723 LIBS
="$LIBS -lRSAglue"
10725 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
10726 LIBS
="$LIBS -lrsaref"
10729 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
10730 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10731 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 ac_check_lib_save_LIBS
=$LIBS
10735 LIBS
="-lcrypto $LIBS"
10736 cat >conftest.
$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10740 cat confdefs.h
>>conftest.
$ac_ext
10741 cat >>conftest.
$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10744 /* Override any gcc2 internal prototype to avoid an error. */
10748 /* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10750 char DES_cbc_encrypt ();
10754 DES_cbc_encrypt ();
10759 rm -f conftest.
$ac_objext conftest
$ac_exeext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761 (eval $ac_link) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try
='test -s conftest$ac_exeext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.
$ac_ext >&5
10776 ac_cv_lib_crypto_DES_cbc_encrypt
=no
10778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10779 LIBS
=$ac_check_lib_save_LIBS
10781 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
10782 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
10783 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
10784 cat >>confdefs.h
<<_ACEOF
10785 #define HAVE_LIBCRYPTO 1
10788 LIBS
="-lcrypto $LIBS"
10793 CPPFLAGS
="$CPPFLAGS $V_INCLS"
10795 for ac_header
in openssl
/evp.h
10797 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10807 # Is the header compilable?
10808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10810 cat >conftest.
$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10814 cat confdefs.h
>>conftest.
$ac_ext
10815 cat >>conftest.
$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 #include <$ac_header>
10820 rm -f conftest.
$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try
='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_header_compiler
=yes
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.
$ac_ext >&5
10837 ac_header_compiler
=no
10839 rm -f conftest.
$ac_objext conftest.
$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10841 echo "${ECHO_T}$ac_header_compiler" >&6
10843 # Is the header present?
10844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10846 cat >conftest.
$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10850 cat confdefs.h
>>conftest.
$ac_ext
10851 cat >>conftest.
$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <$ac_header>
10855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10858 grep -v '^ *+' conftest.er1
>conftest.err
10860 cat conftest.err
>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } >/dev
/null
; then
10863 if test -s conftest.err
; then
10864 ac_cpp_err
=$ac_c_preproc_warn_flag
10871 if test -z "$ac_cpp_err"; then
10872 ac_header_preproc
=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.
$ac_ext >&5
10877 ac_header_preproc
=no
10879 rm -f conftest.err conftest.
$ac_ext
10880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10881 echo "${ECHO_T}$ac_header_preproc" >&6
10883 # So? What about this header?
10884 case $ac_header_compiler:$ac_header_preproc in
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 ## ------------------------------------ ##
10893 ## Report this to bug-autoconf@gnu.org. ##
10894 ## ------------------------------------ ##
10897 sed "s/^/$as_me: WARNING: /" >&2
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10908 ## ------------------------------------ ##
10909 ## Report this to bug-autoconf@gnu.org. ##
10910 ## ------------------------------------ ##
10913 sed "s/^/$as_me: WARNING: /" >&2
10916 echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 eval "$as_ac_Header=$ac_header_preproc"
10923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10928 cat >>confdefs.h
<<_ACEOF
10929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940 if test "$missing_includes" = "yes"; then
10941 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
10942 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
10952 # Find a good install program. We prefer a C program (faster),
10953 # so one script is as good as another. But avoid the broken or
10954 # incompatible versions:
10955 # SysV /etc/install, /usr/sbin/install
10956 # SunOS /usr/etc/install
10957 # IRIX /sbin/install
10959 # AmigaOS /C/install, which installs bootblocks on floppy discs
10960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10963 # ./install, which can be erroneously created by make from ./install.sh.
10964 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10965 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10966 if test -z "$INSTALL"; then
10967 if test "${ac_cv_path_install+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10971 for as_dir
in $PATH
10974 test -z "$as_dir" && as_dir
=.
10975 # Account for people who put trailing slashes in PATH elements.
10977 .
/ | .
// |
/cC
/* | \
10978 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
10981 # OSF1 and SCO ODT 3.0 have their own names for install.
10982 # Don't use installbsd from OSF since it installs stuff as root
10984 for ac_prog
in ginstall scoinst
install; do
10985 for ac_exec_ext
in '' $ac_executable_extensions; do
10986 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10987 if test $ac_prog = install &&
10988 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
10989 # AIX install. It has an incompatible calling convention.
10991 elif test $ac_prog = install &&
10992 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
10993 # program-specific install script used by HP pwplus--don't use.
10996 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11008 if test "${ac_cv_path_install+set}" = set; then
11009 INSTALL
=$ac_cv_path_install
11011 # As a last resort, use the slow shell script. We don't cache a
11012 # path for INSTALL within a source directory, because that will
11013 # break other packages using the cache if that directory is
11014 # removed, or if the path is relative.
11015 INSTALL
=$ac_install_sh
11018 echo "$as_me:$LINENO: result: $INSTALL" >&5
11019 echo "${ECHO_T}$INSTALL" >&6
11021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11022 # It thinks the first close brace ends the variable substitution.
11023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11027 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11030 ac_config_headers
="$ac_config_headers config.h"
11033 ac_config_commands
="$ac_config_commands default-1"
11035 ac_config_files
="$ac_config_files Makefile"
11036 cat >confcache
<<\_ACEOF
11037 # This file is a shell script that caches the results of configure
11038 # tests run on this system so they can be shared between configure
11039 # scripts and configure runs, see configure's option --config-cache.
11040 # It is not useful on other systems. If it contains results you don't
11041 # want to keep, you may remove or edit it.
11043 # config.status only pays attention to the cache file if you give it
11044 # the --recheck option to rerun configure.
11046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11048 # following values.
11052 # The following way of writing the cache mishandles newlines in values,
11053 # but we know of no workaround that is simple, portable, and efficient.
11054 # So, don't put newlines in cache variables' values.
11055 # Ultrix sh set writes to stderr and can't be redirected directly,
11056 # and sets the high bit in the cache file unless we assign to the vars.
11059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11061 # `set' does not quote correctly, so add quotes (double-quote
11062 # substitution turns \\\\ into \\, and sed turns \\ into \).
11065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11068 # `set' quotes correctly as required by POSIX, so do not add quotes.
11070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11081 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11082 if test -w $cache_file; then
11083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11084 cat confcache
>$cache_file
11086 echo "not updating unwritable cache $cache_file"
11091 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11092 # Let make expand exec_prefix.
11093 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11097 # trailing colons and then remove the whole line if VPATH becomes empty
11098 # (actually we leave an empty line to preserve line numbers).
11099 if test "x$srcdir" = x.
; then
11100 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11101 s/:*\$(srcdir):*/:/;
11102 s/:*\${srcdir}:*/:/;
11104 s/^\([^=]*=[ ]*\):*/\1/;
11110 DEFS
=-DHAVE_CONFIG_H
11114 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11115 # 1. Remove the extension, and $U if already installed.
11116 ac_i
=`echo "$ac_i" |
11117 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11119 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11120 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11122 LIBOBJS
=$ac_libobjs
11124 LTLIBOBJS
=$ac_ltlibobjs
11128 : ${CONFIG_STATUS=./config.status}
11129 ac_clean_files_save
=$ac_clean_files
11130 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11133 cat >$CONFIG_STATUS <<_ACEOF
11135 # Generated by $as_me.
11136 # Run this file to recreate the current configuration.
11137 # Compiler output produced by configure, useful for debugging
11138 # configure, is in config.log if it exists.
11141 ac_cs_recheck=false
11143 SHELL=\${CONFIG_SHELL-$SHELL}
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 ## --------------------- ##
11148 ## M4sh Initialization. ##
11149 ## --------------------- ##
11151 # Be Bourne compatible
11152 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11156 # is contrary to our usage. Disable this feature.
11157 alias -g '${1+"$@"}'='"$@"'
11158 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11162 # Support unset when possible.
11163 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11170 # Work around bugs in pre-3.0 UWIN ksh.
11171 $as_unset ENV MAIL MAILPATH
11178 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11179 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11180 LC_TELEPHONE LC_TIME
11182 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11183 eval $as_var=C
; export $as_var
11189 # Required to use basename.
11190 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11196 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11197 as_basename
=basename
11203 # Name of the executable.
11204 as_me
=`$as_basename "$0" ||
11205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11206 X"$0" : 'X\(//\)$' \| \
11207 X"$0" : 'X\(/\)$' \| \
11208 . : '\(.\)' 2>/dev/null ||
11210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11211 /^X\/\(\/\/\)$/{ s//\1/; q; }
11212 /^X\/\(\/\).*/{ s//\1/; q; }
11216 # PATH needs CR, and LINENO needs CR and PATH.
11217 # Avoid depending upon Character Ranges.
11218 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11219 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11220 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11221 as_cr_digits
='0123456789'
11222 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11224 # The user is always right.
11225 if test "${PATH_SEPARATOR+set}" != set; then
11226 echo "#! /bin/sh" >conf$$.sh
11227 echo "exit 0" >>conf$$.sh
11229 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11238 as_lineno_1
=$LINENO
11239 as_lineno_2
=$LINENO
11240 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11241 test "x$as_lineno_1" != "x$as_lineno_2" &&
11242 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11243 # Find who we are. Look in the path if we contain no path at all
11246 *[\\/]* ) as_myself
=$0 ;;
11247 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11248 for as_dir
in $PATH
11251 test -z "$as_dir" && as_dir
=.
11252 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11257 # We did not find ourselves, most probably we were run as `sh COMMAND'
11258 # in which case we are not to be found in the path.
11259 if test "x$as_myself" = x
; then
11262 if test ! -f "$as_myself"; then
11263 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11265 { (exit 1); exit 1; }; }
11267 case $CONFIG_SHELL in
11269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11270 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11273 test -z "$as_dir" && as_dir
=.
11274 for as_base
in sh bash ksh sh5
; do
11277 if ("$as_dir/$as_base" -c '
11278 as_lineno_1=$LINENO
11279 as_lineno_2=$LINENO
11280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11281 test "x$as_lineno_1" != "x$as_lineno_2" &&
11282 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11283 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11284 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11285 CONFIG_SHELL
=$as_dir/$as_base
11286 export CONFIG_SHELL
11287 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11295 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11296 # uniformly replaced by the line number. The first 'sed' inserts a
11297 # line-number line before each line; the second 'sed' does the real
11298 # work. The second script uses 'N' to pair each line-number line
11299 # with the numbered line, and appends trailing '-' during
11300 # substitution so that $LINENO is not a special case at line end.
11301 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11302 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11303 sed '=' <$as_myself |
11308 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11311 s,^['$as_cr_digits']*\n,,
11312 ' >$as_me.lineno
&&
11313 chmod +x
$as_me.lineno ||
11314 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11316 { (exit 1); exit 1; }; }
11318 # Don't try to exec as it changes $[0], causing all sort of problems
11319 # (the dirname of $[0] is not the place where we might find the
11320 # original and so on. Autoconf is especially sensible to this).
11322 # Exit status is that of the last command.
11327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11328 *c
*,-n*) ECHO_N
= ECHO_C
='
11330 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11331 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11334 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11340 rm -f conf$$ conf$$.exe conf$$.
file
11342 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11343 # We could just check for DJGPP; but this test a) works b) is more generic
11344 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11345 if test -f conf$$.exe
; then
11346 # Don't use ln at all; we don't have any links
11351 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11356 rm -f conf$$ conf$$.exe conf$$.
file
11358 if mkdir
-p .
2>/dev
/null
; then
11364 as_executable_p
="test -f"
11366 # Sed expression to map a string onto a valid CPP name.
11367 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11369 # Sed expression to map a string onto a valid variable name.
11370 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11374 # We need space, tab and new line, in precisely that order.
11384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11385 # report actual input values of CONFIG_FILES etc. instead of their
11386 # values after options handling. Logging --version etc. is OK.
11390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11391 ## Running $as_me. ##
11396 This file was extended by $as_me, which was
11397 generated by GNU Autoconf 2.57. Invocation command line was
11399 CONFIG_FILES = $CONFIG_FILES
11400 CONFIG_HEADERS = $CONFIG_HEADERS
11401 CONFIG_LINKS = $CONFIG_LINKS
11402 CONFIG_COMMANDS = $CONFIG_COMMANDS
11406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11410 # Files that config.status was made for.
11411 if test -n "$ac_config_files"; then
11412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11415 if test -n "$ac_config_headers"; then
11416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11419 if test -n "$ac_config_links"; then
11420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11423 if test -n "$ac_config_commands"; then
11424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11427 cat >>$CONFIG_STATUS <<\_ACEOF
11430 \`$as_me' instantiates files from templates according to the
11431 current configuration.
11433 Usage: $0 [OPTIONS] [FILE]...
11435 -h, --help print this help, then exit
11436 -V, --version print version number, then exit
11437 -q, --quiet do not print progress messages
11438 -d, --debug don't remove temporary files
11439 --recheck update $as_me by reconfiguring in the same conditions
11440 --file=FILE[:TEMPLATE]
11441 instantiate the configuration file FILE
11442 --header=FILE[:TEMPLATE]
11443 instantiate the configuration header FILE
11445 Configuration files:
11448 Configuration headers:
11451 Configuration commands:
11454 Report bugs to <bug-autoconf@gnu.org>."
11457 cat >>$CONFIG_STATUS <<_ACEOF
11460 configured by $0, generated by GNU Autoconf 2.57,
11461 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11464 Free Software Foundation, Inc.
11465 This config.status script is free software; the Free Software Foundation
11466 gives unlimited permission to copy, distribute and modify it."
11471 cat >>$CONFIG_STATUS <<\_ACEOF
11472 # If no file are specified by the user, then we need to provide default
11473 # value. By we need to know if files were specified by the user.
11479 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
11480 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
11488 *) # This is not an option, so the user has probably given explicit
11491 ac_need_defaults
=false
;;
11495 # Handling of the options.
11497 cat >>$CONFIG_STATUS <<\_ACEOF
11498 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11500 --version |
--vers* |
-V )
11501 echo "$ac_cs_version"; exit 0 ;;
11503 # Conflict between --help and --header
11504 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11505 Try \`$0 --help' for more information." >&5
11506 echo "$as_me: error: ambiguous option: $1
11507 Try \`$0 --help' for more information." >&2;}
11508 { (exit 1); exit 1; }; };;
11509 --help |
--hel |
-h )
11510 echo "$ac_cs_usage"; exit 0 ;;
11511 --debug |
--d* |
-d )
11513 --file |
--fil |
--fi |
--f )
11515 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11516 ac_need_defaults
=false
;;
11517 --header |
--heade |
--head |
--hea )
11519 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11520 ac_need_defaults
=false
;;
11521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11522 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11525 # This is an error.
11526 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11527 Try \`$0 --help' for more information." >&5
11528 echo "$as_me: error: unrecognized option: $1
11529 Try \`$0 --help' for more information." >&2;}
11530 { (exit 1); exit 1; }; } ;;
11532 *) ac_config_targets
="$ac_config_targets $1" ;;
11538 ac_configure_extra_args
=
11540 if $ac_cs_silent; then
11542 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11546 cat >>$CONFIG_STATUS <<_ACEOF
11547 if \$ac_cs_recheck; then
11548 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11549 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11554 cat >>$CONFIG_STATUS <<_ACEOF
11556 # INIT-COMMANDS section.
11565 cat >>$CONFIG_STATUS <<\_ACEOF
11566 for ac_config_target
in $ac_config_targets
11568 case "$ac_config_target" in
11569 # Handling of arguments.
11570 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11571 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11572 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11575 { (exit 1); exit 1; }; };;
11579 # If the user did not use the arguments to specify the items to instantiate,
11580 # then the envvar interface is used. Set only those that are not.
11581 # We use the long form for the default assignment because of an extremely
11582 # bizarre bug on SunOS 4.1.3.
11583 if $ac_need_defaults; then
11584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11589 # Have a temporary directory for convenience. Make it in the build tree
11590 # simply because there is no reason to put it here, and in addition,
11591 # creating and moving files from /tmp can sometimes cause problems.
11592 # Create a temporary directory, and hook for its removal unless debugging.
11595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11596 trap '{ (exit 1); exit 1; }' 1 2 13 15
11599 # Create a (secure) tmp directory for tmp files.
11602 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11603 test -n "$tmp" && test -d "$tmp"
11606 tmp
=.
/confstat$$
-$RANDOM
11607 (umask 077 && mkdir
$tmp)
11610 echo "$me: cannot create a temporary directory in ." >&2
11611 { (exit 1); exit 1; }
11616 cat >>$CONFIG_STATUS <<_ACEOF
11619 # CONFIG_FILES section.
11622 # No need to generate the scripts if there are no CONFIG_FILES.
11623 # This happens for instance when ./config.status config.h
11624 if test -n "\$CONFIG_FILES"; then
11625 # Protect against being on the right side of a sed subst in config.status.
11626 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11627 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11628 s,@SHELL@,$SHELL,;t t
11629 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11630 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11631 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11632 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11633 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11634 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11635 s,@exec_prefix@,$exec_prefix,;t t
11636 s,@prefix@,$prefix,;t t
11637 s,@program_transform_name@,$program_transform_name,;t t
11638 s,@bindir@,$bindir,;t t
11639 s,@sbindir@,$sbindir,;t t
11640 s,@libexecdir@,$libexecdir,;t t
11641 s,@datadir@,$datadir,;t t
11642 s,@sysconfdir@,$sysconfdir,;t t
11643 s,@sharedstatedir@,$sharedstatedir,;t t
11644 s,@localstatedir@,$localstatedir,;t t
11645 s,@libdir@,$libdir,;t t
11646 s,@includedir@,$includedir,;t t
11647 s,@oldincludedir@,$oldincludedir,;t t
11648 s,@infodir@,$infodir,;t t
11649 s,@mandir@,$mandir,;t t
11650 s,@build_alias@,$build_alias,;t t
11651 s,@host_alias@,$host_alias,;t t
11652 s,@target_alias@,$target_alias,;t t
11653 s,@DEFS@,$DEFS,;t t
11654 s,@ECHO_C@,$ECHO_C,;t t
11655 s,@ECHO_N@,$ECHO_N,;t t
11656 s,@ECHO_T@,$ECHO_T,;t t
11657 s,@LIBS@,$LIBS,;t t
11658 s,@build@,$build,;t t
11659 s,@build_cpu@,$build_cpu,;t t
11660 s,@build_vendor@,$build_vendor,;t t
11661 s,@build_os@,$build_os,;t t
11662 s,@host@,$host,;t t
11663 s,@host_cpu@,$host_cpu,;t t
11664 s,@host_vendor@,$host_vendor,;t t
11665 s,@host_os@,$host_os,;t t
11666 s,@SHLICC2@,$SHLICC2,;t t
11668 s,@CFLAGS@,$CFLAGS,;t t
11669 s,@LDFLAGS@,$LDFLAGS,;t t
11670 s,@CPPFLAGS@,$CPPFLAGS,;t t
11671 s,@ac_ct_CC@,$ac_ct_CC,;t t
11672 s,@EXEEXT@,$EXEEXT,;t t
11673 s,@OBJEXT@,$OBJEXT,;t t
11675 s,@EGREP@,$EGREP,;t t
11676 s,@LIBOBJS@,$LIBOBJS,;t t
11677 s,@V_CCOPT@,$V_CCOPT,;t t
11678 s,@V_DEFS@,$V_DEFS,;t t
11679 s,@V_GROUP@,$V_GROUP,;t t
11680 s,@V_INCLS@,$V_INCLS,;t t
11681 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
11682 s,@LOCALSRC@,$LOCALSRC,;t t
11683 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11684 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11685 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11686 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11691 cat >>$CONFIG_STATUS <<\_ACEOF
11692 # Split the substitutions into bite-sized pieces for seds with
11693 # small command number limits, like on Digital OSF/1 and HP-UX.
11694 ac_max_sed_lines
=48
11695 ac_sed_frag
=1 # Number of current file.
11696 ac_beg
=1 # First line for current file.
11697 ac_end
=$ac_max_sed_lines # Line after last line for current file.
11700 while $ac_more_lines; do
11701 if test $ac_beg -gt 1; then
11702 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11704 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11706 if test ! -s $tmp/subs.frag
; then
11707 ac_more_lines
=false
11709 # The purpose of the label and of the branching condition is to
11710 # speed up the sed processing (if there are no `@' at all, there
11711 # is no need to browse any of the substitutions).
11712 # These are the two extra sed commands mentioned above.
11714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11715 if test -z "$ac_sed_cmds"; then
11716 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11718 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11720 ac_sed_frag
=`expr $ac_sed_frag + 1`
11722 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11725 if test -z "$ac_sed_cmds"; then
11728 fi # test -n "$CONFIG_FILES"
11731 cat >>$CONFIG_STATUS <<\_ACEOF
11732 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11735 - |
*:- |
*:-:* ) # input from stdin
11737 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11738 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11739 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11740 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11741 * ) ac_file_in
=$ac_file.
in ;;
11744 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11745 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11747 X"$ac_file" : 'X\(//\)[^/]' \| \
11748 X"$ac_file" : 'X\(//\)$' \| \
11749 X"$ac_file" : 'X\(/\)' \| \
11750 . : '\(.\)' 2>/dev/null ||
11752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11754 /^X\(\/\/\)$/{ s//\1/; q; }
11755 /^X\(\/\).*/{ s//\1/; q; }
11757 { if $as_mkdir_p; then
11762 while test ! -d "$as_dir"; do
11763 as_dirs
="$as_dir $as_dirs"
11764 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11766 X"$as_dir" : 'X\(//\)[^/]' \| \
11767 X"$as_dir" : 'X\(//\)$' \| \
11768 X"$as_dir" : 'X\(/\)' \| \
11769 . : '\(.\)' 2>/dev/null ||
11771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11773 /^X\(\/\/\)$/{ s//\1/; q; }
11774 /^X\(\/\).*/{ s//\1/; q; }
11777 test ! -n "$as_dirs" || mkdir
$as_dirs
11778 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11779 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11780 { (exit 1); exit 1; }; }; }
11784 if test "$ac_dir" != .
; then
11785 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11786 # A "../" for each directory in $ac_dir_suffix.
11787 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11789 ac_dir_suffix
= ac_top_builddir
=
11793 .
) # No --srcdir option. We are building in place.
11795 if test -z "$ac_top_builddir"; then
11798 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11800 [\\/]* | ?
:[\\/]* ) # Absolute path.
11801 ac_srcdir
=$srcdir$ac_dir_suffix;
11802 ac_top_srcdir
=$srcdir ;;
11803 *) # Relative path.
11804 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11805 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11807 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11809 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
11810 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11811 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11812 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11816 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11817 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11820 if test x
"$ac_file" != x-
; then
11821 { echo "$as_me:$LINENO: creating $ac_file" >&5
11822 echo "$as_me: creating $ac_file" >&6;}
11825 # Let's still pretend it is `configure' which instantiates (i.e., don't
11826 # use $as_me), people would be surprised to read:
11827 # /* config.h. Generated by config.status. */
11828 if test x
"$ac_file" = x-
; then
11831 configure_input
="$ac_file. "
11833 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11834 sed 's,.*/,,'` by configure."
11836 # First look for the input files in the build tree, otherwise in the
11838 ac_file_inputs
=`IFS=:
11839 for f in $ac_file_in; do
11841 -) echo $tmp/stdin ;;
11843 # Absolute (can't be DOS-style, as IFS=:)
11844 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11845 echo "$as_me: error: cannot find input file: $f" >&2;}
11846 { (exit 1); exit 1; }; }
11849 if test -f "$f"; then
11852 elif test -f "$srcdir/$f"; then
11857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11858 echo "$as_me: error: cannot find input file: $f" >&2;}
11859 { (exit 1); exit 1; }; }
11862 done` ||
{ (exit 1); exit 1; }
11864 cat >>$CONFIG_STATUS <<_ACEOF
11868 cat >>$CONFIG_STATUS <<\_ACEOF
11870 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11871 s
,@configure_input@
,$configure_input,;t t
11872 s
,@srcdir@
,$ac_srcdir,;t t
11873 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11874 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11875 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11876 s
,@builddir@
,$ac_builddir,;t t
11877 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11878 s
,@top_builddir@
,$ac_top_builddir,;t t
11879 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11880 s
,@INSTALL@
,$ac_INSTALL,;t t
11881 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11883 if test x"$ac_file" != x-; then
11884 mv $tmp/out $ac_file
11892 cat >>$CONFIG_STATUS <<\_ACEOF
11895 # CONFIG_HEADER section.
11898 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11899 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11901 # ac_d sets the value in "#define NAME VALUE" lines.
11902 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11903 ac_dB
='[ ].*$,\1#\2'
11906 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11907 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11908 ac_uB
='$,\1#\2define\3'
11912 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11915 - |
*:- |
*:-:* ) # input from stdin
11917 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11918 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11919 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11920 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11921 * ) ac_file_in
=$ac_file.
in ;;
11924 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11925 echo "$as_me: creating $ac_file" >&6;}
11927 # First look for the input files in the build tree, otherwise in the
11929 ac_file_inputs
=`IFS=:
11930 for f in $ac_file_in; do
11932 -) echo $tmp/stdin ;;
11934 # Absolute (can't be DOS-style, as IFS=:)
11935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11936 echo "$as_me: error: cannot find input file: $f" >&2;}
11937 { (exit 1); exit 1; }; }
11940 if test -f "$f"; then
11943 elif test -f "$srcdir/$f"; then
11948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11949 echo "$as_me: error: cannot find input file: $f" >&2;}
11950 { (exit 1); exit 1; }; }
11953 done` ||
{ (exit 1); exit 1; }
11954 # Remove the trailing spaces.
11955 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11959 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11960 # `conftest.undefs', that substitutes the proper values into
11961 # config.h.in to produce config.h. The first handles `#define'
11962 # templates, and the second `#undef' templates.
11963 # And first: Protect against being on the right side of a sed subst in
11964 # config.status. Protect against being in an unquoted here document
11965 # in config.status.
11966 rm -f conftest.defines conftest.undefs
11967 # Using a here document instead of a string reduces the quoting nightmare.
11968 # Putting comments in sed scripts is not portable.
11970 # `end' is used to avoid that the second main sed command (meant for
11971 # 0-ary CPP macros) applies to n-ary macro definitions.
11972 # See the Autoconf documentation for `clear'.
11973 cat >confdef2sed.
sed <<\_ACEOF
11978 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11980 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11983 # If some macros were called several times there might be several times
11984 # the same #defines, which is useless. Nevertheless, we may not want to
11985 # sort them, since we want the *last* AC-DEFINE to be honored.
11986 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11987 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11988 rm -f confdef2sed.sed
11990 # This sed command replaces #undef with comments. This is necessary, for
11991 # example, in the case of _POSIX_SOURCE, which is predefined and required
11992 # on some systems where configure will not decide to define it.
11993 cat >>conftest.undefs <<\_ACEOF
11994 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11997 # Break up conftest.defines because some shells have a limit on the size
11998 # of here documents, and old seds have small limits too (100 cmds).
11999 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12000 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12001 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12002 echo ' :' >>$CONFIG_STATUS
12003 rm -f conftest.tail
12004 while grep . conftest.defines >/dev/null
12006 # Write a limited-size here document to $tmp/defines.sed.
12007 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12008 # Speed up: don't consider the non `#define' lines.
12009 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12010 # Work around the forget-to-reset-the-flag bug.
12011 echo 't clr' >>$CONFIG_STATUS
12012 echo ': clr' >>$CONFIG_STATUS
12013 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12015 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12017 mv $tmp/out $tmp/in
12019 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12020 rm -f conftest.defines
12021 mv conftest.
tail conftest.defines
12023 rm -f conftest.defines
12024 echo ' fi # grep' >>$CONFIG_STATUS
12025 echo >>$CONFIG_STATUS
12027 # Break up conftest.undefs because some shells have a limit on the size
12028 # of here documents, and old seds have small limits too (100 cmds).
12029 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12030 rm -f conftest.
tail
12031 while grep . conftest.undefs
>/dev
/null
12033 # Write a limited-size here document to $tmp/undefs.sed.
12034 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12035 # Speed up: don't consider the non
`#undef'
12036 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12037 # Work around the forget-to-reset-the-flag bug.
12038 echo 't clr' >>$CONFIG_STATUS
12039 echo ': clr' >>$CONFIG_STATUS
12040 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12042 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12044 mv $tmp/out $tmp/in
12046 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12047 rm -f conftest.undefs
12048 mv conftest.tail conftest.undefs
12050 rm -f conftest.undefs
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12053 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12054 # use $as_me), people would be surprised to read:
12055 # /* config.h. Generated by config.status. */
12056 if test x
"$ac_file" = x-
; then
12057 echo "/* Generated by configure. */" >$tmp/config.h
12059 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12061 cat $tmp/in >>$tmp/config.h
12063 if test x
"$ac_file" != x-
; then
12064 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12065 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12066 echo "$as_me: $ac_file is unchanged" >&6;}
12068 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070 X"$ac_file" : 'X\(//\)[^/]' \| \
12071 X"$ac_file" : 'X\(//\)$' \| \
12072 X"$ac_file" : 'X\(/\)' \| \
12073 . : '\(.\)' 2>/dev/null ||
12075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12077 /^X\(\/\/\)$/{ s//\1/; q; }
12078 /^X\(\/\).*/{ s//\1/; q; }
12080 { if $as_mkdir_p; then
12085 while test ! -d "$as_dir"; do
12086 as_dirs
="$as_dir $as_dirs"
12087 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089 X"$as_dir" : 'X\(//\)[^/]' \| \
12090 X"$as_dir" : 'X\(//\)$' \| \
12091 X"$as_dir" : 'X\(/\)' \| \
12092 . : '\(.\)' 2>/dev/null ||
12094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12096 /^X\(\/\/\)$/{ s//\1/; q; }
12097 /^X\(\/\).*/{ s//\1/; q; }
12100 test ! -n "$as_dirs" || mkdir
$as_dirs
12101 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12103 { (exit 1); exit 1; }; }; }
12106 mv $tmp/config.h
$ac_file
12110 rm -f $tmp/config.h
12114 cat >>$CONFIG_STATUS <<\_ACEOF
12117 # CONFIG_COMMANDS section.
12119 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12120 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12121 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12122 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12123 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12124 X"$ac_dest" : 'X\(//\)[^/]' \| \
12125 X"$ac_dest" : 'X\(//\)$' \| \
12126 X"$ac_dest" : 'X\(/\)' \| \
12127 . : '\(.\)' 2>/dev/null ||
12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12131 /^X\(\/\/\)$/{ s//\1/; q; }
12132 /^X\(\/\).*/{ s//\1/; q; }
12136 if test "$ac_dir" != .
; then
12137 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12138 # A "../" for each directory in $ac_dir_suffix.
12139 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12141 ac_dir_suffix
= ac_top_builddir
=
12145 .
) # No --srcdir option. We are building in place.
12147 if test -z "$ac_top_builddir"; then
12150 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12152 [\\/]* | ?
:[\\/]* ) # Absolute path.
12153 ac_srcdir
=$srcdir$ac_dir_suffix;
12154 ac_top_srcdir
=$srcdir ;;
12155 *) # Relative path.
12156 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12157 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12159 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12161 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12162 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12163 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12164 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12167 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12168 echo "$as_me: executing $ac_dest commands" >&6;}
12170 default-1
) if test -f .devel
; then
12171 echo timestamp
> stamp-h
12172 cat Makefile-devel-adds
>> Makefile
12179 cat >>$CONFIG_STATUS <<\_ACEOF
12181 { (exit 0); exit 0; }
12183 chmod +x
$CONFIG_STATUS
12184 ac_clean_files
=$ac_clean_files_save
12187 # configure is writing to config.log, and then calls config.status.
12188 # config.status does its own redirection, appending to config.log.
12189 # Unfortunately, on DOS this fails, as config.log is still kept open
12190 # by configure, so config.status won't be able to write to it; its
12191 # output is simply discarded. So we exec the FD to /dev/null,
12192 # effectively closing config.log, so it can be properly (re)opened and
12193 # appended to by config.status. When coming back to configure, we
12194 # need to make the FD available again.
12195 if test "$no_create" != yes; then
12197 ac_config_status_args
=
12198 test "$silent" = yes &&
12199 ac_config_status_args
="$ac_config_status_args --quiet"
12201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12204 # would make configure fail if this is the last instruction.
12205 $ac_cs_success ||
{ (exit 1); exit 1; }