2 # From configure.in Revision: 1.123 .
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
="pcap.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 target target_cpu target_vendor target_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_LEX V_YACC RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_INCLS V_LIBS V_PCAP V_FINDALLDEVS V_RANLIB SSRC DYEXT 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
]
837 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --disable-protochain disable
\"protochain
\" insn
849 --enable-ipv6 build IPv6-capable version
850 --enable-optimizer-dbg build optimizer debugging code
851 --enable-yydebug build parser debugging code
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --without-gcc don
't use gcc
857 --with-pcap=TYPE use packet capture TYPE
858 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
859 --with-dag-includes=DIR Endace DAG include directory
860 --with-dag-libraries=DIR Endace DAG library directory
861 --without-flex don't use flex
862 --without-bison don
't use bison
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to
help
874 it to
find libraries and programs with nonstandard names
/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
883 test -d $ac_dir ||
continue
886 if test "$ac_dir" != .
; then
887 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix
= ac_top_builddir
=
895 .
) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?
:[\\/]* ) # Absolute path.
903 ac_srcdir
=$srcdir$ac_dir_suffix;
904 ac_top_srcdir
=$srcdir ;;
906 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu
; then
920 $SHELL $ac_srcdir/configure.gnu
--help=recursive
921 elif test -f $ac_srcdir/configure
; then
923 $SHELL $ac_srcdir/configure
--help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.
in; then
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
939 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation
, Inc.
941 This configure
script is free software
; the Free Software Foundation
942 gives unlimited permission to copy
, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.57. Invocation command line was
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
986 test -z "$as_dir" && as_dir
=.
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Strip out --silent because we don't want to record it for future runs.
1005 # Also quote any args containing shell meta-characters.
1006 # Make two passes to allow for proper duplicate-argument suppression.
1011 ac_must_keep_next
=false
1017 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1027 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1028 if test $ac_must_keep_next = true
; then
1029 ac_must_keep_next
=false
# Got value, back to normal.
1032 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1033 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1034 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1035 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1036 case "$ac_configure_args0 " in
1037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 -* ) ac_must_keep_next
=true
;;
1043 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1050 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1051 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1053 # When interrupted or exit'd, cleanup temporary files, and complete
1054 # config.log. We remove comments because anyway the quotes in there
1055 # would cause problems or look ugly.
1056 # WARNING: Be sure not to use single quotes in there, as some shells,
1057 # such as our DU 5.0 friend, will then `close' the trap.
1058 trap 'exit_status=$?
1059 # Save into config.log some information that might help in debugging.
1064 ## ---------------- ##
1065 ## Cache variables. ##
1066 ## ---------------- ##
1069 # The following way of writing the cache mishandles newlines in values,
1072 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1087 ## ----------------- ##
1088 ## Output variables. ##
1089 ## ----------------- ##
1092 for ac_var in $ac_subst_vars
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
1099 if test -n "$ac_subst_files"; then
1106 for ac_var in $ac_subst_files
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -s confdefs.h; then
1121 sed "/^$/d" confdefs.h | sort
1124 test "$ac_signal" != 0 &&
1125 echo "$as_me: caught signal $ac_signal"
1126 echo "$as_me: exit $exit_status"
1128 rm -f core core.* *.core &&
1129 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132 for ac_signal
in 1 2 13 15; do
1133 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1138 rm -rf conftest
* confdefs.h
1139 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 # Predefined preprocessor variables.
1144 cat >>confdefs.h
<<_ACEOF
1145 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 cat >>confdefs.h
<<_ACEOF
1150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 cat >>confdefs.h
<<_ACEOF
1155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 cat >>confdefs.h
<<_ACEOF
1160 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 cat >>confdefs.h
<<_ACEOF
1165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 # Let the site file select an alternate cache file if it wants to.
1170 # Prefer explicitly selected file to automatically selected ones.
1171 if test -z "$CONFIG_SITE"; then
1172 if test "x$prefix" != xNONE
; then
1173 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1175 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 for ac_site_file
in $CONFIG_SITE; do
1179 if test -r "$ac_site_file"; then
1180 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181 echo "$as_me: loading site script $ac_site_file" >&6;}
1182 sed 's/^/| /' "$ac_site_file" >&5
1187 if test -r "$cache_file"; then
1188 # Some versions of bash will fail to source /dev/null (special
1189 # files actually), so we avoid doing that.
1190 if test -f "$cache_file"; then
1191 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192 echo "$as_me: loading cache $cache_file" >&6;}
1194 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1195 *) . .
/$cache_file;;
1199 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200 echo "$as_me: creating cache $cache_file" >&6;}
1204 # Check that the precious variables saved in the cache have kept the same
1206 ac_cache_corrupted
=false
1207 for ac_var
in `(set) 2>&1 |
1208 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1210 eval ac_new_set
=\
$ac_env_${ac_var}_set
1211 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1212 eval ac_new_val
="\$ac_env_${ac_var}_value"
1213 case $ac_old_set,$ac_new_set in
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217 ac_cache_corrupted
=: ;;
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221 ac_cache_corrupted
=: ;;
1224 if test "x$ac_old_val" != "x$ac_new_val"; then
1225 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1228 echo "$as_me: former value: $ac_old_val" >&2;}
1229 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1230 echo "$as_me: current value: $ac_new_val" >&2;}
1231 ac_cache_corrupted
=:
1234 # Pass precious variables to config.status.
1235 if test "$ac_new_set" = set; then
1237 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 *) ac_arg
=$ac_var=$ac_new_val ;;
1241 case " $ac_configure_args " in
1242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1243 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1247 if $ac_cache_corrupted; then
1248 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252 { (exit 1); exit 1; }; }
1256 ac_cpp
='$CPP $CPPFLAGS'
1257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1281 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1282 if test -f $ac_dir/install-sh
; then
1284 ac_install_sh
="$ac_aux_dir/install-sh -c"
1286 elif test -f $ac_dir/install.sh
; then
1288 ac_install_sh
="$ac_aux_dir/install.sh -c"
1290 elif test -f $ac_dir/shtool
; then
1292 ac_install_sh
="$ac_aux_dir/shtool install -c"
1296 if test -z "$ac_aux_dir"; then
1297 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1298 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1299 { (exit 1); exit 1; }; }
1301 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1302 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1303 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1305 # Make sure we can run config.sub.
1306 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1307 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1308 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1309 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: checking build system type" >&5
1312 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1313 if test "${ac_cv_build+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 ac_cv_build_alias
=$build_alias
1317 test -z "$ac_cv_build_alias" &&
1318 ac_cv_build_alias
=`$ac_config_guess`
1319 test -z "$ac_cv_build_alias" &&
1320 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1321 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1322 { (exit 1); exit 1; }; }
1323 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1324 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1325 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1326 { (exit 1); exit 1; }; }
1329 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1330 echo "${ECHO_T}$ac_cv_build" >&6
1332 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1337 echo "$as_me:$LINENO: checking host system type" >&5
1338 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1339 if test "${ac_cv_host+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 ac_cv_host_alias
=$host_alias
1343 test -z "$ac_cv_host_alias" &&
1344 ac_cv_host_alias
=$ac_cv_build_alias
1345 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1346 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1347 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1348 { (exit 1); exit 1; }; }
1351 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1352 echo "${ECHO_T}$ac_cv_host" >&6
1354 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359 echo "$as_me:$LINENO: checking target system type" >&5
1360 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1361 if test "${ac_cv_target+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 ac_cv_target_alias
=$target_alias
1365 test "x$ac_cv_target_alias" = "x" &&
1366 ac_cv_target_alias
=$ac_cv_host_alias
1367 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1373 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1374 echo "${ECHO_T}$ac_cv_target" >&6
1375 target
=$ac_cv_target
1376 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381 # The aliases save the names the user supplied, while $host etc.
1382 # will get canonicalized.
1383 test -n "$target_alias" &&
1384 test "$program_prefix$program_suffix$program_transform_name" = \
1386 program_prefix
=${target_alias}-
1393 # Check whether --with-gcc or --without-gcc was given.
1394 if test "${with_gcc+set}" = set; then
1400 if test "${srcdir}" != "." ; then
1401 V_INCLS
="-I\$(srcdir)"
1403 if test "${CFLAGS+set}" = set; then
1404 LBL_CFLAGS
="$CFLAGS"
1406 if test -z "$CC" ; then
1407 case "$target_os" in
1410 # Extract the first word of "shlicc2", so it can be a program name with args.
1411 set dummy shlicc2
; ac_word
=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 if test -n "$SHLICC2"; then
1418 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1424 test -z "$as_dir" && as_dir
=.
1425 for ac_exec_ext
in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_SHLICC2
="yes"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1437 SHLICC2
=$ac_cv_prog_SHLICC2
1438 if test -n "$SHLICC2"; then
1439 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1440 echo "${ECHO_T}$SHLICC2" >&6
1442 echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1446 if test $SHLICC2 = yes ; then
1453 if test -z "$CC" -a "$with_gcc" = no
; then
1458 ac_cpp
='$CPP $CPPFLAGS'
1459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC
="$CC" # Let the user override the test.
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 for ac_exec_ext
in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc
; ac_word
=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir
=.
1516 for ac_exec_ext
in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC
="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC
="$CC" # Let the user override the test.
1553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir
=.
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc
; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC
="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC
="$CC" # Let the user override the test.
1634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir
=.
1639 for ac_exec_ext
in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected
=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy
$ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1681 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC
="$CC" # Let the user override the test.
1690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir
=.
1695 for ac_exec_ext
in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709 echo "${ECHO_T}$CC" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$CC" && break
1718 if test -z "$CC"; then
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy
$ac_prog; ac_word
=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir
=.
1737 for ac_exec_ext
in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC
="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$ac_ct_CC" && break
1766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&5
1768 echo "$as_me: error: no acceptable C compiler found in \$PATH
1769 See \`config.log' for more details." >&2;}
1770 { (exit 1); exit 1; }; }
1772 # Provide some information about the compiler.
1773 echo "$as_me:$LINENO:" \
1774 "checking for C compiler version" >&5
1775 ac_compiler
=`set X $ac_compile; echo $2`
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1777 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1782 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1787 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1792 cat >conftest.
$ac_ext <<_ACEOF
1793 #line $LINENO "configure"
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save
=$ac_clean_files
1809 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1814 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1815 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1831 test -f "$ac_file" ||
continue
1833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext
=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try
='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe
; then
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1900 ac_clean_files
=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file
in conftest.exe conftest conftest.
*; do
1920 test -f "$ac_file" ||
continue
1922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1923 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest
$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.
$ac_ext
1942 EXEEXT
=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.
$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1953 cat confdefs.h
>>conftest.
$ac_ext
1954 cat >>conftest.
$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1965 rm -f conftest.o conftest.obj
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; then
1971 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1973 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1974 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1979 echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.
$ac_ext >&5
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1991 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1992 echo "${ECHO_T}$ac_cv_objext" >&6
1993 OBJEXT
=$ac_cv_objext
1995 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 cat >conftest.
$ac_ext <<_ACEOF
2001 #line $LINENO "configure"
2004 cat confdefs.h
>>conftest.
$ac_ext
2005 cat >>conftest.
$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2019 rm -f conftest.
$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try
='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.
$ac_ext >&5
2038 rm -f conftest.
$ac_objext conftest.
$ac_ext
2039 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS
=${CFLAGS+set}
2046 ac_save_CFLAGS
=$CFLAGS
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >conftest.
$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2057 cat confdefs.h
>>conftest.
$ac_ext
2058 cat >>conftest.
$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2069 rm -f conftest.
$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); } &&
2075 { ac_try
='test -s conftest.$ac_objext'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.
$ac_ext >&5
2088 rm -f conftest.
$ac_objext conftest.
$ac_ext
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092 if test "$ac_test_CFLAGS" = set; then
2093 CFLAGS
=$ac_save_CFLAGS
2094 elif test $ac_cv_prog_cc_g = yes; then
2095 if test "$GCC" = yes; then
2101 if test "$GCC" = yes; then
2107 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 ac_cv_prog_cc_stdc
=no
2114 cat >conftest.
$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2118 cat confdefs.h
>>conftest.
$ac_ext
2119 cat >>conftest.
$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2123 #include <sys/types.h>
2124 #include <sys/stat.h>
2125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2126 struct buf { int x; };
2127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2128 static char *e (p, i)
2134 static char *f (char * (*g) (char **, int), char **p, ...)
2139 s = g (p, va_arg (v,int));
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC
="$ac_save_CC $ac_arg"
2167 rm -f conftest.
$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try
='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc
=$ac_arg
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.
$ac_ext >&5
2186 rm -f conftest.
$ac_objext
2188 rm -f conftest.
$ac_ext conftest.
$ac_objext
2193 case "x$ac_cv_prog_cc_stdc" in
2195 echo "$as_me:$LINENO: result: none needed" >&5
2196 echo "${ECHO_T}none needed" >&6 ;;
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2200 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2203 # Some people use a C++ compiler to compile C. Since we use `exit',
2204 # in C++ we need to declare it. In case someone uses the same compiler
2205 # for both compiling C and C++ we need to have the C++ compiler decide
2206 # the declaration of exit, since it's the most demanding environment.
2207 cat >conftest.
$ac_ext <<_ACEOF
2212 rm -f conftest.
$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try
='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 for ac_declaration
in \
2226 '#include <stdlib.h>' \
2227 'extern "C" void std::exit (int) throw (); using std::exit;' \
2228 'extern "C" void std::exit (int); using std::exit;' \
2229 'extern "C" void exit (int) throw ();' \
2230 'extern "C" void exit (int);' \
2233 cat >conftest.
$ac_ext <<_ACEOF
2234 #line $LINENO "configure"
2237 cat confdefs.h
>>conftest.
$ac_ext
2238 cat >>conftest.
$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2250 rm -f conftest.
$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try
='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.
$ac_ext >&5
2269 rm -f conftest.
$ac_objext conftest.
$ac_ext
2270 cat >conftest.
$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2274 cat confdefs.h
>>conftest.
$ac_ext
2275 cat >>conftest.
$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2286 rm -f conftest.
$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try
='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.
$ac_ext >&5
2304 rm -f conftest.
$ac_objext conftest.
$ac_ext
2307 if test -n "$ac_declaration"; then
2308 echo '#ifdef __cplusplus' >>confdefs.h
2309 echo $ac_declaration >>confdefs.h
2310 echo '#endif' >>confdefs.h
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.
$ac_ext >&5
2318 rm -f conftest.
$ac_objext conftest.
$ac_ext
2320 ac_cpp
='$CPP $CPPFLAGS'
2321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2325 if test "$GCC" = yes ; then
2326 if test "$SHLICC2" = yes ; then
2327 ac_cv_lbl_gcc_vers
=2
2330 echo "$as_me:$LINENO: checking gcc version" >&5
2331 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2332 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2336 sed -e '/^gcc version /!d' \
2337 -e 's/^gcc version //' \
2338 -e 's/ .*//' -e 's/^[^0-9]*//' \
2342 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2343 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2344 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2349 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2350 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2351 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.
$ac_ext <<_ACEOF
2356 #line $LINENO "configure"
2359 cat confdefs.h
>>conftest.
$ac_ext
2360 cat >>conftest.
$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362 #include <sys/types.h>
2366 int frob(int, char *)
2371 rm -f conftest.
$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try
='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_cv_lbl_cc_ansi_prototypes
=yes
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.
$ac_ext >&5
2388 ac_cv_lbl_cc_ansi_prototypes
=no
2390 rm -f conftest.
$ac_objext conftest.
$ac_ext
2393 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2394 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2395 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2396 case "$target_os" in
2399 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2400 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2401 savedcflags
="$CFLAGS"
2402 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2403 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 cat >conftest.
$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2410 cat confdefs.h
>>conftest.
$ac_ext
2411 cat >>conftest.
$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413 #include <sys/types.h>
2417 int frob(int, char *)
2422 rm -f conftest.
$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try
='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_lbl_cc_hpux_cc_aa
=yes
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.
$ac_ext >&5
2439 ac_cv_lbl_cc_hpux_cc_aa
=no
2441 rm -f conftest.
$ac_objext conftest.
$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2445 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2446 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2447 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2448 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2449 { (exit 1); exit 1; }; }
2451 CFLAGS
="$savedcflags"
2452 V_CCOPT
="-Aa $V_CCOPT"
2454 cat >>confdefs.h
<<\_ACEOF
2455 #define _HPUX_SOURCE 1
2461 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2462 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2463 { (exit 1); exit 1; }; }
2467 V_INCLS
="$V_INCLS -I/usr/local/include"
2468 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2470 case "$target_os" in
2473 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
2477 V_CCOPT
="$V_CCOPT -std1 -g3"
2481 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2482 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2483 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.
$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2490 cat confdefs.h
>>conftest.
$ac_ext
2491 cat >>conftest.
$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <sys/types.h>
2497 struct a { int b; };
2498 void c(const struct a *)
2503 rm -f conftest.
$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_lbl_cc_const_proto
=yes
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2520 ac_cv_lbl_cc_const_proto
=no
2522 rm -f conftest.
$ac_objext conftest.
$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2526 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2527 if test $ac_cv_lbl_cc_const_proto = no
; then
2528 cat >>confdefs.h
<<\_ACEOF
2537 echo "$as_me:$LINENO: checking for inline" >&5
2538 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2539 save_CFLAGS
="$CFLAGS"
2541 if test "${ac_cv_lbl_inline+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 for ac_lbl_inline
in inline __inline__ __inline
2549 cat >conftest.
$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2553 cat confdefs.h
>>conftest.
$ac_ext
2554 cat >>conftest.
$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556 #define inline $ac_lbl_inline
2557 static inline struct iltest *foo(void);
2563 static inline struct iltest *
2566 static struct iltest xxx;
2578 rm -f conftest.
$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try
='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_lbl_cc_inline
=yes
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.
$ac_ext >&5
2596 rm -f conftest.
$ac_objext conftest.
$ac_ext
2597 if test "$ac_lbl_cc_inline" = yes ; then
2601 if test "$ac_lbl_cc_inline" = yes ; then
2602 ac_cv_lbl_inline
=$ac_lbl_inline
2606 CFLAGS
="$save_CFLAGS"
2607 if test ! -z "$ac_cv_lbl_inline" ; then
2608 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2609 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 cat >>confdefs.h
<<_ACEOF
2616 #define inline $ac_cv_lbl_inline
2620 echo "$as_me:$LINENO: checking for __attribute__" >&5
2621 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2622 if test "${ac_cv___attribute__+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 cat >conftest.
$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2630 cat confdefs.h
>>conftest.
$ac_ext
2631 cat >>conftest.
$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2636 static void foo(void) __attribute__ ((noreturn));
2645 main(int argc, char **argv)
2651 rm -f conftest.
$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try
='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv___attribute__
=yes
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 ac_cv___attribute__
=no
2670 rm -f conftest.
$ac_objext conftest.
$ac_ext
2673 if test "$ac_cv___attribute__" = "yes"; then
2675 cat >>confdefs.h
<<\_ACEOF
2676 #define HAVE___ATTRIBUTE__ 1
2679 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2681 V_DEFS
="$V_DEFS -D_U_=\"\""
2683 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2684 echo "${ECHO_T}$ac_cv___attribute__" >&6
2687 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2688 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2689 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 cat >conftest.
$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2696 cat confdefs.h
>>conftest.
$ac_ext
2697 cat >>conftest.
$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2700 # include "confdefs.h"
2701 # include <sys/types.h>
2703 # include <stdlib.h>
2704 # include <stddef.h>
2714 rm -f conftest.
$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try
='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 ac_cv_lbl_have_u_int8_t
=yes
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2731 ac_cv_lbl_have_u_int8_t
=no
2733 rm -f conftest.
$ac_objext conftest.
$ac_ext
2736 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2737 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2738 if test $ac_cv_lbl_have_u_int8_t = no
; then
2740 cat >>confdefs.h
<<\_ACEOF
2741 #define u_int8_t u_char
2745 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2746 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2747 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.
$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2754 cat confdefs.h
>>conftest.
$ac_ext
2755 cat >>conftest.
$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2758 # include "confdefs.h"
2759 # include <sys/types.h>
2761 # include <stdlib.h>
2762 # include <stddef.h>
2772 rm -f conftest.
$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try
='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_lbl_have_u_int16_t
=yes
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.
$ac_ext >&5
2789 ac_cv_lbl_have_u_int16_t
=no
2791 rm -f conftest.
$ac_objext conftest.
$ac_ext
2794 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2795 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2796 if test $ac_cv_lbl_have_u_int16_t = no
; then
2798 cat >>confdefs.h
<<\_ACEOF
2799 #define u_int16_t u_short
2803 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2804 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2805 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.
$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 # include "confdefs.h"
2817 # include <sys/types.h>
2819 # include <stdlib.h>
2820 # include <stddef.h>
2830 rm -f conftest.
$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try
='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_lbl_have_u_int32_t
=yes
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.
$ac_ext >&5
2847 ac_cv_lbl_have_u_int32_t
=no
2849 rm -f conftest.
$ac_objext conftest.
$ac_ext
2852 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
2853 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
2854 if test $ac_cv_lbl_have_u_int32_t = no
; then
2856 cat >>confdefs.h
<<\_ACEOF
2857 #define u_int32_t u_int
2863 ac_cpp
='$CPP $CPPFLAGS'
2864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2873 if test -z "$CPP"; then
2874 if test "${ac_cv_prog_CPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 # Double quotes because CPP needs to be expanded
2878 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2881 for ac_c_preproc_warn_flag
in '' yes
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
2887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.
$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2893 cat confdefs.h
>>conftest.
$ac_ext
2894 cat >>conftest.
$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2897 # include <limits.h>
2899 # include <assert.h>
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2906 grep -v '^ *+' conftest.er1
>conftest.err
2908 cat conftest.err
>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev
/null
; then
2911 if test -s conftest.err
; then
2912 ac_cpp_err
=$ac_c_preproc_warn_flag
2919 if test -z "$ac_cpp_err"; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2925 # Broken: fails on valid input.
2928 rm -f conftest.err conftest.
$ac_ext
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.
$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h
>>conftest.
$ac_ext
2937 cat >>conftest.
$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <ac_nonexistent.h>
2941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2942 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2944 grep -v '^ *+' conftest.er1
>conftest.err
2946 cat conftest.err
>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev
/null
; then
2949 if test -s conftest.err
; then
2950 ac_cpp_err
=$ac_c_preproc_warn_flag
2957 if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.
$ac_ext >&5
2964 # Passes both tests.
2968 rm -f conftest.err conftest.
$ac_ext
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.
$ac_ext
2973 if $ac_preproc_ok; then
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2988 for ac_c_preproc_warn_flag
in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
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 # include <limits.h>
3006 # include <assert.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1
>conftest.err
3015 cat conftest.err
>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev
/null
; then
3018 if test -s conftest.err
; then
3019 ac_cpp_err
=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.
$ac_ext >&5
3032 # Broken: fails on valid input.
3035 rm -f conftest.err conftest.
$ac_ext
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.
$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3043 cat confdefs.h
>>conftest.
$ac_ext
3044 cat >>conftest.
$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1
>conftest.err
3053 cat conftest.err
>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev
/null
; then
3056 if test -s conftest.err
; then
3057 ac_cpp_err
=$ac_c_preproc_warn_flag
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.
$ac_ext >&5
3071 # Passes both tests.
3075 rm -f conftest.err conftest.
$ac_ext
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.
$ac_ext
3080 if $ac_preproc_ok; then
3083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3091 ac_cpp
='$CPP $CPPFLAGS'
3092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking for egrep" >&5
3098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3099 if test "${ac_cv_prog_egrep+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3103 then ac_cv_prog_egrep
='grep -E'
3104 else ac_cv_prog_egrep
='egrep'
3107 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3109 EGREP
=$ac_cv_prog_egrep
3112 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3114 if test "${ac_cv_header_stdc+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat >conftest.
$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3137 rm -f conftest.
$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try
='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_header_stdc
=yes
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 ac_cv_header_stdc
=no
3156 rm -f conftest.
$ac_objext conftest.
$ac_ext
3158 if test $ac_cv_header_stdc = yes; then
3159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3160 cat >conftest.
$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3164 cat confdefs.h
>>conftest.
$ac_ext
3165 cat >>conftest.
$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3171 $EGREP "memchr" >/dev
/null
2>&1; then
3174 ac_cv_header_stdc
=no
3180 if test $ac_cv_header_stdc = yes; then
3181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3182 cat >conftest.
$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "free" >/dev
/null
2>&1; then
3196 ac_cv_header_stdc
=no
3202 if test $ac_cv_header_stdc = yes; then
3203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3204 if test "$cross_compiling" = yes; then
3207 cat >conftest.
$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 #if ((' ' & 0x0FF) == 0x020)
3216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3219 # define ISLOWER(c) \
3220 (('a' <= (c) && (c) <= 'i') \
3221 || ('j' <= (c) && (c) <= 'r') \
3222 || ('s' <= (c) && (c) <= 'z'))
3223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3231 for (i = 0; i < 256; i++)
3232 if (XOR (islower (i), ISLOWER (i))
3233 || toupper (i) != TOUPPER (i))
3238 rm -f conftest
$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3251 echo "$as_me: program exited with status $ac_status" >&5
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3256 ac_cv_header_stdc
=no
3258 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3262 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3264 if test $ac_cv_header_stdc = yes; then
3266 cat >>confdefs.h
<<\_ACEOF
3267 #define STDC_HEADERS 1
3272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3282 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3283 inttypes.h stdint.h unistd.h
3285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 echo "$as_me:$LINENO: checking for $ac_header" >&5
3287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.
$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 $ac_includes_default
3300 #include <$ac_header>
3302 rm -f conftest.
$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try
='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 eval "$as_ac_Header=yes"
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3319 eval "$as_ac_Header=no"
3321 rm -f conftest.
$ac_objext conftest.
$ac_ext
3323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3326 cat >>confdefs.h
<<_ACEOF
3327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3338 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h
3340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo "$as_me:$LINENO: checking for $ac_header" >&5
3343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350 # Is the header compilable?
3351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3357 cat confdefs.h
>>conftest.
$ac_ext
3358 cat >>conftest.
$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 $ac_includes_default
3361 #include <$ac_header>
3363 rm -f conftest.
$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try
='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_header_compiler
=yes
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.
$ac_ext >&5
3380 ac_header_compiler
=no
3382 rm -f conftest.
$ac_objext conftest.
$ac_ext
3383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3384 echo "${ECHO_T}$ac_header_compiler" >&6
3386 # Is the header present?
3387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3389 cat >conftest.
$ac_ext <<_ACEOF
3390 #line $LINENO "configure"
3393 cat confdefs.h
>>conftest.
$ac_ext
3394 cat >>conftest.
$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <$ac_header>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1
>conftest.err
3403 cat conftest.err
>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev
/null
; then
3406 if test -s conftest.err
; then
3407 ac_cpp_err
=$ac_c_preproc_warn_flag
3414 if test -z "$ac_cpp_err"; then
3415 ac_header_preproc
=yes
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.
$ac_ext >&5
3420 ac_header_preproc
=no
3422 rm -f conftest.err conftest.
$ac_ext
3423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3424 echo "${ECHO_T}$ac_header_preproc" >&6
3426 # So? What about this header?
3427 case $ac_header_compiler:$ac_header_preproc in
3429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3435 ## ------------------------------------ ##
3436 ## Report this to bug-autoconf@gnu.org. ##
3437 ## ------------------------------------ ##
3440 sed "s/^/$as_me: WARNING: /" >&2
3443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3451 ## ------------------------------------ ##
3452 ## Report this to bug-autoconf@gnu.org. ##
3453 ## ------------------------------------ ##
3456 sed "s/^/$as_me: WARNING: /" >&2
3459 echo "$as_me:$LINENO: checking for $ac_header" >&5
3460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 eval "$as_ac_Header=$ac_header_preproc"
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3471 cat >>confdefs.h
<<_ACEOF
3472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3480 for ac_header
in netinet
/if_ether.h
3482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3483 echo "$as_me:$LINENO: checking for $ac_header" >&5
3484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 cat >conftest.
$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3492 cat confdefs.h
>>conftest.
$ac_ext
3493 cat >>conftest.
$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <sys/types.h>
3496 #include <sys/socket.h>
3498 #include <$ac_header>
3500 rm -f conftest.
$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try
='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 eval "$as_ac_Header=yes"
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.
$ac_ext >&5
3517 eval "$as_ac_Header=no"
3519 rm -f conftest.
$ac_objext conftest.
$ac_ext
3521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3524 cat >>confdefs.h
<<_ACEOF
3525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3532 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3534 # The simple test didn't work.
3535 # Do we need to include <net/if.h> first?
3536 # Unset ac_cv_header_netinet_if_ether_h so we don't
3537 # treat the previous failure as a cached value and
3538 # suppress the next test.
3540 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3541 echo "$as_me: Rechecking with some additional includes" >&6;}
3542 unset ac_cv_header_netinet_if_ether_h
3544 for ac_header
in netinet
/if_ether.h
3546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <sys/socket.h>
3561 #include <netinet/in.h>
3566 #include <$ac_header>
3568 rm -f conftest.
$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try
='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 eval "$as_ac_Header=yes"
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.
$ac_ext >&5
3585 eval "$as_ac_Header=no"
3587 rm -f conftest.
$ac_objext conftest.
$ac_ext
3589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3592 cat >>confdefs.h
<<_ACEOF
3593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 if test "$GCC" = yes ; then
3603 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3604 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3605 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 cat >conftest.
$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3612 cat confdefs.h
>>conftest.
$ac_ext
3613 cat >>conftest.
$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3616 * This generates a "duplicate case value" when fixincludes
3619 # include <sys/types.h>
3620 # include <sys/time.h>
3621 # include <sys/ioctl.h>
3622 # ifdef HAVE_SYS_IOCCOM_H
3623 # include <sys/ioccom.h>
3636 rm -f conftest.
$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_lbl_gcc_fixincludes
=yes
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.
$ac_ext >&5
3653 ac_cv_lbl_gcc_fixincludes
=no
3655 rm -f conftest.
$ac_objext conftest.
$ac_ext
3658 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3659 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3660 if test $ac_cv_lbl_gcc_fixincludes = no
; then
3661 # Don't cache failure
3662 unset ac_cv_lbl_gcc_fixincludes
3663 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3664 echo "$as_me: error: see the INSTALL for more info" >&2;}
3665 { (exit 1); exit 1; }; }
3671 for ac_func
in strerror strlcpy
3673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3674 echo "$as_me:$LINENO: checking for $ac_func" >&5
3675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3676 if eval "test \"\${$as_ac_var+set}\" = set"; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.
$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 /* System header to define __stub macros and hopefully few prototypes,
3687 which can conflict with char $ac_func (); below.
3688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 <limits.h> exists even on freestanding compilers. */
3691 # include <limits.h>
3693 # include <assert.h>
3695 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3709 char (*f) () = $ac_func;
3718 return f != $ac_func;
3723 rm -f conftest.
$ac_objext conftest
$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725 (eval $ac_link) 2>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -s conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 eval "$as_ac_var=yes"
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.
$ac_ext >&5
3740 eval "$as_ac_var=no"
3742 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3746 if test `eval echo '${'$as_ac_var'}'` = yes; then
3747 cat >>confdefs.h
<<_ACEOF
3748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3758 for ac_func
in vsnprintf snprintf
3760 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3761 echo "$as_me:$LINENO: checking for $ac_func" >&5
3762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_var+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 cat >conftest.
$ac_ext <<_ACEOF
3767 #line $LINENO "configure"
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 /* System header to define __stub macros and hopefully few prototypes,
3774 which can conflict with char $ac_func (); below.
3775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 <limits.h> exists even on freestanding compilers. */
3778 # include <limits.h>
3780 # include <assert.h>
3782 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3796 char (*f) () = $ac_func;
3805 return f != $ac_func;
3810 rm -f conftest.
$ac_objext conftest
$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try
='test -s conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 eval "$as_ac_var=yes"
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.
$ac_ext >&5
3827 eval "$as_ac_var=no"
3829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833 if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h
<<_ACEOF
3835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3843 if test $needsnprintf = yes; then
3844 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
3848 # Do this before checking for ether_hostton(), as it's a
3849 # "gethostbyname() -ish function".
3852 # Most operating systems have gethostbyname() in the default searched
3853 # libraries (i.e. libc):
3854 # Some OSes (eg. Solaris) place it in libnsl
3855 # Some strange OSes (SINIX) have it in libsocket:
3856 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3857 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
3858 if test "${ac_cv_search_gethostbyname+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_func_search_save_LIBS
=$LIBS
3862 ac_cv_search_gethostbyname
=no
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3871 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char gethostbyname ();
3886 rm -f conftest.
$ac_objext conftest
$ac_exeext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888 (eval $ac_link) 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try
='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_search_gethostbyname
="none required"
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.
$ac_ext >&5
3904 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3905 if test "$ac_cv_search_gethostbyname" = no
; then
3906 for ac_lib
in nsl socket resolv
; do
3907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3908 cat >conftest.
$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3912 cat confdefs.h
>>conftest.
$ac_ext
3913 cat >>conftest.
$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3922 char gethostbyname ();
3931 rm -f conftest.
$ac_objext conftest
$ac_exeext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try
='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_search_gethostbyname
="-l$ac_lib"
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.
$ac_ext >&5
3950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3953 LIBS
=$ac_func_search_save_LIBS
3955 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3956 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3957 if test "$ac_cv_search_gethostbyname" != no
; then
3958 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3962 # Unfortunately libsocket sometimes depends on libnsl and
3963 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3964 if test "$ac_cv_search_gethostbyname" = "no"
3966 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3967 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3968 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_check_lib_save_LIBS
=$LIBS
3972 LIBS
="-lsocket -lnsl $LIBS"
3973 cat >conftest.
$ac_ext <<_ACEOF
3974 #line $LINENO "configure"
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987 char gethostbyname ();
3996 rm -f conftest.
$ac_objext conftest
$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -s conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_lib_socket_gethostbyname
=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.
$ac_ext >&5
4013 ac_cv_lib_socket_gethostbyname
=no
4015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4016 LIBS
=$ac_check_lib_save_LIBS
4018 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4019 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4020 if test $ac_cv_lib_socket_gethostbyname = yes; then
4021 LIBS
="-lsocket -lnsl $LIBS"
4025 echo "$as_me:$LINENO: checking for library containing socket" >&5
4026 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4027 if test "${ac_cv_search_socket+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_func_search_save_LIBS
=$LIBS
4031 ac_cv_search_socket
=no
4032 cat >conftest.
$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4036 cat confdefs.h
>>conftest.
$ac_ext
4037 cat >>conftest.
$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4040 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4055 rm -f conftest.
$ac_objext conftest
$ac_exeext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057 (eval $ac_link) 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try
='test -s conftest$ac_exeext'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 ac_cv_search_socket
="none required"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.
$ac_ext >&5
4073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4074 if test "$ac_cv_search_socket" = no
; then
4075 for ac_lib
in socket
; do
4076 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4077 cat >conftest.
$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4081 cat confdefs.h
>>conftest.
$ac_ext
4082 cat >>conftest.
$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4100 rm -f conftest.
$ac_objext conftest
$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try
='test -s conftest$ac_exeext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_search_socket
="-l$ac_lib"
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.
$ac_ext >&5
4119 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4122 LIBS
=$ac_func_search_save_LIBS
4124 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4125 echo "${ECHO_T}$ac_cv_search_socket" >&6
4126 if test "$ac_cv_search_socket" != no
; then
4127 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
4130 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4131 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4132 if test "${ac_cv_lib_socket_socket+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 ac_check_lib_save_LIBS
=$LIBS
4136 LIBS
="-lsocket -lnsl $LIBS"
4137 cat >conftest.
$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4160 rm -f conftest.
$ac_objext conftest
$ac_exeext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162 (eval $ac_link) 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_lib_socket_socket
=yes
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.
$ac_ext >&5
4177 ac_cv_lib_socket_socket
=no
4179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4180 LIBS
=$ac_check_lib_save_LIBS
4182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4184 if test $ac_cv_lib_socket_socket = yes; then
4185 LIBS
="-lsocket -lnsl $LIBS"
4190 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4191 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4192 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4193 if test "${ac_cv_search_putmsg+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 ac_func_search_save_LIBS
=$LIBS
4197 ac_cv_search_putmsg
=no
4198 cat >conftest.
$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4202 cat confdefs.h
>>conftest.
$ac_ext
4203 cat >>conftest.
$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4221 rm -f conftest.
$ac_objext conftest
$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try
='test -s conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_search_putmsg
="none required"
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4240 if test "$ac_cv_search_putmsg" = no
; then
4241 for ac_lib
in str
; do
4242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4243 cat >conftest.
$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4266 rm -f conftest.
$ac_objext conftest
$ac_exeext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268 (eval $ac_link) 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try
='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_cv_search_putmsg
="-l$ac_lib"
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.
$ac_ext >&5
4285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4288 LIBS
=$ac_func_search_save_LIBS
4290 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4291 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4292 if test "$ac_cv_search_putmsg" != no
; then
4293 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
4300 # You are in a twisty little maze of UN*Xes, all different.
4301 # Some might not have ether_hostton().
4302 # Some might have it, but not declare it in any header file.
4303 # Some might have it, but declare it in <netinet/if_ether.h>.
4304 # Some might have it, but declare it in <netinet/ether.h>
4305 # (And some might have it but document it as something declared in
4306 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4308 # Before you is a C compiler.
4311 for ac_func
in ether_hostton
4313 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4314 echo "$as_me:$LINENO: checking for $ac_func" >&5
4315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4316 if eval "test \"\${$as_ac_var+set}\" = set"; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char $ac_func (); below.
4328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 <limits.h> exists even on freestanding compilers. */
4331 # include <limits.h>
4333 # include <assert.h>
4335 /* Override any gcc2 internal prototype to avoid an error. */
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4349 char (*f) () = $ac_func;
4358 return f != $ac_func;
4363 rm -f conftest.
$ac_objext conftest
$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_var=yes"
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.
$ac_ext >&5
4380 eval "$as_ac_var=no"
4382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4386 if test `eval echo '${'$as_ac_var'}'` = yes; then
4387 cat >>confdefs.h
<<_ACEOF
4388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4394 if test "$ac_cv_func_ether_hostton" = yes; then
4396 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
4398 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4400 # Yes. Does it declare ether_hostton()?
4402 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4403 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4404 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4408 #line $LINENO "configure"
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4415 #include <sys/types.h>
4416 #include <sys/socket.h>
4417 #include <netinet/in.h>
4418 #include <arpa/inet.h>
4422 #include <netinet/if_ether.h>
4428 #ifndef ether_hostton
4429 char *p = (char *) ether_hostton;
4436 rm -f conftest.
$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_have_decl_ether_hostton
=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4453 ac_cv_have_decl_ether_hostton
=no
4455 rm -f conftest.
$ac_objext conftest.
$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4458 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4459 if test $ac_cv_have_decl_ether_hostton = yes; then
4461 cat >>confdefs.h
<<_ACEOF
4462 #define HAVE_DECL_ETHER_HOSTTON 1
4467 cat >>confdefs.h
<<\_ACEOF
4468 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4473 cat >>confdefs.h
<<_ACEOF
4474 #define HAVE_DECL_ETHER_HOSTTON 0
4485 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4487 # No, how about <netinet/ether.h>, as on Linux?
4490 for ac_header
in netinet
/ether.h
4492 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo "$as_me:$LINENO: checking for $ac_header" >&5
4495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4502 # Is the header compilable?
4503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4505 cat >conftest.
$ac_ext <<_ACEOF
4506 #line $LINENO "configure"
4509 cat confdefs.h
>>conftest.
$ac_ext
4510 cat >>conftest.
$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #include <$ac_header>
4515 rm -f conftest.
$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try
='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_header_compiler
=yes
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.
$ac_ext >&5
4532 ac_header_compiler
=no
4534 rm -f conftest.
$ac_objext conftest.
$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536 echo "${ECHO_T}$ac_header_compiler" >&6
4538 # Is the header present?
4539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541 cat >conftest.
$ac_ext <<_ACEOF
4542 #line $LINENO "configure"
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <$ac_header>
4550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4553 grep -v '^ *+' conftest.er1
>conftest.err
4555 cat conftest.err
>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev
/null
; then
4558 if test -s conftest.err
; then
4559 ac_cpp_err
=$ac_c_preproc_warn_flag
4566 if test -z "$ac_cpp_err"; then
4567 ac_header_preproc
=yes
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.
$ac_ext >&5
4572 ac_header_preproc
=no
4574 rm -f conftest.err conftest.
$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 echo "${ECHO_T}$ac_header_preproc" >&6
4578 # So? What about this header?
4579 case $ac_header_compiler:$ac_header_preproc in
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4587 ## ------------------------------------ ##
4588 ## Report this to bug-autoconf@gnu.org. ##
4589 ## ------------------------------------ ##
4592 sed "s/^/$as_me: WARNING: /" >&2
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4603 ## ------------------------------------ ##
4604 ## Report this to bug-autoconf@gnu.org. ##
4605 ## ------------------------------------ ##
4608 sed "s/^/$as_me: WARNING: /" >&2
4611 echo "$as_me:$LINENO: checking for $ac_header" >&5
4612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 eval "$as_ac_Header=$ac_header_preproc"
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4623 cat >>confdefs.h
<<_ACEOF
4624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 if test "$ac_cv_header_netinet_ether_h" = yes; then
4633 # We have it - does it declare ether_hostton()?
4634 # Unset ac_cv_have_decl_ether_hostton so we don't
4635 # treat the previous failure as a cached value and
4636 # suppress the next test.
4638 unset ac_cv_have_decl_ether_hostton
4639 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4640 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4641 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 cat >conftest.
$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4648 cat confdefs.h
>>conftest.
$ac_ext
4649 cat >>conftest.
$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4652 #include <netinet/ether.h>
4658 #ifndef ether_hostton
4659 char *p = (char *) ether_hostton;
4666 rm -f conftest.
$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try
='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_have_decl_ether_hostton
=yes
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.
$ac_ext >&5
4683 ac_cv_have_decl_ether_hostton
=no
4685 rm -f conftest.
$ac_objext conftest.
$ac_ext
4687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4688 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4689 if test $ac_cv_have_decl_ether_hostton = yes; then
4691 cat >>confdefs.h
<<_ACEOF
4692 #define HAVE_DECL_ETHER_HOSTTON 1
4697 cat >>confdefs.h
<<\_ACEOF
4698 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4703 cat >>confdefs.h
<<_ACEOF
4704 #define HAVE_DECL_ETHER_HOSTTON 0
4714 # Is ether_hostton() declared?
4716 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4718 # No, we'll have to declare it ourselves.
4719 # Do we have "struct ether_addr"?
4721 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
4722 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
4723 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 cat >conftest.
$ac_ext <<_ACEOF
4727 #line $LINENO "configure"
4730 cat confdefs.h
>>conftest.
$ac_ext
4731 cat >>conftest.
$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 #include <sys/types.h>
4735 #include <sys/socket.h>
4736 #include <netinet/in.h>
4737 #include <arpa/inet.h>
4741 #include <netinet/if_ether.h>
4747 if ((struct ether_addr *) 0)
4749 if (sizeof (struct ether_addr))
4755 rm -f conftest.
$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try
='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_type_struct_ether_addr
=yes
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.
$ac_ext >&5
4772 ac_cv_type_struct_ether_addr
=no
4774 rm -f conftest.
$ac_objext conftest.
$ac_ext
4776 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
4777 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
4778 if test $ac_cv_type_struct_ether_addr = yes; then
4780 cat >>confdefs.h
<<_ACEOF
4781 #define HAVE_STRUCT_ETHER_ADDR 1
4790 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4791 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4792 # Check whether --enable-protochain or --disable-protochain was given.
4793 if test "${enable_protochain+set}" = set; then
4794 enableval
="$enable_protochain"
4797 case "x$enable_protochain" in
4798 xyes
) enable_protochain
=enabled
;;
4799 xno
) enable_protochain
=disabled
;;
4800 x
) enable_protochain
=enabled
;;
4803 if test "$enable_protochain" = "disabled"; then
4805 cat >>confdefs.h
<<\_ACEOF
4806 #define NO_PROTOCHAIN 1
4810 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
4811 echo "${ECHO_T}${enable_protochain}" >&6
4813 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
4814 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
4815 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
4816 { (exit 1); exit 1; }; }
4819 # Check whether --with-pcap or --without-pcap was given.
4820 if test "${with_pcap+set}" = set; then
4821 withval
="$with_pcap"
4824 echo "$as_me:$LINENO: checking packet capture type" >&5
4825 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
4826 if test ! -z "$with_pcap" ; then
4828 elif test -r /dev
/bpf0
; then
4830 elif test -r /usr
/include
/net
/pfilt.h
; then
4832 elif test -r /dev
/enet
; then
4834 elif test -r /dev
/nit
; then
4836 elif test -r /usr
/include
/sys
/net
/nit.h
; then
4838 elif test -r /usr
/include
/linux
/socket.h
; then
4840 elif test -r /usr
/include
/net
/raw.h
; then
4842 elif test -r /usr
/include
/odmi.h
; then
4844 # On AIX, the BPF devices might not yet be present - they're
4845 # created the first time libpcap runs after booting.
4846 # We check for odmi.h instead.
4849 elif test -r /usr
/include
/sys
/dlpi.h
; then
4851 elif test -c /dev
/bpf0
; then # check again in case not readable
4853 elif test -c /dev
/enet
; then # check again in case not readable
4855 elif test -c /dev
/nit
; then # check again in case not readable
4860 echo "$as_me:$LINENO: result: $V_PCAP" >&5
4861 echo "${ECHO_T}$V_PCAP" >&6
4863 if test "$V_PCAP" = null
4866 # We can't capture, so we can't open any capture
4867 # devices, so we won't return any interfaces.
4871 echo "$as_me:$LINENO: checking for getifaddrs" >&5
4872 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
4873 if test "${ac_cv_func_getifaddrs+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 cat >conftest.
$ac_ext <<_ACEOF
4877 #line $LINENO "configure"
4880 cat confdefs.h
>>conftest.
$ac_ext
4881 cat >>conftest.
$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 /* System header to define __stub macros and hopefully few prototypes,
4884 which can conflict with char getifaddrs (); below.
4885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 <limits.h> exists even on freestanding compilers. */
4888 # include <limits.h>
4890 # include <assert.h>
4892 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4900 /* The GNU C library defines this for functions which it implements
4901 to always fail with ENOSYS. Some functions are actually named
4902 something starting with __ and the normal name is an alias. */
4903 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
4906 char (*f) () = getifaddrs;
4915 return f != getifaddrs;
4920 rm -f conftest.
$ac_objext conftest
$ac_exeext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try
='test -s conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_func_getifaddrs
=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.
$ac_ext >&5
4937 ac_cv_func_getifaddrs
=no
4939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
4942 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
4943 if test $ac_cv_func_getifaddrs = yes; then
4946 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
4947 # as well, just in case some platform is really weird.
4949 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4950 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
4951 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
4952 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
4956 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
4958 # Is the header compilable?
4959 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
4960 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
4961 cat >conftest.
$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4969 #include <ifaddrs.h>
4971 rm -f conftest.
$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_header_compiler
=yes
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 ac_header_compiler
=no
4990 rm -f conftest.
$ac_objext conftest.
$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4992 echo "${ECHO_T}$ac_header_compiler" >&6
4994 # Is the header present?
4995 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
4996 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
4997 cat >conftest.
$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
5001 cat confdefs.h
>>conftest.
$ac_ext
5002 cat >>conftest.
$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include <ifaddrs.h>
5006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5009 grep -v '^ *+' conftest.er1
>conftest.err
5011 cat conftest.err
>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev
/null
; then
5014 if test -s conftest.err
; then
5015 ac_cpp_err
=$ac_c_preproc_warn_flag
5022 if test -z "$ac_cpp_err"; then
5023 ac_header_preproc
=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.
$ac_ext >&5
5028 ac_header_preproc
=no
5030 rm -f conftest.err conftest.
$ac_ext
5031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5032 echo "${ECHO_T}$ac_header_preproc" >&6
5034 # So? What about this header?
5035 case $ac_header_compiler:$ac_header_preproc in
5037 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5038 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5039 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5040 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5043 ## ------------------------------------ ##
5044 ## Report this to bug-autoconf@gnu.org. ##
5045 ## ------------------------------------ ##
5048 sed "s/^/$as_me: WARNING: /" >&2
5051 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5052 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5054 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5056 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5059 ## ------------------------------------ ##
5060 ## Report this to bug-autoconf@gnu.org. ##
5061 ## ------------------------------------ ##
5064 sed "s/^/$as_me: WARNING: /" >&2
5067 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5068 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5069 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_cv_header_ifaddrs_h
=$ac_header_preproc
5074 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5075 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5078 if test $ac_cv_header_ifaddrs_h = yes; then
5081 # We have the header, so we use "getifaddrs()" to
5082 # get the list of interfaces.
5089 # We don't have the header - give up.
5090 # XXX - we could also fall back on some other
5091 # mechanism, but, for now, this'll catch this
5092 # problem so that we can at least try to figure
5093 # out something to do on systems with "getifaddrs()"
5094 # but without "ifaddrs.h", if there is something
5095 # we can do on those systems.
5097 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5098 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5099 { (exit 1); exit 1; }; }
5108 # Well, we don't have "getifaddrs()", so we have to use
5109 # some other mechanism; determine what that mechanism is.
5111 # The first thing we use is the type of capture mechanism,
5112 # which is somewhat of a proxy for the OS we're using.
5118 # This might be Solaris 8 or later, with
5119 # SIOCGLIFCONF, or it might be some other OS
5120 # or some older version of Solaris, with
5123 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5124 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5125 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 cat >conftest.
$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/param.h>
5136 #include <sys/file.h>
5137 #include <sys/ioctl.h>
5138 #include <sys/socket.h>
5139 #include <sys/sockio.h>
5143 ioctl(0, SIOCGLIFCONF, (char *)0);
5148 rm -f conftest.
$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try
='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lbl_have_siocglifconf
=yes
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.
$ac_ext >&5
5165 ac_cv_lbl_have_siocglifconf
=no
5167 rm -f conftest.
$ac_objext conftest.
$ac_ext
5170 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5171 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5172 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5181 # Assume we just have SIOCGIFCONF.
5182 # (XXX - on at least later Linux kernels, there's
5183 # another mechanism, and we should be using that
5193 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5194 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5195 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5196 if test "${enable_ipv6+set}" = set; then
5197 enableval
="$enable_ipv6"
5200 if test "$enable_ipv6" = "yes"; then
5202 cat >>confdefs.h
<<\_ACEOF
5207 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5208 echo "${ECHO_T}${enable_ipv6-no}" >&6
5210 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5211 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5212 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5213 if test "${enable_optimizer_dbg+set}" = set; then
5214 enableval
="$enable_optimizer_dbg"
5217 if test "$enable_optimizer_dbg" = "yes"; then
5219 cat >>confdefs.h
<<\_ACEOF
5224 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5225 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5227 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5228 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5229 # Check whether --enable-yydebug or --disable-yydebug was given.
5230 if test "${enable_yydebug+set}" = set; then
5231 enableval
="$enable_yydebug"
5234 if test "$enable_yydebug" = "yes"; then
5236 cat >>confdefs.h
<<\_ACEOF
5241 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5242 echo "${ECHO_T}${enable_yydebug-no}" >&6
5249 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5251 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253 echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5268 cat confdefs.h
>>conftest.
$ac_ext
5269 cat >>conftest.
$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 $ac_includes_default
5272 #include <$ac_header>
5274 rm -f conftest.
$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try
='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_header_compiler
=yes
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.
$ac_ext >&5
5291 ac_header_compiler
=no
5293 rm -f conftest.
$ac_objext conftest.
$ac_ext
5294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5295 echo "${ECHO_T}$ac_header_compiler" >&6
5297 # Is the header present?
5298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5300 cat >conftest.
$ac_ext <<_ACEOF
5301 #line $LINENO "configure"
5304 cat confdefs.h
>>conftest.
$ac_ext
5305 cat >>conftest.
$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <$ac_header>
5309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1
>conftest.err
5314 cat conftest.err
>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev
/null
; then
5317 if test -s conftest.err
; then
5318 ac_cpp_err
=$ac_c_preproc_warn_flag
5325 if test -z "$ac_cpp_err"; then
5326 ac_header_preproc
=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.
$ac_ext >&5
5331 ac_header_preproc
=no
5333 rm -f conftest.err conftest.
$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335 echo "${ECHO_T}$ac_header_preproc" >&6
5337 # So? What about this header?
5338 case $ac_header_compiler:$ac_header_preproc in
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5346 ## ------------------------------------ ##
5347 ## Report this to bug-autoconf@gnu.org. ##
5348 ## ------------------------------------ ##
5351 sed "s/^/$as_me: WARNING: /" >&2
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5362 ## ------------------------------------ ##
5363 ## Report this to bug-autoconf@gnu.org. ##
5364 ## ------------------------------------ ##
5367 sed "s/^/$as_me: WARNING: /" >&2
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 eval "$as_ac_Header=$ac_header_preproc"
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h
<<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5390 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5391 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5392 if test -c /dev
/dlpi
; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6
5396 cat >>confdefs.h
<<\_ACEOF
5397 #define HAVE_DEV_DLPI 1
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5404 echo "$as_me:$LINENO: checking for $dir directory" >&5
5405 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5406 if test -d $dir ; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408 echo "${ECHO_T}yes" >&6
5410 cat >>confdefs.h
<<_ACEOF
5411 #define PCAP_DEV_PREFIX "$dir"
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5422 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5423 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5424 if test "$cross_compiling" = yes; then
5425 if test "${ac_cv_linux_vers+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_cv_linux_vers
=unknown
5432 if test "${ac_cv_linux_vers+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_cv_linux_vers
=`uname -r 2>&1 | \
5436 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5440 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5441 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5442 if test $ac_cv_linux_vers = unknown
; then
5443 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5444 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5445 { (exit 1); exit 1; }; }
5447 if test $ac_cv_linux_vers -lt 2 ; then
5448 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5449 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5450 { (exit 1); exit 1; }; }
5452 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5453 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5454 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 cat >conftest.
$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5461 cat confdefs.h
>>conftest.
$ac_ext
5462 cat >>conftest.
$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5465 # include <linux/if_packet.h>
5469 struct tpacket_stats stats
5474 rm -f conftest.
$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -s conftest.$ac_objext'
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_lbl_tpacket_stats
=yes
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5491 ac_cv_lbl_tpacket_stats
=no
5493 rm -f conftest.
$ac_objext conftest.
$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5497 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5498 if test $ac_cv_lbl_tpacket_stats = yes; then
5500 cat >>confdefs.h
<<\_ACEOF
5501 #define HAVE_TPACKET_STATS 1
5508 V_DEFS
="$V_DEFS -DDAG_ONLY"
5512 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5513 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5515 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5520 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5521 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5522 if test -r /proc
/net
/dev
; then
5523 ac_cv_lbl_proc_net_dev
=yes
5525 ac_cv_lbl_proc_net_dev
=no
5527 if test $ac_cv_lbl_proc_net_dev = yes; then
5529 cat >>confdefs.h
<<\_ACEOF
5530 #define HAVE_PROC_NET_DEV 1
5534 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5535 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5537 # Check for Endace DAG card support.
5539 # Check whether --with-dag or --without-dag was given.
5540 if test "${with_dag+set}" = set; then
5543 if test "$withval" = no
5545 # User doesn't want DAG support.
5547 elif test "$withval" = yes
5549 # User wants DAG support but hasn't specified a directory.
5552 # User wants DAG support and has specified a directory, so use the provided value.
5560 # Use DAG API if present, otherwise don't
5567 # Check whether --with-dag-includes or --without-dag-includes was given.
5568 if test "${with_dag_includes+set}" = set; then
5569 withval
="$with_dag_includes"
5571 # User wants DAG support and has specified a header directory, so use the provided value.
5573 dag_include_dir
=$withval
5578 # Check whether --with-dag-libraries or --without-dag-libraries was given.
5579 if test "${with_dag_libraries+set}" = set; then
5580 withval
="$with_dag_libraries"
5582 # User wants DAG support and has specified a library directory, so use the provided value.
5584 dag_lib_dir
=$withval
5591 # We support the DAG API on Linux or BSD, or if we're building a
5597 # If the user explicitly requested DAG, tell them it's not
5600 # If they expressed no preference, don't include it.
5602 if test $want_dag = yes; then
5603 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
5604 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
5605 { (exit 1); exit 1; }; }
5606 elif test $want_dag = yes; then
5612 ac_cv_lbl_dag_api
=no
5613 if test "$want_dag" != no
; then
5615 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5616 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5618 # If necessary, set default paths for DAG API headers and libraries.
5619 if test -z "$dag_root"; then
5623 if test -z "$dag_include_dir"; then
5624 dag_include_dir
="$dag_root/include"
5627 if test -z "$dag_lib_dir"; then
5628 dag_lib_dir
="$dag_root/lib"
5631 if test -z "$dag_tools_dir"; then
5632 dag_tools_dir
="$dag_root/tools"
5635 if test -r $dag_include_dir/dagapi.h
; then
5636 ac_cv_lbl_dag_api
=yes
5638 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5639 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5642 if test $ac_cv_lbl_dag_api = yes; then
5644 echo "$as_me:$LINENO: checking dagapi.o" >&5
5645 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5647 if test -r $dag_tools_dir/dagapi.o
; then
5650 dagapi_obj
=$dag_tools_dir/dagapi.o
5652 elif test -r $dag_lib_dir/dagapi.o
; then
5655 dagapi_obj
=$dag_lib_dir/dagapi.o
5657 elif test -r $dag_lib_dir/libdag.a
; then
5660 ar x
$dag_lib_dir/libdag.a dagapi.o
5661 if test -r .
/dagapi.o
; then
5662 dagapi_obj
=.
/dagapi.o
5666 if test $dagapi_obj = no
; then
5667 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5668 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5669 ac_cv_lbl_dag_api
=no
5671 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5672 echo "${ECHO_T}yes ($dagapi_obj)" >&6
5676 if test $ac_cv_lbl_dag_api = yes; then
5678 echo "$as_me:$LINENO: checking dagopts.o" >&5
5679 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5681 if test -r $dag_tools_dir/dagopts.o
; then
5684 dagopts_obj
=$dag_tools_dir/dagopts.o
5686 elif test -r $dag_lib_dir/dagopts.o
; then
5689 dagopts_obj
=$dag_lib_dir/dagopts.o
5691 elif test -r $dag_lib_dir/libdag.a
; then
5694 ar x
$dag_lib_dir/libdag.a dagopts.o
5695 if test -r .
/dagopts.o
; then
5696 dagopts_obj
=.
/dagopts.o
5700 if test $dagopts_obj = no
; then
5701 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5702 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5703 ac_cv_lbl_dag_api
=no
5705 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5706 echo "${ECHO_T}yes ($dagopts_obj)" >&6
5710 if test $ac_cv_lbl_dag_api = yes; then
5712 # Under 2.5.x only we need to add dagreg.o.
5713 if test -r $dag_include_dir/dagreg.h
; then
5715 echo "$as_me:$LINENO: checking dagreg.o" >&5
5716 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5718 if test -r $dag_lib_dir/dagreg.o
; then
5720 # Object file is ready and waiting.
5721 dagreg_obj
=$dag_lib_dir/dagreg.o
5723 elif test -r $dag_lib_dir/libdag.a
; then
5725 # Extract from libdag.a.
5726 ar x
$dag_lib_dir/libdag.a dagreg.o
5727 if test -r .
/dagreg.o
; then
5728 dagreg_obj
=.
/dagreg.o
5732 if test $dagreg_obj = no
; then
5733 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5734 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5735 ac_cv_lbl_dag_api
=no
5737 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5738 echo "${ECHO_T}yes ($dagreg_obj)" >&6
5743 if test $ac_cv_lbl_dag_api = yes; then
5745 V_INCLS
="$V_INCLS -I$dag_include_dir"
5746 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5747 if test $V_PCAP != dag
; then
5751 # See if we can find a general version string.
5752 # Don't need to save and restore LIBS to prevent -ldag being included if there's a found-action (arg 3).
5753 saved_ldflags
=$LDFLAGS
5754 LDFLAGS
="-L$dag_lib_dir"
5755 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5756 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5757 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_check_lib_save_LIBS
=$LIBS
5762 cat >conftest.
$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5766 cat confdefs.h
>>conftest.
$ac_ext
5767 cat >>conftest.
$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5776 char dag_attach_stream ();
5780 dag_attach_stream ();
5785 rm -f conftest.
$ac_objext conftest
$ac_exeext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5787 (eval $ac_link) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try
='test -s conftest$ac_exeext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_lib_dag_dag_attach_stream
=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5802 ac_cv_lib_dag_dag_attach_stream
=no
5804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5805 LIBS
=$ac_check_lib_save_LIBS
5807 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
5808 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
5809 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
5815 LDFLAGS
=$saved_ldflags
5817 # See if we can find a specific version string.
5818 echo "$as_me:$LINENO: checking the DAG API version" >&5
5819 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5820 if test -r "$dag_root/VERSION"; then
5821 dag_version
="`cat $dag_root/VERSION`"
5823 echo "$as_me:$LINENO: result: $dag_version" >&5
5824 echo "${ECHO_T}$dag_version" >&6
5826 cat >>confdefs.h
<<\_ACEOF
5827 #define HAVE_DAG_API 1
5832 if test $ac_cv_lbl_dag_api = no
; then
5833 if test "$want_dag" = yes; then
5834 # User wanted DAG support but we couldn't find it.
5835 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5836 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5837 { (exit 1); exit 1; }; }
5840 if test "$V_PCAP" = dag
; then
5841 # User requested "dag" capture type but the DAG API wasn't found.
5842 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
5843 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
5844 { (exit 1); exit 1; }; }
5850 # Check whether --with-flex or --without-flex was given.
5851 if test "${with_flex+set}" = set; then
5852 withval
="$with_flex"
5856 # Check whether --with-bison or --without-bison was given.
5857 if test "${with_bison+set}" = set; then
5858 withval
="$with_bison"
5861 if test "$with_flex" = no
; then
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy
$ac_prog; ac_word
=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_V_LEX+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$V_LEX"; then
5874 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
5876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir
=.
5881 for ac_exec_ext
in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_V_LEX
="$ac_prog"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 V_LEX
=$ac_cv_prog_V_LEX
5893 if test -n "$V_LEX"; then
5894 echo "$as_me:$LINENO: result: $V_LEX" >&5
5895 echo "${ECHO_T}$V_LEX" >&6
5897 echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5901 test -n "$V_LEX" && break
5903 test -n "$V_LEX" || V_LEX
="lex"
5906 if test "$V_LEX" = flex
; then
5907 # The -V flag was added in 2.4
5908 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
5909 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
5910 if test "${ac_cv_lbl_flex_v24+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if flex
-V >/dev
/null
2>&1; then
5914 ac_cv_lbl_flex_v24
=yes
5916 ac_cv_lbl_flex_v24
=no
5920 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
5921 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
5922 if test $ac_cv_lbl_flex_v24 = no
; then
5923 s
="2.4 or higher required"
5924 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
5925 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
5929 if test "$with_bison" = no
; then
5932 for ac_prog
in bison
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy
$ac_prog; ac_word
=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_V_YACC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$V_YACC"; then
5942 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
5944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir
=.
5949 for ac_exec_ext
in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_V_YACC
="$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 V_YACC
=$ac_cv_prog_V_YACC
5961 if test -n "$V_YACC"; then
5962 echo "$as_me:$LINENO: result: $V_YACC" >&5
5963 echo "${ECHO_T}$V_YACC" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5969 test -n "$V_YACC" && break
5971 test -n "$V_YACC" || V_YACC
="yacc"
5974 if test "$V_YACC" = bison
; then
5977 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
5978 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
5979 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
5983 if test "$V_LEX" = flex
-a -n "pcap_" ; then
5984 V_LEX
="$V_LEX -Ppcap_"
5985 V_YACC
="$V_YACC -p pcap_"
5987 if test "$V_LEX" = lex ; then
5988 # Some versions of lex can't handle the definitions section of scanner.l .
5989 # Try lexing it and complain if it can't deal.
5990 echo "$as_me:$LINENO: checking for capable lex" >&5
5991 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
5992 if test "${tcpdump_cv_capable_lex+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 if lex -t scanner.l
> /dev
/null
2>&1; then
5996 tcpdump_cv_capable_lex
=yes
5998 tcpdump_cv_capable_lex
=insufficient
6001 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6002 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6003 if test $tcpdump_cv_capable_lex = insufficient
; then
6004 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6005 libpcap. flex is a lex replacement that has many advantages, including
6006 being able to compile libpcap. For more information, see
6007 http://www.gnu.org/software/flex/flex.html ." >&5
6008 echo "$as_me: error: Your operating system's lex is insufficient to compile
6009 libpcap. flex is a lex replacement that has many advantages, including
6010 being able to compile libpcap. For more information, see
6011 http://www.gnu.org/software/flex/flex.html ." >&2;}
6012 { (exit 1); exit 1; }; }
6021 cat >>confdefs.h
<<\_ACEOF
6029 cat >>confdefs.h
<<\_ACEOF
6030 #define HAVE_HPUX9 1
6043 cat >>confdefs.h
<<\_ACEOF
6044 #define HAVE_HPUX10_20_OR_LATER 1
6050 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6051 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6052 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6071 rm -f conftest.
$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 ac_cv_cc_sinix_defined
=yes
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.
$ac_ext >&5
6088 ac_cv_cc_sinix_defined
=no
6090 rm -f conftest.
$ac_objext conftest.
$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6094 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6095 if test $ac_cv_cc_sinix_defined = no
; then
6097 cat >>confdefs.h
<<\_ACEOF
6106 cat >>confdefs.h
<<\_ACEOF
6107 #define HAVE_SOLARIS 1
6114 V_CCOPT
="$V_CCOPT -fno-common"
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6120 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_RANLIB+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 if test -n "$RANLIB"; then
6127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir
=.
6134 for ac_exec_ext
in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 RANLIB
=$ac_cv_prog_RANLIB
6146 if test -n "$RANLIB"; then
6147 echo "$as_me:$LINENO: result: $RANLIB" >&5
6148 echo "${ECHO_T}$RANLIB" >&6
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6155 if test -z "$ac_cv_prog_RANLIB"; then
6156 ac_ct_RANLIB
=$RANLIB
6157 # Extract the first word of "ranlib", so it can be a program name with args.
6158 set dummy ranlib
; ac_word
=$2
6159 echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 if test -n "$ac_ct_RANLIB"; then
6165 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir
=.
6172 for ac_exec_ext
in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6184 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6185 if test -n "$ac_ct_RANLIB"; then
6186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6189 echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6
6193 RANLIB
=$ac_ct_RANLIB
6195 RANLIB
="$ac_cv_prog_RANLIB"
6200 if test "${LBL_CFLAGS+set}" = set; then
6201 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
6203 if test -f .devel
; then
6204 if test "$GCC" = yes ; then
6205 if test "${LBL_CFLAGS+set}" != set; then
6206 if test "$ac_cv_prog_cc_g" = yes ; then
6207 V_CCOPT
="-g $V_CCOPT"
6209 V_CCOPT
="$V_CCOPT -Wall"
6210 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6211 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6215 case "$target_os" in
6218 V_CCOPT
="$V_CCOPT -n32"
6225 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6227 if test -f $name ; then
6228 ln -s $name os-proto.h
6230 cat >>confdefs.h
<<\_ACEOF
6231 #define HAVE_OS_PROTO_H 1
6235 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6236 echo "$as_me: WARNING: can't find $name" >&2;}
6240 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6241 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6242 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 cat >conftest.
$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6249 cat confdefs.h
>>conftest.
$ac_ext
6250 cat >>conftest.
$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6253 # include <sys/types.h>
6254 # include <sys/socket.h>
6258 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6263 rm -f conftest.
$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try
='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_lbl_sockaddr_has_sa_len
=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6280 ac_cv_lbl_sockaddr_has_sa_len
=no
6282 rm -f conftest.
$ac_objext conftest.
$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6286 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6287 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define HAVE_SOCKADDR_SA_LEN 1
6295 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6296 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6297 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 cat >conftest.
$ac_ext <<_ACEOF
6301 #line $LINENO "configure"
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 # include <sys/types.h>
6309 # include <sys/socket.h>
6313 u_int i = sizeof (struct sockaddr_storage)
6318 rm -f conftest.
$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try
='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_lbl_has_sockaddr_storage
=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.
$ac_ext >&5
6335 ac_cv_lbl_has_sockaddr_storage
=no
6337 rm -f conftest.
$ac_objext conftest.
$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
6341 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
6342 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define HAVE_SOCKADDR_STORAGE 1
6350 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
6351 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
6352 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6359 cat confdefs.h
>>conftest.
$ac_ext
6360 cat >>conftest.
$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6363 # include <sys/types.h>
6364 # include <sys/dlpi.h>
6365 # include <sys/dlpi_ext.h>
6369 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
6374 rm -f conftest.
$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try
='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6391 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
6393 rm -f conftest.
$ac_objext conftest.
$ac_ext
6396 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
6397 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
6398 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
6400 cat >>confdefs.h
<<\_ACEOF
6401 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
6406 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
6407 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
6408 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 # These are CPU types where:
6416 # the CPU faults on an unaligned access, but at least some
6417 # OSes that support that CPU catch the fault and simulate
6418 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
6419 # the simulation is slow, so we don't want to use it;
6421 # the CPU, I infer (from the old
6423 # XXX: should also check that they don't do weird things (like on arm)
6425 # comment) doesn't fault on unaligned accesses, but doesn't
6426 # do a normal unaligned fetch, either (e.g., presumably, ARM);
6428 # for whatever reason, the test program doesn't work
6429 # (this has been claimed to be the case for several of those
6430 # CPUs - I don't know what the problem is; the problem
6431 # was reported as "the test program dumps core" for SuperH,
6432 # but that's what the test program is *supposed* to do -
6433 # it dumps core before it writes anything, so the test
6434 # for an empty output file should find an empty output
6435 # file and conclude that unaligned accesses don't work).
6437 # This run-time test won't work if you're cross-compiling, so
6438 # in order to support cross-compiling for a particular CPU,
6439 # we have to wire in the list of CPU types anyway, as far as
6440 # I know, so perhaps we should just have a set of CPUs on
6441 # which we know it doesn't work, a set of CPUs on which we
6442 # know it does work, and have the script just fail on other
6443 # cpu types and update it when such a failure occurs.
6445 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
6446 ac_cv_lbl_unaligned_fail
=yes
6450 cat >conftest.c
<<EOF
6451 # include <sys/types.h>
6452 # include <sys/wait.h>
6454 unsigned char a[5] = { 1, 2, 3, 4, 5 };
6459 /* avoid "core dumped" message */
6465 pid = waitpid(pid, &status, 0);
6468 exit(!WIFEXITED(status));
6471 i = *(unsigned int *)&a[1];
6476 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
6477 conftest.c
$LIBS >/dev
/null
2>&1
6478 if test ! -x conftest
; then
6479 ac_cv_lbl_unaligned_fail
=yes
6481 .
/conftest
>conftest.out
6482 if test ! -s conftest.out
; then
6483 ac_cv_lbl_unaligned_fail
=yes
6485 ac_cv_lbl_unaligned_fail
=no
6488 rm -f conftest
* core core.conftest
6493 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
6494 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
6495 if test $ac_cv_lbl_unaligned_fail = yes ; then
6497 cat >>confdefs.h
<<\_ACEOF
6504 # Makefile.in includes rules to generate version.h, so we assume
6505 # that it will be generated if autoconf is used.
6508 cat >>confdefs.h
<<\_ACEOF
6509 #define HAVE_VERSION_H 1
6514 ln -s ${srcdir}/bpf
/net net
6528 # Find a good install program. We prefer a C program (faster),
6529 # so one script is as good as another. But avoid the broken or
6530 # incompatible versions:
6531 # SysV /etc/install, /usr/sbin/install
6532 # SunOS /usr/etc/install
6533 # IRIX /sbin/install
6535 # AmigaOS /C/install, which installs bootblocks on floppy discs
6536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6539 # ./install, which can be erroneously created by make from ./install.sh.
6540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6542 if test -z "$INSTALL"; then
6543 if test "${ac_cv_path_install+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir
=.
6551 # Account for people who put trailing slashes in PATH elements.
6553 .
/ | .
// |
/cC
/* | \
6554 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6557 # OSF1 and SCO ODT 3.0 have their own names for install.
6558 # Don't use installbsd from OSF since it installs stuff as root
6560 for ac_prog
in ginstall scoinst
install; do
6561 for ac_exec_ext
in '' $ac_executable_extensions; do
6562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6563 if test $ac_prog = install &&
6564 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6565 # AIX install. It has an incompatible calling convention.
6567 elif test $ac_prog = install &&
6568 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6569 # program-specific install script used by HP pwplus--don't use.
6572 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6584 if test "${ac_cv_path_install+set}" = set; then
6585 INSTALL
=$ac_cv_path_install
6587 # As a last resort, use the slow shell script. We don't cache a
6588 # path for INSTALL within a source directory, because that will
6589 # break other packages using the cache if that directory is
6590 # removed, or if the path is relative.
6591 INSTALL
=$ac_install_sh
6594 echo "$as_me:$LINENO: result: $INSTALL" >&5
6595 echo "${ECHO_T}$INSTALL" >&6
6597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6598 # It thinks the first close brace ends the variable substitution.
6599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6603 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6606 ac_config_headers
="$ac_config_headers config.h"
6609 ac_config_files
="$ac_config_files Makefile"
6610 cat >confcache
<<\_ACEOF
6611 # This file is a shell script that caches the results of configure
6612 # tests run on this system so they can be shared between configure
6613 # scripts and configure runs, see configure's option --config-cache.
6614 # It is not useful on other systems. If it contains results you don't
6615 # want to keep, you may remove or edit it.
6617 # config.status only pays attention to the cache file if you give it
6618 # the --recheck option to rerun configure.
6620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6626 # The following way of writing the cache mishandles newlines in values,
6627 # but we know of no workaround that is simple, portable, and efficient.
6628 # So, don't put newlines in cache variables' values.
6629 # Ultrix sh set writes to stderr and can't be redirected directly,
6630 # and sets the high bit in the cache file unless we assign to the vars.
6633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6635 # `set' does not quote correctly, so add quotes (double-quote
6636 # substitution turns \\\\ into \\, and sed turns \\ into \).
6639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6642 # `set' quotes correctly as required by POSIX, so do not add quotes.
6644 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6653 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6655 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6656 if test -w $cache_file; then
6657 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6658 cat confcache
>$cache_file
6660 echo "not updating unwritable cache $cache_file"
6665 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6666 # Let make expand exec_prefix.
6667 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6671 # trailing colons and then remove the whole line if VPATH becomes empty
6672 # (actually we leave an empty line to preserve line numbers).
6673 if test "x$srcdir" = x.
; then
6674 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6675 s/:*\$(srcdir):*/:/;
6676 s/:*\${srcdir}:*/:/;
6678 s/^\([^=]*=[ ]*\):*/\1/;
6684 DEFS
=-DHAVE_CONFIG_H
6688 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6689 # 1. Remove the extension, and $U if already installed.
6690 ac_i
=`echo "$ac_i" |
6691 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6693 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6694 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6698 LTLIBOBJS
=$ac_ltlibobjs
6702 : ${CONFIG_STATUS=./config.status}
6703 ac_clean_files_save
=$ac_clean_files
6704 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6705 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6706 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6707 cat >$CONFIG_STATUS <<_ACEOF
6709 # Generated by $as_me.
6710 # Run this file to recreate the current configuration.
6711 # Compiler output produced by configure, useful for debugging
6712 # configure, is in config.log if it exists.
6717 SHELL=\${CONFIG_SHELL-$SHELL}
6720 cat >>$CONFIG_STATUS <<\_ACEOF
6721 ## --------------------- ##
6722 ## M4sh Initialization. ##
6723 ## --------------------- ##
6725 # Be Bourne compatible
6726 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6729 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6730 # is contrary to our usage. Disable this feature.
6731 alias -g '${1+"$@"}'='"$@"'
6732 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6736 # Support unset when possible.
6737 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6744 # Work around bugs in pre-3.0 UWIN ksh.
6745 $as_unset ENV MAIL MAILPATH
6752 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6753 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6754 LC_TELEPHONE LC_TIME
6756 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6757 eval $as_var=C
; export $as_var
6763 # Required to use basename.
6764 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6770 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6771 as_basename
=basename
6777 # Name of the executable.
6778 as_me
=`$as_basename "$0" ||
6779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6780 X"$0" : 'X\(//\)$' \| \
6781 X"$0" : 'X\(/\)$' \| \
6782 . : '\(.\)' 2>/dev/null ||
6784 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6785 /^X\/\(\/\/\)$/{ s//\1/; q; }
6786 /^X\/\(\/\).*/{ s//\1/; q; }
6790 # PATH needs CR, and LINENO needs CR and PATH.
6791 # Avoid depending upon Character Ranges.
6792 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6793 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6794 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6795 as_cr_digits
='0123456789'
6796 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6798 # The user is always right.
6799 if test "${PATH_SEPARATOR+set}" != set; then
6800 echo "#! /bin/sh" >conf$$.sh
6801 echo "exit 0" >>conf$$.sh
6803 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6814 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6815 test "x$as_lineno_1" != "x$as_lineno_2" &&
6816 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6817 # Find who we are. Look in the path if we contain no path at all
6820 *[\\/]* ) as_myself
=$0 ;;
6821 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir
=.
6826 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6831 # We did not find ourselves, most probably we were run as `sh COMMAND'
6832 # in which case we are not to be found in the path.
6833 if test "x$as_myself" = x
; then
6836 if test ! -f "$as_myself"; then
6837 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6838 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6839 { (exit 1); exit 1; }; }
6841 case $CONFIG_SHELL in
6843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6844 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6847 test -z "$as_dir" && as_dir
=.
6848 for as_base
in sh bash ksh sh5
; do
6851 if ("$as_dir/$as_base" -c '
6854 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6855 test "x$as_lineno_1" != "x$as_lineno_2" &&
6856 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6857 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6858 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6859 CONFIG_SHELL
=$as_dir/$as_base
6861 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6869 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6870 # uniformly replaced by the line number. The first 'sed' inserts a
6871 # line-number line before each line; the second 'sed' does the real
6872 # work. The second script uses 'N' to pair each line-number line
6873 # with the numbered line, and appends trailing '-' during
6874 # substitution so that $LINENO is not a special case at line end.
6875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6876 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6877 sed '=' <$as_myself |
6882 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6885 s,^['$as_cr_digits']*\n,,
6887 chmod +x
$as_me.lineno ||
6888 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6889 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6890 { (exit 1); exit 1; }; }
6892 # Don't try to exec as it changes $[0], causing all sort of problems
6893 # (the dirname of $[0] is not the place where we might find the
6894 # original and so on. Autoconf is especially sensible to this).
6896 # Exit status is that of the last command.
6901 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6902 *c
*,-n*) ECHO_N
= ECHO_C
='
6904 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6905 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6908 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6914 rm -f conf$$ conf$$.exe conf$$.
file
6916 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6917 # We could just check for DJGPP; but this test a) works b) is more generic
6918 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6919 if test -f conf$$.exe
; then
6920 # Don't use ln at all; we don't have any links
6925 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6930 rm -f conf$$ conf$$.exe conf$$.
file
6932 if mkdir
-p .
2>/dev
/null
; then
6938 as_executable_p
="test -f"
6940 # Sed expression to map a string onto a valid CPP name.
6941 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6943 # Sed expression to map a string onto a valid variable name.
6944 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6948 # We need space, tab and new line, in precisely that order.
6958 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6959 # report actual input values of CONFIG_FILES etc. instead of their
6960 # values after options handling. Logging --version etc. is OK.
6964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6965 ## Running $as_me. ##
6970 This file was extended by $as_me, which was
6971 generated by GNU Autoconf 2.57. Invocation command line was
6973 CONFIG_FILES = $CONFIG_FILES
6974 CONFIG_HEADERS = $CONFIG_HEADERS
6975 CONFIG_LINKS = $CONFIG_LINKS
6976 CONFIG_COMMANDS = $CONFIG_COMMANDS
6980 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6984 # Files that config.status was made for.
6985 if test -n "$ac_config_files"; then
6986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6989 if test -n "$ac_config_headers"; then
6990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6993 if test -n "$ac_config_links"; then
6994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6997 if test -n "$ac_config_commands"; then
6998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7001 cat >>$CONFIG_STATUS <<\_ACEOF
7004 \`$as_me' instantiates files from templates according to the
7005 current configuration.
7007 Usage: $0 [OPTIONS] [FILE]...
7009 -h, --help print this help, then exit
7010 -V, --version print version number, then exit
7011 -q, --quiet do not print progress messages
7012 -d, --debug don't remove temporary files
7013 --recheck update $as_me by reconfiguring in the same conditions
7014 --file=FILE[:TEMPLATE]
7015 instantiate the configuration file FILE
7016 --header=FILE[:TEMPLATE]
7017 instantiate the configuration header FILE
7019 Configuration files:
7022 Configuration headers:
7025 Report bugs to <bug-autoconf@gnu.org>."
7028 cat >>$CONFIG_STATUS <<_ACEOF
7031 configured by $0, generated by GNU Autoconf 2.57,
7032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7035 Free Software Foundation, Inc.
7036 This config.status script is free software; the Free Software Foundation
7037 gives unlimited permission to copy, distribute and modify it."
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7043 # If no file are specified by the user, then we need to provide default
7044 # value. By we need to know if files were specified by the user.
7050 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7051 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7059 *) # This is not an option, so the user has probably given explicit
7062 ac_need_defaults
=false
;;
7066 # Handling of the options.
7068 cat >>$CONFIG_STATUS <<\_ACEOF
7069 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7071 --version |
--vers* |
-V )
7072 echo "$ac_cs_version"; exit 0 ;;
7074 # Conflict between --help and --header
7075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7076 Try \`$0 --help' for more information." >&5
7077 echo "$as_me: error: ambiguous option: $1
7078 Try \`$0 --help' for more information." >&2;}
7079 { (exit 1); exit 1; }; };;
7080 --help |
--hel |
-h )
7081 echo "$ac_cs_usage"; exit 0 ;;
7082 --debug |
--d* |
-d )
7084 --file |
--fil |
--fi |
--f )
7086 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7087 ac_need_defaults
=false
;;
7088 --header |
--heade |
--head |
--hea )
7090 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7091 ac_need_defaults
=false
;;
7092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7093 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7098 Try \`$0 --help' for more information." >&5
7099 echo "$as_me: error: unrecognized option: $1
7100 Try \`$0 --help' for more information." >&2;}
7101 { (exit 1); exit 1; }; } ;;
7103 *) ac_config_targets
="$ac_config_targets $1" ;;
7109 ac_configure_extra_args
=
7111 if $ac_cs_silent; then
7113 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7117 cat >>$CONFIG_STATUS <<_ACEOF
7118 if \$ac_cs_recheck; then
7119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7129 cat >>$CONFIG_STATUS <<\_ACEOF
7130 for ac_config_target
in $ac_config_targets
7132 case "$ac_config_target" in
7133 # Handling of arguments.
7134 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7135 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7136 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7137 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7138 { (exit 1); exit 1; }; };;
7142 # If the user did not use the arguments to specify the items to instantiate,
7143 # then the envvar interface is used. Set only those that are not.
7144 # We use the long form for the default assignment because of an extremely
7145 # bizarre bug on SunOS 4.1.3.
7146 if $ac_need_defaults; then
7147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7151 # Have a temporary directory for convenience. Make it in the build tree
7152 # simply because there is no reason to put it here, and in addition,
7153 # creating and moving files from /tmp can sometimes cause problems.
7154 # Create a temporary directory, and hook for its removal unless debugging.
7157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7158 trap '{ (exit 1); exit 1; }' 1 2 13 15
7161 # Create a (secure) tmp directory for tmp files.
7164 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7165 test -n "$tmp" && test -d "$tmp"
7168 tmp
=.
/confstat$$
-$RANDOM
7169 (umask 077 && mkdir
$tmp)
7172 echo "$me: cannot create a temporary directory in ." >&2
7173 { (exit 1); exit 1; }
7178 cat >>$CONFIG_STATUS <<_ACEOF
7181 # CONFIG_FILES section.
7184 # No need to generate the scripts if there are no CONFIG_FILES.
7185 # This happens for instance when ./config.status config.h
7186 if test -n "\$CONFIG_FILES"; then
7187 # Protect against being on the right side of a sed subst in config.status.
7188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7190 s,@SHELL@,$SHELL,;t t
7191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7197 s,@exec_prefix@,$exec_prefix,;t t
7198 s,@prefix@,$prefix,;t t
7199 s,@program_transform_name@,$program_transform_name,;t t
7200 s,@bindir@,$bindir,;t t
7201 s,@sbindir@,$sbindir,;t t
7202 s,@libexecdir@,$libexecdir,;t t
7203 s,@datadir@,$datadir,;t t
7204 s,@sysconfdir@,$sysconfdir,;t t
7205 s,@sharedstatedir@,$sharedstatedir,;t t
7206 s,@localstatedir@,$localstatedir,;t t
7207 s,@libdir@,$libdir,;t t
7208 s,@includedir@,$includedir,;t t
7209 s,@oldincludedir@,$oldincludedir,;t t
7210 s,@infodir@,$infodir,;t t
7211 s,@mandir@,$mandir,;t t
7212 s,@build_alias@,$build_alias,;t t
7213 s,@host_alias@,$host_alias,;t t
7214 s,@target_alias@,$target_alias,;t t
7216 s,@ECHO_C@,$ECHO_C,;t t
7217 s,@ECHO_N@,$ECHO_N,;t t
7218 s,@ECHO_T@,$ECHO_T,;t t
7220 s,@build@,$build,;t t
7221 s,@build_cpu@,$build_cpu,;t t
7222 s,@build_vendor@,$build_vendor,;t t
7223 s,@build_os@,$build_os,;t t
7225 s,@host_cpu@,$host_cpu,;t t
7226 s,@host_vendor@,$host_vendor,;t t
7227 s,@host_os@,$host_os,;t t
7228 s,@target@,$target,;t t
7229 s,@target_cpu@,$target_cpu,;t t
7230 s,@target_vendor@,$target_vendor,;t t
7231 s,@target_os@,$target_os,;t t
7232 s,@SHLICC2@,$SHLICC2,;t t
7234 s,@CFLAGS@,$CFLAGS,;t t
7235 s,@LDFLAGS@,$LDFLAGS,;t t
7236 s,@CPPFLAGS@,$CPPFLAGS,;t t
7237 s,@ac_ct_CC@,$ac_ct_CC,;t t
7238 s,@EXEEXT@,$EXEEXT,;t t
7239 s,@OBJEXT@,$OBJEXT,;t t
7241 s,@EGREP@,$EGREP,;t t
7242 s,@LIBOBJS@,$LIBOBJS,;t t
7243 s,@V_LEX@,$V_LEX,;t t
7244 s,@V_YACC@,$V_YACC,;t t
7245 s,@RANLIB@,$RANLIB,;t t
7246 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7247 s,@V_CCOPT@,$V_CCOPT,;t t
7248 s,@V_DEFS@,$V_DEFS,;t t
7249 s,@V_INCLS@,$V_INCLS,;t t
7250 s,@V_LIBS@,$V_LIBS,;t t
7251 s,@V_PCAP@,$V_PCAP,;t t
7252 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
7253 s,@V_RANLIB@,$V_RANLIB,;t t
7255 s,@DYEXT@,$DYEXT,;t t
7256 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7257 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7258 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7264 cat >>$CONFIG_STATUS <<\_ACEOF
7265 # Split the substitutions into bite-sized pieces for seds with
7266 # small command number limits, like on Digital OSF/1 and HP-UX.
7268 ac_sed_frag
=1 # Number of current file.
7269 ac_beg
=1 # First line for current file.
7270 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7273 while $ac_more_lines; do
7274 if test $ac_beg -gt 1; then
7275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7277 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7279 if test ! -s $tmp/subs.frag
; then
7282 # The purpose of the label and of the branching condition is to
7283 # speed up the sed processing (if there are no `@' at all, there
7284 # is no need to browse any of the substitutions).
7285 # These are the two extra sed commands mentioned above.
7287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7288 if test -z "$ac_sed_cmds"; then
7289 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7291 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7293 ac_sed_frag
=`expr $ac_sed_frag + 1`
7295 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7298 if test -z "$ac_sed_cmds"; then
7301 fi # test -n "$CONFIG_FILES"
7304 cat >>$CONFIG_STATUS <<\_ACEOF
7305 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7308 - |
*:- |
*:-:* ) # input from stdin
7310 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7311 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7312 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7313 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7314 * ) ac_file_in
=$ac_file.
in ;;
7317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7318 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$ac_file" : 'X\(//\)[^/]' \| \
7321 X"$ac_file" : 'X\(//\)$' \| \
7322 X"$ac_file" : 'X\(/\)' \| \
7323 . : '\(.\)' 2>/dev/null ||
7325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327 /^X\(\/\/\)$/{ s//\1/; q; }
7328 /^X\(\/\).*/{ s//\1/; q; }
7330 { if $as_mkdir_p; then
7335 while test ! -d "$as_dir"; do
7336 as_dirs
="$as_dir $as_dirs"
7337 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7339 X"$as_dir" : 'X\(//\)[^/]' \| \
7340 X"$as_dir" : 'X\(//\)$' \| \
7341 X"$as_dir" : 'X\(/\)' \| \
7342 . : '\(.\)' 2>/dev/null ||
7344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7346 /^X\(\/\/\)$/{ s//\1/; q; }
7347 /^X\(\/\).*/{ s//\1/; q; }
7350 test ! -n "$as_dirs" || mkdir
$as_dirs
7351 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7353 { (exit 1); exit 1; }; }; }
7357 if test "$ac_dir" != .
; then
7358 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7359 # A "../" for each directory in $ac_dir_suffix.
7360 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7362 ac_dir_suffix
= ac_top_builddir
=
7366 .
) # No --srcdir option. We are building in place.
7368 if test -z "$ac_top_builddir"; then
7371 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7373 [\\/]* | ?
:[\\/]* ) # Absolute path.
7374 ac_srcdir
=$srcdir$ac_dir_suffix;
7375 ac_top_srcdir
=$srcdir ;;
7377 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7378 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7380 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7382 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7383 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7384 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7385 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7389 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7390 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7393 if test x
"$ac_file" != x-
; then
7394 { echo "$as_me:$LINENO: creating $ac_file" >&5
7395 echo "$as_me: creating $ac_file" >&6;}
7398 # Let's still pretend it is `configure' which instantiates (i.e., don't
7399 # use $as_me), people would be surprised to read:
7400 # /* config.h. Generated by config.status. */
7401 if test x
"$ac_file" = x-
; then
7404 configure_input
="$ac_file. "
7406 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7407 sed 's,.*/,,'` by configure."
7409 # First look for the input files in the build tree, otherwise in the
7411 ac_file_inputs
=`IFS=:
7412 for f in $ac_file_in; do
7414 -) echo $tmp/stdin ;;
7416 # Absolute (can't be DOS-style, as IFS=:)
7417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7418 echo "$as_me: error: cannot find input file: $f" >&2;}
7419 { (exit 1); exit 1; }; }
7422 if test -f "$f"; then
7425 elif test -f "$srcdir/$f"; then
7430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7431 echo "$as_me: error: cannot find input file: $f" >&2;}
7432 { (exit 1); exit 1; }; }
7435 done` ||
{ (exit 1); exit 1; }
7437 cat >>$CONFIG_STATUS <<_ACEOF
7441 cat >>$CONFIG_STATUS <<\_ACEOF
7443 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7444 s
,@configure_input@
,$configure_input,;t t
7445 s
,@srcdir@
,$ac_srcdir,;t t
7446 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7447 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7448 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7449 s
,@builddir@
,$ac_builddir,;t t
7450 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7451 s
,@top_builddir@
,$ac_top_builddir,;t t
7452 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7453 s
,@INSTALL@
,$ac_INSTALL,;t t
7454 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7456 if test x"$ac_file" != x-; then
7457 mv $tmp/out $ac_file
7465 cat >>$CONFIG_STATUS <<\_ACEOF
7468 # CONFIG_HEADER section.
7471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7474 # ac_d sets the value in "#define NAME VALUE" lines.
7475 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7476 ac_dB
='[ ].*$,\1#\2'
7479 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7480 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7481 ac_uB
='$,\1#\2define\3'
7485 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7488 - |
*:- |
*:-:* ) # input from stdin
7490 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7491 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7492 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7493 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7494 * ) ac_file_in
=$ac_file.
in ;;
7497 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7498 echo "$as_me: creating $ac_file" >&6;}
7500 # First look for the input files in the build tree, otherwise in the
7502 ac_file_inputs
=`IFS=:
7503 for f in $ac_file_in; do
7505 -) echo $tmp/stdin ;;
7507 # Absolute (can't be DOS-style, as IFS=:)
7508 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7509 echo "$as_me: error: cannot find input file: $f" >&2;}
7510 { (exit 1); exit 1; }; }
7513 if test -f "$f"; then
7516 elif test -f "$srcdir/$f"; then
7521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7522 echo "$as_me: error: cannot find input file: $f" >&2;}
7523 { (exit 1); exit 1; }; }
7526 done` ||
{ (exit 1); exit 1; }
7527 # Remove the trailing spaces.
7528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7533 # `conftest.undefs', that substitutes the proper values into
7534 # config.h.in to produce config.h. The first handles `#define'
7535 # templates, and the second `#undef' templates.
7536 # And first: Protect against being on the right side of a sed subst in
7537 # config.status. Protect against being in an unquoted here document
7539 rm -f conftest.defines conftest.undefs
7540 # Using a here document instead of a string reduces the quoting nightmare.
7541 # Putting comments in sed scripts is not portable.
7543 # `end' is used to avoid that the second main sed command (meant for
7544 # 0-ary CPP macros) applies to n-ary macro definitions.
7545 # See the Autoconf documentation for `clear'.
7546 cat >confdef2sed.
sed <<\_ACEOF
7551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7556 # If some macros were called several times there might be several times
7557 # the same #defines, which is useless. Nevertheless, we may not want to
7558 # sort them, since we want the *last* AC-DEFINE to be honored.
7559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7561 rm -f confdef2sed.sed
7563 # This sed command replaces #undef with comments. This is necessary, for
7564 # example, in the case of _POSIX_SOURCE, which is predefined and required
7565 # on some systems where configure will not decide to define it.
7566 cat >>conftest.undefs <<\_ACEOF
7567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7570 # Break up conftest.defines because some shells have a limit on the size
7571 # of here documents, and old seds have small limits too (100 cmds).
7572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7575 echo ' :' >>$CONFIG_STATUS
7577 while grep . conftest.defines >/dev/null
7579 # Write a limited-size here document to $tmp/defines.sed.
7580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7581 # Speed up: don't consider the non `#define' lines.
7582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7583 # Work around the forget-to-reset-the-flag bug.
7584 echo 't clr' >>$CONFIG_STATUS
7585 echo ': clr' >>$CONFIG_STATUS
7586 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7592 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7593 rm -f conftest.defines
7594 mv conftest.
tail conftest.defines
7596 rm -f conftest.defines
7597 echo ' fi # grep' >>$CONFIG_STATUS
7598 echo >>$CONFIG_STATUS
7600 # Break up conftest.undefs because some shells have a limit on the size
7601 # of here documents, and old seds have small limits too (100 cmds).
7602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7604 while grep . conftest.undefs
>/dev
/null
7606 # Write a limited-size here document to $tmp/undefs.sed.
7607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7608 # Speed up: don't consider the non
`#undef'
7609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7610 # Work around the forget-to-reset-the-flag bug.
7611 echo 't clr' >>$CONFIG_STATUS
7612 echo ': clr' >>$CONFIG_STATUS
7613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7620 rm -f conftest.undefs
7621 mv conftest.tail conftest.undefs
7623 rm -f conftest.undefs
7625 cat >>$CONFIG_STATUS <<\_ACEOF
7626 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7627 # use $as_me), people would be surprised to read:
7628 # /* config.h. Generated by config.status. */
7629 if test x
"$ac_file" = x-
; then
7630 echo "/* Generated by configure. */" >$tmp/config.h
7632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7634 cat $tmp/in >>$tmp/config.h
7636 if test x
"$ac_file" != x-
; then
7637 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7639 echo "$as_me: $ac_file is unchanged" >&6;}
7641 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7643 X"$ac_file" : 'X\(//\)[^/]' \| \
7644 X"$ac_file" : 'X\(//\)$' \| \
7645 X"$ac_file" : 'X\(/\)' \| \
7646 . : '\(.\)' 2>/dev/null ||
7648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7650 /^X\(\/\/\)$/{ s//\1/; q; }
7651 /^X\(\/\).*/{ s//\1/; q; }
7653 { if $as_mkdir_p; then
7658 while test ! -d "$as_dir"; do
7659 as_dirs
="$as_dir $as_dirs"
7660 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7662 X"$as_dir" : 'X\(//\)[^/]' \| \
7663 X"$as_dir" : 'X\(//\)$' \| \
7664 X"$as_dir" : 'X\(/\)' \| \
7665 . : '\(.\)' 2>/dev/null ||
7667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7669 /^X\(\/\/\)$/{ s//\1/; q; }
7670 /^X\(\/\).*/{ s//\1/; q; }
7673 test ! -n "$as_dirs" || mkdir
$as_dirs
7674 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7676 { (exit 1); exit 1; }; }; }
7679 mv $tmp/config.h
$ac_file
7688 cat >>$CONFIG_STATUS <<\_ACEOF
7690 { (exit 0); exit 0; }
7692 chmod +x
$CONFIG_STATUS
7693 ac_clean_files
=$ac_clean_files_save
7696 # configure is writing to config.log, and then calls config.status.
7697 # config.status does its own redirection, appending to config.log.
7698 # Unfortunately, on DOS this fails, as config.log is still kept open
7699 # by configure, so config.status won't be able to write to it; its
7700 # output is simply discarded. So we exec the FD to /dev/null,
7701 # effectively closing config.log, so it can be properly (re)opened and
7702 # appended to by config.status. When coming back to configure, we
7703 # need to make the FD available again.
7704 if test "$no_create" != yes; then
7706 ac_config_status_args
=
7707 test "$silent" = yes &&
7708 ac_config_status_args
="$ac_config_status_args --quiet"
7710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7713 # would make configure fail if this is the last instruction.
7714 $ac_cs_success ||
{ (exit 1); exit 1; }
7718 if test -f .devel
; then